diff --git a/eng/mgmt/mgmtmetadata/frontdoor_resource-manager.txt b/eng/mgmt/mgmtmetadata/frontdoor_resource-manager.txt index 95fa55297d9c..de7a91468ea5 100644 --- a/eng/mgmt/mgmtmetadata/frontdoor_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/frontdoor_resource-manager.txt @@ -3,12 +3,12 @@ AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/frontdoor/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\AFD\azure-sdk-for-net\sdk -2019-08-19 23:03:22 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/frontdoor/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\Sources\OSS\azure-sdk-for-net\sdk +2019-11-07 17:58:14 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 59c5761efb6dae1a0cfb624bc1a054e902a855cf +Commit: 5e95a31678db88b8405e189df4aad8f9e9a24c45 AutoRest information Requested version: latest -Bootstrapper version: autorest@2.0.4283 +Bootstrapper version: autorest@2.0.4407 diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/AzSdk.RP.props b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/AzSdk.RP.props index 3175b9235b3a..0812ef19e1c8 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/AzSdk.RP.props +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/AzSdk.RP.props @@ -1,7 +1,7 @@ - Network_2019-05-01;Network_2019-04-01;Network_2019-03-01; + Network_2019-05-01;Network_2019-11-01;Network_2019-10-01; $(PackageTags);$(CommonTags);$(AzureApiTag); \ No newline at end of file diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperationsExtensions.cs deleted file mode 100644 index 0fffad0a5e17..000000000000 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperationsExtensions.cs +++ /dev/null @@ -1,341 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// 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; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for BackendPoolsOperations. - /// - public static partial class BackendPoolsOperationsExtensions - { - /// - /// Lists all of the Backend Pools 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 IPage ListByFrontDoor(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName) - { - return operations.ListByFrontDoorAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the Backend Pools 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 Task> ListByFrontDoorAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Gets a Backend Pool with the specified Pool 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 Backend Pool which is unique within the Front Door. - /// - public static BackendPool Get(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName) - { - return operations.GetAsync(resourceGroupName, frontDoorName, backendPoolName).GetAwaiter().GetResult(); - } - - /// - /// Gets a Backend Pool with the specified Pool 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 Backend Pool which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates a new Backend Pool with the specified Pool 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 Backend Pool which is unique within the Front Door. - /// - /// - /// Backend Pool properties needed to create a new Pool. - /// - public static BackendPool CreateOrUpdate(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters) - { - return operations.CreateOrUpdateAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new Backend Pool with the specified Pool 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 Backend Pool which is unique within the Front Door. - /// - /// - /// Backend Pool properties needed to create a new Pool. - /// - /// - /// The cancellation token. - /// - public static async Task CreateOrUpdateAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes an existing Backend Pool 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 Backend Pool which is unique within the Front Door. - /// - public static void Delete(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName) - { - operations.DeleteAsync(resourceGroupName, frontDoorName, backendPoolName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing Backend Pool 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 Backend Pool which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Creates a new Backend Pool with the specified Pool 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 Backend Pool which is unique within the Front Door. - /// - /// - /// Backend Pool properties needed to create a new Pool. - /// - public static BackendPool BeginCreateOrUpdate(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters) - { - return operations.BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new Backend Pool with the specified Pool 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 Backend Pool which is unique within the Front Door. - /// - /// - /// Backend Pool properties needed to create a new Pool. - /// - /// - /// The cancellation token. - /// - public static async Task BeginCreateOrUpdateAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes an existing Backend Pool 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 Backend Pool which is unique within the Front Door. - /// - public static void BeginDelete(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName) - { - operations.BeginDeleteAsync(resourceGroupName, frontDoorName, backendPoolName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing Backend Pool 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 Backend Pool which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task BeginDeleteAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Lists all of the Backend Pools within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListByFrontDoorNext(this IBackendPoolsOperations operations, string nextPageLink) - { - return operations.ListByFrontDoorNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the Backend Pools 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 Task> ListByFrontDoorNextAsync(this IBackendPoolsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperations.cs similarity index 68% rename from sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperations.cs rename to sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperations.cs index febf5b0cb527..c10964f70b63 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/BackendPoolsOperations.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperations.cs @@ -23,12 +23,12 @@ namespace Microsoft.Azure.Management.FrontDoor using System.Threading.Tasks; /// - /// BackendPoolsOperations operations. + /// ExperimentsOperations operations. /// - internal partial class BackendPoolsOperations : IServiceOperations, IBackendPoolsOperations + internal partial class ExperimentsOperations : IServiceOperations, IExperimentsOperations { /// - /// Initializes a new instance of the BackendPoolsOperations class. + /// Initializes a new instance of the ExperimentsOperations class. /// /// /// Reference to the service client. @@ -36,7 +36,7 @@ internal partial class BackendPoolsOperations : IServiceOperations /// Thrown when a required parameter is null /// - internal BackendPoolsOperations(FrontDoorManagementClient client) + internal ExperimentsOperations(FrontDoorManagementClient client) { if (client == null) { @@ -51,13 +51,13 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) public FrontDoorManagementClient Client { get; private set; } /// - /// Lists all of the Backend Pools within a Front Door. + /// Gets a list of Experiments /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// /// /// Headers that will be added to request. @@ -80,7 +80,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByProfileWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -105,26 +105,18 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (frontDoorName == null) + if (profileName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); } - if (frontDoorName != null) + if (profileName != null) { - if (frontDoorName.Length > 64) + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - string apiVersion = "2019-05-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -132,18 +124,18 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("profileName", profileName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoor", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByProfile", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools").ToString(); + 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(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); + _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -237,7 +229,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -250,7 +242,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -270,17 +262,16 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) } /// - /// Gets a Backend Pool with the specified Pool name within the specified Front - /// Door. + /// Gets an Experiment by ExperimentName /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// - /// - /// Name of the Backend Pool which is unique within the Front Door. + /// + /// The Experiment identifier associated with the Experiment /// /// /// Headers that will be added to request. @@ -303,7 +294,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -328,45 +319,29 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (frontDoorName == null) + if (profileName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); } - if (frontDoorName != null) + if (profileName != null) { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (backendPoolName == null) + if (experimentName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "backendPoolName"); + throw new ValidationException(ValidationRules.CannotBeNull, "experimentName"); } - if (backendPoolName != null) + if (experimentName != null) { - if (backendPoolName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "backendPoolName", 90); - } - if (backendPoolName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "backendPoolName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(backendPoolName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) { - throw new ValidationException(ValidationRules.Pattern, "backendPoolName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + throw new ValidationException(ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - string apiVersion = "2019-05-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -374,20 +349,20 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("backendPoolName", backendPoolName); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("profileName", profileName); + tracingParameters.Add("experimentName", experimentName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}").ToString(); + 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(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{backendPoolName}", System.Uri.EscapeDataString(backendPoolName)); + _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); + _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -481,7 +456,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -494,7 +469,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -514,20 +489,50 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) } /// - /// Creates a new Backend Pool with the specified Pool name within the - /// specified Front Door. + /// 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. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates an Experiment by Experiment id /// + /// + /// Updates an Experiment + /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// - /// - /// Name of the Backend Pool which is unique within the Front Door. + /// + /// The Experiment identifier associated with the Experiment /// - /// - /// Backend Pool properties needed to create a new Pool. + /// + /// The Experiment Update Model /// /// /// The headers that will be added to request. @@ -535,24 +540,24 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) /// /// The cancellation token. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Deletes an existing Backend Pool with the specified parameters. + /// Deletes an Experiment /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// - /// - /// Name of the Backend Pool which is unique within the Front Door. + /// + /// The Experiment identifier associated with the Experiment /// /// /// The headers that will be added to request. @@ -560,28 +565,27 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Creates a new Backend Pool with the specified Pool name within the - /// specified Front Door. + /// Creates or updates an Experiment /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// - /// - /// Name of the Backend Pool which is unique within the Front Door. + /// + /// The Experiment identifier associated with the Experiment /// - /// - /// Backend Pool properties needed to create a new Pool. + /// + /// The Experiment resource /// /// /// Headers that will be added to request. @@ -604,7 +608,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -629,49 +633,33 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (frontDoorName == null) + if (profileName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); } - if (frontDoorName != null) + if (profileName != null) { - if (frontDoorName.Length > 64) + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (backendPoolName == null) + if (experimentName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "backendPoolName"); + throw new ValidationException(ValidationRules.CannotBeNull, "experimentName"); } - if (backendPoolName != null) + if (experimentName != null) { - if (backendPoolName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "backendPoolName", 90); - } - if (backendPoolName.Length < 1) + if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) { - throw new ValidationException(ValidationRules.MinLength, "backendPoolName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(backendPoolName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new ValidationException(ValidationRules.Pattern, "backendPoolName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + throw new ValidationException(ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (backendPoolParameters == null) + if (parameters == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "backendPoolParameters"); + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2019-05-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -679,21 +667,21 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("backendPoolName", backendPoolName); - tracingParameters.Add("backendPoolParameters", backendPoolParameters); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("profileName", profileName); + tracingParameters.Add("experimentName", experimentName); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}").ToString(); + 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(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{backendPoolName}", System.Uri.EscapeDataString(backendPoolName)); + _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); + _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -737,9 +725,9 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) // Serialize Request string _requestContent = null; - if(backendPoolParameters != null) + if(parameters != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(backendPoolParameters, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -793,7 +781,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -806,7 +794,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -824,7 +812,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -842,7 +830,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -862,16 +850,22 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) } /// - /// Deletes an existing Backend Pool with the specified parameters. + /// Updates an Experiment by Experiment id /// + /// + /// Updates an Experiment + /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner + /// + /// + /// The Experiment identifier associated with the Experiment /// - /// - /// Name of the Backend Pool which is unique within the Front Door. + /// + /// The Experiment Update Model /// /// /// Headers that will be added to request. @@ -882,6 +876,9 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -891,7 +888,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -916,45 +913,282 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (frontDoorName == null) + if (profileName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); } - if (frontDoorName != null) + if (profileName != null) { - if (frontDoorName.Length > 64) + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } - if (frontDoorName.Length < 5) + } + if (experimentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "experimentName"); + } + if (experimentName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2019-11-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new 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); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = 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(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)); + List _queryParameters = new 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 HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) { - throw new ValidationException(ValidationRules.MinLength, "frontDoorName", 5); + _httpRequest.Headers.Remove("accept-language"); } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontDoorName, "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$")) + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) { - throw new ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); } } - if (backendPoolName == null) + + // Serialize Request + string _requestContent = null; + if(parameters != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "backendPoolName"); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } - if (backendPoolName != null) + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) { - if (backendPoolName.Length > 90) + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new 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 { - throw new ValidationException(ValidationRules.MaxLength, "backendPoolName", 90); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - if (backendPoolName.Length < 1) + catch (JsonException ex) { - throw new ValidationException(ValidationRules.MinLength, "backendPoolName", 1); + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } - if (!System.Text.RegularExpressions.Regex.IsMatch(backendPoolName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) { - throw new ValidationException(ValidationRules.Pattern, "backendPoolName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } - string apiVersion = "2019-05-01"; + if (_shouldTrace) + { + 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 Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 80) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + if (profileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); + } + if (profileName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + if (experimentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "experimentName"); + } + if (experimentName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -962,20 +1196,20 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("backendPoolName", backendPoolName); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("profileName", profileName); + tracingParameters.Add("experimentName", experimentName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}").ToString(); + 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(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{backendPoolName}", System.Uri.EscapeDataString(backendPoolName)); + _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); + _url = _url.Replace("{experimentName}", System.Uri.EscapeDataString(experimentName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -1039,7 +1273,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 202 && (int)_statusCode != 204) + 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 @@ -1084,7 +1318,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) } /// - /// Lists all of the Backend Pools within a Front Door. + /// Gets a list of Experiments /// /// /// The NextLink from the previous successful call to List operation. @@ -1110,7 +1344,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByProfileNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1125,7 +1359,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoorNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByProfileNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1219,7 +1453,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1232,7 +1466,7 @@ internal BackendPoolsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperationsExtensions.cs new file mode 100644 index 000000000000..b26ef6a161e2 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ExperimentsOperationsExtensions.cs @@ -0,0 +1,451 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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; + using System.Threading; + using System.Threading.Tasks; + + /// + /// 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 IPage ListByProfile(this IExperimentsOperations operations, string resourceGroupName, string profileName) + { + return 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 Task> ListByProfileAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(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 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 Task GetAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, CancellationToken cancellationToken = default(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 + /// + /// + /// The Experiment resource + /// + public static Experiment CreateOrUpdate(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters) + { + return 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 Experiment resource + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates an Experiment by Experiment id + /// + /// + /// 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 Experiment Update Model + /// + public static Experiment Update(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters) + { + return operations.UpdateAsync(resourceGroupName, profileName, experimentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates an Experiment by Experiment id + /// + /// + /// 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 Experiment Update Model + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, CancellationToken cancellationToken = default(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) + { + 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 Task DeleteAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, CancellationToken cancellationToken = default(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 + /// + /// + /// The Experiment resource + /// + public static Experiment BeginCreateOrUpdate(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters) + { + return 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 Experiment resource + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, Experiment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates an Experiment by Experiment id + /// + /// + /// 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 Experiment Update Model + /// + public static Experiment BeginUpdate(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, profileName, experimentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates an Experiment by Experiment id + /// + /// + /// 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 Experiment Update Model + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, CancellationToken cancellationToken = default(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) + { + 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 Task BeginDeleteAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, CancellationToken cancellationToken = default(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 IPage ListByProfileNext(this IExperimentsOperations operations, string nextPageLink) + { + return 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 Task> ListByProfileNextAsync(this IExperimentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByProfileNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontDoorManagementClient.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontDoorManagementClient.cs index 89ee16d4a0c3..1fd3173ecb60 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontDoorManagementClient.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontDoorManagementClient.cs @@ -74,29 +74,29 @@ public partial class FrontDoorManagementClient : ServiceClient - /// Gets the IFrontDoorsOperations. + /// Gets the INetworkExperimentProfilesOperations. /// - public virtual IFrontDoorsOperations FrontDoors { get; private set; } + public virtual INetworkExperimentProfilesOperations NetworkExperimentProfiles { get; private set; } /// - /// Gets the IRoutingRulesOperations. + /// Gets the IPreconfiguredEndpointsOperations. /// - public virtual IRoutingRulesOperations RoutingRules { get; private set; } + public virtual IPreconfiguredEndpointsOperations PreconfiguredEndpoints { get; private set; } /// - /// Gets the IHealthProbeSettingsOperations. + /// Gets the IExperimentsOperations. /// - public virtual IHealthProbeSettingsOperations HealthProbeSettings { get; private set; } + public virtual IExperimentsOperations Experiments { get; private set; } /// - /// Gets the ILoadBalancingSettingsOperations. + /// Gets the IReportsOperations. /// - public virtual ILoadBalancingSettingsOperations LoadBalancingSettings { get; private set; } + public virtual IReportsOperations Reports { get; private set; } /// - /// Gets the IBackendPoolsOperations. + /// Gets the IFrontDoorsOperations. /// - public virtual IBackendPoolsOperations BackendPools { get; private set; } + public virtual IFrontDoorsOperations FrontDoors { get; private set; } /// /// Gets the IFrontendEndpointsOperations. @@ -359,11 +359,11 @@ public FrontDoorManagementClient(System.Uri baseUri, ServiceClientCredentials cr /// private void Initialize() { + NetworkExperimentProfiles = new NetworkExperimentProfilesOperations(this); + PreconfiguredEndpoints = new PreconfiguredEndpointsOperations(this); + Experiments = new ExperimentsOperations(this); + Reports = new ReportsOperations(this); FrontDoors = new FrontDoorsOperations(this); - RoutingRules = new RoutingRulesOperations(this); - HealthProbeSettings = new HealthProbeSettingsOperations(this); - LoadBalancingSettings = new LoadBalancingSettingsOperations(this); - BackendPools = new BackendPoolsOperations(this); FrontendEndpoints = new FrontendEndpointsOperations(this); Endpoints = new EndpointsOperations(this); Policies = new PoliciesOperations(this); diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperations.cs index 8b1570eba458..2b83d9a00ca5 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperations.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperations.cs @@ -513,60 +513,6 @@ internal FrontendEndpointsOperations(FrontDoorManagementClient client) return _result; } - /// - /// Creates a new frontend endpoint with the specified host 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. - /// - /// - /// Frontend endpoint properties needed to create a new endpoint. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, frontendEndpointParameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes an existing frontend endpoint 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 Frontend endpoint which is unique within the Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Enables a frontendEndpoint for HTTPS traffic /// @@ -620,526 +566,6 @@ internal FrontendEndpointsOperations(FrontDoorManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } - /// - /// Creates a new frontend endpoint with the specified host 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. - /// - /// - /// Frontend endpoint properties needed to create a new endpoint. - /// - /// - /// 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 Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (frontendEndpointName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontendEndpointName"); - } - if (frontendEndpointName != null) - { - if (frontendEndpointName.Length > 255) - { - throw new ValidationException(ValidationRules.MaxLength, "frontendEndpointName", 255); - } - if (frontendEndpointName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "frontendEndpointName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontendEndpointName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new ValidationException(ValidationRules.Pattern, "frontendEndpointName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - if (frontendEndpointParameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontendEndpointParameters"); - } - if (frontendEndpointParameters != null) - { - frontendEndpointParameters.Validate(); - } - string apiVersion = "2019-05-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("frontendEndpointName", frontendEndpointName); - tracingParameters.Add("frontendEndpointParameters", frontendEndpointParameters); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); - } - // Construct URL - var _baseUrl = 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(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)); - List _queryParameters = new 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 HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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(frontendEndpointParameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(frontendEndpointParameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 202) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Deletes an existing frontend endpoint 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 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 Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (frontendEndpointName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontendEndpointName"); - } - if (frontendEndpointName != null) - { - if (frontendEndpointName.Length > 255) - { - throw new ValidationException(ValidationRules.MaxLength, "frontendEndpointName", 255); - } - if (frontendEndpointName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "frontendEndpointName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(frontendEndpointName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new ValidationException(ValidationRules.Pattern, "frontendEndpointName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2019-05-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("frontendEndpointName", frontendEndpointName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); - } - // Construct URL - var _baseUrl = 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(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)); - List _queryParameters = new 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 HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - /// /// Enables a frontendEndpoint for HTTPS traffic /// diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperationsExtensions.cs index a9c27ec14fd3..1056b4320b73 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperationsExtensions.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/FrontendEndpointsOperationsExtensions.cs @@ -109,103 +109,6 @@ public static FrontendEndpoint Get(this IFrontendEndpointsOperations operations, } } - /// - /// Creates a new frontend endpoint with the specified host 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. - /// - /// - /// Frontend endpoint properties needed to create a new endpoint. - /// - public static FrontendEndpoint CreateOrUpdate(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters) - { - return operations.CreateOrUpdateAsync(resourceGroupName, frontDoorName, frontendEndpointName, frontendEndpointParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new frontend endpoint with the specified host 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. - /// - /// - /// Frontend endpoint properties needed to create a new endpoint. - /// - /// - /// The cancellation token. - /// - public static async Task CreateOrUpdateAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, frontendEndpointParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes an existing frontend endpoint 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 Frontend endpoint which is unique within the Front Door. - /// - public static void Delete(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName) - { - operations.DeleteAsync(resourceGroupName, frontDoorName, frontendEndpointName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing frontend endpoint 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 Frontend endpoint which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// /// Enables a frontendEndpoint for HTTPS traffic /// @@ -298,103 +201,6 @@ public static void DisableHttps(this IFrontendEndpointsOperations operations, st (await operations.DisableHttpsWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } - /// - /// Creates a new frontend endpoint with the specified host 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. - /// - /// - /// Frontend endpoint properties needed to create a new endpoint. - /// - public static FrontendEndpoint BeginCreateOrUpdate(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters) - { - return operations.BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, frontendEndpointName, frontendEndpointParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new frontend endpoint with the specified host 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. - /// - /// - /// Frontend endpoint properties needed to create a new endpoint. - /// - /// - /// The cancellation token. - /// - public static async Task BeginCreateOrUpdateAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, frontendEndpointParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes an existing frontend endpoint 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 Frontend endpoint which is unique within the Front Door. - /// - public static void BeginDelete(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName) - { - operations.BeginDeleteAsync(resourceGroupName, frontDoorName, frontendEndpointName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing frontend endpoint 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 Frontend endpoint which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task BeginDeleteAsync(this IFrontendEndpointsOperations operations, string resourceGroupName, string frontDoorName, string frontendEndpointName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, frontendEndpointName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// /// Enables a frontendEndpoint for HTTPS traffic /// diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperations.cs deleted file mode 100644 index 30c437cd0c90..000000000000 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperations.cs +++ /dev/null @@ -1,1255 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// 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; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - using System.Net; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - - /// - /// HealthProbeSettingsOperations operations. - /// - internal partial class HealthProbeSettingsOperations : IServiceOperations, IHealthProbeSettingsOperations - { - /// - /// Initializes a new instance of the HealthProbeSettingsOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal HealthProbeSettingsOperations(FrontDoorManagementClient client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - Client = client; - } - - /// - /// Gets a reference to the FrontDoorManagementClient - /// - public FrontDoorManagementClient Client { get; private set; } - - /// - /// Lists all of the HealthProbeSettings 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 Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2019-05-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoor", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - List _queryParameters = new 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 HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Gets a HealthProbeSettings with the specified Rule 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 health probe settings 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 Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (healthProbeSettingsName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "healthProbeSettingsName"); - } - if (healthProbeSettingsName != null) - { - if (healthProbeSettingsName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "healthProbeSettingsName", 90); - } - if (healthProbeSettingsName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "healthProbeSettingsName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(healthProbeSettingsName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new ValidationException(ValidationRules.Pattern, "healthProbeSettingsName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2019-05-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("healthProbeSettingsName", healthProbeSettingsName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{healthProbeSettingsName}", System.Uri.EscapeDataString(healthProbeSettingsName)); - List _queryParameters = new 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 HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Creates a new HealthProbeSettings with the specified Rule 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 health probe settings which is unique within the Front Door. - /// - /// - /// HealthProbeSettings properties needed to create a new Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, healthProbeSettingsParameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes an existing HealthProbeSettings 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 health probe settings which is unique within the Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Creates a new HealthProbeSettings with the specified Rule 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 health probe settings which is unique within the Front Door. - /// - /// - /// HealthProbeSettings 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 Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (healthProbeSettingsName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "healthProbeSettingsName"); - } - if (healthProbeSettingsName != null) - { - if (healthProbeSettingsName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "healthProbeSettingsName", 90); - } - if (healthProbeSettingsName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "healthProbeSettingsName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(healthProbeSettingsName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new ValidationException(ValidationRules.Pattern, "healthProbeSettingsName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - if (healthProbeSettingsParameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "healthProbeSettingsParameters"); - } - string apiVersion = "2019-05-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("healthProbeSettingsName", healthProbeSettingsName); - tracingParameters.Add("healthProbeSettingsParameters", healthProbeSettingsParameters); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{healthProbeSettingsName}", System.Uri.EscapeDataString(healthProbeSettingsName)); - List _queryParameters = new 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 HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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(healthProbeSettingsParameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(healthProbeSettingsParameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 202) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Deletes an existing HealthProbeSettings 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 health probe settings 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 Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (healthProbeSettingsName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "healthProbeSettingsName"); - } - if (healthProbeSettingsName != null) - { - if (healthProbeSettingsName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "healthProbeSettingsName", 90); - } - if (healthProbeSettingsName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "healthProbeSettingsName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(healthProbeSettingsName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new ValidationException(ValidationRules.Pattern, "healthProbeSettingsName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2019-05-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("healthProbeSettingsName", healthProbeSettingsName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{healthProbeSettingsName}", System.Uri.EscapeDataString(healthProbeSettingsName)); - List _queryParameters = new 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 HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Lists all of the HealthProbeSettings 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 Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (nextPageLink == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoorNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - } -} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperationsExtensions.cs deleted file mode 100644 index b31018a44ccb..000000000000 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/HealthProbeSettingsOperationsExtensions.cs +++ /dev/null @@ -1,341 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// 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; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for HealthProbeSettingsOperations. - /// - public static partial class HealthProbeSettingsOperationsExtensions - { - /// - /// Lists all of the HealthProbeSettings 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 IPage ListByFrontDoor(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName) - { - return operations.ListByFrontDoorAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the HealthProbeSettings 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 Task> ListByFrontDoorAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Gets a HealthProbeSettings with the specified Rule 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 health probe settings which is unique within the Front Door. - /// - public static HealthProbeSettingsModel Get(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName) - { - return operations.GetAsync(resourceGroupName, frontDoorName, healthProbeSettingsName).GetAwaiter().GetResult(); - } - - /// - /// Gets a HealthProbeSettings with the specified Rule 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 health probe settings which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates a new HealthProbeSettings with the specified Rule 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 health probe settings which is unique within the Front Door. - /// - /// - /// HealthProbeSettings properties needed to create a new Front Door. - /// - public static HealthProbeSettingsModel CreateOrUpdate(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters) - { - return operations.CreateOrUpdateAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, healthProbeSettingsParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new HealthProbeSettings with the specified Rule 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 health probe settings which is unique within the Front Door. - /// - /// - /// HealthProbeSettings properties needed to create a new Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task CreateOrUpdateAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, healthProbeSettingsParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes an existing HealthProbeSettings 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 health probe settings which is unique within the Front Door. - /// - public static void Delete(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName) - { - operations.DeleteAsync(resourceGroupName, frontDoorName, healthProbeSettingsName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing HealthProbeSettings 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 health probe settings which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Creates a new HealthProbeSettings with the specified Rule 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 health probe settings which is unique within the Front Door. - /// - /// - /// HealthProbeSettings properties needed to create a new Front Door. - /// - public static HealthProbeSettingsModel BeginCreateOrUpdate(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters) - { - return operations.BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, healthProbeSettingsParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new HealthProbeSettings with the specified Rule 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 health probe settings which is unique within the Front Door. - /// - /// - /// HealthProbeSettings properties needed to create a new Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task BeginCreateOrUpdateAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, healthProbeSettingsParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes an existing HealthProbeSettings 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 health probe settings which is unique within the Front Door. - /// - public static void BeginDelete(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName) - { - operations.BeginDeleteAsync(resourceGroupName, frontDoorName, healthProbeSettingsName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing HealthProbeSettings 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 health probe settings which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task BeginDeleteAsync(this IHealthProbeSettingsOperations operations, string resourceGroupName, string frontDoorName, string healthProbeSettingsName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, healthProbeSettingsName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Lists all of the HealthProbeSettings within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListByFrontDoorNext(this IHealthProbeSettingsOperations operations, string nextPageLink) - { - return operations.ListByFrontDoorNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the HealthProbeSettings 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 Task> ListByFrontDoorNextAsync(this IHealthProbeSettingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IBackendPoolsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IExperimentsOperations.cs similarity index 50% rename from sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IBackendPoolsOperations.cs rename to sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IExperimentsOperations.cs index 2e842abc28a1..dec5883120d9 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IBackendPoolsOperations.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IExperimentsOperations.cs @@ -19,18 +19,18 @@ namespace Microsoft.Azure.Management.FrontDoor using System.Threading.Tasks; /// - /// BackendPoolsOperations operations. + /// ExperimentsOperations operations. /// - public partial interface IBackendPoolsOperations + public partial interface IExperimentsOperations { /// - /// Lists all of the Backend Pools within a Front Door. + /// Gets a list of Experiments /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// /// /// The headers that will be added to request. @@ -47,19 +47,18 @@ public partial interface IBackendPoolsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByProfileWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a Backend Pool with the specified Pool name within the - /// specified Front Door. + /// Gets an Experiment by ExperimentName /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// - /// - /// Name of the Backend Pool which is unique within the Front Door. + /// + /// The Experiment identifier associated with the Experiment /// /// /// The headers that will be added to request. @@ -76,22 +75,21 @@ public partial interface IBackendPoolsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates a new Backend Pool with the specified Pool name within the - /// specified Front Door. + /// Creates or updates an Experiment /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// - /// - /// Name of the Backend Pool which is unique within the Front Door. + /// + /// The Experiment identifier associated with the Experiment /// - /// - /// Backend Pool properties needed to create a new Pool. + /// + /// The Experiment resource /// /// /// The headers that will be added to request. @@ -108,18 +106,52 @@ public partial interface IBackendPoolsOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes an existing Backend Pool with the specified parameters. + /// Updates an Experiment by Experiment id /// + /// + /// Updates an Experiment + /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// - /// - /// Name of the Backend Pool which is unique within the Front Door. + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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. @@ -133,22 +165,55 @@ public partial interface IBackendPoolsOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Experiment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates a new Backend Pool with the specified Pool name within the - /// specified Front Door. + /// Updates an Experiment by Experiment id /// + /// + /// Updates an Experiment + /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// - /// - /// Name of the Backend Pool which is unique within the Front Door. + /// + /// The Experiment identifier associated with the Experiment /// - /// - /// Backend Pool properties needed to create a new Pool. + /// + /// The Experiment Update Model /// /// /// The headers that will be added to request. @@ -165,18 +230,18 @@ public partial interface IBackendPoolsOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes an existing Backend Pool with the specified parameters. + /// Deletes an Experiment /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// - /// - /// Name of the Backend Pool which is unique within the Front Door. + /// + /// The Experiment identifier associated with the Experiment /// /// /// The headers that will be added to request. @@ -190,9 +255,9 @@ public partial interface IBackendPoolsOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string backendPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all of the Backend Pools within a Front Door. + /// Gets a list of Experiments /// /// /// The NextLink from the previous successful call to List operation. @@ -212,6 +277,6 @@ public partial interface IBackendPoolsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByProfileNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontDoorManagementClient.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontDoorManagementClient.cs index 7056083a2841..783ecb4f04da 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontDoorManagementClient.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontDoorManagementClient.cs @@ -71,29 +71,29 @@ public partial interface IFrontDoorManagementClient : System.IDisposable /// - /// Gets the IFrontDoorsOperations. + /// Gets the INetworkExperimentProfilesOperations. /// - IFrontDoorsOperations FrontDoors { get; } + INetworkExperimentProfilesOperations NetworkExperimentProfiles { get; } /// - /// Gets the IRoutingRulesOperations. + /// Gets the IPreconfiguredEndpointsOperations. /// - IRoutingRulesOperations RoutingRules { get; } + IPreconfiguredEndpointsOperations PreconfiguredEndpoints { get; } /// - /// Gets the IHealthProbeSettingsOperations. + /// Gets the IExperimentsOperations. /// - IHealthProbeSettingsOperations HealthProbeSettings { get; } + IExperimentsOperations Experiments { get; } /// - /// Gets the ILoadBalancingSettingsOperations. + /// Gets the IReportsOperations. /// - ILoadBalancingSettingsOperations LoadBalancingSettings { get; } + IReportsOperations Reports { get; } /// - /// Gets the IBackendPoolsOperations. + /// Gets the IFrontDoorsOperations. /// - IBackendPoolsOperations BackendPools { get; } + IFrontDoorsOperations FrontDoors { get; } /// /// Gets the IFrontendEndpointsOperations. diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontendEndpointsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontendEndpointsOperations.cs index c6018ca5fb04..b72f6e2046e8 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontendEndpointsOperations.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IFrontendEndpointsOperations.cs @@ -79,66 +79,6 @@ public partial interface IFrontendEndpointsOperations /// Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates a new frontend endpoint with the specified host 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. - /// - /// - /// Frontend endpoint properties needed to create a new endpoint. - /// - /// - /// 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes an existing frontend endpoint 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 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 a required parameter is null - /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Enables a frontendEndpoint for HTTPS traffic /// /// @@ -194,66 +134,6 @@ public partial interface IFrontendEndpointsOperations /// Task DisableHttpsWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates a new frontend endpoint with the specified host 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. - /// - /// - /// Frontend endpoint properties needed to create a new endpoint. - /// - /// - /// 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, FrontendEndpoint frontendEndpointParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes an existing frontend endpoint 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 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 a required parameter is null - /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string frontendEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Enables a frontendEndpoint for HTTPS traffic /// /// diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IHealthProbeSettingsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IHealthProbeSettingsOperations.cs deleted file mode 100644 index cfe1548c3386..000000000000 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IHealthProbeSettingsOperations.cs +++ /dev/null @@ -1,224 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// 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; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// HealthProbeSettingsOperations operations. - /// - public partial interface IHealthProbeSettingsOperations - { - /// - /// Lists all of the HealthProbeSettings 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Gets a HealthProbeSettings with the specified Rule 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 health probe settings 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates a new HealthProbeSettings with the specified Rule 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 health probe settings which is unique within the Front - /// Door. - /// - /// - /// HealthProbeSettings 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes an existing HealthProbeSettings 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 health probe settings 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 a required parameter is null - /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates a new HealthProbeSettings with the specified Rule 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 health probe settings which is unique within the Front - /// Door. - /// - /// - /// HealthProbeSettings 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, HealthProbeSettingsModel healthProbeSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes an existing HealthProbeSettings 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 health probe settings 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 a required parameter is null - /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string healthProbeSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Lists all of the HealthProbeSettings 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ILoadBalancingSettingsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ILoadBalancingSettingsOperations.cs deleted file mode 100644 index 2a415ece748a..000000000000 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ILoadBalancingSettingsOperations.cs +++ /dev/null @@ -1,224 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// 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; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// LoadBalancingSettingsOperations operations. - /// - public partial interface ILoadBalancingSettingsOperations - { - /// - /// Lists all of the LoadBalancingSettings 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Gets a LoadBalancingSettings with the specified Rule 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 load balancing settings 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates a new LoadBalancingSettings with the specified Rule 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 load balancing settings which is unique within the - /// Front Door. - /// - /// - /// LoadBalancingSettings 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes an existing LoadBalancingSettings 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 load balancing settings 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 a required parameter is null - /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates a new LoadBalancingSettings with the specified Rule 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 load balancing settings which is unique within the - /// Front Door. - /// - /// - /// LoadBalancingSettings 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes an existing LoadBalancingSettings 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 load balancing settings 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 a required parameter is null - /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Lists all of the LoadBalancingSettings 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/INetworkExperimentProfilesOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/INetworkExperimentProfilesOperations.cs new file mode 100644 index 000000000000..320d29084bee --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/INetworkExperimentProfilesOperations.cs @@ -0,0 +1,303 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// NetworkExperimentProfilesOperations operations. + /// + public partial interface INetworkExperimentProfilesOperations + { + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string profileName, string resourceGroupName, Profile parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates an NetworkExperimentProfiles by NetworkExperimentProfile + /// name + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, ProfileUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string profileName, string resourceGroupName, Profile parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates an NetworkExperimentProfiles by NetworkExperimentProfile + /// name + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, ProfileUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IPreconfiguredEndpointsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IPreconfiguredEndpointsOperations.cs new file mode 100644 index 000000000000..8b6dcdfd49e5 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IPreconfiguredEndpointsOperations.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PreconfiguredEndpointsOperations operations. + /// + public partial interface IPreconfiguredEndpointsOperations + { + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IReportsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IReportsOperations.cs new file mode 100644 index 000000000000..753572239363 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IReportsOperations.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.Management.FrontDoor +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ReportsOperations operations. + /// + public partial interface IReportsOperations + { + /// + /// 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 aggregation interval of the Latency Scorecard. Possible values + /// include: 'Daily', 'Weekly', 'Monthly' + /// + /// + /// 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 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 + /// + Task> GetLatencyScorecardsWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, string aggregationInterval, string endDateTimeUTC = default(string), string country = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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. Possible values + /// include: 'Hourly', 'Daily' + /// + /// + /// The type of Timeseries. Possible values include: + /// 'MeasurementCounts', 'LatencyP50', 'LatencyP75', 'LatencyP95' + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + 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), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IRoutingRulesOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IRoutingRulesOperations.cs deleted file mode 100644 index 1054d2eec3c7..000000000000 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/IRoutingRulesOperations.cs +++ /dev/null @@ -1,217 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// 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; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// RoutingRulesOperations operations. - /// - public partial interface IRoutingRulesOperations - { - /// - /// Lists all of the Routing Rules 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Gets a Routing Rule with the specified Rule 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 Routing Rule 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string routingRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates a new Routing Rule with the specified Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// Routing Rule 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string routingRuleName, RoutingRule routingRuleParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes an existing Routing Rule 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 Routing Rule 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 a required parameter is null - /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string routingRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates a new Routing Rule with the specified Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// Routing Rule 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string routingRuleName, RoutingRule routingRuleParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes an existing Routing Rule 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 Routing Rule 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 a required parameter is null - /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string routingRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Lists all of the Routing Rules 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 - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/LoadBalancingSettingsOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/LoadBalancingSettingsOperationsExtensions.cs deleted file mode 100644 index 0f6435bd3e59..000000000000 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/LoadBalancingSettingsOperationsExtensions.cs +++ /dev/null @@ -1,341 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// 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; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for LoadBalancingSettingsOperations. - /// - public static partial class LoadBalancingSettingsOperationsExtensions - { - /// - /// Lists all of the LoadBalancingSettings 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 IPage ListByFrontDoor(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName) - { - return operations.ListByFrontDoorAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the LoadBalancingSettings 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 Task> ListByFrontDoorAsync(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Gets a LoadBalancingSettings with the specified Rule 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 load balancing settings which is unique within the Front Door. - /// - public static LoadBalancingSettingsModel Get(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName) - { - return operations.GetAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName).GetAwaiter().GetResult(); - } - - /// - /// Gets a LoadBalancingSettings with the specified Rule 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 load balancing settings which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates a new LoadBalancingSettings with the specified Rule 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 load balancing settings which is unique within the Front Door. - /// - /// - /// LoadBalancingSettings properties needed to create a new Front Door. - /// - public static LoadBalancingSettingsModel CreateOrUpdate(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters) - { - return operations.CreateOrUpdateAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, loadBalancingSettingsParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new LoadBalancingSettings with the specified Rule 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 load balancing settings which is unique within the Front Door. - /// - /// - /// LoadBalancingSettings properties needed to create a new Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task CreateOrUpdateAsync(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, loadBalancingSettingsParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes an existing LoadBalancingSettings 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 load balancing settings which is unique within the Front Door. - /// - public static void Delete(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName) - { - operations.DeleteAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing LoadBalancingSettings 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 load balancing settings which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteAsync(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Creates a new LoadBalancingSettings with the specified Rule 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 load balancing settings which is unique within the Front Door. - /// - /// - /// LoadBalancingSettings properties needed to create a new Front Door. - /// - public static LoadBalancingSettingsModel BeginCreateOrUpdate(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters) - { - return operations.BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, loadBalancingSettingsParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new LoadBalancingSettings with the specified Rule 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 load balancing settings which is unique within the Front Door. - /// - /// - /// LoadBalancingSettings properties needed to create a new Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task BeginCreateOrUpdateAsync(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, loadBalancingSettingsParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes an existing LoadBalancingSettings 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 load balancing settings which is unique within the Front Door. - /// - public static void BeginDelete(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName) - { - operations.BeginDeleteAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing LoadBalancingSettings 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 load balancing settings which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task BeginDeleteAsync(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Lists all of the LoadBalancingSettings within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListByFrontDoorNext(this ILoadBalancingSettingsOperations operations, string nextPageLink) - { - return operations.ListByFrontDoorNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the LoadBalancingSettings 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 Task> ListByFrontDoorNextAsync(this ILoadBalancingSettingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ManagedRuleSetsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ManagedRuleSetsOperations.cs index 2a79c6138f41..3f366487cd7e 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ManagedRuleSetsOperations.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ManagedRuleSetsOperations.cs @@ -80,7 +80,7 @@ internal ManagedRuleSetsOperations(FrontDoorManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-03-01"; + string apiVersion = "2019-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/AggregationInterval.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/AggregationInterval.cs new file mode 100644 index 000000000000..490aab5e25a6 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/AggregationInterval.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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"; + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/BackendPoolListResult.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/BackendPoolListResult.cs new file mode 100644 index 000000000000..af6c1c79b07e --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/BackendPoolListResult.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.FrontDoor.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + 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(IList value = default(IList), string nextLink = default(string)) + { + Value = value; + 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. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; private set; } + + /// + /// Gets or sets URL to get the next set of BackendPool objects if + /// there are any. + /// + [JsonProperty(PropertyName = "nextLink")] + public string NextLink { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Endpoint.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Endpoint.cs new file mode 100644 index 000000000000..b9630c863dd8 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Endpoint.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.FrontDoor.Models +{ + using Newtonsoft.Json; + 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)) + { + Name = name; + EndpointProperty = endpointProperty; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the endpoint + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the endpoint URL + /// + [JsonProperty(PropertyName = "endpoint")] + public string EndpointProperty { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/EndpointType.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/EndpointType.cs new file mode 100644 index 000000000000..c342107d3d7f --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/EndpointType.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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"; + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Experiment.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Experiment.cs new file mode 100644 index 000000000000..00ee2127800c --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Experiment.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.Management.FrontDoor.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Defines the properties of an Experiment + /// + [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 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 Experiment(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), 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)) + : base(id, name, type, location, tags) + { + Description = description; + EndpointA = endpointA; + EndpointB = endpointB; + EnabledState = enabledState; + ResourceState = resourceState; + Status = status; + 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 + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets the endpoint A of an experiment + /// + [JsonProperty(PropertyName = "properties.endpointA")] + public Endpoint EndpointA { get; set; } + + /// + /// Gets or sets the endpoint B of an experiment + /// + [JsonProperty(PropertyName = "properties.endpointB")] + public Endpoint EndpointB { get; set; } + + /// + /// Gets or sets the state of the Experiment. Possible values include: + /// 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.enabledState")] + public string EnabledState { get; set; } + + /// + /// Gets or sets resource status. Possible values include: 'Creating', + /// 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + /// + [JsonProperty(PropertyName = "properties.resourceState")] + public string ResourceState { get; set; } + + /// + /// Gets the description of Experiment status from the server side + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets the uri to the Script used in the Experiment + /// + [JsonProperty(PropertyName = "properties.scriptFileUri")] + public string ScriptFileUri { get; private set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ExperimentUpdateModel.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ExperimentUpdateModel.cs new file mode 100644 index 000000000000..46702f593bd4 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ExperimentUpdateModel.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.Management.FrontDoor.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Defines modifiable attributes of an Experiment + /// + [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(IDictionary tags = default(IDictionary), string description = default(string), string enabledState = default(string)) + { + Tags = tags; + Description = description; + EnabledState = enabledState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the description of the intent or details of the + /// Experiment + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets the state of the Experiment. Possible values include: + /// 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.enabledState")] + public string EnabledState { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/HealthProbeSettingsListResult.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/HealthProbeSettingsListResult.cs new file mode 100644 index 000000000000..c279c07d5f84 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/HealthProbeSettingsListResult.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.FrontDoor.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + 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(IList value = default(IList), string nextLink = default(string)) + { + Value = value; + NextLink = nextLink; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets list of HealthProbeSettings within a Front Door. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; private set; } + + /// + /// Gets or sets URL to get the next set of HealthProbeSettings objects + /// if there are any. + /// + [JsonProperty(PropertyName = "nextLink")] + public string NextLink { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LatencyMetric.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LatencyMetric.cs new file mode 100644 index 000000000000..186e288dbb0b --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LatencyMetric.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.Management.FrontDoor.Models +{ + using Newtonsoft.Json; + 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?)) + { + Name = name; + EndDateTimeUTC = endDateTimeUTC; + AValue = aValue; + BValue = bValue; + Delta = delta; + DeltaPercent = deltaPercent; + ACLower95CI = aCLower95CI; + AHUpper95CI = aHUpper95CI; + BCLower95CI = bCLower95CI; + BUpper95CI = bUpper95CI; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the name of the Latency Metric + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the end time of the Latency Scorecard in UTC + /// + [JsonProperty(PropertyName = "endDateTimeUTC")] + public string EndDateTimeUTC { get; private set; } + + /// + /// Gets the metric value of the A endpoint + /// + [JsonProperty(PropertyName = "aValue")] + public double? AValue { get; private set; } + + /// + /// Gets the metric value of the B endpoint + /// + [JsonProperty(PropertyName = "bValue")] + public double? BValue { get; private set; } + + /// + /// Gets the difference in value between endpoint A and B + /// + [JsonProperty(PropertyName = "delta")] + public double? Delta { get; private set; } + + /// + /// Gets the percent difference between endpoint A and B + /// + [JsonProperty(PropertyName = "deltaPercent")] + public double? DeltaPercent { get; private set; } + + /// + /// Gets the lower end of the 95% confidence interval for endpoint A + /// + [JsonProperty(PropertyName = "aCLower95CI")] + public double? ACLower95CI { get; private set; } + + /// + /// Gets the upper end of the 95% confidence interval for endpoint A + /// + [JsonProperty(PropertyName = "aHUpper95CI")] + public double? AHUpper95CI { get; private set; } + + /// + /// Gets the lower end of the 95% confidence interval for endpoint B + /// + [JsonProperty(PropertyName = "bCLower95CI")] + public double? BCLower95CI { get; private set; } + + /// + /// Gets the upper end of the 95% confidence interval for endpoint B + /// + [JsonProperty(PropertyName = "bUpper95CI")] + public double? BUpper95CI { get; private set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LatencyScorecard.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LatencyScorecard.cs new file mode 100644 index 000000000000..6a9bdd1934e1 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LatencyScorecard.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.Management.FrontDoor.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Defines the LatencyScorecard + /// + [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), IDictionary tags = default(IDictionary), string latencyScorecardId = default(string), string latencyScorecardName = 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), IList latencyMetrics = default(IList)) + : base(id, name, type, location, tags) + { + LatencyScorecardId = latencyScorecardId; + LatencyScorecardName = latencyScorecardName; + Description = description; + EndpointA = endpointA; + EndpointB = endpointB; + StartDateTimeUTC = startDateTimeUTC; + EndDateTimeUTC = endDateTimeUTC; + Country = country; + LatencyMetrics = latencyMetrics; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the unique identifier of the Latency Scorecard + /// + [JsonProperty(PropertyName = "properties.id")] + public string LatencyScorecardId { get; private set; } + + /// + /// Gets the name of the Latency Scorecard + /// + [JsonProperty(PropertyName = "properties.name")] + public string LatencyScorecardName { get; private set; } + + /// + /// Gets the description of the Latency Scorecard + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; private set; } + + /// + /// Gets the A endpoint in the scorecard + /// + [JsonProperty(PropertyName = "properties.endpointA")] + public string EndpointA { get; private set; } + + /// + /// Gets the B endpoint in the scorecard + /// + [JsonProperty(PropertyName = "properties.endpointB")] + public string EndpointB { get; private set; } + + /// + /// Gets the start time of the Latency Scorecard in UTC + /// + [JsonProperty(PropertyName = "properties.startDateTimeUTC")] + public System.DateTime? StartDateTimeUTC { get; private set; } + + /// + /// Gets the end time of the Latency Scorecard in UTC + /// + [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 + /// + [JsonProperty(PropertyName = "properties.country")] + public string Country { get; private set; } + + /// + /// Gets or sets the latency metrics of the Latency Scorecard + /// + [JsonProperty(PropertyName = "properties.latencyMetrics")] + public IList LatencyMetrics { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LatencyScorecardAggregationInterval.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LatencyScorecardAggregationInterval.cs new file mode 100644 index 000000000000..4a27788cdcb2 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LatencyScorecardAggregationInterval.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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"; + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LoadBalancingSettingsListResult.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LoadBalancingSettingsListResult.cs new file mode 100644 index 000000000000..54dea6049de5 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/LoadBalancingSettingsListResult.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.FrontDoor.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + 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(IList value = default(IList), string nextLink = default(string)) + { + Value = value; + 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. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; private set; } + + /// + /// Gets or sets URL to get the next set of LoadBalancingSettings + /// objects if there are any. + /// + [JsonProperty(PropertyName = "nextLink")] + public string NextLink { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleDefinition.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleDefinition.cs index 81dc7e9d18ab..914644c759a3 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleDefinition.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleDefinition.cs @@ -30,11 +30,19 @@ public ManagedRuleDefinition() /// 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' /// Describes the functionality of the /// managed rule. - public ManagedRuleDefinition(string ruleId = default(string), string description = default(string)) + public ManagedRuleDefinition(string ruleId = default(string), string defaultState = default(string), string defaultAction = default(string), string description = default(string)) { RuleId = ruleId; + DefaultState = defaultState; + DefaultAction = defaultAction; Description = description; CustomInit(); } @@ -50,6 +58,21 @@ public ManagedRuleDefinition() [JsonProperty(PropertyName = "ruleId")] public string RuleId { get; private set; } + /// + /// Gets describes the default state for the managed rule. Possible + /// values include: 'Disabled', 'Enabled' + /// + [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' + /// + [JsonProperty(PropertyName = "defaultAction")] + public string DefaultAction { get; private set; } + /// /// Gets describes the functionality of the managed rule. /// diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleExclusion.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleExclusion.cs new file mode 100644 index 000000000000..c5c5f76ed355 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleExclusion.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.Management.FrontDoor.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + 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' + /// 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) + { + MatchVariable = matchVariable; + SelectorMatchOperator = selectorMatchOperator; + 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' + /// + [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' + /// + [JsonProperty(PropertyName = "selectorMatchOperator")] + public string SelectorMatchOperator { get; set; } + + /// + /// Gets or sets selector value for which elements in the collection + /// this exclusion applies to. + /// + [JsonProperty(PropertyName = "selector")] + public string Selector { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (MatchVariable == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MatchVariable"); + } + if (SelectorMatchOperator == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SelectorMatchOperator"); + } + if (Selector == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Selector"); + } + } + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleExclusionMatchVariable.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleExclusionMatchVariable.cs new file mode 100644 index 000000000000..87c7c9eab51b --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleExclusionMatchVariable.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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"; + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleExclusionSelectorMatchOperator.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleExclusionSelectorMatchOperator.cs new file mode 100644 index 000000000000..9c1be80bd58f --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleExclusionSelectorMatchOperator.cs @@ -0,0 +1,25 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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"; + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleGroupOverride.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleGroupOverride.cs index a28cb3977188..c84021692800 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleGroupOverride.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleGroupOverride.cs @@ -34,11 +34,14 @@ public ManagedRuleGroupOverride() /// /// 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, IList rules = default(IList)) + public ManagedRuleGroupOverride(string ruleGroupName, IList exclusions = default(IList), IList rules = default(IList)) { RuleGroupName = ruleGroupName; + Exclusions = exclusions; Rules = rules; CustomInit(); } @@ -54,6 +57,13 @@ public ManagedRuleGroupOverride() [JsonProperty(PropertyName = "ruleGroupName")] public string RuleGroupName { get; set; } + /// + /// Gets or sets describes the exclusions that are applied to all rules + /// in the group. + /// + [JsonProperty(PropertyName = "exclusions")] + public 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. @@ -73,9 +83,9 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "RuleGroupName"); } - if (Rules != null) + if (Exclusions != null) { - foreach (var element in Rules) + foreach (var element in Exclusions) { if (element != null) { @@ -83,6 +93,16 @@ public virtual void Validate() } } } + if (Rules != null) + { + foreach (var element1 in Rules) + { + if (element1 != null) + { + element1.Validate(); + } + } + } } } } diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleOverride.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleOverride.cs index e223322f32c8..59791ac241a5 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleOverride.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleOverride.cs @@ -12,6 +12,8 @@ namespace Microsoft.Azure.Management.FrontDoor.Models { using Microsoft.Rest; using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -37,11 +39,14 @@ public ManagedRuleOverride() /// Describes the override action to be applied /// when rule matches. Possible values include: 'Allow', 'Block', /// 'Log', 'Redirect' - public ManagedRuleOverride(string ruleId, string enabledState = default(string), string action = default(string)) + /// Describes the exclusions that are applied + /// to this specific rule. + public ManagedRuleOverride(string ruleId, string enabledState = default(string), string action = default(string), IList exclusions = default(IList)) { RuleId = ruleId; EnabledState = enabledState; Action = action; + Exclusions = exclusions; CustomInit(); } @@ -72,6 +77,13 @@ public ManagedRuleOverride() [JsonProperty(PropertyName = "action")] public string Action { get; set; } + /// + /// Gets or sets describes the exclusions that are applied to this + /// specific rule. + /// + [JsonProperty(PropertyName = "exclusions")] + public IList Exclusions { get; set; } + /// /// Validate the object. /// @@ -84,6 +96,16 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "RuleId"); } + if (Exclusions != null) + { + foreach (var element in Exclusions) + { + if (element != null) + { + element.Validate(); + } + } + } } } } diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleSet.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleSet.cs index d34955a22aa2..6cbab6558be0 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleSet.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ManagedRuleSet.cs @@ -35,12 +35,15 @@ public ManagedRuleSet() /// Defines the rule set type to use. /// Defines the version of the rule set to /// use. + /// 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, IList ruleGroupOverrides = default(IList)) + public ManagedRuleSet(string ruleSetType, string ruleSetVersion, IList exclusions = default(IList), IList ruleGroupOverrides = default(IList)) { RuleSetType = ruleSetType; RuleSetVersion = ruleSetVersion; + Exclusions = exclusions; RuleGroupOverrides = ruleGroupOverrides; CustomInit(); } @@ -62,6 +65,13 @@ public ManagedRuleSet() [JsonProperty(PropertyName = "ruleSetVersion")] public string RuleSetVersion { get; set; } + /// + /// Gets or sets describes the exclusions that are applied to all rules + /// in the set. + /// + [JsonProperty(PropertyName = "exclusions")] + public IList Exclusions { get; set; } + /// /// Gets or sets defines the rule group overrides to apply to the rule /// set. @@ -85,9 +95,9 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "RuleSetVersion"); } - if (RuleGroupOverrides != null) + if (Exclusions != null) { - foreach (var element in RuleGroupOverrides) + foreach (var element in Exclusions) { if (element != null) { @@ -95,6 +105,16 @@ public virtual void Validate() } } } + if (RuleGroupOverrides != null) + { + foreach (var element1 in RuleGroupOverrides) + { + if (element1 != null) + { + element1.Validate(); + } + } + } } } } diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/MatchCondition.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/MatchCondition.cs index 8936696e6c0b..453f38b18424 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/MatchCondition.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/MatchCondition.cs @@ -35,7 +35,7 @@ public MatchCondition() /// Request variable to compare with. /// Possible values include: 'RemoteAddr', 'RequestMethod', /// 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeader', - /// 'RequestBody', 'Cookies' + /// 'RequestBody', 'Cookies', 'SocketAddr' /// Comparison type to use for matching /// with the variable value. Possible values include: 'Any', 'IPMatch', /// 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', @@ -67,7 +67,8 @@ public MatchCondition() /// /// Gets or sets request variable to compare with. Possible values /// include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', - /// 'RequestUri', 'RequestHeader', 'RequestBody', 'Cookies' + /// 'RequestUri', 'RequestHeader', 'RequestBody', 'Cookies', + /// 'SocketAddr' /// [JsonProperty(PropertyName = "matchVariable")] public string MatchVariable { get; set; } diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/MatchVariable.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/MatchVariable.cs index c2b72181268f..3be7ab12788f 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/MatchVariable.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/MatchVariable.cs @@ -24,5 +24,6 @@ public static class MatchVariable public const string RequestHeader = "RequestHeader"; public const string RequestBody = "RequestBody"; public const string Cookies = "Cookies"; + public const string SocketAddr = "SocketAddr"; } } diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/NetworkExperimentResourceState.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/NetworkExperimentResourceState.cs new file mode 100644 index 000000000000..63f4a4540313 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/NetworkExperimentResourceState.cs @@ -0,0 +1,26 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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"; + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/PreconfiguredEndpoint.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/PreconfiguredEndpoint.cs new file mode 100644 index 000000000000..5ab707a7fd36 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/PreconfiguredEndpoint.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.Management.FrontDoor.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Defines the properties of a preconfigured endpoint + /// + [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 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 PreconfiguredEndpoint(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string description = default(string), string endpoint = default(string), string endpointType = default(string), string backend = default(string)) + : base(id, name, type, location, tags) + { + Description = description; + Endpoint = endpoint; + EndpointType = endpointType; + Backend = backend; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the description of the endpoint + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets the endpoint that is preconfigured + /// + [JsonProperty(PropertyName = "properties.endpoint")] + public string Endpoint { get; set; } + + /// + /// Gets or sets the type of endpoint. Possible values include: 'AFD', + /// 'AzureRegion', 'CDN', 'ATM' + /// + [JsonProperty(PropertyName = "properties.endpointType")] + public string EndpointType { get; set; } + + /// + /// Gets or sets the preconfigured endpoint backend + /// + [JsonProperty(PropertyName = "properties.backend")] + public string Backend { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Profile.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Profile.cs new file mode 100644 index 000000000000..4ce2100f2960 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Profile.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.Management.FrontDoor.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Defines an Network Experiment Profile and lists of Experiments + /// + [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. + /// Resource status. Possible values + /// include: 'Creating', 'Enabling', 'Enabled', 'Disabling', + /// 'Disabled', 'Deleting' + /// The state of the Experiment. Possible + /// values include: 'Enabled', 'Disabled' + /// Gets a unique read-only string that changes + /// whenever the resource is updated. + public Profile(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string resourceState = default(string), string enabledState = default(string), string etag = default(string)) + : base(id, name, type, location, tags) + { + ResourceState = resourceState; + EnabledState = enabledState; + Etag = etag; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource status. Possible values include: 'Creating', + /// 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + /// + [JsonProperty(PropertyName = "properties.resourceState")] + public string ResourceState { get; set; } + + /// + /// Gets or sets the state of the Experiment. Possible values include: + /// 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.enabledState")] + public string EnabledState { get; set; } + + /// + /// Gets a unique read-only string that changes whenever the resource + /// is updated. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ProfileUpdateModel.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ProfileUpdateModel.cs new file mode 100644 index 000000000000..78072081f2f3 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/ProfileUpdateModel.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.FrontDoor.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Defines modifiable attributes of a Profile + /// + [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. + /// + /// The enabled state of the Profile. + /// Possible values include: 'Enabled', 'Disabled' + /// Resource tags. + public ProfileUpdateModel(string enabledState = default(string), IDictionary tags = default(IDictionary)) + { + EnabledState = enabledState; + Tags = tags; + 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' + /// + [JsonProperty(PropertyName = "properties.enabledState")] + public string EnabledState { get; set; } + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/RoutingRuleListResult.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/RoutingRuleListResult.cs new file mode 100644 index 000000000000..bd4ac0d519f6 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/RoutingRuleListResult.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.FrontDoor.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + 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(IList value = default(IList), string nextLink = default(string)) + { + Value = value; + 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. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; private set; } + + /// + /// Gets or sets URL to get the next set of RoutingRule objects if + /// there are any. + /// + [JsonProperty(PropertyName = "nextLink")] + public string NextLink { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/State.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/State.cs new file mode 100644 index 000000000000..d14265742442 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/State.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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"; + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Timeseries.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Timeseries.cs new file mode 100644 index 000000000000..a3d5327be10b --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/Timeseries.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.Management.FrontDoor.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Defines the Timeseries + /// + [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 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 Timeseries(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string endpoint = default(string), string startDateTimeUTC = default(string), string endDateTimeUTC = default(string), string aggregationInterval = default(string), string timeseriesType = default(string), string country = default(string), IList timeseriesData = default(IList)) + : base(id, name, type, location, tags) + { + Endpoint = endpoint; + StartDateTimeUTC = startDateTimeUTC; + EndDateTimeUTC = endDateTimeUTC; + AggregationInterval = aggregationInterval; + TimeseriesType = timeseriesType; + Country = country; + 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 + /// + [JsonProperty(PropertyName = "properties.endpoint")] + public string Endpoint { get; set; } + + /// + /// Gets or sets the start DateTime of the Timeseries in UTC + /// + [JsonProperty(PropertyName = "properties.startDateTimeUTC")] + public string StartDateTimeUTC { get; set; } + + /// + /// Gets or sets the end DateTime of the Timeseries in UTC + /// + [JsonProperty(PropertyName = "properties.endDateTimeUTC")] + public string EndDateTimeUTC { get; set; } + + /// + /// Gets or sets the aggregation interval of the Timeseries. Possible + /// values include: 'Hourly', 'Daily' + /// + [JsonProperty(PropertyName = "properties.aggregationInterval")] + public string AggregationInterval { get; set; } + + /// + /// Gets or sets the type of Timeseries. Possible values include: + /// 'MeasurementCounts', 'LatencyP50', 'LatencyP75', 'LatencyP95' + /// + [JsonProperty(PropertyName = "properties.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 + /// + [JsonProperty(PropertyName = "properties.country")] + public string Country { get; set; } + + /// + /// Gets or sets the set of data points for the timeseries + /// + [JsonProperty(PropertyName = "properties.timeseriesData")] + public IList TimeseriesData { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/TimeseriesAggregationInterval.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/TimeseriesAggregationInterval.cs new file mode 100644 index 000000000000..49f6a06d768f --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/TimeseriesAggregationInterval.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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"; + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/TimeseriesDataPoint.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/TimeseriesDataPoint.cs new file mode 100644 index 000000000000..705cc74ef1b7 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/TimeseriesDataPoint.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.Management.FrontDoor.Models +{ + using Newtonsoft.Json; + 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?)) + { + DateTimeUTC = dateTimeUTC; + 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 + /// + [JsonProperty(PropertyName = "dateTimeUTC")] + public string DateTimeUTC { get; set; } + + /// + /// Gets or sets the Value of the Timeseries data point + /// + [JsonProperty(PropertyName = "value")] + public double? Value { get; set; } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/TimeseriesType.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/TimeseriesType.cs new file mode 100644 index 000000000000..44de6bbcede9 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/Models/TimeseriesType.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. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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"; + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/LoadBalancingSettingsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/NetworkExperimentProfilesOperations.cs similarity index 59% rename from sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/LoadBalancingSettingsOperations.cs rename to sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/NetworkExperimentProfilesOperations.cs index 78bff1e498ec..15d51076671b 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/LoadBalancingSettingsOperations.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/NetworkExperimentProfilesOperations.cs @@ -23,12 +23,12 @@ namespace Microsoft.Azure.Management.FrontDoor using System.Threading.Tasks; /// - /// LoadBalancingSettingsOperations operations. + /// NetworkExperimentProfilesOperations operations. /// - internal partial class LoadBalancingSettingsOperations : IServiceOperations, ILoadBalancingSettingsOperations + internal partial class NetworkExperimentProfilesOperations : IServiceOperations, INetworkExperimentProfilesOperations { /// - /// Initializes a new instance of the LoadBalancingSettingsOperations class. + /// Initializes a new instance of the NetworkExperimentProfilesOperations class. /// /// /// Reference to the service client. @@ -36,7 +36,7 @@ internal partial class LoadBalancingSettingsOperations : IServiceOperations /// Thrown when a required parameter is null /// - internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) + internal NetworkExperimentProfilesOperations(FrontDoorManagementClient client) { if (client == null) { @@ -51,14 +51,183 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) public FrontDoorManagementClient Client { get; private set; } /// - /// Lists all of the LoadBalancingSettings within a Front Door. + /// 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 Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-11-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = 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(Client.SubscriptionId)); + List _queryParameters = new 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 HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + 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. /// - /// - /// Name of the Front Door which is globally unique. - /// /// /// Headers that will be added to request. /// @@ -80,7 +249,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -105,26 +274,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2019-05-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -132,18 +282,16 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoor", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings").ToString(); + 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(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -237,7 +385,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -250,7 +398,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -270,17 +418,13 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) } /// - /// Gets a LoadBalancingSettings with the specified Rule name within the - /// specified Front Door. + /// Gets an NetworkExperiment Profile by ProfileName /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the load balancing settings which is unique within the Front Door. + /// + /// The Profile identifier associated with the Tenant and Partner /// /// /// Headers that will be added to request. @@ -303,7 +447,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -328,45 +472,18 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (loadBalancingSettingsName == null) + if (profileName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "loadBalancingSettingsName"); + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); } - if (loadBalancingSettingsName != null) + if (profileName != null) { - if (loadBalancingSettingsName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "loadBalancingSettingsName", 90); - } - if (loadBalancingSettingsName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "loadBalancingSettingsName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(loadBalancingSettingsName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) { - throw new ValidationException(ValidationRules.Pattern, "loadBalancingSettingsName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - string apiVersion = "2019-05-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -374,20 +491,18 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("loadBalancingSettingsName", loadBalancingSettingsName); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("profileName", profileName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings/{loadBalancingSettingsName}").ToString(); + 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(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{loadBalancingSettingsName}", System.Uri.EscapeDataString(loadBalancingSettingsName)); + _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -481,7 +596,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -494,7 +609,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -514,20 +629,44 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) } /// - /// Creates a new LoadBalancingSettings with the specified Rule name within the - /// specified Front Door. + /// Creates an NetworkExperiment Profile /// + /// + /// The Profile identifier associated with the Tenant and Partner + /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// An Network Experiment Profile + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string profileName, string resourceGroupName, Profile parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(profileName, resourceGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates an NetworkExperimentProfiles by NetworkExperimentProfile name + /// + /// + /// Updates an NetworkExperimentProfiles + /// + /// + /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the load balancing settings which is unique within the Front Door. + /// + /// The Profile identifier associated with the Tenant and Partner /// - /// - /// LoadBalancingSettings properties needed to create a new Front Door. + /// + /// The Profile Update Model /// /// /// The headers that will be added to request. @@ -535,24 +674,21 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) /// /// The cancellation token. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, ProfileUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, loadBalancingSettingsParameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Deletes an existing LoadBalancingSettings with the specified parameters. + /// Deletes an NetworkExperiment Profile by ProfileName /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the load balancing settings which is unique within the Front Door. + /// + /// The Profile identifier associated with the Tenant and Partner /// /// /// The headers that will be added to request. @@ -560,28 +696,24 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Creates a new LoadBalancingSettings with the specified Rule name within the - /// specified Front Door. + /// Creates an NetworkExperiment Profile /// + /// + /// The Profile identifier associated with the Tenant and Partner + /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. - /// - /// - /// Name of the load balancing settings which is unique within the Front Door. - /// - /// - /// LoadBalancingSettings properties needed to create a new Front Door. + /// + /// An Network Experiment Profile /// /// /// Headers that will be added to request. @@ -604,8 +736,19 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string profileName, string resourceGroupName, Profile parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (profileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); + } + if (profileName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); @@ -629,49 +772,11 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (loadBalancingSettingsName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "loadBalancingSettingsName"); - } - if (loadBalancingSettingsName != null) - { - if (loadBalancingSettingsName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "loadBalancingSettingsName", 90); - } - if (loadBalancingSettingsName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "loadBalancingSettingsName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(loadBalancingSettingsName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new ValidationException(ValidationRules.Pattern, "loadBalancingSettingsName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - if (loadBalancingSettingsParameters == null) + if (parameters == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "loadBalancingSettingsParameters"); + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2019-05-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -679,21 +784,19 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("loadBalancingSettingsName", loadBalancingSettingsName); - tracingParameters.Add("loadBalancingSettingsParameters", loadBalancingSettingsParameters); + tracingParameters.Add("profileName", profileName); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings/{loadBalancingSettingsName}").ToString(); + 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(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{loadBalancingSettingsName}", System.Uri.EscapeDataString(loadBalancingSettingsName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -737,9 +840,9 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) // Serialize Request string _requestContent = null; - if(loadBalancingSettingsParameters != null) + if(parameters != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(loadBalancingSettingsParameters, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -793,7 +896,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -806,7 +909,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -824,7 +927,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -842,7 +945,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -862,16 +965,19 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) } /// - /// Deletes an existing LoadBalancingSettings with the specified parameters. + /// Updates an NetworkExperimentProfiles by NetworkExperimentProfile name /// + /// + /// Updates an NetworkExperimentProfiles + /// /// /// Name of the Resource group within the Azure subscription. /// - /// - /// Name of the Front Door which is globally unique. + /// + /// The Profile identifier associated with the Tenant and Partner /// - /// - /// Name of the load balancing settings which is unique within the Front Door. + /// + /// The Profile Update Model /// /// /// Headers that will be added to request. @@ -882,6 +988,9 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -891,7 +1000,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, ProfileUpdateModel parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -916,45 +1025,255 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (frontDoorName == null) + if (profileName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); } - if (frontDoorName != null) + if (profileName != null) { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - if (loadBalancingSettingsName == null) + if (parameters == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "loadBalancingSettingsName"); + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - if (loadBalancingSettingsName != null) + string apiVersion = "2019-11-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) { - if (loadBalancingSettingsName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "loadBalancingSettingsName", 90); - } - if (loadBalancingSettingsName.Length < 1) + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("profileName", profileName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = 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(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); + List _queryParameters = new 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 HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + 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 Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 80) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); + } + if (resourceGroupName.Length < 1) { - throw new ValidationException(ValidationRules.MinLength, "loadBalancingSettingsName", 1); + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(loadBalancingSettingsName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) { - throw new ValidationException(ValidationRules.Pattern, "loadBalancingSettingsName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); } } - string apiVersion = "2019-05-01"; + if (profileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); + } + if (profileName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -962,20 +1281,18 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("loadBalancingSettingsName", loadBalancingSettingsName); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("profileName", profileName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings/{loadBalancingSettingsName}").ToString(); + 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(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{loadBalancingSettingsName}", System.Uri.EscapeDataString(loadBalancingSettingsName)); + _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -1039,7 +1356,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 202 && (int)_statusCode != 204) + 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 @@ -1084,7 +1401,176 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) } /// - /// Lists all of the LoadBalancingSettings within a Front Door. + /// 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 Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + 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. @@ -1110,7 +1596,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1125,7 +1611,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoorNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1219,7 +1705,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1232,7 +1718,7 @@ internal LoadBalancingSettingsOperations(FrontDoorManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/NetworkExperimentProfilesOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/NetworkExperimentProfilesOperationsExtensions.cs new file mode 100644 index 000000000000..5d12b00f4048 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/NetworkExperimentProfilesOperationsExtensions.cs @@ -0,0 +1,469 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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; + using System.Threading; + using System.Threading.Tasks; + + /// + /// 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 IPage List(this INetworkExperimentProfilesOperations operations) + { + return 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 Task> ListAsync(this INetworkExperimentProfilesOperations operations, CancellationToken cancellationToken = default(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 IPage ListByResourceGroup(this INetworkExperimentProfilesOperations operations, string resourceGroupName) + { + return 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 Task> ListByResourceGroupAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(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 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 Task GetAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(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. + /// + /// + /// An Network Experiment Profile + /// + public static Profile CreateOrUpdate(this INetworkExperimentProfilesOperations operations, string profileName, string resourceGroupName, Profile parameters) + { + return 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. + /// + /// + /// An Network Experiment Profile + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this INetworkExperimentProfilesOperations operations, string profileName, string resourceGroupName, Profile parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(profileName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates an NetworkExperimentProfiles by NetworkExperimentProfile name + /// + /// + /// 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 Profile Update Model + /// + public static Profile Update(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, ProfileUpdateModel parameters) + { + return operations.UpdateAsync(resourceGroupName, profileName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates an NetworkExperimentProfiles by NetworkExperimentProfile name + /// + /// + /// 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 Profile Update Model + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, ProfileUpdateModel parameters, CancellationToken cancellationToken = default(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) + { + 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 Task DeleteAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(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. + /// + /// + /// An Network Experiment Profile + /// + public static Profile BeginCreateOrUpdate(this INetworkExperimentProfilesOperations operations, string profileName, string resourceGroupName, Profile parameters) + { + return 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. + /// + /// + /// An Network Experiment Profile + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this INetworkExperimentProfilesOperations operations, string profileName, string resourceGroupName, Profile parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(profileName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates an NetworkExperimentProfiles by NetworkExperimentProfile name + /// + /// + /// 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 Profile Update Model + /// + public static Profile BeginUpdate(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, ProfileUpdateModel parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, profileName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates an NetworkExperimentProfiles by NetworkExperimentProfile name + /// + /// + /// 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 Profile Update Model + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, ProfileUpdateModel parameters, CancellationToken cancellationToken = default(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) + { + 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 Task BeginDeleteAsync(this INetworkExperimentProfilesOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(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 IPage ListNext(this INetworkExperimentProfilesOperations operations, string nextPageLink) + { + return 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 Task> ListNextAsync(this INetworkExperimentProfilesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(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 IPage ListByResourceGroupNext(this INetworkExperimentProfilesOperations operations, string nextPageLink) + { + return 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 Task> ListByResourceGroupNextAsync(this INetworkExperimentProfilesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/PoliciesOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/PoliciesOperations.cs index 6b1c32eb839c..583e9daba588 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/PoliciesOperations.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/PoliciesOperations.cs @@ -102,7 +102,7 @@ internal PoliciesOperations(FrontDoorManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-03-01"; + string apiVersion = "2019-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -311,7 +311,7 @@ internal PoliciesOperations(FrontDoorManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-03-01"; + string apiVersion = "2019-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -582,7 +582,7 @@ internal PoliciesOperations(FrontDoorManagementClient client) { parameters.Validate(); } - string apiVersion = "2019-03-01"; + string apiVersion = "2019-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -833,7 +833,7 @@ internal PoliciesOperations(FrontDoorManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-03-01"; + string apiVersion = "2019-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/PreconfiguredEndpointsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/PreconfiguredEndpointsOperations.cs new file mode 100644 index 000000000000..ca1eb252263a --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/PreconfiguredEndpointsOperations.cs @@ -0,0 +1,433 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PreconfiguredEndpointsOperations operations. + /// + internal partial class PreconfiguredEndpointsOperations : IServiceOperations, IPreconfiguredEndpointsOperations + { + /// + /// Initializes a new instance of the PreconfiguredEndpointsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PreconfiguredEndpointsOperations(FrontDoorManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FrontDoorManagementClient + /// + public FrontDoorManagementClient 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 Task>> ListWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 80) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + if (profileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); + } + if (profileName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + string apiVersion = "2019-11-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("profileName", profileName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = 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(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); + List _queryParameters = new 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 HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + 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 Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/PreconfiguredEndpointsOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/PreconfiguredEndpointsOperationsExtensions.cs new file mode 100644 index 000000000000..1419b0bffbfc --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/PreconfiguredEndpointsOperationsExtensions.cs @@ -0,0 +1,99 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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; + using System.Threading; + using System.Threading.Tasks; + + /// + /// 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 IPage List(this IPreconfiguredEndpointsOperations operations, string resourceGroupName, string profileName) + { + return 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 Task> ListAsync(this IPreconfiguredEndpointsOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(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 IPage ListNext(this IPreconfiguredEndpointsOperations operations, string nextPageLink) + { + return 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 Task> ListNextAsync(this IPreconfiguredEndpointsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ReportsOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ReportsOperations.cs new file mode 100644 index 000000000000..517a77a3e230 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ReportsOperations.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.Management.FrontDoor +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ReportsOperations operations. + /// + internal partial class ReportsOperations : IServiceOperations, IReportsOperations + { + /// + /// Initializes a new instance of the ReportsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ReportsOperations(FrontDoorManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FrontDoorManagementClient + /// + public FrontDoorManagementClient 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 aggregation interval of the Latency Scorecard. Possible values include: + /// 'Daily', 'Weekly', 'Monthly' + /// + /// + /// 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 + /// + /// + /// 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 Task> GetLatencyScorecardsWithHttpMessagesAsync(string resourceGroupName, string profileName, string experimentName, string aggregationInterval, string endDateTimeUTC = default(string), string country = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 80) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + if (profileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); + } + if (profileName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + if (experimentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "experimentName"); + } + if (experimentName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + if (aggregationInterval == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "aggregationInterval"); + } + string apiVersion = "2019-11-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new 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); + ServiceClientTracing.Enter(_invocationId, this, "GetLatencyScorecards", tracingParameters); + } + // Construct URL + var _baseUrl = 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(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)); + List _queryParameters = new 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 HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + 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. Possible values include: + /// 'Hourly', 'Daily' + /// + /// + /// The type of Timeseries. Possible values include: 'MeasurementCounts', + /// 'LatencyP50', 'LatencyP75', 'LatencyP95' + /// + /// + /// 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 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), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 80) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + if (profileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); + } + if (profileName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(profileName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "profileName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + if (experimentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "experimentName"); + } + if (experimentName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(experimentName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) + { + throw new ValidationException(ValidationRules.Pattern, "experimentName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); + } + } + if (aggregationInterval == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "aggregationInterval"); + } + if (timeseriesType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "timeseriesType"); + } + string apiVersion = "2019-11-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new 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); + ServiceClientTracing.Enter(_invocationId, this, "GetTimeseries", tracingParameters); + } + // Construct URL + var _baseUrl = 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(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)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + _queryParameters.Add(string.Format("startDateTimeUTC={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(startDateTimeUTC, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("endDateTimeUTC={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endDateTimeUTC, 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 HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ReportsOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ReportsOperationsExtensions.cs new file mode 100644 index 000000000000..374ebaa1e0c2 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/ReportsOperationsExtensions.cs @@ -0,0 +1,181 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// 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; + using System.Threading; + using System.Threading.Tasks; + + /// + /// 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 aggregation interval of the Latency Scorecard. Possible values include: + /// 'Daily', 'Weekly', 'Monthly' + /// + /// + /// 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 + /// + public static LatencyScorecard GetLatencyScorecards(this IReportsOperations operations, string resourceGroupName, string profileName, string experimentName, string aggregationInterval, string endDateTimeUTC = default(string), string country = default(string)) + { + return 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 aggregation interval of the Latency Scorecard. Possible values include: + /// 'Daily', 'Weekly', 'Monthly' + /// + /// + /// 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 cancellation token. + /// + public static async Task GetLatencyScorecardsAsync(this IReportsOperations operations, string resourceGroupName, string profileName, string experimentName, string aggregationInterval, string endDateTimeUTC = default(string), string country = default(string), CancellationToken cancellationToken = default(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. Possible values include: + /// 'Hourly', 'Daily' + /// + /// + /// The type of Timeseries. Possible values include: 'MeasurementCounts', + /// 'LatencyP50', 'LatencyP75', 'LatencyP95' + /// + /// + /// 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 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. Possible values include: + /// 'Hourly', 'Daily' + /// + /// + /// The type of Timeseries. Possible values include: 'MeasurementCounts', + /// 'LatencyP50', 'LatencyP75', 'LatencyP95' + /// + /// + /// 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 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), CancellationToken cancellationToken = default(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/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/RoutingRulesOperations.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/RoutingRulesOperations.cs deleted file mode 100644 index 1d640542e393..000000000000 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/RoutingRulesOperations.cs +++ /dev/null @@ -1,1255 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// 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; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - using System.Net; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - - /// - /// RoutingRulesOperations operations. - /// - internal partial class RoutingRulesOperations : IServiceOperations, IRoutingRulesOperations - { - /// - /// Initializes a new instance of the RoutingRulesOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal RoutingRulesOperations(FrontDoorManagementClient client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - Client = client; - } - - /// - /// Gets a reference to the FrontDoorManagementClient - /// - public FrontDoorManagementClient Client { get; private set; } - - /// - /// Lists all of the Routing Rules 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 Task>> ListByFrontDoorWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2019-05-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoor", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - List _queryParameters = new 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 HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Gets a Routing Rule with the specified Rule 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 Routing Rule 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 Task> GetWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string routingRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (routingRuleName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "routingRuleName"); - } - if (routingRuleName != null) - { - if (routingRuleName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "routingRuleName", 90); - } - if (routingRuleName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "routingRuleName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(routingRuleName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new ValidationException(ValidationRules.Pattern, "routingRuleName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2019-05-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("routingRuleName", routingRuleName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules/{routingRuleName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{routingRuleName}", System.Uri.EscapeDataString(routingRuleName)); - List _queryParameters = new 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 HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Creates a new Routing Rule with the specified Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// Routing Rule properties needed to create a new Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string routingRuleName, RoutingRule routingRuleParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, routingRuleName, routingRuleParameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes an existing Routing Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string routingRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, routingRuleName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Creates a new Routing Rule with the specified Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// Routing Rule 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 Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string routingRuleName, RoutingRule routingRuleParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (routingRuleName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "routingRuleName"); - } - if (routingRuleName != null) - { - if (routingRuleName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "routingRuleName", 90); - } - if (routingRuleName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "routingRuleName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(routingRuleName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new ValidationException(ValidationRules.Pattern, "routingRuleName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - if (routingRuleParameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "routingRuleParameters"); - } - string apiVersion = "2019-05-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("routingRuleName", routingRuleName); - tracingParameters.Add("routingRuleParameters", routingRuleParameters); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules/{routingRuleName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{routingRuleName}", System.Uri.EscapeDataString(routingRuleName)); - List _queryParameters = new 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 HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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(routingRuleParameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(routingRuleParameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 202) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Deletes an existing Routing Rule 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 Routing Rule 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 Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string frontDoorName, string routingRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 80) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 80); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"); - } - } - if (frontDoorName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "frontDoorName"); - } - if (frontDoorName != null) - { - if (frontDoorName.Length > 64) - { - throw new ValidationException(ValidationRules.MaxLength, "frontDoorName", 64); - } - if (frontDoorName.Length < 5) - { - throw new ValidationException(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 ValidationException(ValidationRules.Pattern, "frontDoorName", "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"); - } - } - if (routingRuleName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "routingRuleName"); - } - if (routingRuleName != null) - { - if (routingRuleName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "routingRuleName", 90); - } - if (routingRuleName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "routingRuleName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(routingRuleName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) - { - throw new ValidationException(ValidationRules.Pattern, "routingRuleName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); - } - } - string apiVersion = "2019-05-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("frontDoorName", frontDoorName); - tracingParameters.Add("routingRuleName", routingRuleName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules/{routingRuleName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{frontDoorName}", System.Uri.EscapeDataString(frontDoorName)); - _url = _url.Replace("{routingRuleName}", System.Uri.EscapeDataString(routingRuleName)); - List _queryParameters = new 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 HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Lists all of the Routing Rules 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 Task>> ListByFrontDoorNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (nextPageLink == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByFrontDoorNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", 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 (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new 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 = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - } -} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/RoutingRulesOperationsExtensions.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/RoutingRulesOperationsExtensions.cs deleted file mode 100644 index 79a1131ba92d..000000000000 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/RoutingRulesOperationsExtensions.cs +++ /dev/null @@ -1,341 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// 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; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for RoutingRulesOperations. - /// - public static partial class RoutingRulesOperationsExtensions - { - /// - /// Lists all of the Routing Rules 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 IPage ListByFrontDoor(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName) - { - return operations.ListByFrontDoorAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the Routing Rules 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 Task> ListByFrontDoorAsync(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Gets a Routing Rule with the specified Rule 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 Routing Rule which is unique within the Front Door. - /// - public static RoutingRule Get(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName, string routingRuleName) - { - return operations.GetAsync(resourceGroupName, frontDoorName, routingRuleName).GetAwaiter().GetResult(); - } - - /// - /// Gets a Routing Rule with the specified Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName, string routingRuleName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, frontDoorName, routingRuleName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates a new Routing Rule with the specified Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// Routing Rule properties needed to create a new Front Door. - /// - public static RoutingRule CreateOrUpdate(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName, string routingRuleName, RoutingRule routingRuleParameters) - { - return operations.CreateOrUpdateAsync(resourceGroupName, frontDoorName, routingRuleName, routingRuleParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new Routing Rule with the specified Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// Routing Rule properties needed to create a new Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task CreateOrUpdateAsync(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName, string routingRuleName, RoutingRule routingRuleParameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, routingRuleName, routingRuleParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes an existing Routing Rule 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 Routing Rule which is unique within the Front Door. - /// - public static void Delete(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName, string routingRuleName) - { - operations.DeleteAsync(resourceGroupName, frontDoorName, routingRuleName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing Routing Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteAsync(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName, string routingRuleName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, routingRuleName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Creates a new Routing Rule with the specified Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// Routing Rule properties needed to create a new Front Door. - /// - public static RoutingRule BeginCreateOrUpdate(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName, string routingRuleName, RoutingRule routingRuleParameters) - { - return operations.BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, routingRuleName, routingRuleParameters).GetAwaiter().GetResult(); - } - - /// - /// Creates a new Routing Rule with the specified Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// Routing Rule properties needed to create a new Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task BeginCreateOrUpdateAsync(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName, string routingRuleName, RoutingRule routingRuleParameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, routingRuleName, routingRuleParameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes an existing Routing Rule 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 Routing Rule which is unique within the Front Door. - /// - public static void BeginDelete(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName, string routingRuleName) - { - operations.BeginDeleteAsync(resourceGroupName, frontDoorName, routingRuleName).GetAwaiter().GetResult(); - } - - /// - /// Deletes an existing Routing Rule 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 Routing Rule which is unique within the Front Door. - /// - /// - /// The cancellation token. - /// - public static async Task BeginDeleteAsync(this IRoutingRulesOperations operations, string resourceGroupName, string frontDoorName, string routingRuleName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, routingRuleName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Lists all of the Routing Rules within a Front Door. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListByFrontDoorNext(this IRoutingRulesOperations operations, string nextPageLink) - { - return operations.ListByFrontDoorNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists all of the Routing Rules 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 Task> ListByFrontDoorNextAsync(this IRoutingRulesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByFrontDoorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/SdkInfo_FrontDoorManagementClient.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/SdkInfo_FrontDoorManagementClient.cs index db24a5925aa0..733a826f88b9 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/SdkInfo_FrontDoorManagementClient.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Generated/SdkInfo_FrontDoorManagementClient.cs @@ -19,27 +19,27 @@ public static IEnumerable> ApiInfo_FrontDoorManage { return new Tuple[] { - new Tuple("Network", "BackendPools", "2019-05-01"), new Tuple("Network", "CheckFrontDoorNameAvailability", "2019-05-01"), new Tuple("Network", "CheckFrontDoorNameAvailabilityWithSubscription", "2019-05-01"), new Tuple("Network", "Endpoints", "2019-05-01"), + new Tuple("Network", "Experiments", "2019-11-01"), new Tuple("Network", "FrontDoors", "2019-05-01"), new Tuple("Network", "FrontendEndpoints", "2019-05-01"), - new Tuple("Network", "HealthProbeSettings", "2019-05-01"), - new Tuple("Network", "LoadBalancingSettings", "2019-05-01"), - new Tuple("Network", "ManagedRuleSets", "2019-03-01"), - new Tuple("Network", "Policies", "2019-03-01"), - new Tuple("Network", "RoutingRules", "2019-05-01"), + new Tuple("Network", "ManagedRuleSets", "2019-10-01"), + new Tuple("Network", "NetworkExperimentProfiles", "2019-11-01"), + new Tuple("Network", "Policies", "2019-10-01"), + new Tuple("Network", "PreconfiguredEndpoints", "2019-11-01"), + new Tuple("Network", "Reports", "2019-11-01"), }.AsEnumerable(); } } // BEGIN: Code Generation Metadata Section public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/frontdoor/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\AFD\\azure-sdk-for-net\\sdk"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4407"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/frontdoor/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Sources\\OSS\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "59c5761efb6dae1a0cfb624bc1a054e902a855cf"; + public static readonly String GithubCommidId = "5e95a31678db88b8405e189df4aad8f9e9a24c45"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Microsoft.Azure.Management.FrontDoor.csproj b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Microsoft.Azure.Management.FrontDoor.csproj index fb84d9cdd49f..4eae6820a0a1 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Microsoft.Azure.Management.FrontDoor.csproj +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Microsoft.Azure.Management.FrontDoor.csproj @@ -7,14 +7,12 @@ Microsoft.Azure.Management.FrontDoor Provides management capabilities for Front Door services. Microsoft.Azure.Management.FrontDoor - 1.0.0 + 2.0.0 Microsoft Azure Front Door management;FrontDoor;Front Door management; diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Properties/AssemblyInfo.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Properties/AssemblyInfo.cs index 09b2e5cfb68b..56417f0826c6 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Properties/AssemblyInfo.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/src/Properties/AssemblyInfo.cs @@ -10,8 +10,8 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Azure .NET SDK")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("2.0.0.0")] +[assembly: AssemblyFileVersion("2.0.0.0")] [assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/Properties/AssemblyInfo.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/Properties/AssemblyInfo.cs index 50940ed1d3a9..4efaf5563bf9 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/Properties/AssemblyInfo.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/Properties/AssemblyInfo.cs @@ -11,8 +11,8 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Azure .NET SDK")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("2.0.0.0")] +[assembly: AssemblyFileVersion("2.0.0.0")] [assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/ScenarioTests/FrontDoorTests.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/ScenarioTests/FrontDoorTests.cs index 0349989878be..2876fc8f7c97 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/ScenarioTests/FrontDoorTests.cs +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/ScenarioTests/FrontDoorTests.cs @@ -8,10 +8,11 @@ using Microsoft.Azure.Management.FrontDoor; using Microsoft.Azure.Management.FrontDoor.Models; using FrontDoor.Tests.Helpers; -using Microsoft.Azure.Management.Resources.Models; using Xunit; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + using refID = Microsoft.Azure.Management.FrontDoor.Models.SubResource; + namespace FrontDoor.Tests.ScenarioTests { public class FrontDoorTests @@ -22,14 +23,16 @@ public void FrontDoorCRUDTest() { var handler1 = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; var handler2 = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; - - string subid = ConnectionStringKeys.SubscriptionIdKey; + using (MockContext context = MockContext.Start(this.GetType())) { // Create clients var frontDoorMgmtClient = FrontDoorTestUtilities.GetFrontDoorManagementClient(context, handler1); var resourcesClient = FrontDoorTestUtilities.GetResourceManagementClient(context, handler2); - + + // Get subscription id + string subid = frontDoorMgmtClient.SubscriptionId; + // Create resource group var resourceGroupName = FrontDoorTestUtilities.CreateResourceGroup(resourcesClient); @@ -161,7 +164,7 @@ public void WAFCRUDTest() // Create resource group var resourceGroupName = FrontDoorTestUtilities.CreateResourceGroup(resourcesClient); - // Create a frontDoor + // Create a frontDoor WAF policy string policyName = TestUtilities.GenerateName("policy"); WebApplicationFirewallPolicy createParameters = new WebApplicationFirewallPolicy @@ -213,18 +216,45 @@ public void WAFCRUDTest() { RuleSetType = "DefaultRuleSet", RuleSetVersion = "1.0", + Exclusions = new List + { + new ManagedRuleExclusion + { + MatchVariable = ManagedRuleExclusionMatchVariable.RequestBodyPostArgNames, + SelectorMatchOperator = ManagedRuleExclusionSelectorMatchOperator.Contains, + Selector = "query" + } + }, RuleGroupOverrides = new List { new ManagedRuleGroupOverride { RuleGroupName = "SQLI", + Exclusions = new List + { + new ManagedRuleExclusion + { + MatchVariable = ManagedRuleExclusionMatchVariable.RequestHeaderNames, + SelectorMatchOperator = ManagedRuleExclusionSelectorMatchOperator.Equals, + Selector = "User-Agent" + } + }, Rules = new List { new ManagedRuleOverride { RuleId = "942100", Action = "Redirect", - EnabledState = "Disabled" + EnabledState = "Disabled", + Exclusions = new List + { + new ManagedRuleExclusion + { + MatchVariable = ManagedRuleExclusionMatchVariable.QueryStringArgNames, + SelectorMatchOperator = ManagedRuleExclusionSelectorMatchOperator.Equals, + Selector = "search" + } + } } } } @@ -299,6 +329,9 @@ private static void VerifyPolicy(WebApplicationFirewallPolicy policy, WebApplica Assert.Equal(policy.PolicySettings.RedirectUrl, parameters.PolicySettings.RedirectUrl); Assert.Equal(policy.CustomRules.Rules.Count, parameters.CustomRules.Rules.Count); Assert.Equal(policy.ManagedRules.ManagedRuleSets.Count, parameters.ManagedRules.ManagedRuleSets.Count); + Assert.Equal(policy.ManagedRules.ManagedRuleSets[0].Exclusions.Count, parameters.ManagedRules.ManagedRuleSets[0].Exclusions.Count); + Assert.Equal(policy.ManagedRules.ManagedRuleSets[0].RuleGroupOverrides[0].Exclusions.Count, parameters.ManagedRules.ManagedRuleSets[0].RuleGroupOverrides[0].Exclusions.Count); + Assert.Equal(policy.ManagedRules.ManagedRuleSets[0].RuleGroupOverrides[0].Rules[0].Exclusions.Count, parameters.ManagedRules.ManagedRuleSets[0].RuleGroupOverrides[0].Rules[0].Exclusions.Count); } private static void VerifyFrontDoor(FrontDoorModel frontDoor, FrontDoorModel parameters) diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/ScenarioTests/NetworkExperimentTests.cs b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/ScenarioTests/NetworkExperimentTests.cs new file mode 100644 index 000000000000..d68af3491024 --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/ScenarioTests/NetworkExperimentTests.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.Collections.Generic; +using System.Linq; +using System.Net; +using FrontDoor.Tests.Helpers; +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.FrontDoor; +using Microsoft.Azure.Management.FrontDoor.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Xunit; + +namespace FrontDoor.Tests.ScenarioTests +{ + public class NetworkExperimentTests + { + [Fact] + public void NetworkExperimentCRUDTest() + { + var handler1 = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + var handler2 = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType())) + { + // Create clients + var frontDoorMgmtClient = FrontDoorTestUtilities.GetFrontDoorManagementClient(context, handler1); + var resourcesClient = FrontDoorTestUtilities.GetResourceManagementClient(context, handler2); + + // Get subscription id + string subid = frontDoorMgmtClient.SubscriptionId; + + // Create resource group + var resourceGroupName = FrontDoorTestUtilities.CreateResourceGroup(resourcesClient); + + // Create profile and experiment names + string profileName = TestUtilities.GenerateName("networkExperimentProfile"); + string experimentName = TestUtilities.GenerateName("experiment"); + + Profile profile = new Profile( + enabledState: "Enabled", + location: "EastUS", + tags: new Dictionary + { + { "key1", "value1" }, + { "key2", "value2" } + }); + + Experiment experiment = new Experiment( + endpointA: new Endpoint( + endpointProperty: "www.bing.com", + name: "bing"), + endpointB: new Endpoint( + endpointProperty: "www.constoso.com", + name: "contoso")); + + var createdProfile = frontDoorMgmtClient.NetworkExperimentProfiles.CreateOrUpdate(profileName, resourceGroupName, profile); + + // validate that correct profile is created + VerifyProfile(profile, createdProfile); + + // Retrieve profile + var retrievedProfile = frontDoorMgmtClient.NetworkExperimentProfiles.Get(resourceGroupName, profileName); + + // validate that correct profile is retrieved + VerifyProfile(profile, retrievedProfile); + + // update profile + retrievedProfile.Tags = new Dictionary + { + {"key3","value3"}, + {"key4","value4"} + }; + + var updatedProfile = frontDoorMgmtClient.NetworkExperimentProfiles.CreateOrUpdate(profileName, resourceGroupName, retrievedProfile); + + // validate that profile is correctly updated + VerifyProfile(retrievedProfile, updatedProfile); + + // add experiment to profile + var createdExperiment = frontDoorMgmtClient.Experiments.CreateOrUpdate(resourceGroupName, profileName, experimentName, experiment); + + // validate experiment + VerifyExperiment(experiment, createdExperiment); + + // get experiment + var retrievedExperiment = frontDoorMgmtClient.Experiments.Get(resourceGroupName, profileName, experimentName); + + // validate experiment + VerifyExperiment(experiment, retrievedExperiment); + + // delete experiment + frontDoorMgmtClient.Experiments.Delete(resourceGroupName, profileName, experimentName); + + // verify experiment is deleted + Assert.ThrowsAny(() => + { + frontDoorMgmtClient.Experiments.Get(resourceGroupName, profileName, experimentName); + }); + + // delete profile + frontDoorMgmtClient.NetworkExperimentProfiles.Delete(resourceGroupName, profileName); + + // Verify that profile is deleted + Assert.ThrowsAny(() => + { + frontDoorMgmtClient.NetworkExperimentProfiles.Get(resourceGroupName, profileName); + }); + + FrontDoorTestUtilities.DeleteResourceGroup(resourcesClient, resourceGroupName); + } + } + + private static void VerifyProfile(Profile expectedProfile, Profile actualProfile) + { + Assert.Equal(expectedProfile.EnabledState, actualProfile.EnabledState); + Assert.Equal(expectedProfile.Location.ToLower(), actualProfile.Location.ToLower()); + Assert.Equal(expectedProfile.Tags.Count, actualProfile.Tags.Count); + Assert.True(expectedProfile.Tags.SequenceEqual(actualProfile.Tags)); + } + + private static void VerifyExperiment(Experiment expectedExperiment, Experiment actualExperiment) + { + Assert.Equal(expectedExperiment.EndpointA.EndpointProperty, actualExperiment.EndpointA.EndpointProperty); + Assert.Equal(expectedExperiment.EndpointA.Name, actualExperiment.EndpointA.Name); + Assert.Equal(expectedExperiment.EndpointB.EndpointProperty, actualExperiment.EndpointB.EndpointProperty); + Assert.Equal(expectedExperiment.EndpointB.Name, actualExperiment.EndpointB.Name); + } + } +} diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/SessionRecords/FrontDoorTests/FrontDoorCRUDTest.json b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/SessionRecords/FrontDoorTests/FrontDoorCRUDTest.json index f7d5a2c08c64..c69a75f4a960 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/SessionRecords/FrontDoorTests/FrontDoorCRUDTest.json +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/SessionRecords/FrontDoorTests/FrontDoorCRUDTest.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "08e7fe22-a885-4f70-bb4c-8042cd14b3f3" + "c06bab7c-e5c6-4baf-9cbb-335024ee827b" ], "accept-language": [ "en-US" @@ -15,7 +15,7 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ], "Content-Type": [ @@ -30,7 +30,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:17:21 GMT" + "Mon, 04 Nov 2019 21:23:37 GMT" ], "Pragma": [ "no-cache" @@ -39,13 +39,13 @@ "1199" ], "x-ms-request-id": [ - "43c5235d-aee1-4d14-9595-ca7541bbe02a" + "7b053b87-1516-4143-bb4e-fc3fce0730b8" ], "x-ms-correlation-request-id": [ - "43c5235d-aee1-4d14-9595-ca7541bbe02a" + "7b053b87-1516-4143-bb4e-fc3fce0730b8" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201722Z:43c5235d-aee1-4d14-9595-ca7541bbe02a" + "WESTCENTRALUS:20191104T212337Z:7b053b87-1516-4143-bb4e-fc3fce0730b8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup7965\",\r\n \"name\": \"FrontDoorResourceGroup7965\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913\",\r\n \"name\": \"FrontDoorResourceGroup9913\",\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjQ3MjA/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjMwMTY/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"frontDoor4720\",\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/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\": \"loadBalancingSettings1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 120,\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSettings1\"\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\": 2,\r\n \"weight\": 1\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/loadBalancingSettings/loadBalancingSettings1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/healthProbeSettings/healthProbeSettings1\"\r\n }\r\n },\r\n \"name\": \"backendPool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"frontDoor4720.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendEndpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"sendRecvTimeoutSeconds\": 123\r\n }\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"frontDoor3016\",\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/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\": \"loadBalancingSettings1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 120,\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSettings1\"\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\": 2,\r\n \"weight\": 1\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/loadBalancingSettings/loadBalancingSettings1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/healthProbeSettings/healthProbeSettings1\"\r\n }\r\n },\r\n \"name\": \"backendPool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"frontDoor3016.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0\r\n },\r\n \"name\": \"frontendEndpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"sendRecvTimeoutSeconds\": 123\r\n }\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "05ede4f6-5169-4030-87fb-2ad82a40cfc0" + "a57f04d2-dd5d-4212-b9c9-e2950b790286" ], "accept-language": [ "en-US" @@ -81,14 +81,14 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "2874" + "2962" ] }, "ResponseHeaders": { @@ -96,7 +96,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:17:24 GMT" + "Mon, 04 Nov 2019 21:23:41 GMT" ], "Pragma": [ "no-cache" @@ -108,13 +108,13 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "e2677ef4-4e6e-4c94-b090-1de1dcbeb9e8" + "2ccfbf46-39a1-4ebe-8b2b-3ddbf1c989a2" ], "x-ms-client-request-id": [ - "05ede4f6-5169-4030-87fb-2ad82a40cfc0" + "a57f04d2-dd5d-4212-b9c9-e2950b790286" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/1a0e0265-2a99-4a56-8041-de1aba726901?api-version=2019-05-01" + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/e50f9b45-4653-4492-881c-f842d31f8f04?api-version=2019-05-01" ], "OData-Version": [ "4.0" @@ -132,16 +132,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "afe77499-ae01-46bf-9510-4094fe82e72f" + "2b507c9b-f212-481f-9ad2-a2c0e5b4669c" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201725Z:afe77499-ae01-46bf-9510-4094fe82e72f" + "WESTCENTRALUS:20191104T212341Z:2b507c9b-f212-481f-9ad2-a2c0e5b4669c" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "4437" + "4525" ], "Content-Type": [ "application/json; odata.metadata=minimal" @@ -150,17 +150,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"frontDoor4720\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdoors/frontDoor4720\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/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\": 2,\r\n \"weight\": 1,\r\n \"backendHostHeader\": null,\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/loadBalancingSettings/loadBalancingSettings1\"\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/HealthProbeSettings/healthProbeSettings1\",\r\n \"name\": \"healthProbeSettings1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 120,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Creating\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/FrontendEndpoints/frontendEndpoint1\",\r\n \"name\": \"frontendEndpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"frontDoor4720.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 \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/LoadBalancingSettings/loadBalancingSettings1\",\r\n \"name\": \"loadBalancingSettings1\",\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/backendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"frontDoor4720.azurefd.net\",\r\n \"friendlyName\": \"frontDoor4720\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"frontDoor3016\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdoors/frontDoor3016\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/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\": 2,\r\n \"weight\": 1,\r\n \"backendHostHeader\": null,\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/loadBalancingSettings/loadBalancingSettings1\"\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/HealthProbeSettings/healthProbeSettings1\",\r\n \"name\": \"healthProbeSettings1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 120,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Creating\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/FrontendEndpoints/frontendEndpoint1\",\r\n \"name\": \"frontendEndpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"frontDoor3016.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 \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/LoadBalancingSettings/loadBalancingSettings1\",\r\n \"name\": \"loadBalancingSettings1\",\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/backendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"frontDoor3016.azurefd.net\",\r\n \"friendlyName\": \"frontDoor3016\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjQ3MjA/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjMwMTY/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"frontDoor4720\",\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/backendPools/backendPool1\"\r\n }\r\n },\r\n \"resourceState\": \"Enabled\"\r\n },\r\n \"name\": \"routingrule1\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/RoutingRules/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 \"resourceState\": \"Enabled\"\r\n },\r\n \"name\": \"loadBalancingSettings1\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/LoadBalancingSettings/loadBalancingSettings1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 120,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSettings1\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/HealthProbeSettings/healthProbeSettings1\"\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\": 2,\r\n \"weight\": 1\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/loadBalancingSettings/loadBalancingSettings1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n },\r\n \"name\": \"backendPool1\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/BackendPools/backendPool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"frontDoor4720.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"resourceState\": \"Enabled\"\r\n },\r\n \"name\": \"frontendEndpoint1\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\"\r\n },\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"friendlyName\": \"frontDoor3016\",\r\n \"routingRules\": [\r\n {\r\n \"properties\": {\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/backendPools/backendPool1\"\r\n }\r\n },\r\n \"resourceState\": \"Enabled\"\r\n },\r\n \"name\": \"routingrule1\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/RoutingRules/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 \"resourceState\": \"Enabled\"\r\n },\r\n \"name\": \"loadBalancingSettings1\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/LoadBalancingSettings/loadBalancingSettings1\"\r\n }\r\n ],\r\n \"healthProbeSettings\": [\r\n {\r\n \"properties\": {\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"intervalInSeconds\": 120,\r\n \"healthProbeMethod\": \"Get\",\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\"\r\n },\r\n \"name\": \"healthProbeSettings1\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/HealthProbeSettings/healthProbeSettings1\"\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\": 2,\r\n \"weight\": 1\r\n }\r\n ],\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/loadBalancingSettings/loadBalancingSettings1\"\r\n },\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"resourceState\": \"Enabled\"\r\n },\r\n \"name\": \"backendPool1\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/BackendPools/backendPool1\"\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"properties\": {\r\n \"hostName\": \"frontDoor3016.azurefd.net\",\r\n \"sessionAffinityEnabledState\": \"Disabled\",\r\n \"sessionAffinityTtlSeconds\": 0,\r\n \"resourceState\": \"Enabled\"\r\n },\r\n \"name\": \"frontendEndpoint1\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/FrontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\"\r\n },\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "ff7ae912-dbb5-43de-a592-b21851f7cfbe" + "cee743be-dc96-4482-8a89-7f73aae29ee2" ], "accept-language": [ "en-US" @@ -168,14 +168,14 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "4221" + "4309" ] }, "ResponseHeaders": { @@ -183,13 +183,13 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:18:07 GMT" + "Mon, 04 Nov 2019 21:24:03 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/e6ab4a82-cbdc-4db9-8c5a-037088bd0da1/frontdoorresults/frontDoor4720?api-version=2019-05-01" + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/c5b0cc56-6e67-449b-a7e8-74b93042d09f/frontdoorresults/frontDoor3016?api-version=2019-05-01" ], "Retry-After": [ "10" @@ -198,13 +198,13 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "7652e3ad-b8a8-4244-9db9-5c9e6e349568" + "6792a777-6b46-40f1-9acc-bae676d1feb6" ], "x-ms-client-request-id": [ - "ff7ae912-dbb5-43de-a592-b21851f7cfbe" + "cee743be-dc96-4482-8a89-7f73aae29ee2" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/e6ab4a82-cbdc-4db9-8c5a-037088bd0da1?api-version=2019-05-01" + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/c5b0cc56-6e67-449b-a7e8-74b93042d09f?api-version=2019-05-01" ], "OData-Version": [ "4.0" @@ -222,16 +222,16 @@ "1198" ], "x-ms-correlation-request-id": [ - "264d0c57-0412-4778-85b9-23eb83b231cb" + "1f1d0a2b-df6c-4fff-b392-82dbe8c92c0a" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201808Z:264d0c57-0412-4778-85b9-23eb83b231cb" + "WESTCENTRALUS:20191104T212404Z:1f1d0a2b-df6c-4fff-b392-82dbe8c92c0a" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "4432" + "4520" ], "Content-Type": [ "application/json; odata.metadata=minimal" @@ -240,19 +240,19 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"frontDoor4720\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdoors/frontDoor4720\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/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\": 2,\r\n \"weight\": 1,\r\n \"backendHostHeader\": null,\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/loadBalancingSettings/loadBalancingSettings1\"\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/HealthProbeSettings/healthProbeSettings1\",\r\n \"name\": \"healthProbeSettings1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 120,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Enabled\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/FrontendEndpoints/frontendEndpoint1\",\r\n \"name\": \"frontendEndpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"frontDoor4720.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 \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/LoadBalancingSettings/loadBalancingSettings1\",\r\n \"name\": \"loadBalancingSettings1\",\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/backendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"frontDoor4720.azurefd.net\",\r\n \"friendlyName\": \"frontDoor4720\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"frontDoor3016\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdoors/frontDoor3016\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/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\": 2,\r\n \"weight\": 1,\r\n \"backendHostHeader\": null,\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/loadBalancingSettings/loadBalancingSettings1\"\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/HealthProbeSettings/healthProbeSettings1\",\r\n \"name\": \"healthProbeSettings1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 120,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Enabled\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/FrontendEndpoints/frontendEndpoint1\",\r\n \"name\": \"frontendEndpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"frontDoor3016.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 \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/LoadBalancingSettings/loadBalancingSettings1\",\r\n \"name\": \"loadBalancingSettings1\",\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/backendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"frontDoor3016.azurefd.net\",\r\n \"friendlyName\": \"frontDoor3016\"\r\n }\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/1a0e0265-2a99-4a56-8041-de1aba726901?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzLzFhMGUwMjY1LTJhOTktNGE1Ni04MDQxLWRlMWFiYTcyNjkwMT9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/e50f9b45-4653-4492-881c-f842d31f8f04?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzL2U1MGY5YjQ1LTQ2NTMtNDQ5Mi04ODFjLWY4NDJkMzFmOGYwND9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -261,7 +261,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:17:35 GMT" + "Mon, 04 Nov 2019 21:23:52 GMT" ], "Pragma": [ "no-cache" @@ -270,10 +270,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "ebce46c7-052b-4613-98ae-18d23691be5a" + "31a72cdc-f257-47cd-8faa-373fddb5be5e" ], "x-ms-client-request-id": [ - "60f9035b-401e-4225-aec0-82645438a847" + "6d31dd17-44e2-45da-842c-db460849515c" ], "OData-Version": [ "4.0" @@ -291,10 +291,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "cb1d7394-15d8-49b1-99df-511b4e7fffb3" + "fd7c0f39-31d7-4e97-9981-44a30c220e37" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201735Z:cb1d7394-15d8-49b1-99df-511b4e7fffb3" + "WESTCENTRALUS:20191104T212352Z:fd7c0f39-31d7-4e97-9981-44a30c220e37" ], "X-Content-Type-Options": [ "nosniff" @@ -313,15 +313,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/1a0e0265-2a99-4a56-8041-de1aba726901?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzLzFhMGUwMjY1LTJhOTktNGE1Ni04MDQxLWRlMWFiYTcyNjkwMT9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/e50f9b45-4653-4492-881c-f842d31f8f04?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzL2U1MGY5YjQ1LTQ2NTMtNDQ5Mi04ODFjLWY4NDJkMzFmOGYwND9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -330,7 +330,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:17:45 GMT" + "Mon, 04 Nov 2019 21:24:01 GMT" ], "Pragma": [ "no-cache" @@ -339,10 +339,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "b26c7a76-5ee0-4feb-aa63-8ab2f2f2e002" + "4e306e5b-d87a-4a73-8cfb-7c1924f41630" ], "x-ms-client-request-id": [ - "43d2d78c-88bf-441c-a096-e8e28b58a690" + "f5c19191-4fc9-4aa6-9a6d-c3cff6a7305b" ], "OData-Version": [ "4.0" @@ -360,16 +360,16 @@ "11998" ], "x-ms-correlation-request-id": [ - "32fdf0c8-c26e-46a6-af67-b7a8456a228f" + "9b1c37a5-6c98-4fc1-8ba0-2e8e11158cd8" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201746Z:32fdf0c8-c26e-46a6-af67-b7a8456a228f" + "WESTCENTRALUS:20191104T212402Z:9b1c37a5-6c98-4fc1-8ba0-2e8e11158cd8" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "78" + "77" ], "Content-Type": [ "application/json; odata.metadata=minimal; odata.streaming=true" @@ -378,19 +378,19 @@ "-1" ] }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", + "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/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/1a0e0265-2a99-4a56-8041-de1aba726901?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzLzFhMGUwMjY1LTJhOTktNGE1Ni04MDQxLWRlMWFiYTcyNjkwMT9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjMwMTY/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -399,7 +399,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:17:55 GMT" + "Mon, 04 Nov 2019 21:24:02 GMT" ], "Pragma": [ "no-cache" @@ -408,10 +408,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "8f04d4ca-eec4-4e33-87bd-44aec098c9fc" + "6c2413f7-0ec1-4648-88f9-7bb9b979ec06" ], "x-ms-client-request-id": [ - "b4e88f96-31ee-44a4-b238-f002503179fa" + "4f6241d7-09bd-4bb2-b63e-95a970151339" ], "OData-Version": [ "4.0" @@ -429,16 +429,16 @@ "11997" ], "x-ms-correlation-request-id": [ - "0b1403bf-fb8b-47c5-a580-35a5e7c9b016" + "2e73b160-af47-4fa1-bdd0-73d544a8424a" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201756Z:0b1403bf-fb8b-47c5-a580-35a5e7c9b016" + "WESTCENTRALUS:20191104T212402Z:2e73b160-af47-4fa1-bdd0-73d544a8424a" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "78" + "4520" ], "Content-Type": [ "application/json; odata.metadata=minimal; odata.streaming=true" @@ -447,19 +447,25 @@ "-1" ] }, - "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"frontDoor3016\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdoors/frontDoor3016\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/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\": 2,\r\n \"weight\": 1,\r\n \"backendHostHeader\": null,\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/loadBalancingSettings/loadBalancingSettings1\"\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/HealthProbeSettings/healthProbeSettings1\",\r\n \"name\": \"healthProbeSettings1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 120,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Enabled\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/FrontendEndpoints/frontendEndpoint1\",\r\n \"name\": \"frontendEndpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"frontDoor3016.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 \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/LoadBalancingSettings/loadBalancingSettings1\",\r\n \"name\": \"loadBalancingSettings1\",\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/backendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"frontDoor3016.azurefd.net\",\r\n \"friendlyName\": \"frontDoor3016\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/1a0e0265-2a99-4a56-8041-de1aba726901?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzLzFhMGUwMjY1LTJhOTktNGE1Ni04MDQxLWRlMWFiYTcyNjkwMT9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjMwMTY/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "9b0790df-765b-41bf-b1af-835f957d22d4" + ], + "accept-language": [ + "en-US" + ], "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -468,7 +474,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:18:05 GMT" + "Mon, 04 Nov 2019 21:24:02 GMT" ], "Pragma": [ "no-cache" @@ -477,10 +483,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "ef21ba63-5a20-4bd6-9891-0e96dfa01f08" + "fd1890c2-3c51-410a-bbf2-b31b56c857e3" ], "x-ms-client-request-id": [ - "de5af32f-9ade-4ce3-85cc-0071fd5466b3" + "9b0790df-765b-41bf-b1af-835f957d22d4" ], "OData-Version": [ "4.0" @@ -498,16 +504,16 @@ "11996" ], "x-ms-correlation-request-id": [ - "c267fe8c-e9a8-4163-9bff-58805958d684" + "566b86cd-9409-4e26-a07a-14d942289fe3" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201806Z:c267fe8c-e9a8-4163-9bff-58805958d684" + "WESTCENTRALUS:20191104T212403Z:566b86cd-9409-4e26-a07a-14d942289fe3" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "77" + "4520" ], "Content-Type": [ "application/json; odata.metadata=minimal; odata.streaming=true" @@ -516,19 +522,19 @@ "-1" ] }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"None\",\r\n \"message\": null\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"frontDoor3016\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdoors/frontDoor3016\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/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\": 2,\r\n \"weight\": 1,\r\n \"backendHostHeader\": null,\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/loadBalancingSettings/loadBalancingSettings1\"\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/HealthProbeSettings/healthProbeSettings1\",\r\n \"name\": \"healthProbeSettings1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 120,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Enabled\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/FrontendEndpoints/frontendEndpoint1\",\r\n \"name\": \"frontendEndpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"frontDoor3016.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 \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/LoadBalancingSettings/loadBalancingSettings1\",\r\n \"name\": \"loadBalancingSettings1\",\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/backendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"frontDoor3016.azurefd.net\",\r\n \"friendlyName\": \"frontDoor3016\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjQ3MjA/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjMwMTY/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -537,7 +543,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:18:06 GMT" + "Mon, 04 Nov 2019 21:24:24 GMT" ], "Pragma": [ "no-cache" @@ -546,10 +552,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "e5057f9a-54f0-4904-ae28-0dfdf971dffe" + "411af278-2119-4e7b-9c13-e83aede5379a" ], "x-ms-client-request-id": [ - "c5c459fb-743d-4683-b3f3-2c0aa1b1d8bd" + "b608c359-3b43-4325-8a79-89e63fb183bb" ], "OData-Version": [ "4.0" @@ -564,19 +570,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11993" ], "x-ms-correlation-request-id": [ - "f15ad5e9-a14a-45f4-9ec2-3a20b4de42ff" + "2e40d1f0-8f38-497b-94c2-0972f547fc4a" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201807Z:f15ad5e9-a14a-45f4-9ec2-3a20b4de42ff" + "WESTCENTRALUS:20191104T212425Z:2e40d1f0-8f38-497b-94c2-0972f547fc4a" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "4432" + "4520" ], "Content-Type": [ "application/json; odata.metadata=minimal; odata.streaming=true" @@ -585,17 +591,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"frontDoor4720\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdoors/frontDoor4720\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/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\": 2,\r\n \"weight\": 1,\r\n \"backendHostHeader\": null,\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/loadBalancingSettings/loadBalancingSettings1\"\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/HealthProbeSettings/healthProbeSettings1\",\r\n \"name\": \"healthProbeSettings1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 120,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Enabled\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/FrontendEndpoints/frontendEndpoint1\",\r\n \"name\": \"frontendEndpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"frontDoor4720.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 \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/LoadBalancingSettings/loadBalancingSettings1\",\r\n \"name\": \"loadBalancingSettings1\",\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/backendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"frontDoor4720.azurefd.net\",\r\n \"friendlyName\": \"frontDoor4720\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"frontDoor3016\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdoors/frontDoor3016\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/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\": 2,\r\n \"weight\": 1,\r\n \"backendHostHeader\": null,\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/loadBalancingSettings/loadBalancingSettings1\"\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/HealthProbeSettings/healthProbeSettings1\",\r\n \"name\": \"healthProbeSettings1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 120,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Enabled\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/FrontendEndpoints/frontendEndpoint1\",\r\n \"name\": \"frontendEndpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"frontDoor3016.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 \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/LoadBalancingSettings/loadBalancingSettings1\",\r\n \"name\": \"loadBalancingSettings1\",\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/Frontdoors/frontDoor3016/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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016/backendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"frontDoor3016.azurefd.net\",\r\n \"friendlyName\": \"frontDoor3016\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjQ3MjA/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjMwMTY/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "abca5e9d-0cbe-4d3d-8605-24b335abe173" + "033e5cc6-5b60-4448-9bb9-34bb2575b7f7" ], "accept-language": [ "en-US" @@ -603,7 +609,7 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -612,7 +618,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:18:06 GMT" + "Mon, 04 Nov 2019 21:24:47 GMT" ], "Pragma": [ "no-cache" @@ -621,13 +627,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "89bc3314-1df4-459a-97f4-ef0f440c6bd6" + "b5414286-e158-47e4-9404-9a66d735fcbc" ], "x-ms-client-request-id": [ - "abca5e9d-0cbe-4d3d-8605-24b335abe173" - ], - "OData-Version": [ - "4.0" + "033e5cc6-5b60-4448-9bb9-34bb2575b7f7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -639,40 +642,43 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11989" ], "x-ms-correlation-request-id": [ - "3ea3de16-4f49-4429-96cc-c1ce5715b229" + "7ce8e661-bacf-40cd-91ea-2ff03f2bd5a2" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201807Z:3ea3de16-4f49-4429-96cc-c1ce5715b229" + "WESTCENTRALUS:20191104T212447Z:7ce8e661-bacf-40cd-91ea-2ff03f2bd5a2" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "4432" + "104" ], "Content-Type": [ - "application/json; odata.metadata=minimal; odata.streaming=true" + "application/json; charset=utf-8" + ], + "Content-Language": [ + "en-US" ], "Expires": [ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"frontDoor4720\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdoors/frontDoor4720\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/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\": 2,\r\n \"weight\": 1,\r\n \"backendHostHeader\": null,\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/loadBalancingSettings/loadBalancingSettings1\"\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/HealthProbeSettings/healthProbeSettings1\",\r\n \"name\": \"healthProbeSettings1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 120,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Enabled\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/FrontendEndpoints/frontendEndpoint1\",\r\n \"name\": \"frontendEndpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"frontDoor4720.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 \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/LoadBalancingSettings/loadBalancingSettings1\",\r\n \"name\": \"loadBalancingSettings1\",\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/backendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"frontDoor4720.azurefd.net\",\r\n \"friendlyName\": \"frontDoor4720\"\r\n }\r\n}", - "StatusCode": 200 + "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/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjQ3MjA/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/c5b0cc56-6e67-449b-a7e8-74b93042d09f?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzL2M1YjBjYzU2LTZlNjctNDQ5Yi1hN2U4LTc0YjkzMDQyZDA5Zj9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -681,7 +687,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:18:18 GMT" + "Mon, 04 Nov 2019 21:24:14 GMT" ], "Pragma": [ "no-cache" @@ -690,10 +696,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "55993854-aee3-4c76-9d80-f4c28e56fc3f" + "10f8fcce-7822-4469-ac42-aa072d797141" ], "x-ms-client-request-id": [ - "29945e90-7676-419e-bc7b-29a3edcca75c" + "f2179196-1d79-4ae9-9e56-8d25208bb2fa" ], "OData-Version": [ "4.0" @@ -708,19 +714,19 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11995" ], "x-ms-correlation-request-id": [ - "57dadd58-1e3d-4932-a9a1-fa6e79170b86" + "fb70df02-3d52-451c-965d-e7c6c70e1396" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201819Z:57dadd58-1e3d-4932-a9a1-fa6e79170b86" + "WESTCENTRALUS:20191104T212414Z:fb70df02-3d52-451c-965d-e7c6c70e1396" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "4432" + "78" ], "Content-Type": [ "application/json; odata.metadata=minimal; odata.streaming=true" @@ -729,79 +735,19 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"frontDoor4720\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdoors/frontDoor4720\",\r\n \"type\": \"Microsoft.Network/frontdoors\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/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\": 2,\r\n \"weight\": 1,\r\n \"backendHostHeader\": null,\r\n \"enabledState\": \"Enabled\"\r\n }\r\n ],\r\n \"healthProbeSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/healthProbeSettings/healthProbeSettings1\"\r\n },\r\n \"loadBalancingSettings\": {\r\n \"id\": \"/subscriptions/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/loadBalancingSettings/loadBalancingSettings1\"\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/HealthProbeSettings/healthProbeSettings1\",\r\n \"name\": \"healthProbeSettings1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/HealthProbeSettings\",\r\n \"properties\": {\r\n \"intervalInSeconds\": 120,\r\n \"path\": \"/\",\r\n \"protocol\": \"Http\",\r\n \"resourceState\": \"Enabled\",\r\n \"enabledState\": \"Enabled\",\r\n \"healthProbeMethod\": \"Get\"\r\n }\r\n }\r\n ],\r\n \"frontendEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/FrontendEndpoints/frontendEndpoint1\",\r\n \"name\": \"frontendEndpoint1\",\r\n \"type\": \"Microsoft.Network/Frontdoors/FrontendEndpoints\",\r\n \"properties\": {\r\n \"hostName\": \"frontDoor4720.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 \"loadBalancingSettings\": [\r\n {\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/LoadBalancingSettings/loadBalancingSettings1\",\r\n \"name\": \"loadBalancingSettings1\",\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/FrontDoorResourceGroup7965/providers/Microsoft.Network/Frontdoors/frontDoor4720/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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/frontendEndpoints/frontendEndpoint1\"\r\n }\r\n ],\r\n \"acceptedProtocols\": [\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/SubscriptionId/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720/backendPools/backendPool1\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"backendPoolsSettings\": {\r\n \"enforceCertificateNameCheck\": \"Enabled\",\r\n \"sendRecvTimeoutSeconds\": 123\r\n },\r\n \"enabledState\": \"Enabled\",\r\n \"cName\": \"frontDoor4720.azurefd.net\",\r\n \"friendlyName\": \"frontDoor4720\"\r\n }\r\n}", + "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/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjQ3MjA/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "3f37eb9d-f6dc-4e3e-b9c3-6ca2ea78c5e2" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 22 Aug 2019 20:18:41 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-failure-cause": [ - "gateway" - ], - "x-ms-request-id": [ - "c696759c-42dd-48bd-b6fd-e1abf7251293" - ], - "x-ms-correlation-request-id": [ - "c696759c-42dd-48bd-b6fd-e1abf7251293" - ], - "x-ms-routing-request-id": [ - "WESTUS:20190822T201841Z:c696759c-42dd-48bd-b6fd-e1abf7251293" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "172" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Network/frontdoors/frontDoor4720' under resource group 'FrontDoorResourceGroup7965' was not found.\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/e6ab4a82-cbdc-4db9-8c5a-037088bd0da1?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzL2U2YWI0YTgyLWNiZGMtNGRiOS04YzVhLTAzNzA4OGJkMGRhMT9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/c5b0cc56-6e67-449b-a7e8-74b93042d09f?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzL2M1YjBjYzU2LTZlNjctNDQ5Yi1hN2U4LTc0YjkzMDQyZDA5Zj9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -810,7 +756,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:18:18 GMT" + "Mon, 04 Nov 2019 21:24:24 GMT" ], "Pragma": [ "no-cache" @@ -819,10 +765,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "96e16019-a971-4d4f-a481-da2ab4ea1ded" + "dfa8c8c3-49c5-4852-8392-246b3d6d5357" ], "x-ms-client-request-id": [ - "997de58c-df7d-43a1-b0b8-d3df6e915ffb" + "faae2786-69ba-40f8-9d08-47f8c4efd124" ], "OData-Version": [ "4.0" @@ -837,13 +783,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11994" ], "x-ms-correlation-request-id": [ - "37930fde-4b04-466c-a073-f8c64761d708" + "e3e93c43-fdb2-467d-90aa-53513ec6b163" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201819Z:37930fde-4b04-466c-a073-f8c64761d708" + "WESTCENTRALUS:20191104T212424Z:e3e93c43-fdb2-467d-90aa-53513ec6b163" ], "X-Content-Type-Options": [ "nosniff" @@ -862,13 +808,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontDoors/frontDoor4720?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjQ3MjA/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontDoors/frontDoor3016?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udERvb3JzL2Zyb250RG9vcjMwMTY/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8fac0754-ba92-4d58-a6f2-8b00f353a95b" + "f96aedb9-bacd-45c5-ae62-07aebbc6f6d3" ], "accept-language": [ "en-US" @@ -876,7 +822,7 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -885,13 +831,13 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:18:19 GMT" + "Mon, 04 Nov 2019 21:24:25 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/227dea6c-cb0c-4023-91a0-33ffee48b1ab/frontdoorresults/frontDoor4720?api-version=2019-05-01" + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/8101348f-606d-49ba-b055-98b46134de1f/frontdoorresults/frontDoor3016?api-version=2019-05-01" ], "Retry-After": [ "10" @@ -900,13 +846,13 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "2b64aa60-be9f-4326-a47f-69688199e362" + "734cbcd1-3de7-417d-b175-65a7fb3c1375" ], "x-ms-client-request-id": [ - "8fac0754-ba92-4d58-a6f2-8b00f353a95b" + "f96aedb9-bacd-45c5-ae62-07aebbc6f6d3" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/227dea6c-cb0c-4023-91a0-33ffee48b1ab?api-version=2019-05-01" + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/8101348f-606d-49ba-b055-98b46134de1f?api-version=2019-05-01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -921,10 +867,10 @@ "14999" ], "x-ms-correlation-request-id": [ - "270eb837-c44a-4782-beb5-d99c6c91351e" + "2ac50845-1164-44c6-923a-a0ba770dc258" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201820Z:270eb837-c44a-4782-beb5-d99c6c91351e" + "WESTCENTRALUS:20191104T212426Z:2ac50845-1164-44c6-923a-a0ba770dc258" ], "X-Content-Type-Options": [ "nosniff" @@ -940,15 +886,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/227dea6c-cb0c-4023-91a0-33ffee48b1ab?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzLzIyN2RlYTZjLWNiMGMtNDAyMy05MWEwLTMzZmZlZTQ4YjFhYj9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/8101348f-606d-49ba-b055-98b46134de1f?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzLzgxMDEzNDhmLTYwNmQtNDliYS1iMDU1LTk4YjQ2MTM0ZGUxZj9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -957,7 +903,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:18:30 GMT" + "Mon, 04 Nov 2019 21:24:35 GMT" ], "Pragma": [ "no-cache" @@ -966,10 +912,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "cc05f549-d4df-447b-ab79-c44f4e08d3bb" + "0ea01da7-bafb-4734-b6f6-88888be259fe" ], "x-ms-client-request-id": [ - "59099c21-0321-4111-b327-bca4dba32443" + "1e91c3f2-ab35-4fc6-8e12-1ea604c4097e" ], "OData-Version": [ "4.0" @@ -984,13 +930,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11992" ], "x-ms-correlation-request-id": [ - "1e5fc650-f06d-4ee2-b67b-fbff2b9a32c0" + "ff2e2a25-09c2-4f57-a6fe-c5c2287df954" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201830Z:1e5fc650-f06d-4ee2-b67b-fbff2b9a32c0" + "WESTCENTRALUS:20191104T212436Z:ff2e2a25-09c2-4f57-a6fe-c5c2287df954" ], "X-Content-Type-Options": [ "nosniff" @@ -1009,15 +955,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/227dea6c-cb0c-4023-91a0-33ffee48b1ab?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzLzIyN2RlYTZjLWNiMGMtNDAyMy05MWEwLTMzZmZlZTQ4YjFhYj9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/8101348f-606d-49ba-b055-98b46134de1f?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzLzgxMDEzNDhmLTYwNmQtNDliYS1iMDU1LTk4YjQ2MTM0ZGUxZj9hcGktdmVyc2lvbj0yMDE5LTA1LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -1026,7 +972,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:18:40 GMT" + "Mon, 04 Nov 2019 21:24:46 GMT" ], "Pragma": [ "no-cache" @@ -1035,10 +981,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "84fbf7c3-b3ec-414d-b32b-a226e01e8e90" + "1d8e0a69-4222-4110-9cf6-285c947c0268" ], "x-ms-client-request-id": [ - "17274778-aa92-420e-897e-4986f00fcc75" + "35a6b6cf-d2c1-4fdb-a19e-d086f8a5863d" ], "OData-Version": [ "4.0" @@ -1053,13 +999,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11991" ], "x-ms-correlation-request-id": [ - "540381eb-7334-45dd-963f-e4b5a3f6fc99" + "e1231b27-5586-447b-b020-9f169b606bc8" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201840Z:540381eb-7334-45dd-963f-e4b5a3f6fc99" + "WESTCENTRALUS:20191104T212446Z:e1231b27-5586-447b-b020-9f169b606bc8" ], "X-Content-Type-Options": [ "nosniff" @@ -1078,15 +1024,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965/providers/Microsoft.Network/frontdooroperationresults/227dea6c-cb0c-4023-91a0-33ffee48b1ab/frontdoorresults/frontDoor4720?api-version=2019-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzLzIyN2RlYTZjLWNiMGMtNDAyMy05MWEwLTMzZmZlZTQ4YjFhYi9mcm9udGRvb3JyZXN1bHRzL2Zyb250RG9vcjQ3MjA/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913/providers/Microsoft.Network/frontdooroperationresults/8101348f-606d-49ba-b055-98b46134de1f/frontdoorresults/frontDoor3016?api-version=2019-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9mcm9udGRvb3JvcGVyYXRpb25yZXN1bHRzLzgxMDEzNDhmLTYwNmQtNDliYS1iMDU1LTk4YjQ2MTM0ZGUxZi9mcm9udGRvb3JyZXN1bHRzL2Zyb250RG9vcjMwMTY/YXBpLXZlcnNpb249MjAxOS0wNS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -1095,7 +1041,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:18:41 GMT" + "Mon, 04 Nov 2019 21:24:46 GMT" ], "Pragma": [ "no-cache" @@ -1104,10 +1050,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "e9713b66-86e9-4254-8dd6-03d6d3bee616" + "30defd92-fbe6-4433-9894-e5758a4ae252" ], "x-ms-client-request-id": [ - "1585e8ae-57e1-4776-b90a-c53746e67232" + "396a2035-c3ae-41e9-b314-a64362f26784" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1119,13 +1065,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11990" ], "x-ms-correlation-request-id": [ - "83ddcb6e-66cf-4504-860f-0caedf243b0f" + "0f7ffe31-eecd-4121-94c9-cd4f7d8f7521" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201841Z:83ddcb6e-66cf-4504-860f-0caedf243b0f" + "WESTCENTRALUS:20191104T212447Z:0f7ffe31-eecd-4121-94c9-cd4f7d8f7521" ], "X-Content-Type-Options": [ "nosniff" @@ -1138,13 +1084,13 @@ "StatusCode": 204 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup7965?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA3OTY1P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup9913?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA5OTEzP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1a428adc-cd1d-4183-ae66-93f051420856" + "03e9b3d7-cb4e-41f7-bdae-c4f7d4889b09" ], "accept-language": [ "en-US" @@ -1152,7 +1098,7 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, @@ -1161,85 +1107,28 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:18:42 GMT" + "Mon, 04 Nov 2019 21:24:49 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNzk2NS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQOTkxMy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "e77b1a38-9b91-4270-9c22-41f6534bb230" - ], - "x-ms-correlation-request-id": [ - "e77b1a38-9b91-4270-9c22-41f6534bb230" - ], - "x-ms-routing-request-id": [ - "WESTUS:20190822T201842Z:e77b1a38-9b91-4270-9c22-41f6534bb230" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNzk2NS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU56azJOUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 22 Aug 2019 20:18:57 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNzk2NS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "14998" ], "x-ms-request-id": [ - "11c8e90e-8e81-4917-889f-fdae2d79f648" + "e0544563-80f8-4637-b219-875b6c6ee27f" ], "x-ms-correlation-request-id": [ - "11c8e90e-8e81-4917-889f-fdae2d79f648" + "e0544563-80f8-4637-b219-875b6c6ee27f" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201857Z:11c8e90e-8e81-4917-889f-fdae2d79f648" + "WESTCENTRALUS:20191104T212449Z:e0544563-80f8-4637-b219-875b6c6ee27f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1258,15 +1147,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNzk2NS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU56azJOUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQOTkxMy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU9Ua3hNeTFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, @@ -1275,28 +1164,28 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:19:12 GMT" + "Mon, 04 Nov 2019 21:25:03 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNzk2NS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQOTkxMy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" + "11988" ], "x-ms-request-id": [ - "749a3ddf-c82f-42a6-b1ee-322d87193a3a" + "dc3b92da-1507-4472-a3bb-97896e773846" ], "x-ms-correlation-request-id": [ - "749a3ddf-c82f-42a6-b1ee-322d87193a3a" + "dc3b92da-1507-4472-a3bb-97896e773846" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201913Z:749a3ddf-c82f-42a6-b1ee-322d87193a3a" + "WESTCENTRALUS:20191104T212504Z:dc3b92da-1507-4472-a3bb-97896e773846" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1315,15 +1204,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNzk2NS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU56azJOUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQOTkxMy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU9Ua3hNeTFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, @@ -1332,28 +1221,28 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:19:28 GMT" + "Mon, 04 Nov 2019 21:25:19 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNzk2NS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQOTkxMy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" + "11987" ], "x-ms-request-id": [ - "fd224815-e37e-4979-aa92-a36c1102d71f" + "b9a2056c-fb20-41d5-85a7-c52ba77c472b" ], "x-ms-correlation-request-id": [ - "fd224815-e37e-4979-aa92-a36c1102d71f" + "b9a2056c-fb20-41d5-85a7-c52ba77c472b" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201928Z:fd224815-e37e-4979-aa92-a36c1102d71f" + "WESTCENTRALUS:20191104T212519Z:b9a2056c-fb20-41d5-85a7-c52ba77c472b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1372,15 +1261,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNzk2NS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU56azJOUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQOTkxMy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU9Ua3hNeTFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, @@ -1389,22 +1278,22 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:19:42 GMT" + "Mon, 04 Nov 2019 21:25:34 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" + "11986" ], "x-ms-request-id": [ - "5ec511d5-d371-4793-a51b-01c00f9548e6" + "4309065e-5bfe-461b-babf-dee20934dcc0" ], "x-ms-correlation-request-id": [ - "5ec511d5-d371-4793-a51b-01c00f9548e6" + "4309065e-5bfe-461b-babf-dee20934dcc0" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201943Z:5ec511d5-d371-4793-a51b-01c00f9548e6" + "WESTCENTRALUS:20191104T212534Z:4309065e-5bfe-461b-babf-dee20934dcc0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1423,15 +1312,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNzk2NS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU56azJOUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQOTkxMy1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU9Ua3hNeTFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, @@ -1440,22 +1329,22 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:19:42 GMT" + "Mon, 04 Nov 2019 21:25:34 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11985" ], "x-ms-request-id": [ - "4d5b5196-5b4c-429c-bf34-0e9c71cc6c27" + "e0380406-c755-4ab8-bffb-9617e867ed08" ], "x-ms-correlation-request-id": [ - "4d5b5196-5b4c-429c-bf34-0e9c71cc6c27" + "e0380406-c755-4ab8-bffb-9617e867ed08" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201943Z:4d5b5196-5b4c-429c-bf34-0e9c71cc6c27" + "WESTCENTRALUS:20191104T212534Z:e0380406-c755-4ab8-bffb-9617e867ed08" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1476,10 +1365,10 @@ ], "Names": { "CreateResourceGroup": [ - "FrontDoorResourceGroup7965" + "FrontDoorResourceGroup9913" ], "FrontDoorCRUDTest": [ - "frontDoor4720" + "frontDoor3016" ] }, "Variables": { diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/SessionRecords/FrontDoorTests/WAFCRUDTest.json b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/SessionRecords/FrontDoorTests/WAFCRUDTest.json index 04e3bcc0054c..e325757f8578 100644 --- a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/SessionRecords/FrontDoorTests/WAFCRUDTest.json +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/SessionRecords/FrontDoorTests/WAFCRUDTest.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup3059?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXAzMDU5P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup4281?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA0MjgxP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "8d0e7f36-c737-4375-b935-24d0c9b23b0e" + "6b27d423-1cf7-45de-ad96-f5f1bb1f8ee7" ], "accept-language": [ "en-US" @@ -15,7 +15,7 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ], "Content-Type": [ @@ -30,7 +30,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:19:45 GMT" + "Mon, 04 Nov 2019 21:25:38 GMT" ], "Pragma": [ "no-cache" @@ -39,13 +39,13 @@ "1199" ], "x-ms-request-id": [ - "5a74e80d-d744-4fd1-8644-cd3070099a74" + "15e52168-7ac5-4207-bfff-17a1494c73ac" ], "x-ms-correlation-request-id": [ - "5a74e80d-d744-4fd1-8644-cd3070099a74" + "15e52168-7ac5-4207-bfff-17a1494c73ac" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201946Z:5a74e80d-d744-4fd1-8644-cd3070099a74" + "WESTCENTRALUS:20191104T212538Z:15e52168-7ac5-4207-bfff-17a1494c73ac" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup3059\",\r\n \"name\": \"FrontDoorResourceGroup3059\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup4281\",\r\n \"name\": \"FrontDoorResourceGroup4281\",\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/FrontDoorResourceGroup3059/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/policy8734?api-version=2019-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXAzMDU5L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9Gcm9udERvb3JXZWJBcHBsaWNhdGlvbkZpcmV3YWxsUG9saWNpZXMvcG9saWN5ODczND9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup4281/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/policy1168?api-version=2019-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA0MjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9Gcm9udERvb3JXZWJBcHBsaWNhdGlvbkZpcmV3YWxsUG9saWNpZXMvcG9saWN5MTE2OD9hcGktdmVyc2lvbj0yMDE5LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": \"http://www.bing.com\",\r\n \"customBlockResponseStatusCode\": 403,\r\n \"customBlockResponseBody\": \"PGh0bWw+SGVsbG88L2h0bWw+\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"priority\": 1,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"RateLimitRule\",\r\n \"rateLimitThreshold\": 1000,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"operator\": \"IPMatch\",\r\n \"matchValue\": [\r\n \"192.168.1.0/24\",\r\n \"10.0.0.0/24\"\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\": \"Disabled\",\r\n \"action\": \"Redirect\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": \"http://www.bing.com\",\r\n \"customBlockResponseStatusCode\": 403,\r\n \"customBlockResponseBody\": \"PGh0bWw+SGVsbG88L2h0bWw+\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"priority\": 1,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"RateLimitRule\",\r\n \"rateLimitThreshold\": 1000,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"operator\": \"IPMatch\",\r\n \"matchValue\": [\r\n \"192.168.1.0/24\",\r\n \"10.0.0.0/24\"\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\": \"RequestBodyPostArgNames\",\r\n \"selectorMatchOperator\": \"Contains\",\r\n \"selector\": \"query\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"User-Agent\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Disabled\",\r\n \"action\": \"Redirect\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"search\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "5a8640b9-79f7-4344-8842-eb4771af54e5" + "8655f863-77eb-4fc1-8336-d7c6a444aea5" ], "accept-language": [ "en-US" @@ -81,14 +81,14 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "1411" + "2139" ] }, "ResponseHeaders": { @@ -96,7 +96,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:19:50 GMT" + "Mon, 04 Nov 2019 21:25:41 GMT" ], "Pragma": [ "no-cache" @@ -105,10 +105,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "e3575f4a-cff0-4813-a5b4-536e5f945492" + "56676392-6d3c-4bed-ada6-0c5291cad062" ], "x-ms-client-request-id": [ - "5a8640b9-79f7-4344-8842-eb4771af54e5" + "8655f863-77eb-4fc1-8336-d7c6a444aea5" ], "OData-Version": [ "4.0" @@ -126,16 +126,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "a08edccf-bc8a-4eef-90bf-e5b083233de6" + "efe895d4-130c-46fd-b5da-237ffa99ac6e" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201950Z:a08edccf-bc8a-4eef-90bf-e5b083233de6" + "WESTCENTRALUS:20191104T212541Z:efe895d4-130c-46fd-b5da-237ffa99ac6e" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "1608" + "2156" ], "Content-Type": [ "application/json; odata.metadata=minimal" @@ -144,17 +144,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"policy8734\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup3059/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/policy8734\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": \"http://www.bing.com\",\r\n \"customBlockResponseStatusCode\": 403,\r\n \"customBlockResponseBody\": \"PGh0bWw+SGVsbG88L2h0bWw+\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"ruleType\": \"RateLimitRule\",\r\n \"rateLimitDurationInMinutes\": null,\r\n \"rateLimitThreshold\": 1000,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"selector\": null,\r\n \"operator\": \"IPMatch\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"192.168.1.0/24\",\r\n \"10.0.0.0/24\"\r\n ],\r\n \"transforms\": []\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\": \"Disabled\",\r\n \"action\": \"Redirect\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": []\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"policy1168\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup4281/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/policy1168\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": \"http://www.bing.com\",\r\n \"customBlockResponseStatusCode\": 403,\r\n \"customBlockResponseBody\": \"PGh0bWw+SGVsbG88L2h0bWw+\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"ruleType\": \"RateLimitRule\",\r\n \"rateLimitDurationInMinutes\": null,\r\n \"rateLimitThreshold\": 1000,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"selector\": null,\r\n \"operator\": \"IPMatch\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"192.168.1.0/24\",\r\n \"10.0.0.0/24\"\r\n ],\r\n \"transforms\": []\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\": \"Disabled\",\r\n \"action\": \"Redirect\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"search\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"User-Agent\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"RequestBodyPostArgNames\",\r\n \"selectorMatchOperator\": \"Contains\",\r\n \"selector\": \"query\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": []\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup3059/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/policy8734?api-version=2019-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXAzMDU5L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9Gcm9udERvb3JXZWJBcHBsaWNhdGlvbkZpcmV3YWxsUG9saWNpZXMvcG9saWN5ODczND9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup4281/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/policy1168?api-version=2019-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA0MjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9Gcm9udERvb3JXZWJBcHBsaWNhdGlvbkZpcmV3YWxsUG9saWNpZXMvcG9saWN5MTE2OD9hcGktdmVyc2lvbj0yMDE5LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": \"http://www.bing.com\",\r\n \"customBlockResponseStatusCode\": 403,\r\n \"customBlockResponseBody\": \"PGh0bWw+SGVsbG88L2h0bWw+\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"priority\": 1,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"RateLimitRule\",\r\n \"rateLimitThreshold\": 1000,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"operator\": \"IPMatch\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"192.168.1.0/24\",\r\n \"10.0.0.0/24\"\r\n ],\r\n \"transforms\": []\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n },\r\n {\r\n \"name\": \"rule2\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"operator\": \"GeoMatch\",\r\n \"matchValue\": [\r\n \"US\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Allow\"\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\": \"Disabled\",\r\n \"action\": \"Redirect\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": \"http://www.bing.com\",\r\n \"customBlockResponseStatusCode\": 403,\r\n \"customBlockResponseBody\": \"PGh0bWw+SGVsbG88L2h0bWw+\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"priority\": 1,\r\n \"enabledState\": \"Enabled\",\r\n \"ruleType\": \"RateLimitRule\",\r\n \"rateLimitThreshold\": 1000,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"operator\": \"IPMatch\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"192.168.1.0/24\",\r\n \"10.0.0.0/24\"\r\n ],\r\n \"transforms\": []\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n },\r\n {\r\n \"name\": \"rule2\",\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"operator\": \"GeoMatch\",\r\n \"matchValue\": [\r\n \"US\"\r\n ]\r\n }\r\n ],\r\n \"action\": \"Allow\"\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\": \"RequestBodyPostArgNames\",\r\n \"selectorMatchOperator\": \"Contains\",\r\n \"selector\": \"query\"\r\n }\r\n ],\r\n \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": \"SQLI\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"User-Agent\"\r\n }\r\n ],\r\n \"rules\": [\r\n {\r\n \"ruleId\": \"942100\",\r\n \"enabledState\": \"Disabled\",\r\n \"action\": \"Redirect\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"search\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"Global\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "caeae5e0-a565-4e08-a4ba-874af284b261" + "eabcbf99-90a3-47f6-8d2b-0262774cfc0f" ], "accept-language": [ "en-US" @@ -162,14 +162,14 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "1858" + "2586" ] }, "ResponseHeaders": { @@ -177,7 +177,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:19:51 GMT" + "Mon, 04 Nov 2019 21:25:42 GMT" ], "Pragma": [ "no-cache" @@ -186,10 +186,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "5226af70-c4a4-4349-864f-99fc315142a1" + "893dbfd4-021f-43c7-8cc6-3435a036573b" ], "x-ms-client-request-id": [ - "caeae5e0-a565-4e08-a4ba-874af284b261" + "eabcbf99-90a3-47f6-8d2b-0262774cfc0f" ], "OData-Version": [ "4.0" @@ -207,16 +207,16 @@ "1198" ], "x-ms-correlation-request-id": [ - "725f1a06-da4f-44f0-818a-e9c240219bed" + "c200ccec-8563-4520-a3e0-586c995ac26b" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201951Z:725f1a06-da4f-44f0-818a-e9c240219bed" + "WESTCENTRALUS:20191104T212542Z:c200ccec-8563-4520-a3e0-586c995ac26b" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "2053" + "2601" ], "Content-Type": [ "application/json; odata.metadata=minimal" @@ -225,17 +225,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"policy8734\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup3059/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/policy8734\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": \"http://www.bing.com\",\r\n \"customBlockResponseStatusCode\": 403,\r\n \"customBlockResponseBody\": \"PGh0bWw+SGVsbG88L2h0bWw+\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"ruleType\": \"RateLimitRule\",\r\n \"rateLimitDurationInMinutes\": null,\r\n \"rateLimitThreshold\": 1000,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"selector\": null,\r\n \"operator\": \"IPMatch\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"192.168.1.0/24\",\r\n \"10.0.0.0/24\"\r\n ],\r\n \"transforms\": []\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n },\r\n {\r\n \"name\": \"rule2\",\r\n \"enabledState\": null,\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": null,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"selector\": null,\r\n \"operator\": \"GeoMatch\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"US\"\r\n ],\r\n \"transforms\": []\r\n }\r\n ],\r\n \"action\": \"Allow\"\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\": \"Disabled\",\r\n \"action\": \"Redirect\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": []\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"policy1168\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup4281/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/policy1168\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": \"http://www.bing.com\",\r\n \"customBlockResponseStatusCode\": 403,\r\n \"customBlockResponseBody\": \"PGh0bWw+SGVsbG88L2h0bWw+\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"ruleType\": \"RateLimitRule\",\r\n \"rateLimitDurationInMinutes\": null,\r\n \"rateLimitThreshold\": 1000,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"selector\": null,\r\n \"operator\": \"IPMatch\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"192.168.1.0/24\",\r\n \"10.0.0.0/24\"\r\n ],\r\n \"transforms\": []\r\n }\r\n ],\r\n \"action\": \"Block\"\r\n },\r\n {\r\n \"name\": \"rule2\",\r\n \"enabledState\": null,\r\n \"priority\": 2,\r\n \"ruleType\": \"MatchRule\",\r\n \"rateLimitDurationInMinutes\": null,\r\n \"rateLimitThreshold\": null,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"selector\": null,\r\n \"operator\": \"GeoMatch\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"US\"\r\n ],\r\n \"transforms\": []\r\n }\r\n ],\r\n \"action\": \"Allow\"\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\": \"Disabled\",\r\n \"action\": \"Redirect\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"search\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"User-Agent\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"RequestBodyPostArgNames\",\r\n \"selectorMatchOperator\": \"Contains\",\r\n \"selector\": \"query\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": []\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup3059/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/policy8734?api-version=2019-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXAzMDU5L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9Gcm9udERvb3JXZWJBcHBsaWNhdGlvbkZpcmV3YWxsUG9saWNpZXMvcG9saWN5ODczND9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup4281/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/policy1168?api-version=2019-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA0MjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9Gcm9udERvb3JXZWJBcHBsaWNhdGlvbkZpcmV3YWxsUG9saWNpZXMvcG9saWN5MTE2OD9hcGktdmVyc2lvbj0yMDE5LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "eb34a8d2-99b8-4d28-9293-6754fee0846c" + "6d764473-1201-4dea-9a59-74782d8a9050" ], "accept-language": [ "en-US" @@ -243,7 +243,7 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -252,7 +252,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:19:50 GMT" + "Mon, 04 Nov 2019 21:25:41 GMT" ], "Pragma": [ "no-cache" @@ -261,10 +261,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "44b0e0c1-c61d-46ba-b7c7-d6f0b3386272" + "d299e96a-51af-4a83-b025-8b7f578266f5" ], "x-ms-client-request-id": [ - "eb34a8d2-99b8-4d28-9293-6754fee0846c" + "6d764473-1201-4dea-9a59-74782d8a9050" ], "OData-Version": [ "4.0" @@ -282,16 +282,16 @@ "11999" ], "x-ms-correlation-request-id": [ - "e43f7f2c-5140-49b5-b240-f09d170690bb" + "33d830b2-1944-473d-9eda-507d4b412dce" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201950Z:e43f7f2c-5140-49b5-b240-f09d170690bb" + "WESTCENTRALUS:20191104T212541Z:33d830b2-1944-473d-9eda-507d4b412dce" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "1608" + "2156" ], "Content-Type": [ "application/json; odata.metadata=minimal; odata.streaming=true" @@ -300,17 +300,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"policy8734\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup3059/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/policy8734\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": \"http://www.bing.com\",\r\n \"customBlockResponseStatusCode\": 403,\r\n \"customBlockResponseBody\": \"PGh0bWw+SGVsbG88L2h0bWw+\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"ruleType\": \"RateLimitRule\",\r\n \"rateLimitDurationInMinutes\": null,\r\n \"rateLimitThreshold\": 1000,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"selector\": null,\r\n \"operator\": \"IPMatch\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"192.168.1.0/24\",\r\n \"10.0.0.0/24\"\r\n ],\r\n \"transforms\": []\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\": \"Disabled\",\r\n \"action\": \"Redirect\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": []\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"policy1168\",\r\n \"id\": \"/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup4281/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/policy1168\",\r\n \"type\": \"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"policySettings\": {\r\n \"enabledState\": \"Enabled\",\r\n \"mode\": \"Prevention\",\r\n \"redirectUrl\": \"http://www.bing.com\",\r\n \"customBlockResponseStatusCode\": 403,\r\n \"customBlockResponseBody\": \"PGh0bWw+SGVsbG88L2h0bWw+\"\r\n },\r\n \"customRules\": {\r\n \"rules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"enabledState\": \"Enabled\",\r\n \"priority\": 1,\r\n \"ruleType\": \"RateLimitRule\",\r\n \"rateLimitDurationInMinutes\": null,\r\n \"rateLimitThreshold\": 1000,\r\n \"matchConditions\": [\r\n {\r\n \"matchVariable\": \"RemoteAddr\",\r\n \"selector\": null,\r\n \"operator\": \"IPMatch\",\r\n \"negateCondition\": false,\r\n \"matchValue\": [\r\n \"192.168.1.0/24\",\r\n \"10.0.0.0/24\"\r\n ],\r\n \"transforms\": []\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\": \"Disabled\",\r\n \"action\": \"Redirect\",\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"QueryStringArgNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"search\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"Equals\",\r\n \"selector\": \"User-Agent\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": \"RequestBodyPostArgNames\",\r\n \"selectorMatchOperator\": \"Contains\",\r\n \"selector\": \"query\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"frontendEndpointLinks\": []\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup3059/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/policy8734?api-version=2019-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXAzMDU5L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9Gcm9udERvb3JXZWJBcHBsaWNhdGlvbkZpcmV3YWxsUG9saWNpZXMvcG9saWN5ODczND9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup4281/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/policy1168?api-version=2019-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA0MjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9Gcm9udERvb3JXZWJBcHBsaWNhdGlvbkZpcmV3YWxsUG9saWNpZXMvcG9saWN5MTE2OD9hcGktdmVyc2lvbj0yMDE5LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9e970234-9e51-43c8-881f-843419acaef7" + "ee3a1a06-cad9-4e93-84b1-5cd423f003a5" ], "accept-language": [ "en-US" @@ -318,7 +318,7 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -327,7 +327,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:19:52 GMT" + "Mon, 04 Nov 2019 21:25:43 GMT" ], "Pragma": [ "no-cache" @@ -336,13 +336,13 @@ "gateway" ], "x-ms-request-id": [ - "ef89f63b-945c-4dfc-8b2f-a20cb2433249" + "f2d30ba6-2da1-4e2e-9c66-90090f300d14" ], "x-ms-correlation-request-id": [ - "ef89f63b-945c-4dfc-8b2f-a20cb2433249" + "f2d30ba6-2da1-4e2e-9c66-90090f300d14" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201952Z:ef89f63b-945c-4dfc-8b2f-a20cb2433249" + "WESTCENTRALUS:20191104T212544Z:f2d30ba6-2da1-4e2e-9c66-90090f300d14" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -360,17 +360,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Network/frontdoorWebApplicationFirewallPolicies/policy8734' under resource group 'FrontDoorResourceGroup3059' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Network/frontdoorWebApplicationFirewallPolicies/policy1168' under resource group 'FrontDoorResourceGroup4281' was not found.\"\r\n }\r\n}", "StatusCode": 404 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup3059/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/policy8734?api-version=2019-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXAzMDU5L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9Gcm9udERvb3JXZWJBcHBsaWNhdGlvbkZpcmV3YWxsUG9saWNpZXMvcG9saWN5ODczND9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourceGroups/FrontDoorResourceGroup4281/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/policy1168?api-version=2019-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA0MjgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9Gcm9udERvb3JXZWJBcHBsaWNhdGlvbkZpcmV3YWxsUG9saWNpZXMvcG9saWN5MTE2OD9hcGktdmVyc2lvbj0yMDE5LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "68cf37fe-25f8-4f27-a846-8f6802088caa" + "065bc90f-bf76-43d5-86d0-6372e799c313" ], "accept-language": [ "en-US" @@ -378,7 +378,7 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" ] }, @@ -387,7 +387,7 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:19:52 GMT" + "Mon, 04 Nov 2019 21:25:43 GMT" ], "Pragma": [ "no-cache" @@ -396,10 +396,10 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "2cedcab9-5372-470d-8dd9-252016213c00" + "53e29c57-8fd2-408e-91c5-c28f9b17bada" ], "x-ms-client-request-id": [ - "68cf37fe-25f8-4f27-a846-8f6802088caa" + "065bc90f-bf76-43d5-86d0-6372e799c313" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -414,10 +414,10 @@ "14999" ], "x-ms-correlation-request-id": [ - "af4bf325-3330-4c2b-8a6e-a9471b1f373d" + "ebd9546c-cc66-409f-8aa3-7f7d8c357597" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201952Z:af4bf325-3330-4c2b-8a6e-a9471b1f373d" + "WESTCENTRALUS:20191104T212544Z:ebd9546c-cc66-409f-8aa3-7f7d8c357597" ], "X-Content-Type-Options": [ "nosniff" @@ -430,13 +430,13 @@ "StatusCode": 204 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup3059?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXAzMDU5P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/resourcegroups/FrontDoorResourceGroup4281?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA0MjgxP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1c148f6e-fcc2-4c09-aa1b-7e8299085cfa" + "e52db125-4e5b-4706-b8fd-d0f23f72180b" ], "accept-language": [ "en-US" @@ -444,7 +444,7 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, @@ -453,13 +453,13 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:19:53 GMT" + "Mon, 04 Nov 2019 21:25:44 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQMzA1OS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNDI4MS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" ], "Retry-After": [ "15" @@ -468,13 +468,13 @@ "14999" ], "x-ms-request-id": [ - "44c53bac-f803-4875-8b48-04fea18029a9" + "d62fd846-fe5d-428d-8149-ba3b39b346dd" ], "x-ms-correlation-request-id": [ - "44c53bac-f803-4875-8b48-04fea18029a9" + "d62fd846-fe5d-428d-8149-ba3b39b346dd" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T201953Z:44c53bac-f803-4875-8b48-04fea18029a9" + "WESTCENTRALUS:20191104T212545Z:d62fd846-fe5d-428d-8149-ba3b39b346dd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -493,15 +493,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQMzA1OS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU16QTFPUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNDI4MS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU5ESTRNUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, @@ -510,13 +510,13 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:20:08 GMT" + "Mon, 04 Nov 2019 21:25:59 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQMzA1OS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNDI4MS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" ], "Retry-After": [ "15" @@ -525,13 +525,13 @@ "11999" ], "x-ms-request-id": [ - "3c20b08c-8935-4802-a59b-f78df323ebca" + "987bc466-8717-4140-b9ce-fc07888967fb" ], "x-ms-correlation-request-id": [ - "3c20b08c-8935-4802-a59b-f78df323ebca" + "987bc466-8717-4140-b9ce-fc07888967fb" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T202008Z:3c20b08c-8935-4802-a59b-f78df323ebca" + "WESTCENTRALUS:20191104T212600Z:987bc466-8717-4140-b9ce-fc07888967fb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -550,15 +550,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQMzA1OS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU16QTFPUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNDI4MS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU5ESTRNUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, @@ -567,13 +567,13 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:20:22 GMT" + "Mon, 04 Nov 2019 21:26:14 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQMzA1OS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNDI4MS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" ], "Retry-After": [ "15" @@ -582,13 +582,13 @@ "11998" ], "x-ms-request-id": [ - "7e846173-792c-4b44-9173-df638ad421ee" + "7b0085f0-b5c8-4d7e-9fa9-2661ebc414d8" ], "x-ms-correlation-request-id": [ - "7e846173-792c-4b44-9173-df638ad421ee" + "7b0085f0-b5c8-4d7e-9fa9-2661ebc414d8" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T202023Z:7e846173-792c-4b44-9173-df638ad421ee" + "WESTCENTRALUS:20191104T212615Z:7b0085f0-b5c8-4d7e-9fa9-2661ebc414d8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -607,15 +607,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQMzA1OS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU16QTFPUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNDI4MS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU5ESTRNUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, @@ -624,22 +624,28 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:20:38 GMT" + "Mon, 04 Nov 2019 21:26:30 GMT" ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNDI4MS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], "x-ms-request-id": [ - "77ad2400-1813-44d9-a129-f20495c25f40" + "e112988a-8d73-4578-920a-f29c13155d6e" ], "x-ms-correlation-request-id": [ - "77ad2400-1813-44d9-a129-f20495c25f40" + "e112988a-8d73-4578-920a-f29c13155d6e" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T202038Z:77ad2400-1813-44d9-a129-f20495c25f40" + "WESTCENTRALUS:20191104T212630Z:e112988a-8d73-4578-920a-f29c13155d6e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -655,18 +661,18 @@ ] }, "ResponseBody": "", - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQMzA1OS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU16QTFPUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNDI4MS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU5ESTRNUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18960.", + "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, @@ -675,22 +681,130 @@ "no-cache" ], "Date": [ - "Thu, 22 Aug 2019 20:20:38 GMT" + "Mon, 04 Nov 2019 21:26:45 GMT" ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNDI4MS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], "x-ms-request-id": [ - "4fc08562-4a1e-44eb-804a-42031c6d6cf4" + "f1873b93-4a32-4f42-b20d-8ee56ae27d3b" + ], + "x-ms-correlation-request-id": [ + "f1873b93-4a32-4f42-b20d-8ee56ae27d3b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T212645Z:f1873b93-4a32-4f42-b20d-8ee56ae27d3b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNDI4MS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU5ESTRNUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 21:27:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "c1905b7a-0e3f-4671-9524-0c0c63bc92a2" + ], + "x-ms-correlation-request-id": [ + "c1905b7a-0e3f-4671-9524-0c0c63bc92a2" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T212700Z:c1905b7a-0e3f-4671-9524-0c0c63bc92a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/47f4bc68-6fe4-43a2-be8b-dfd0e290efa2/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNDI4MS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDdmNGJjNjgtNmZlNC00M2EyLWJlOGItZGZkMGUyOTBlZmEyL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU5ESTRNUzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 21:27:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "f9f63da9-bbc9-41aa-b65c-a2b46cfa7039" ], "x-ms-correlation-request-id": [ - "4fc08562-4a1e-44eb-804a-42031c6d6cf4" + "f9f63da9-bbc9-41aa-b65c-a2b46cfa7039" ], "x-ms-routing-request-id": [ - "WESTUS:20190822T202038Z:4fc08562-4a1e-44eb-804a-42031c6d6cf4" + "WESTCENTRALUS:20191104T212700Z:f9f63da9-bbc9-41aa-b65c-a2b46cfa7039" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -711,10 +825,10 @@ ], "Names": { "CreateResourceGroup": [ - "FrontDoorResourceGroup3059" + "FrontDoorResourceGroup4281" ], "WAFCRUDTest": [ - "policy8734" + "policy1168" ] }, "Variables": { diff --git a/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/SessionRecords/NetworkExperimentTests/NetworkExperimentCRUDTest.json b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/SessionRecords/NetworkExperimentTests/NetworkExperimentCRUDTest.json new file mode 100644 index 000000000000..8dd387c97a2e --- /dev/null +++ b/sdk/frontdoor/Microsoft.Azure.Management.FrontDoor/tests/SessionRecords/NetworkExperimentTests/NetworkExperimentCRUDTest.json @@ -0,0 +1,1222 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourcegroups/FrontDoorResourceGroup6200?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "19abc325-01f2-450d-bdce-df71f9841266" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:55:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "8a48c5c7-5dad-470b-8f7f-61692629e484" + ], + "x-ms-correlation-request-id": [ + "8a48c5c7-5dad-470b-8f7f-61692629e484" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235523Z:8a48c5c7-5dad-470b-8f7f-61692629e484" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "205" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200\",\r\n \"name\": \"FrontDoorResourceGroup6200\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/NetworkExperimentProfiles/networkExperimentProfile9390?api-version=2019-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9OZXR3b3JrRXhwZXJpbWVudFByb2ZpbGVzL25ldHdvcmtFeHBlcmltZW50UHJvZmlsZTkzOTA/YXBpLXZlcnNpb249MjAxOS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"EastUS\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9998abf3-255a-4599-846d-d9a6034a91e9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "148" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:55:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "720aa392-b559-4373-b69b-b98197bff064" + ], + "x-ms-client-request-id": [ + "9998abf3-255a-4599-846d-d9a6034a91e9" + ], + "OData-Version": [ + "4.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "6ad70b71-6bc3-4895-a73b-c26681b1a355" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235551Z:6ad70b71-6bc3-4895-a73b-c26681b1a355" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "429" + ], + "Content-Type": [ + "application/json; odata.metadata=minimal" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"networkExperimentProfile9390\",\r\n \"id\": \"/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourcegroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/networkexperimentprofiles/networkExperimentProfile9390\",\r\n \"type\": \"Microsoft.Network/networkexperimentprofiles\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"EastUs\",\r\n \"properties\": {\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/NetworkExperimentProfiles/networkExperimentProfile9390?api-version=2019-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9OZXR3b3JrRXhwZXJpbWVudFByb2ZpbGVzL25ldHdvcmtFeHBlcmltZW50UHJvZmlsZTkzOTA/YXBpLXZlcnNpb249MjAxOS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resourceState\": \"Enabled\",\r\n \"enabledState\": \"Enabled\"\r\n },\r\n \"location\": \"EastUs\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "55eea94e-67a2-47fb-9312-44b493ad94f0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "181" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:56:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "ee1ffc7e-5334-40d2-b442-3ad8072c11e8" + ], + "x-ms-client-request-id": [ + "55eea94e-67a2-47fb-9312-44b493ad94f0" + ], + "OData-Version": [ + "4.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "c39de983-941a-45f0-8cac-9ba268294688" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235630Z:c39de983-941a-45f0-8cac-9ba268294688" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "429" + ], + "Content-Type": [ + "application/json; odata.metadata=minimal" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"networkExperimentProfile9390\",\r\n \"id\": \"/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourcegroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/networkexperimentprofiles/networkExperimentProfile9390\",\r\n \"type\": \"Microsoft.Network/networkexperimentprofiles\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"location\": \"EastUs\",\r\n \"properties\": {\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/NetworkExperimentProfiles/networkExperimentProfile9390?api-version=2019-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9OZXR3b3JrRXhwZXJpbWVudFByb2ZpbGVzL25ldHdvcmtFeHBlcmltZW50UHJvZmlsZTkzOTA/YXBpLXZlcnNpb249MjAxOS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:56:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "226e981c-c1c2-4c2d-921a-6bbd42a8da5f" + ], + "x-ms-client-request-id": [ + "3968f738-df84-4123-9a2a-47d3d016c0e3" + ], + "OData-Version": [ + "4.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "0f1b65f2-644f-4e6f-8788-ef51f980357f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235622Z:0f1b65f2-644f-4e6f-8788-ef51f980357f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "429" + ], + "Content-Type": [ + "application/json; odata.metadata=minimal; odata.streaming=true" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"networkExperimentProfile9390\",\r\n \"id\": \"/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourcegroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/networkexperimentprofiles/networkExperimentProfile9390\",\r\n \"type\": \"Microsoft.Network/networkexperimentprofiles\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"EastUs\",\r\n \"properties\": {\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/NetworkExperimentProfiles/networkExperimentProfile9390?api-version=2019-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9OZXR3b3JrRXhwZXJpbWVudFByb2ZpbGVzL25ldHdvcmtFeHBlcmltZW50UHJvZmlsZTkzOTA/YXBpLXZlcnNpb249MjAxOS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5a4c0121-3a47-4fc0-b36f-9a956e8c460a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:56:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "396b7156-364e-4f3e-b093-44daa66287b3" + ], + "x-ms-client-request-id": [ + "5a4c0121-3a47-4fc0-b36f-9a956e8c460a" + ], + "OData-Version": [ + "4.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "f5b87cc9-fad8-4103-8e2f-5030d53ce81b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235623Z:f5b87cc9-fad8-4103-8e2f-5030d53ce81b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "429" + ], + "Content-Type": [ + "application/json; odata.metadata=minimal; odata.streaming=true" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"networkExperimentProfile9390\",\r\n \"id\": \"/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourcegroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/networkexperimentprofiles/networkExperimentProfile9390\",\r\n \"type\": \"Microsoft.Network/networkexperimentprofiles\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"EastUs\",\r\n \"properties\": {\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/NetworkExperimentProfiles/networkExperimentProfile9390?api-version=2019-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9OZXR3b3JrRXhwZXJpbWVudFByb2ZpbGVzL25ldHdvcmtFeHBlcmltZW50UHJvZmlsZTkzOTA/YXBpLXZlcnNpb249MjAxOS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ce12cd3-1c3b-4e7c-ae96-e49841d56125" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:57:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "5e633576-21e3-4a5c-bfbc-c227c20aa973" + ], + "x-ms-correlation-request-id": [ + "5e633576-21e3-4a5c-bfbc-c227c20aa973" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235726Z:5e633576-21e3-4a5c-bfbc-c227c20aa973" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "202" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Network/networkExperimentProfiles/networkExperimentProfile9390' under resource group 'FrontDoorResourceGroup6200' was not found.\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/NetworkExperimentProfiles/networkExperimentProfile9390/Experiments/experiment5550?api-version=2019-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9OZXR3b3JrRXhwZXJpbWVudFByb2ZpbGVzL25ldHdvcmtFeHBlcmltZW50UHJvZmlsZTkzOTAvRXhwZXJpbWVudHMvZXhwZXJpbWVudDU1NTA/YXBpLXZlcnNpb249MjAxOS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"endpointA\": {\r\n \"name\": \"bing\",\r\n \"endpoint\": \"www.bing.com\"\r\n },\r\n \"endpointB\": {\r\n \"name\": \"contoso\",\r\n \"endpoint\": \"www.constoso.com\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "43503b45-0434-44cc-b6bd-f1f7f745cc6d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "204" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:56:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "a14e0cc7-7798-4fc5-86d2-f11f77174495" + ], + "x-ms-client-request-id": [ + "43503b45-0434-44cc-b6bd-f1f7f745cc6d" + ], + "OData-Version": [ + "4.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "1bca754d-168e-4676-8574-db07b6e9164e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235636Z:1bca754d-168e-4676-8574-db07b6e9164e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "653" + ], + "Content-Type": [ + "application/json; odata.metadata=minimal" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"experiment5550\",\r\n \"id\": \"/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourcegroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/networkexperimentprofiles/networkExperimentProfile9390/experiments/experiment5550\",\r\n \"type\": \"Microsoft.Network/networkexperimentprofiles/experiments\",\r\n \"properties\": {\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\",\r\n \"description\": null,\r\n \"scriptFileUri\": \"https://fpc.msedge.net/client/v2/cd0c3805eefc4cdeadc36da2a14bf20a/ab.min.js\",\r\n \"status\": null,\r\n \"endpointA\": {\r\n \"name\": \"bing\",\r\n \"endpoint\": \"www.bing.com\"\r\n },\r\n \"endpointB\": {\r\n \"name\": \"contoso\",\r\n \"endpoint\": \"www.constoso.com\"\r\n }\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/NetworkExperimentProfiles/networkExperimentProfile9390/Experiments/experiment5550?api-version=2019-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9OZXR3b3JrRXhwZXJpbWVudFByb2ZpbGVzL25ldHdvcmtFeHBlcmltZW50UHJvZmlsZTkzOTAvRXhwZXJpbWVudHMvZXhwZXJpbWVudDU1NTA/YXBpLXZlcnNpb249MjAxOS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:57:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "b351536d-8060-4126-ab63-583ed8f4c826" + ], + "x-ms-client-request-id": [ + "a63ba8a5-020b-4ab8-b9c7-a5d0b0881502" + ], + "OData-Version": [ + "4.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "f2c0b6da-2151-47db-a35c-361f1dce9229" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235707Z:f2c0b6da-2151-47db-a35c-361f1dce9229" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "658" + ], + "Content-Type": [ + "application/json; odata.metadata=minimal; odata.streaming=true" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"experiment5550\",\r\n \"id\": \"/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourcegroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/networkexperimentprofiles/networkExperimentProfile9390/experiments/experiment5550\",\r\n \"type\": \"Microsoft.Network/networkexperimentprofiles/experiments\",\r\n \"properties\": {\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\",\r\n \"description\": null,\r\n \"scriptFileUri\": \"https://fpc.msedge.net/client/v2/cd0c3805eefc4cdeadc36da2a14bf20a/ab.min.js\",\r\n \"status\": \"Enabled\",\r\n \"endpointA\": {\r\n \"name\": \"bing\",\r\n \"endpoint\": \"www.bing.com\"\r\n },\r\n \"endpointB\": {\r\n \"name\": \"contoso\",\r\n \"endpoint\": \"www.constoso.com\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/NetworkExperimentProfiles/networkExperimentProfile9390/Experiments/experiment5550?api-version=2019-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9OZXR3b3JrRXhwZXJpbWVudFByb2ZpbGVzL25ldHdvcmtFeHBlcmltZW50UHJvZmlsZTkzOTAvRXhwZXJpbWVudHMvZXhwZXJpbWVudDU1NTA/YXBpLXZlcnNpb249MjAxOS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3c94184d-0ba2-4526-9db7-d6ff63b076e1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:57:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "18367f7a-039e-4bb6-9c8c-9b7506262fe0" + ], + "x-ms-client-request-id": [ + "3c94184d-0ba2-4526-9db7-d6ff63b076e1" + ], + "OData-Version": [ + "4.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "315bb832-8c83-42e5-9be7-faefdc36bae2" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235707Z:315bb832-8c83-42e5-9be7-faefdc36bae2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "658" + ], + "Content-Type": [ + "application/json; odata.metadata=minimal; odata.streaming=true" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"experiment5550\",\r\n \"id\": \"/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourcegroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/networkexperimentprofiles/networkExperimentProfile9390/experiments/experiment5550\",\r\n \"type\": \"Microsoft.Network/networkexperimentprofiles/experiments\",\r\n \"properties\": {\r\n \"enabledState\": \"Enabled\",\r\n \"resourceState\": \"Enabled\",\r\n \"description\": null,\r\n \"scriptFileUri\": \"https://fpc.msedge.net/client/v2/cd0c3805eefc4cdeadc36da2a14bf20a/ab.min.js\",\r\n \"status\": \"Enabled\",\r\n \"endpointA\": {\r\n \"name\": \"bing\",\r\n \"endpoint\": \"www.bing.com\"\r\n },\r\n \"endpointB\": {\r\n \"name\": \"contoso\",\r\n \"endpoint\": \"www.constoso.com\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/NetworkExperimentProfiles/networkExperimentProfile9390/Experiments/experiment5550?api-version=2019-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9OZXR3b3JrRXhwZXJpbWVudFByb2ZpbGVzL25ldHdvcmtFeHBlcmltZW50UHJvZmlsZTkzOTAvRXhwZXJpbWVudHMvZXhwZXJpbWVudDU1NTA/YXBpLXZlcnNpb249MjAxOS0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "15739c87-0a7d-4b7c-ab89-bb15a95d405c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:57:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "0bc6071e-de73-43c9-a4ae-d5202b153342" + ], + "x-ms-client-request-id": [ + "15739c87-0a7d-4b7c-ab89-bb15a95d405c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "fe1bf4d8-e16a-44a1-8d5f-432a26eac070" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235715Z:fe1bf4d8-e16a-44a1-8d5f-432a26eac070" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Language": [ + "en-US" + ], + "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/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/NetworkExperimentProfiles/networkExperimentProfile9390/Experiments/experiment5550?api-version=2019-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9OZXR3b3JrRXhwZXJpbWVudFByb2ZpbGVzL25ldHdvcmtFeHBlcmltZW50UHJvZmlsZTkzOTAvRXhwZXJpbWVudHMvZXhwZXJpbWVudDU1NTA/YXBpLXZlcnNpb249MjAxOS0xMS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cb70b29e-1caa-4125-99e5-df58af2962ff" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:57:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "d683d7ab-ec93-43d4-b7d6-b3ecd563eca8" + ], + "x-ms-client-request-id": [ + "cb70b29e-1caa-4125-99e5-df58af2962ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "0096ba2a-0b88-4c3c-a332-090f9d899600" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235715Z:0096ba2a-0b88-4c3c-a332-090f9d899600" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourceGroups/FrontDoorResourceGroup6200/providers/Microsoft.Network/NetworkExperimentProfiles/networkExperimentProfile9390?api-version=2019-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlR3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9OZXR3b3JrRXhwZXJpbWVudFByb2ZpbGVzL25ldHdvcmtFeHBlcmltZW50UHJvZmlsZTkzOTA/YXBpLXZlcnNpb249MjAxOS0xMS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d89bcc51-b968-45d8-972f-076ef9b207c4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.FrontDoor.FrontDoorManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:57:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "45fd0637-45ac-42d6-8128-f80a7039e87a" + ], + "x-ms-client-request-id": [ + "d89bcc51-b968-45d8-972f-076ef9b207c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "7e9e3bb2-7f8e-4ad0-9b9c-7155e18d3d84" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235726Z:7e9e3bb2-7f8e-4ad0-9b9c-7155e18d3d84" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/resourcegroups/FrontDoorResourceGroup6200?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L3Jlc291cmNlZ3JvdXBzL0Zyb250RG9vclJlc291cmNlR3JvdXA2MjAwP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a03f1c21-db6b-42c9-bba7-df65cb8c86c7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:57:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNjIwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "2e633ac5-253d-4d9c-bfd1-27287362d98e" + ], + "x-ms-correlation-request-id": [ + "2e633ac5-253d-4d9c-bfd1-27287362d98e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235727Z:2e633ac5-253d-4d9c-bfd1-27287362d98e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNjIwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU5qSXdNQzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:57:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNjIwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "5dd32772-cc08-424e-af5a-e734773f48a4" + ], + "x-ms-correlation-request-id": [ + "5dd32772-cc08-424e-af5a-e734773f48a4" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235742Z:5dd32772-cc08-424e-af5a-e734773f48a4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNjIwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU5qSXdNQzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:57:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNjIwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "4c54cf5a-5f2a-4346-9c2d-67fe79d931ce" + ], + "x-ms-correlation-request-id": [ + "4c54cf5a-5f2a-4346-9c2d-67fe79d931ce" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235758Z:4c54cf5a-5f2a-4346-9c2d-67fe79d931ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNjIwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU5qSXdNQzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:58:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNjIwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "a03d3797-c651-487a-ad0a-6a36dd2e2b87" + ], + "x-ms-correlation-request-id": [ + "a03d3797-c651-487a-ad0a-6a36dd2e2b87" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235813Z:a03d3797-c651-487a-ad0a-6a36dd2e2b87" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNjIwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU5qSXdNQzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:58:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "4095d630-6e8a-4415-8668-83b66c7be5bc" + ], + "x-ms-correlation-request-id": [ + "4095d630-6e8a-4415-8668-83b66c7be5bc" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235828Z:4095d630-6e8a-4415-8668-83b66c7be5bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0cfb6008-a4e8-4f8a-933c-725911bc52f9/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1GUk9OVERPT1JSRVNPVVJDRUdST1VQNjIwMC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGNmYjYwMDgtYTRlOC00ZjhhLTkzM2MtNzI1OTExYmM1MmY5L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFHVWs5T1ZFUlBUMUpTUlZOUFZWSkRSVWRTVDFWUU5qSXdNQzFYUlZOVVZWTWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkluZGxjM1IxY3lKOT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Nov 2019 23:58:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "dd89961e-a047-4398-bd62-7327e878ba66" + ], + "x-ms-correlation-request-id": [ + "dd89961e-a047-4398-bd62-7327e878ba66" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20191104T235828Z:dd89961e-a047-4398-bd62-7327e878ba66" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "FrontDoorResourceGroup6200" + ], + "NetworkExperimentCRUDTest": [ + "networkExperimentProfile9390", + "experiment5550" + ] + }, + "Variables": { + "SubscriptionId": "0cfb6008-a4e8-4f8a-933c-725911bc52f9" + } +} \ No newline at end of file