From 32fe9a241a44dd22bf21ff7857b004d3411411fe Mon Sep 17 00:00:00 2001 From: Heath Stewart Date: Mon, 24 Jul 2023 02:44:56 -0700 Subject: [PATCH] Remove deprecated Traffic Manager SDK (#37679) Relates to #37660 --- .../AzSdk.RP.props | 7 - ...rosoft.Azure.Management.TrafficManager.sln | 40 - ...fficManager-ReRecordAfterCRUpdate.playlist | 1 - .../src/Generated/EndpointsOperations.cs | 960 ---------- .../EndpointsOperationsExtensions.cs | 253 --- .../GeographicHierarchiesOperations.cs | 228 --- ...ographicHierarchiesOperationsExtensions.cs | 55 - .../src/Generated/HeatMapOperations.cs | 293 --- .../Generated/HeatMapOperationsExtensions.cs | 83 - .../src/Generated/IEndpointsOperations.cs | 163 -- .../IGeographicHierarchiesOperations.cs | 47 - .../src/Generated/IHeatMapOperations.cs | 61 - .../src/Generated/IProfilesOperations.cs | 206 -- .../ITrafficManagerManagementClient.cs | 99 - ...TrafficManagerUserMetricsKeysOperations.cs | 87 - .../Models/AllowedEndpointRecordType.cs | 109 -- .../AllowedEndpointRecordTypeConverter.cs | 54 - ...erRelativeDnsNameAvailabilityParameters.cs | 61 - .../Generated/Models/DeleteOperationResult.cs | 52 - .../src/Generated/Models/DnsConfig.cs | 82 - .../src/Generated/Models/Endpoint.cs | 219 --- .../Generated/Models/EndpointMonitorStatus.cs | 113 -- .../Models/EndpointMonitorStatusConverter.cs | 53 - .../EndpointPropertiesCustomHeadersItem.cs | 61 - .../Models/EndpointPropertiesSubnetsItem.cs | 71 - .../src/Generated/Models/EndpointStatus.cs | 105 - .../Models/EndpointStatusConverter.cs | 53 - .../src/Generated/Models/HeatMapEndpoint.cs | 62 - .../src/Generated/Models/HeatMapModel.cs | 93 - .../src/Generated/Models/MonitorConfig.cs | 143 -- .../Models/MonitorConfigCustomHeadersItem.cs | 61 - ...nitorConfigExpectedStatusCodeRangesItem.cs | 61 - .../src/Generated/Models/MonitorProtocol.cs | 107 -- .../Models/MonitorProtocolConverter.cs | 53 - .../src/Generated/Models/Page.cs | 53 - .../src/Generated/Models/Profile.cs | 143 -- .../Generated/Models/ProfileMonitorStatus.cs | 111 -- .../Models/ProfileMonitorStatusConverter.cs | 53 - .../src/Generated/Models/ProfileStatus.cs | 105 - .../Models/ProfileStatusConverter.cs | 53 - .../src/Generated/Models/ProxyResource.cs | 49 - .../src/Generated/Models/QueryExperience.cs | 83 - .../src/Generated/Models/Region.cs | 72 - .../src/Generated/Models/Resource.cs | 73 - .../src/Generated/Models/TrackedResource.cs | 68 - .../src/Generated/Models/TrafficFlow.cs | 85 - .../TrafficManagerGeographicHierarchy.cs | 66 - .../Models/TrafficManagerNameAvailability.cs | 91 - .../Generated/Models/TrafficRoutingMethod.cs | 113 -- .../Models/TrafficRoutingMethodConverter.cs | 53 - .../Models/TrafficViewEnrollmentStatus.cs | 105 - .../TrafficViewEnrollmentStatusConverter.cs | 55 - .../src/Generated/Models/UserMetricsModel.cs | 61 - .../src/Generated/ProfilesOperations.cs | 1444 -------------- .../Generated/ProfilesOperationsExtensions.cs | 307 --- .../SdkInfo_TrafficManagerManagementClient.cs | 42 - .../TrafficManagerManagementClient.cs | 383 ---- ...TrafficManagerUserMetricsKeysOperations.cs | 589 ------ ...agerUserMetricsKeysOperationsExtensions.cs | 111 -- ...oft.Azure.Management.TrafficManager.csproj | 21 - .../src/Properties/AssemblyInfo.cs | 20 - .../src/generate.ps1 | 1 - .../Helpers/RecordedDelegatingHandler.cs | 91 - .../tests/Helpers/ResourceGroupHelper.cs | 78 - .../tests/Helpers/TrafficManagerHelper.cs | 287 --- ...ure.Management.TrafficManager.Tests.csproj | 26 - .../tests/Properties/AssemblyInfo.cs | 39 - .../ScenarioTests/EndpointScenarioTests.cs | 73 - .../GeographicHierarchyScenarioTests.cs | 49 - .../ScenarioTests/ProfileScenarioTests.cs | 453 ----- .../CrudEndpointGeographicProfile.json | 602 ------ .../CrudEndpointsFullCycle.json | 464 ----- .../GetDefaultGeographicHierarchy.json | 72 - .../CrudProfileFullCycle.json | 666 ------- .../CrudProfileWithCustomHeaders.json | 736 ------- .../CrudProfileWithCustomSubnets.json | 803 -------- .../CrudProfileWithMinChildEndpointsIp.json | 871 --------- .../CrudProfileWithMultiValue.json | 870 --------- ...rudProfileWithoutEndpoints_ThenUpdate.json | 602 ------ .../CrudProfile_FastFailoverSettings.json | 831 -------- .../EmptyHeatMapData.json | 336 ---- .../ProfileScenarioTests/ListAllProfiles.json | 1694 ----------------- .../ListProfilesByResourceGroup.json | 1694 ----------------- .../NameAvailabilityTest_NameAvailable.json | 82 - ...NameAvailabilityTest_NameNotAvailable.json | 212 --- ...rafficViewEnableDisableQuerySizeScope.json | 599 ------ 86 files changed, 20836 deletions(-) delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/AzSdk.RP.props delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/Microsoft.Azure.Management.TrafficManager.sln delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/TrafficManager-ReRecordAfterCRUpdate.playlist delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/EndpointsOperations.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/EndpointsOperationsExtensions.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/GeographicHierarchiesOperations.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/GeographicHierarchiesOperationsExtensions.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/HeatMapOperations.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/HeatMapOperationsExtensions.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IEndpointsOperations.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IGeographicHierarchiesOperations.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IHeatMapOperations.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IProfilesOperations.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ITrafficManagerManagementClient.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ITrafficManagerUserMetricsKeysOperations.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/AllowedEndpointRecordType.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/AllowedEndpointRecordTypeConverter.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/CheckTrafficManagerRelativeDnsNameAvailabilityParameters.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/DeleteOperationResult.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/DnsConfig.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Endpoint.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointMonitorStatus.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointMonitorStatusConverter.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointPropertiesCustomHeadersItem.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointPropertiesSubnetsItem.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointStatus.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointStatusConverter.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/HeatMapEndpoint.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/HeatMapModel.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfig.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfigCustomHeadersItem.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfigExpectedStatusCodeRangesItem.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorProtocol.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorProtocolConverter.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Page.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Profile.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileMonitorStatus.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileMonitorStatusConverter.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileStatus.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileStatusConverter.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProxyResource.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/QueryExperience.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Region.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Resource.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrackedResource.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficFlow.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficManagerGeographicHierarchy.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficManagerNameAvailability.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficRoutingMethod.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficRoutingMethodConverter.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficViewEnrollmentStatus.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficViewEnrollmentStatusConverter.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/UserMetricsModel.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ProfilesOperations.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ProfilesOperationsExtensions.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/SdkInfo_TrafficManagerManagementClient.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerManagementClient.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerUserMetricsKeysOperations.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerUserMetricsKeysOperationsExtensions.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Microsoft.Azure.Management.TrafficManager.csproj delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Properties/AssemblyInfo.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/generate.ps1 delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/RecordedDelegatingHandler.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/ResourceGroupHelper.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/TrafficManagerHelper.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Microsoft.Azure.Management.TrafficManager.Tests.csproj delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Properties/AssemblyInfo.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/EndpointScenarioTests.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/GeographicHierarchyScenarioTests.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/ProfileScenarioTests.cs delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/EndpointScenarioTests/CrudEndpointGeographicProfile.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/EndpointScenarioTests/CrudEndpointsFullCycle.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/GeographicHierarchyScenarioTests/GetDefaultGeographicHierarchy.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileFullCycle.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithCustomHeaders.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithCustomSubnets.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithMinChildEndpointsIp.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithMultiValue.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithoutEndpoints_ThenUpdate.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfile_FastFailoverSettings.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/EmptyHeatMapData.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/ListAllProfiles.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/ListProfilesByResourceGroup.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/NameAvailabilityTest_NameAvailable.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/NameAvailabilityTest_NameNotAvailable.json delete mode 100644 sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/TrafficViewEnableDisableQuerySizeScope.json diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/AzSdk.RP.props b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/AzSdk.RP.props deleted file mode 100644 index cdcc600672527..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/AzSdk.RP.props +++ /dev/null @@ -1,7 +0,0 @@ - - - - Network_2018-08-01; - $(PackageTags);$(CommonTags);$(AzureApiTag); - - \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/Microsoft.Azure.Management.TrafficManager.sln b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/Microsoft.Azure.Management.TrafficManager.sln deleted file mode 100644 index 5141b05bbd3df..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/Microsoft.Azure.Management.TrafficManager.sln +++ /dev/null @@ -1,40 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26228.4 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.TrafficManager.Tests", "tests\Microsoft.Azure.Management.TrafficManager.Tests.csproj", "{80985D1D-BD35-44B0-BAB4-9701DE4CBE0C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.TrafficManager", "src\Microsoft.Azure.Management.TrafficManager.csproj", "{3BA6DCBB-CE96-4DD3-9AEF-5DCC6E696727}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Test.HttpRecorder", "..\..\mgmtcommon\TestFramework\Microsoft.Azure.Test.HttpRecorder\Microsoft.Azure.Test.HttpRecorder.csproj", "{874E6949-CA8D-46E5-86F1-1DA764DACB75}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Rest.ClientRuntime.Azure.TestFramework", "..\..\mgmtcommon\TestFramework\ClientRuntime.Azure.TestFramework\Microsoft.Rest.ClientRuntime.Azure.TestFramework.csproj", "{1E844680-2051-400E-B047-B53F6480C26D}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {80985D1D-BD35-44B0-BAB4-9701DE4CBE0C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {80985D1D-BD35-44B0-BAB4-9701DE4CBE0C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {80985D1D-BD35-44B0-BAB4-9701DE4CBE0C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {80985D1D-BD35-44B0-BAB4-9701DE4CBE0C}.Release|Any CPU.Build.0 = Release|Any CPU - {3BA6DCBB-CE96-4DD3-9AEF-5DCC6E696727}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3BA6DCBB-CE96-4DD3-9AEF-5DCC6E696727}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3BA6DCBB-CE96-4DD3-9AEF-5DCC6E696727}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3BA6DCBB-CE96-4DD3-9AEF-5DCC6E696727}.Release|Any CPU.Build.0 = Release|Any CPU - {874E6949-CA8D-46E5-86F1-1DA764DACB75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {874E6949-CA8D-46E5-86F1-1DA764DACB75}.Debug|Any CPU.Build.0 = Debug|Any CPU - {874E6949-CA8D-46E5-86F1-1DA764DACB75}.Release|Any CPU.ActiveCfg = Release|Any CPU - {874E6949-CA8D-46E5-86F1-1DA764DACB75}.Release|Any CPU.Build.0 = Release|Any CPU - {1E844680-2051-400E-B047-B53F6480C26D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1E844680-2051-400E-B047-B53F6480C26D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1E844680-2051-400E-B047-B53F6480C26D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1E844680-2051-400E-B047-B53F6480C26D}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/TrafficManager-ReRecordAfterCRUpdate.playlist b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/TrafficManager-ReRecordAfterCRUpdate.playlist deleted file mode 100644 index d173627a758eb..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/TrafficManager-ReRecordAfterCRUpdate.playlist +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/EndpointsOperations.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/EndpointsOperations.cs deleted file mode 100644 index 150f806d61c1c..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/EndpointsOperations.cs +++ /dev/null @@ -1,960 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - 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; - - /// - /// EndpointsOperations operations. - /// - internal partial class EndpointsOperations : IServiceOperations, IEndpointsOperations - { - /// - /// Initializes a new instance of the EndpointsOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal EndpointsOperations(TrafficManagerManagementClient client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - Client = client; - } - - /// - /// Gets a reference to the TrafficManagerManagementClient - /// - public TrafficManagerManagementClient Client { get; private set; } - - /// - /// Update a Traffic Manager endpoint. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint to - /// be updated. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be updated. - /// - /// - /// The name of the Traffic Manager endpoint to be updated. - /// - /// - /// The Traffic Manager endpoint parameters supplied to the Update 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointType, string endpointName, Endpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (profileName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); - } - if (endpointType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "endpointType"); - } - if (endpointName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "endpointName"); - } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("endpointType", endpointType); - tracingParameters.Add("endpointName", endpointName); - tracingParameters.Add("parameters", parameters); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Update", 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/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{endpointType}", System.Uri.EscapeDataString(endpointType)); - _url = _url.Replace("{endpointName}", System.Uri.EscapeDataString(endpointName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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 Traffic Manager endpoint. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint. - /// - /// - /// The name of the Traffic Manager 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> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointType, string endpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (profileName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); - } - if (endpointType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "endpointType"); - } - if (endpointName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "endpointName"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("endpointType", endpointType); - tracingParameters.Add("endpointName", endpointName); - 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/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{endpointType}", System.Uri.EscapeDataString(endpointType)); - _url = _url.Replace("{endpointName}", System.Uri.EscapeDataString(endpointName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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; - } - - /// - /// Create or update a Traffic Manager endpoint. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint to - /// be created or updated. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be created or updated. - /// - /// - /// The name of the Traffic Manager endpoint to be created or updated. - /// - /// - /// The Traffic Manager endpoint parameters supplied to the CreateOrUpdate - /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointType, string endpointName, Endpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (profileName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); - } - if (endpointType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "endpointType"); - } - if (endpointName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "endpointName"); - } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("endpointType", endpointType); - tracingParameters.Add("endpointName", endpointName); - tracingParameters.Add("parameters", parameters); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{endpointType}", System.Uri.EscapeDataString(endpointType)); - _url = _url.Replace("{endpointName}", System.Uri.EscapeDataString(endpointName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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(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 != 201) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Deletes a Traffic Manager endpoint. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint to - /// be deleted. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be deleted. - /// - /// - /// The name of the Traffic Manager endpoint to be deleted. - /// - /// - /// 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> DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointType, string endpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (profileName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); - } - if (endpointType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "endpointType"); - } - if (endpointName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "endpointName"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("endpointType", endpointType); - tracingParameters.Add("endpointName", endpointName); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Delete", 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/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{endpointType}", System.Uri.EscapeDataString(endpointType)); - _url = _url.Replace("{endpointName}", System.Uri.EscapeDataString(endpointName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 != 200 && (int)_statusCode != 204) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/EndpointsOperationsExtensions.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/EndpointsOperationsExtensions.cs deleted file mode 100644 index e9608c4c8c244..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/EndpointsOperationsExtensions.cs +++ /dev/null @@ -1,253 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for EndpointsOperations. - /// - public static partial class EndpointsOperationsExtensions - { - /// - /// Update a Traffic Manager endpoint. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint to - /// be updated. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be updated. - /// - /// - /// The name of the Traffic Manager endpoint to be updated. - /// - /// - /// The Traffic Manager endpoint parameters supplied to the Update operation. - /// - public static Endpoint Update(this IEndpointsOperations operations, string resourceGroupName, string profileName, string endpointType, string endpointName, Endpoint parameters) - { - return operations.UpdateAsync(resourceGroupName, profileName, endpointType, endpointName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Update a Traffic Manager endpoint. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint to - /// be updated. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be updated. - /// - /// - /// The name of the Traffic Manager endpoint to be updated. - /// - /// - /// The Traffic Manager endpoint parameters supplied to the Update operation. - /// - /// - /// The cancellation token. - /// - public static async Task UpdateAsync(this IEndpointsOperations operations, string resourceGroupName, string profileName, string endpointType, string endpointName, Endpoint parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, endpointType, endpointName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Gets a Traffic Manager endpoint. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint. - /// - /// - /// The name of the Traffic Manager endpoint. - /// - public static Endpoint Get(this IEndpointsOperations operations, string resourceGroupName, string profileName, string endpointType, string endpointName) - { - return operations.GetAsync(resourceGroupName, profileName, endpointType, endpointName).GetAwaiter().GetResult(); - } - - /// - /// Gets a Traffic Manager endpoint. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint. - /// - /// - /// The name of the Traffic Manager endpoint. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this IEndpointsOperations operations, string resourceGroupName, string profileName, string endpointType, string endpointName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, profileName, endpointType, endpointName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Create or update a Traffic Manager endpoint. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint to - /// be created or updated. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be created or updated. - /// - /// - /// The name of the Traffic Manager endpoint to be created or updated. - /// - /// - /// The Traffic Manager endpoint parameters supplied to the CreateOrUpdate - /// operation. - /// - public static Endpoint CreateOrUpdate(this IEndpointsOperations operations, string resourceGroupName, string profileName, string endpointType, string endpointName, Endpoint parameters) - { - return operations.CreateOrUpdateAsync(resourceGroupName, profileName, endpointType, endpointName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Create or update a Traffic Manager endpoint. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint to - /// be created or updated. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be created or updated. - /// - /// - /// The name of the Traffic Manager endpoint to be created or updated. - /// - /// - /// The Traffic Manager endpoint parameters supplied to the CreateOrUpdate - /// operation. - /// - /// - /// The cancellation token. - /// - public static async Task CreateOrUpdateAsync(this IEndpointsOperations operations, string resourceGroupName, string profileName, string endpointType, string endpointName, Endpoint parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, endpointType, endpointName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes a Traffic Manager endpoint. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint to - /// be deleted. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be deleted. - /// - /// - /// The name of the Traffic Manager endpoint to be deleted. - /// - public static DeleteOperationResult Delete(this IEndpointsOperations operations, string resourceGroupName, string profileName, string endpointType, string endpointName) - { - return operations.DeleteAsync(resourceGroupName, profileName, endpointType, endpointName).GetAwaiter().GetResult(); - } - - /// - /// Deletes a Traffic Manager endpoint. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint to - /// be deleted. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be deleted. - /// - /// - /// The name of the Traffic Manager endpoint to be deleted. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteAsync(this IEndpointsOperations operations, string resourceGroupName, string profileName, string endpointType, string endpointName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, profileName, endpointType, endpointName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/GeographicHierarchiesOperations.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/GeographicHierarchiesOperations.cs deleted file mode 100644 index 426d13e7ad839..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/GeographicHierarchiesOperations.cs +++ /dev/null @@ -1,228 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager -{ - 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; - - /// - /// GeographicHierarchiesOperations operations. - /// - internal partial class GeographicHierarchiesOperations : IServiceOperations, IGeographicHierarchiesOperations - { - /// - /// Initializes a new instance of the GeographicHierarchiesOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal GeographicHierarchiesOperations(TrafficManagerManagementClient client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - Client = client; - } - - /// - /// Gets a reference to the TrafficManagerManagementClient - /// - public TrafficManagerManagementClient Client { get; private set; } - - /// - /// Gets the default Geographic Hierarchy used by the Geographic traffic - /// routing method. - /// - /// - /// 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> GetDefaultWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetDefault", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Network/trafficManagerGeographicHierarchies/default").ToString(); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/GeographicHierarchiesOperationsExtensions.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/GeographicHierarchiesOperationsExtensions.cs deleted file mode 100644 index 8114d1450db48..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/GeographicHierarchiesOperationsExtensions.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for GeographicHierarchiesOperations. - /// - public static partial class GeographicHierarchiesOperationsExtensions - { - /// - /// Gets the default Geographic Hierarchy used by the Geographic traffic - /// routing method. - /// - /// - /// The operations group for this extension method. - /// - public static TrafficManagerGeographicHierarchy GetDefault(this IGeographicHierarchiesOperations operations) - { - return operations.GetDefaultAsync().GetAwaiter().GetResult(); - } - - /// - /// Gets the default Geographic Hierarchy used by the Geographic traffic - /// routing method. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async Task GetDefaultAsync(this IGeographicHierarchiesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetDefaultWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/HeatMapOperations.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/HeatMapOperations.cs deleted file mode 100644 index 62e1d6614f2c9..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/HeatMapOperations.cs +++ /dev/null @@ -1,293 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - 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; - - /// - /// HeatMapOperations operations. - /// - internal partial class HeatMapOperations : IServiceOperations, IHeatMapOperations - { - /// - /// Initializes a new instance of the HeatMapOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal HeatMapOperations(TrafficManagerManagementClient client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - Client = client; - } - - /// - /// Gets a reference to the TrafficManagerManagementClient - /// - public TrafficManagerManagementClient Client { get; private set; } - - /// - /// Gets latest heatmap for Traffic Manager profile. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The top left latitude,longitude pair of the rectangular viewport to query - /// for. - /// - /// - /// The bottom right latitude,longitude pair of the rectangular viewport to - /// query for. - /// - /// - /// 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 profileName, IList topLeft = default(IList), IList botRight = default(IList), 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 (profileName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); - } - if (topLeft != null) - { - if (topLeft.Count > 2) - { - throw new ValidationException(ValidationRules.MaxItems, "topLeft", 2); - } - if (topLeft.Count < 2) - { - throw new ValidationException(ValidationRules.MinItems, "topLeft", 2); - } - } - if (botRight != null) - { - if (botRight.Count > 2) - { - throw new ValidationException(ValidationRules.MaxItems, "botRight", 2); - } - if (botRight.Count < 2) - { - throw new ValidationException(ValidationRules.MinItems, "botRight", 2); - } - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - string heatMapType = "default"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("heatMapType", heatMapType); - tracingParameters.Add("topLeft", topLeft); - tracingParameters.Add("botRight", botRight); - 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/trafficmanagerprofiles/{profileName}/heatMaps/{heatMapType}").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("{heatMapType}", System.Uri.EscapeDataString(heatMapType)); - List _queryParameters = new List(); - if (topLeft != null) - { - _queryParameters.Add(string.Format("topLeft={0}", System.Uri.EscapeDataString(string.Join(",", topLeft)))); - } - if (botRight != null) - { - _queryParameters.Add(string.Format("botRight={0}", System.Uri.EscapeDataString(string.Join(",", botRight)))); - } - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/HeatMapOperationsExtensions.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/HeatMapOperationsExtensions.cs deleted file mode 100644 index d43983221f827..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/HeatMapOperationsExtensions.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for HeatMapOperations. - /// - public static partial class HeatMapOperationsExtensions - { - /// - /// Gets latest heatmap for Traffic Manager profile. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The top left latitude,longitude pair of the rectangular viewport to query - /// for. - /// - /// - /// The bottom right latitude,longitude pair of the rectangular viewport to - /// query for. - /// - public static HeatMapModel Get(this IHeatMapOperations operations, string resourceGroupName, string profileName, IList topLeft = default(IList), IList botRight = default(IList)) - { - return operations.GetAsync(resourceGroupName, profileName, topLeft, botRight).GetAwaiter().GetResult(); - } - - /// - /// Gets latest heatmap for Traffic Manager profile. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager endpoint. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The top left latitude,longitude pair of the rectangular viewport to query - /// for. - /// - /// - /// The bottom right latitude,longitude pair of the rectangular viewport to - /// query for. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this IHeatMapOperations operations, string resourceGroupName, string profileName, IList topLeft = default(IList), IList botRight = default(IList), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, profileName, topLeft, botRight, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IEndpointsOperations.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IEndpointsOperations.cs deleted file mode 100644 index b23f65fbea158..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IEndpointsOperations.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// EndpointsOperations operations. - /// - public partial interface IEndpointsOperations - { - /// - /// Update a Traffic Manager endpoint. - /// - /// - /// The name of the resource group containing the Traffic Manager - /// endpoint to be updated. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be updated. - /// - /// - /// The name of the Traffic Manager endpoint to be updated. - /// - /// - /// The Traffic Manager endpoint parameters supplied to the Update - /// 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointType, string endpointName, Endpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Gets a Traffic Manager endpoint. - /// - /// - /// The name of the resource group containing the Traffic Manager - /// endpoint. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint. - /// - /// - /// The name of the Traffic Manager 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> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointType, string endpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Create or update a Traffic Manager endpoint. - /// - /// - /// The name of the resource group containing the Traffic Manager - /// endpoint to be created or updated. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be created or updated. - /// - /// - /// The name of the Traffic Manager endpoint to be created or updated. - /// - /// - /// The Traffic Manager endpoint parameters supplied to the - /// CreateOrUpdate 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointType, string endpointName, Endpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes a Traffic Manager endpoint. - /// - /// - /// The name of the resource group containing the Traffic Manager - /// endpoint to be deleted. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The type of the Traffic Manager endpoint to be deleted. - /// - /// - /// The name of the Traffic Manager endpoint to be deleted. - /// - /// - /// 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> DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, string endpointType, string endpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IGeographicHierarchiesOperations.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IGeographicHierarchiesOperations.cs deleted file mode 100644 index cff406a92f71e..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IGeographicHierarchiesOperations.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// GeographicHierarchiesOperations operations. - /// - public partial interface IGeographicHierarchiesOperations - { - /// - /// Gets the default Geographic Hierarchy used by the Geographic - /// traffic routing method. - /// - /// - /// 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> GetDefaultWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IHeatMapOperations.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IHeatMapOperations.cs deleted file mode 100644 index 9dca02036de55..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IHeatMapOperations.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// HeatMapOperations operations. - /// - public partial interface IHeatMapOperations - { - /// - /// Gets latest heatmap for Traffic Manager profile. - /// - /// - /// The name of the resource group containing the Traffic Manager - /// endpoint. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The top left latitude,longitude pair of the rectangular viewport to - /// query for. - /// - /// - /// The bottom right latitude,longitude pair of the rectangular - /// viewport to query for. - /// - /// - /// 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, IList topLeft = default(IList), IList botRight = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IProfilesOperations.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IProfilesOperations.cs deleted file mode 100644 index b8e36e0d82cea..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/IProfilesOperations.cs +++ /dev/null @@ -1,206 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// ProfilesOperations operations. - /// - public partial interface IProfilesOperations - { - /// - /// Checks the availability of a Traffic Manager Relative DNS name. - /// - /// - /// The name of the resource. - /// - /// - /// The type of the 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> CheckTrafficManagerRelativeDnsNameAvailabilityWithHttpMessagesAsync(string name = default(string), string type = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Lists all Traffic Manager profiles within a resource group. - /// - /// - /// The name of the resource group containing the Traffic Manager - /// profiles to be listed. - /// - /// - /// 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)); - /// - /// Lists all Traffic Manager profiles within a subscription. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Gets a Traffic Manager profile. - /// - /// - /// The name of the resource group containing the Traffic Manager - /// profile. - /// - /// - /// The name of the Traffic Manager 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> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Create or update a Traffic Manager profile. - /// - /// - /// The name of the resource group containing the Traffic Manager - /// profile. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The Traffic Manager profile parameters supplied to the - /// CreateOrUpdate 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, Profile parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes a Traffic Manager profile. - /// - /// - /// The name of the resource group containing the Traffic Manager - /// profile to be deleted. - /// - /// - /// The name of the Traffic Manager profile to be deleted. - /// - /// - /// 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> DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Update a Traffic Manager profile. - /// - /// - /// The name of the resource group containing the Traffic Manager - /// profile. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The Traffic Manager profile parameters supplied to the Update - /// 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, Profile parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ITrafficManagerManagementClient.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ITrafficManagerManagementClient.cs deleted file mode 100644 index f83e344343974..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ITrafficManagerManagementClient.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using Newtonsoft.Json; - - /// - /// - public partial interface ITrafficManagerManagementClient : System.IDisposable - { - /// - /// The base URI of the service. - /// - System.Uri BaseUri { get; set; } - - /// - /// Gets or sets json serialization settings. - /// - JsonSerializerSettings SerializationSettings { get; } - - /// - /// Gets or sets json deserialization settings. - /// - JsonSerializerSettings DeserializationSettings { get; } - - /// - /// Credentials needed for the client to connect to Azure. - /// - ServiceClientCredentials Credentials { get; } - - /// - /// Gets subscription credentials which uniquely identify Microsoft - /// Azure subscription. The subscription ID forms part of the URI for - /// every service call. - /// - string SubscriptionId { get; set; } - - /// - /// Client Api Version. - /// - string ApiVersion { get; } - - /// - /// The preferred language for the response. - /// - string AcceptLanguage { get; set; } - - /// - /// The retry timeout in seconds for Long Running Operations. Default - /// value is 30. - /// - int? LongRunningOperationRetryTimeout { get; set; } - - /// - /// Whether a unique x-ms-client-request-id should be generated. When - /// set to true a unique x-ms-client-request-id value is generated and - /// included in each request. Default is true. - /// - bool? GenerateClientRequestId { get; set; } - - - /// - /// Gets the IEndpointsOperations. - /// - IEndpointsOperations Endpoints { get; } - - /// - /// Gets the IProfilesOperations. - /// - IProfilesOperations Profiles { get; } - - /// - /// Gets the IGeographicHierarchiesOperations. - /// - IGeographicHierarchiesOperations GeographicHierarchies { get; } - - /// - /// Gets the IHeatMapOperations. - /// - IHeatMapOperations HeatMap { get; } - - /// - /// Gets the ITrafficManagerUserMetricsKeysOperations. - /// - ITrafficManagerUserMetricsKeysOperations TrafficManagerUserMetricsKeys { get; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ITrafficManagerUserMetricsKeysOperations.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ITrafficManagerUserMetricsKeysOperations.cs deleted file mode 100644 index d2651289632e6..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ITrafficManagerUserMetricsKeysOperations.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// TrafficManagerUserMetricsKeysOperations operations. - /// - public partial interface ITrafficManagerUserMetricsKeysOperations - { - /// - /// Get the subscription-level key used for Real User Metrics - /// collection. - /// - /// - /// 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(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Create or update a subscription-level key used for Real User - /// Metrics collection. - /// - /// - /// 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(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Delete a subscription-level key used for Real User Metrics - /// collection. - /// - /// - /// 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> DeleteWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/AllowedEndpointRecordType.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/AllowedEndpointRecordType.cs deleted file mode 100644 index 16750c8a599b7..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/AllowedEndpointRecordType.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - - /// - /// Defines values for AllowedEndpointRecordType. - /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(AllowedEndpointRecordTypeConverter))] - public struct AllowedEndpointRecordType : System.IEquatable - { - private AllowedEndpointRecordType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly AllowedEndpointRecordType DomainName = "DomainName"; - - public static readonly AllowedEndpointRecordType IPv4Address = "IPv4Address"; - - public static readonly AllowedEndpointRecordType IPv6Address = "IPv6Address"; - - public static readonly AllowedEndpointRecordType Any = "Any"; - - - /// - /// Underlying value of enum AllowedEndpointRecordType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for AllowedEndpointRecordType - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type AllowedEndpointRecordType - /// - public bool Equals(AllowedEndpointRecordType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to AllowedEndpointRecordType - /// - public static implicit operator AllowedEndpointRecordType(string value) - { - return new AllowedEndpointRecordType(value); - } - - /// - /// Implicit operator to convert AllowedEndpointRecordType to string - /// - public static implicit operator string(AllowedEndpointRecordType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum AllowedEndpointRecordType - /// - public static bool operator == (AllowedEndpointRecordType e1, AllowedEndpointRecordType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum AllowedEndpointRecordType - /// - public static bool operator != (AllowedEndpointRecordType e1, AllowedEndpointRecordType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for AllowedEndpointRecordType - /// - public override bool Equals(object obj) - { - return obj is AllowedEndpointRecordType && Equals((AllowedEndpointRecordType)obj); - } - - /// - /// Returns for hashCode AllowedEndpointRecordType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/AllowedEndpointRecordTypeConverter.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/AllowedEndpointRecordTypeConverter.cs deleted file mode 100644 index 890cc9208813c..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/AllowedEndpointRecordTypeConverter.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for AllowedEndpointRecordType. - /// - public sealed class AllowedEndpointRecordTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to AllowedEndpointRecordType - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(AllowedEndpointRecordType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to AllowedEndpointRecordType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (AllowedEndpointRecordType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for AllowedEndpointRecordType for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/CheckTrafficManagerRelativeDnsNameAvailabilityParameters.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/CheckTrafficManagerRelativeDnsNameAvailabilityParameters.cs deleted file mode 100644 index 1b4923bfa6738..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/CheckTrafficManagerRelativeDnsNameAvailabilityParameters.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Parameters supplied to check Traffic Manager name operation. - /// - public partial class CheckTrafficManagerRelativeDnsNameAvailabilityParameters - { - /// - /// Initializes a new instance of the - /// CheckTrafficManagerRelativeDnsNameAvailabilityParameters class. - /// - public CheckTrafficManagerRelativeDnsNameAvailabilityParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// CheckTrafficManagerRelativeDnsNameAvailabilityParameters class. - /// - /// The name of the resource. - /// The type of the resource. - public CheckTrafficManagerRelativeDnsNameAvailabilityParameters(string name = default(string), string type = default(string)) - { - Name = name; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the name of the resource. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets the type of the resource. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/DeleteOperationResult.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/DeleteOperationResult.cs deleted file mode 100644 index 969d3bb44d7a0..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/DeleteOperationResult.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// The result of the request or operation. - /// - public partial class DeleteOperationResult - { - /// - /// Initializes a new instance of the DeleteOperationResult class. - /// - public DeleteOperationResult() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DeleteOperationResult class. - /// - /// The result of the operation or - /// request. - public DeleteOperationResult(bool? operationResult = default(bool?)) - { - OperationResult = operationResult; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the result of the operation or request. - /// - [JsonProperty(PropertyName = "boolean")] - public bool? OperationResult { get; private set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/DnsConfig.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/DnsConfig.cs deleted file mode 100644 index de09bce16b96e..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/DnsConfig.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Class containing DNS settings in a Traffic Manager profile. - /// - public partial class DnsConfig - { - /// - /// Initializes a new instance of the DnsConfig class. - /// - public DnsConfig() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the DnsConfig class. - /// - /// The relative DNS name provided by this - /// Traffic Manager profile. This value is combined with the DNS domain - /// name used by Azure Traffic Manager to form the fully-qualified - /// domain name (FQDN) of the profile. - /// The fully-qualified domain name (FQDN) of the - /// Traffic Manager profile. This is formed from the concatenation of - /// the RelativeName with the DNS domain used by Azure Traffic - /// Manager. - /// The DNS Time-To-Live (TTL), in seconds. This - /// informs the local DNS resolvers and DNS clients how long to cache - /// DNS responses provided by this Traffic Manager profile. - public DnsConfig(string relativeName = default(string), string fqdn = default(string), long? ttl = default(long?)) - { - RelativeName = relativeName; - Fqdn = fqdn; - Ttl = ttl; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the relative DNS name provided by this Traffic Manager - /// profile. This value is combined with the DNS domain name used by - /// Azure Traffic Manager to form the fully-qualified domain name - /// (FQDN) of the profile. - /// - [JsonProperty(PropertyName = "relativeName")] - public string RelativeName { get; set; } - - /// - /// Gets the fully-qualified domain name (FQDN) of the Traffic Manager - /// profile. This is formed from the concatenation of the RelativeName - /// with the DNS domain used by Azure Traffic Manager. - /// - [JsonProperty(PropertyName = "fqdn")] - public string Fqdn { get; private set; } - - /// - /// Gets or sets the DNS Time-To-Live (TTL), in seconds. This informs - /// the local DNS resolvers and DNS clients how long to cache DNS - /// responses provided by this Traffic Manager profile. - /// - [JsonProperty(PropertyName = "ttl")] - public long? Ttl { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Endpoint.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Endpoint.cs deleted file mode 100644 index d80513f7ae8b0..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Endpoint.cs +++ /dev/null @@ -1,219 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Class representing a Traffic Manager endpoint. - /// - [Rest.Serialization.JsonTransformation] - public partial class Endpoint : ProxyResource - { - /// - /// Initializes a new instance of the Endpoint class. - /// - public Endpoint() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Endpoint class. - /// - /// Fully qualified resource Id for the resource. Ex - - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} - /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Network/trafficManagerProfiles. - /// The Azure Resource URI of the of the - /// endpoint. Not applicable to endpoints of type - /// 'ExternalEndpoints'. - /// The fully-qualified DNS name or IP address of - /// the endpoint. Traffic Manager returns this value in DNS responses - /// to direct traffic to this endpoint. - /// The status of the endpoint. If the - /// endpoint is Enabled, it is probed for endpoint health and is - /// included in the traffic routing method. Possible values include: - /// 'Enabled', 'Disabled' - /// The weight of this endpoint when using the - /// 'Weighted' traffic routing method. Possible values are from 1 to - /// 1000. - /// The priority of this endpoint when using the - /// 'Priority' traffic routing method. Possible values are from 1 to - /// 1000, lower values represent higher priority. This is an optional - /// parameter. If specified, it must be specified on all endpoints, - /// and no two endpoints can share the same priority value. - /// Specifies the location of the - /// external or nested endpoints when using the 'Performance' traffic - /// routing method. - /// The monitoring status of the - /// endpoint. Possible values include: 'CheckingEndpoint', 'Online', - /// 'Degraded', 'Disabled', 'Inactive', 'Stopped' - /// The minimum number of endpoints - /// that must be available in the child profile in order for the parent - /// profile to be considered available. Only applicable to endpoint of - /// type 'NestedEndpoints'. - /// The minimum number of IPv4 (DNS - /// record type A) endpoints that must be available in the child - /// profile in order for the parent profile to be considered available. - /// Only applicable to endpoint of type 'NestedEndpoints'. - /// The minimum number of IPv6 (DNS - /// record type AAAA) endpoints that must be available in the child - /// profile in order for the parent profile to be considered available. - /// Only applicable to endpoint of type 'NestedEndpoints'. - /// The list of countries/regions mapped to - /// this endpoint when using the 'Geographic' traffic routing method. - /// Please consult Traffic Manager Geographic documentation for a full - /// list of accepted values. - /// The list of subnets, IP addresses, and/or - /// address ranges mapped to this endpoint when using the 'Subnet' - /// traffic routing method. An empty list will match all ranges not - /// covered by other endpoints. - /// List of custom headers. - public Endpoint(string id = default(string), string name = default(string), string type = default(string), string targetResourceId = default(string), string target = default(string), EndpointStatus? endpointStatus = default(EndpointStatus?), long? weight = default(long?), long? priority = default(long?), string endpointLocation = default(string), EndpointMonitorStatus? endpointMonitorStatus = default(EndpointMonitorStatus?), long? minChildEndpoints = default(long?), long? minChildEndpointsIPv4 = default(long?), long? minChildEndpointsIPv6 = default(long?), IList geoMapping = default(IList), IList subnets = default(IList), IList customHeaders = default(IList)) - : base(id, name, type) - { - TargetResourceId = targetResourceId; - Target = target; - EndpointStatus = endpointStatus; - Weight = weight; - Priority = priority; - EndpointLocation = endpointLocation; - EndpointMonitorStatus = endpointMonitorStatus; - MinChildEndpoints = minChildEndpoints; - MinChildEndpointsIPv4 = minChildEndpointsIPv4; - MinChildEndpointsIPv6 = minChildEndpointsIPv6; - GeoMapping = geoMapping; - Subnets = subnets; - CustomHeaders = customHeaders; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Azure Resource URI of the of the endpoint. Not - /// applicable to endpoints of type 'ExternalEndpoints'. - /// - [JsonProperty(PropertyName = "properties.targetResourceId")] - public string TargetResourceId { get; set; } - - /// - /// Gets or sets the fully-qualified DNS name or IP address of the - /// endpoint. Traffic Manager returns this value in DNS responses to - /// direct traffic to this endpoint. - /// - [JsonProperty(PropertyName = "properties.target")] - public string Target { get; set; } - - /// - /// Gets or sets the status of the endpoint. If the endpoint is - /// Enabled, it is probed for endpoint health and is included in the - /// traffic routing method. Possible values include: 'Enabled', - /// 'Disabled' - /// - [JsonProperty(PropertyName = "properties.endpointStatus")] - public EndpointStatus? EndpointStatus { get; set; } - - /// - /// Gets or sets the weight of this endpoint when using the 'Weighted' - /// traffic routing method. Possible values are from 1 to 1000. - /// - [JsonProperty(PropertyName = "properties.weight")] - public long? Weight { get; set; } - - /// - /// Gets or sets the priority of this endpoint when using the - /// 'Priority' traffic routing method. Possible values are from 1 to - /// 1000, lower values represent higher priority. This is an optional - /// parameter. If specified, it must be specified on all endpoints, - /// and no two endpoints can share the same priority value. - /// - [JsonProperty(PropertyName = "properties.priority")] - public long? Priority { get; set; } - - /// - /// Gets or sets specifies the location of the external or nested - /// endpoints when using the 'Performance' traffic routing method. - /// - [JsonProperty(PropertyName = "properties.endpointLocation")] - public string EndpointLocation { get; set; } - - /// - /// Gets or sets the monitoring status of the endpoint. Possible values - /// include: 'CheckingEndpoint', 'Online', 'Degraded', 'Disabled', - /// 'Inactive', 'Stopped' - /// - [JsonProperty(PropertyName = "properties.endpointMonitorStatus")] - public EndpointMonitorStatus? EndpointMonitorStatus { get; set; } - - /// - /// Gets or sets the minimum number of endpoints that must be available - /// in the child profile in order for the parent profile to be - /// considered available. Only applicable to endpoint of type - /// 'NestedEndpoints'. - /// - [JsonProperty(PropertyName = "properties.minChildEndpoints")] - public long? MinChildEndpoints { get; set; } - - /// - /// Gets or sets the minimum number of IPv4 (DNS record type A) - /// endpoints that must be available in the child profile in order for - /// the parent profile to be considered available. Only applicable to - /// endpoint of type 'NestedEndpoints'. - /// - [JsonProperty(PropertyName = "properties.minChildEndpointsIPv4")] - public long? MinChildEndpointsIPv4 { get; set; } - - /// - /// Gets or sets the minimum number of IPv6 (DNS record type AAAA) - /// endpoints that must be available in the child profile in order for - /// the parent profile to be considered available. Only applicable to - /// endpoint of type 'NestedEndpoints'. - /// - [JsonProperty(PropertyName = "properties.minChildEndpointsIPv6")] - public long? MinChildEndpointsIPv6 { get; set; } - - /// - /// Gets or sets the list of countries/regions mapped to this endpoint - /// when using the 'Geographic' traffic routing method. Please consult - /// Traffic Manager Geographic documentation for a full list of - /// accepted values. - /// - [JsonProperty(PropertyName = "properties.geoMapping")] - public IList GeoMapping { get; set; } - - /// - /// Gets or sets the list of subnets, IP addresses, and/or address - /// ranges mapped to this endpoint when using the 'Subnet' traffic - /// routing method. An empty list will match all ranges not covered by - /// other endpoints. - /// - [JsonProperty(PropertyName = "properties.subnets")] - public IList Subnets { get; set; } - - /// - /// Gets or sets list of custom headers. - /// - [JsonProperty(PropertyName = "properties.customHeaders")] - public IList CustomHeaders { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointMonitorStatus.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointMonitorStatus.cs deleted file mode 100644 index 07f258913ac55..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointMonitorStatus.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - - /// - /// Defines values for EndpointMonitorStatus. - /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(EndpointMonitorStatusConverter))] - public struct EndpointMonitorStatus : System.IEquatable - { - private EndpointMonitorStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly EndpointMonitorStatus CheckingEndpoint = "CheckingEndpoint"; - - public static readonly EndpointMonitorStatus Online = "Online"; - - public static readonly EndpointMonitorStatus Degraded = "Degraded"; - - public static readonly EndpointMonitorStatus Disabled = "Disabled"; - - public static readonly EndpointMonitorStatus Inactive = "Inactive"; - - public static readonly EndpointMonitorStatus Stopped = "Stopped"; - - - /// - /// Underlying value of enum EndpointMonitorStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for EndpointMonitorStatus - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type EndpointMonitorStatus - /// - public bool Equals(EndpointMonitorStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to EndpointMonitorStatus - /// - public static implicit operator EndpointMonitorStatus(string value) - { - return new EndpointMonitorStatus(value); - } - - /// - /// Implicit operator to convert EndpointMonitorStatus to string - /// - public static implicit operator string(EndpointMonitorStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum EndpointMonitorStatus - /// - public static bool operator == (EndpointMonitorStatus e1, EndpointMonitorStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum EndpointMonitorStatus - /// - public static bool operator != (EndpointMonitorStatus e1, EndpointMonitorStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for EndpointMonitorStatus - /// - public override bool Equals(object obj) - { - return obj is EndpointMonitorStatus && Equals((EndpointMonitorStatus)obj); - } - - /// - /// Returns for hashCode EndpointMonitorStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointMonitorStatusConverter.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointMonitorStatusConverter.cs deleted file mode 100644 index 3db806c1215a3..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointMonitorStatusConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for EndpointMonitorStatus. - /// - public sealed class EndpointMonitorStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to EndpointMonitorStatus by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(EndpointMonitorStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to EndpointMonitorStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (EndpointMonitorStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for EndpointMonitorStatus for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointPropertiesCustomHeadersItem.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointPropertiesCustomHeadersItem.cs deleted file mode 100644 index 975ed8009c4dd..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointPropertiesCustomHeadersItem.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Custom header name and value. - /// - public partial class EndpointPropertiesCustomHeadersItem - { - /// - /// Initializes a new instance of the - /// EndpointPropertiesCustomHeadersItem class. - /// - public EndpointPropertiesCustomHeadersItem() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// EndpointPropertiesCustomHeadersItem class. - /// - /// Header name. - /// Header value. - public EndpointPropertiesCustomHeadersItem(string name = default(string), string value = default(string)) - { - Name = name; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets header name. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets header value. - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointPropertiesSubnetsItem.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointPropertiesSubnetsItem.cs deleted file mode 100644 index bbee6cd131b43..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointPropertiesSubnetsItem.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Subnet first address, scope, and/or last address. - /// - public partial class EndpointPropertiesSubnetsItem - { - /// - /// Initializes a new instance of the EndpointPropertiesSubnetsItem - /// class. - /// - public EndpointPropertiesSubnetsItem() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the EndpointPropertiesSubnetsItem - /// class. - /// - /// First address in the subnet. - /// Last address in the subnet. - /// Block size (number of leading bits in the - /// subnet mask). - public EndpointPropertiesSubnetsItem(string first = default(string), string last = default(string), int? scope = default(int?)) - { - First = first; - Last = last; - Scope = scope; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets first address in the subnet. - /// - [JsonProperty(PropertyName = "first")] - public string First { get; set; } - - /// - /// Gets or sets last address in the subnet. - /// - [JsonProperty(PropertyName = "last")] - public string Last { get; set; } - - /// - /// Gets or sets block size (number of leading bits in the subnet - /// mask). - /// - [JsonProperty(PropertyName = "scope")] - public int? Scope { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointStatus.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointStatus.cs deleted file mode 100644 index b37d0b66afd59..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointStatus.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - - /// - /// Defines values for EndpointStatus. - /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(EndpointStatusConverter))] - public struct EndpointStatus : System.IEquatable - { - private EndpointStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly EndpointStatus Enabled = "Enabled"; - - public static readonly EndpointStatus Disabled = "Disabled"; - - - /// - /// Underlying value of enum EndpointStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for EndpointStatus - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type EndpointStatus - /// - public bool Equals(EndpointStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to EndpointStatus - /// - public static implicit operator EndpointStatus(string value) - { - return new EndpointStatus(value); - } - - /// - /// Implicit operator to convert EndpointStatus to string - /// - public static implicit operator string(EndpointStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum EndpointStatus - /// - public static bool operator == (EndpointStatus e1, EndpointStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum EndpointStatus - /// - public static bool operator != (EndpointStatus e1, EndpointStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for EndpointStatus - /// - public override bool Equals(object obj) - { - return obj is EndpointStatus && Equals((EndpointStatus)obj); - } - - /// - /// Returns for hashCode EndpointStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointStatusConverter.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointStatusConverter.cs deleted file mode 100644 index f7380de602002..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/EndpointStatusConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for EndpointStatus. - /// - public sealed class EndpointStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to EndpointStatus by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(EndpointStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to EndpointStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (EndpointStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for EndpointStatus for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/HeatMapEndpoint.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/HeatMapEndpoint.cs deleted file mode 100644 index b07e8cdf01492..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/HeatMapEndpoint.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Class which is a sparse representation of a Traffic Manager endpoint. - /// - public partial class HeatMapEndpoint - { - /// - /// Initializes a new instance of the HeatMapEndpoint class. - /// - public HeatMapEndpoint() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the HeatMapEndpoint class. - /// - /// The ARM Resource ID of this Traffic - /// Manager endpoint. - /// A number uniquely identifying this - /// endpoint in query experiences. - public HeatMapEndpoint(string resourceId = default(string), int? endpointId = default(int?)) - { - ResourceId = resourceId; - EndpointId = endpointId; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the ARM Resource ID of this Traffic Manager endpoint. - /// - [JsonProperty(PropertyName = "resourceId")] - public string ResourceId { get; set; } - - /// - /// Gets or sets a number uniquely identifying this endpoint in query - /// experiences. - /// - [JsonProperty(PropertyName = "endpointId")] - public int? EndpointId { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/HeatMapModel.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/HeatMapModel.cs deleted file mode 100644 index 5b52875f39088..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/HeatMapModel.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Class representing a Traffic Manager HeatMap. - /// - [Rest.Serialization.JsonTransformation] - public partial class HeatMapModel : ProxyResource - { - /// - /// Initializes a new instance of the HeatMapModel class. - /// - public HeatMapModel() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the HeatMapModel class. - /// - /// Fully qualified resource Id for the resource. Ex - - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} - /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Network/trafficManagerProfiles. - /// The beginning of the time window for this - /// HeatMap, inclusive. - /// The ending of the time window for this - /// HeatMap, exclusive. - /// The endpoints used in this HeatMap - /// calculation. - /// The traffic flows produced in this - /// HeatMap calculation. - public HeatMapModel(string id = default(string), string name = default(string), string type = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList endpoints = default(IList), IList trafficFlows = default(IList)) - : base(id, name, type) - { - StartTime = startTime; - EndTime = endTime; - Endpoints = endpoints; - TrafficFlows = trafficFlows; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the beginning of the time window for this HeatMap, - /// inclusive. - /// - [JsonProperty(PropertyName = "properties.startTime")] - public System.DateTime? StartTime { get; set; } - - /// - /// Gets or sets the ending of the time window for this HeatMap, - /// exclusive. - /// - [JsonProperty(PropertyName = "properties.endTime")] - public System.DateTime? EndTime { get; set; } - - /// - /// Gets or sets the endpoints used in this HeatMap calculation. - /// - [JsonProperty(PropertyName = "properties.endpoints")] - public IList Endpoints { get; set; } - - /// - /// Gets or sets the traffic flows produced in this HeatMap - /// calculation. - /// - [JsonProperty(PropertyName = "properties.trafficFlows")] - public IList TrafficFlows { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfig.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfig.cs deleted file mode 100644 index 2cdda6773c912..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfig.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Class containing endpoint monitoring settings in a Traffic Manager - /// profile. - /// - public partial class MonitorConfig - { - /// - /// Initializes a new instance of the MonitorConfig class. - /// - public MonitorConfig() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the MonitorConfig class. - /// - /// The profile-level monitoring - /// status of the Traffic Manager profile. Possible values include: - /// 'CheckingEndpoints', 'Online', 'Degraded', 'Disabled', - /// 'Inactive' - /// The protocol (HTTP, HTTPS or TCP) used to - /// probe for endpoint health. Possible values include: 'HTTP', - /// 'HTTPS', 'TCP' - /// The TCP port used to probe for endpoint - /// health. - /// The path relative to the endpoint domain name - /// used to probe for endpoint health. - /// The monitor interval for endpoints - /// in this profile. This is the interval at which Traffic Manager will - /// check the health of each endpoint in this profile. - /// The monitor timeout for endpoints in - /// this profile. This is the time that Traffic Manager allows - /// endpoints in this profile to response to the health check. - /// The number of consecutive - /// failed health check that Traffic Manager tolerates before declaring - /// an endpoint in this profile Degraded after the next failed health - /// check. - /// List of custom headers. - /// List of expected status code - /// ranges. - public MonitorConfig(ProfileMonitorStatus? profileMonitorStatus = default(ProfileMonitorStatus?), MonitorProtocol? protocol = default(MonitorProtocol?), long? port = default(long?), string path = default(string), long? intervalInSeconds = default(long?), long? timeoutInSeconds = default(long?), long? toleratedNumberOfFailures = default(long?), IList customHeaders = default(IList), IList expectedStatusCodeRanges = default(IList)) - { - ProfileMonitorStatus = profileMonitorStatus; - Protocol = protocol; - Port = port; - Path = path; - IntervalInSeconds = intervalInSeconds; - TimeoutInSeconds = timeoutInSeconds; - ToleratedNumberOfFailures = toleratedNumberOfFailures; - CustomHeaders = customHeaders; - ExpectedStatusCodeRanges = expectedStatusCodeRanges; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the profile-level monitoring status of the Traffic - /// Manager profile. Possible values include: 'CheckingEndpoints', - /// 'Online', 'Degraded', 'Disabled', 'Inactive' - /// - [JsonProperty(PropertyName = "profileMonitorStatus")] - public ProfileMonitorStatus? ProfileMonitorStatus { get; set; } - - /// - /// Gets or sets the protocol (HTTP, HTTPS or TCP) used to probe for - /// endpoint health. Possible values include: 'HTTP', 'HTTPS', 'TCP' - /// - [JsonProperty(PropertyName = "protocol")] - public MonitorProtocol? Protocol { get; set; } - - /// - /// Gets or sets the TCP port used to probe for endpoint health. - /// - [JsonProperty(PropertyName = "port")] - public long? Port { get; set; } - - /// - /// Gets or sets the path relative to the endpoint domain name used to - /// probe for endpoint health. - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Gets or sets the monitor interval for endpoints in this profile. - /// This is the interval at which Traffic Manager will check the health - /// of each endpoint in this profile. - /// - [JsonProperty(PropertyName = "intervalInSeconds")] - public long? IntervalInSeconds { get; set; } - - /// - /// Gets or sets the monitor timeout for endpoints in this profile. - /// This is the time that Traffic Manager allows endpoints in this - /// profile to response to the health check. - /// - [JsonProperty(PropertyName = "timeoutInSeconds")] - public long? TimeoutInSeconds { get; set; } - - /// - /// Gets or sets the number of consecutive failed health check that - /// Traffic Manager tolerates before declaring an endpoint in this - /// profile Degraded after the next failed health check. - /// - [JsonProperty(PropertyName = "toleratedNumberOfFailures")] - public long? ToleratedNumberOfFailures { get; set; } - - /// - /// Gets or sets list of custom headers. - /// - [JsonProperty(PropertyName = "customHeaders")] - public IList CustomHeaders { get; set; } - - /// - /// Gets or sets list of expected status code ranges. - /// - [JsonProperty(PropertyName = "expectedStatusCodeRanges")] - public IList ExpectedStatusCodeRanges { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfigCustomHeadersItem.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfigCustomHeadersItem.cs deleted file mode 100644 index e312216bb872f..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfigCustomHeadersItem.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Custom header name and value. - /// - public partial class MonitorConfigCustomHeadersItem - { - /// - /// Initializes a new instance of the MonitorConfigCustomHeadersItem - /// class. - /// - public MonitorConfigCustomHeadersItem() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the MonitorConfigCustomHeadersItem - /// class. - /// - /// Header name. - /// Header value. - public MonitorConfigCustomHeadersItem(string name = default(string), string value = default(string)) - { - Name = name; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets header name. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets header value. - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfigExpectedStatusCodeRangesItem.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfigExpectedStatusCodeRangesItem.cs deleted file mode 100644 index bc7e238d43195..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorConfigExpectedStatusCodeRangesItem.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Min and max value of a status code range. - /// - public partial class MonitorConfigExpectedStatusCodeRangesItem - { - /// - /// Initializes a new instance of the - /// MonitorConfigExpectedStatusCodeRangesItem class. - /// - public MonitorConfigExpectedStatusCodeRangesItem() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// MonitorConfigExpectedStatusCodeRangesItem class. - /// - /// Min status code. - /// Max status code. - public MonitorConfigExpectedStatusCodeRangesItem(int? min = default(int?), int? max = default(int?)) - { - Min = min; - Max = max; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets min status code. - /// - [JsonProperty(PropertyName = "min")] - public int? Min { get; set; } - - /// - /// Gets or sets max status code. - /// - [JsonProperty(PropertyName = "max")] - public int? Max { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorProtocol.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorProtocol.cs deleted file mode 100644 index 9f20452d5727b..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorProtocol.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - - /// - /// Defines values for MonitorProtocol. - /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(MonitorProtocolConverter))] - public struct MonitorProtocol : System.IEquatable - { - private MonitorProtocol(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly MonitorProtocol HTTP = "HTTP"; - - public static readonly MonitorProtocol HTTPS = "HTTPS"; - - public static readonly MonitorProtocol TCP = "TCP"; - - - /// - /// Underlying value of enum MonitorProtocol - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for MonitorProtocol - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type MonitorProtocol - /// - public bool Equals(MonitorProtocol e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to MonitorProtocol - /// - public static implicit operator MonitorProtocol(string value) - { - return new MonitorProtocol(value); - } - - /// - /// Implicit operator to convert MonitorProtocol to string - /// - public static implicit operator string(MonitorProtocol e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum MonitorProtocol - /// - public static bool operator == (MonitorProtocol e1, MonitorProtocol e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum MonitorProtocol - /// - public static bool operator != (MonitorProtocol e1, MonitorProtocol e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for MonitorProtocol - /// - public override bool Equals(object obj) - { - return obj is MonitorProtocol && Equals((MonitorProtocol)obj); - } - - /// - /// Returns for hashCode MonitorProtocol - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorProtocolConverter.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorProtocolConverter.cs deleted file mode 100644 index 492df887d82b8..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/MonitorProtocolConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for MonitorProtocol. - /// - public sealed class MonitorProtocolConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to MonitorProtocol by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(MonitorProtocol).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to MonitorProtocol. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (MonitorProtocol)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for MonitorProtocol for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Page.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Page.cs deleted file mode 100644 index af159a6a332bc..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Page.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - - /// - /// Defines a page in Azure responses. - /// - /// Type of the page content items - [JsonObject] - public class Page : IPage - { - /// - /// Gets the link to the next page. - /// - [JsonProperty("")] - public string NextPageLink { get; private set; } - - [JsonProperty("value")] - private IList Items{ get; set; } - - /// - /// Returns an enumerator that iterates through the collection. - /// - /// A an enumerator that can be used to iterate through the collection. - public IEnumerator GetEnumerator() - { - return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); - } - - /// - /// Returns an enumerator that iterates through the collection. - /// - /// A an enumerator that can be used to iterate through the collection. - IEnumerator IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Profile.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Profile.cs deleted file mode 100644 index 3282147b6d368..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Profile.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Class representing a Traffic Manager profile. - /// - [Rest.Serialization.JsonTransformation] - public partial class Profile : TrackedResource - { - /// - /// Initializes a new instance of the Profile class. - /// - public Profile() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Profile class. - /// - /// Fully qualified resource Id for the resource. Ex - - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} - /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Network/trafficManagerProfiles. - /// Resource tags. - /// The Azure Region where the resource - /// lives - /// The status of the Traffic Manager - /// profile. Possible values include: 'Enabled', 'Disabled' - /// The traffic routing method of - /// the Traffic Manager profile. Possible values include: - /// 'Performance', 'Priority', 'Weighted', 'Geographic', 'MultiValue', - /// 'Subnet' - /// The DNS settings of the Traffic Manager - /// profile. - /// The endpoint monitoring settings of the - /// Traffic Manager profile. - /// The list of endpoints in the Traffic - /// Manager profile. - /// Indicates whether Traffic - /// View is 'Enabled' or 'Disabled' for the Traffic Manager profile. - /// Null, indicates 'Disabled'. Enabling this feature will increase the - /// cost of the Traffic Manage profile. Possible values include: - /// 'Enabled', 'Disabled' - /// The list of allowed - /// endpoint record types. - /// Maximum number of endpoints to be returned - /// for MultiValue routing type. - public Profile(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), ProfileStatus? profileStatus = default(ProfileStatus?), TrafficRoutingMethod? trafficRoutingMethod = default(TrafficRoutingMethod?), DnsConfig dnsConfig = default(DnsConfig), MonitorConfig monitorConfig = default(MonitorConfig), IList endpoints = default(IList), TrafficViewEnrollmentStatus? trafficViewEnrollmentStatus = default(TrafficViewEnrollmentStatus?), IList allowedEndpointRecordTypes = default(IList), long? maxReturn = default(long?)) - : base(id, name, type, tags, location) - { - ProfileStatus = profileStatus; - TrafficRoutingMethod = trafficRoutingMethod; - DnsConfig = dnsConfig; - MonitorConfig = monitorConfig; - Endpoints = endpoints; - TrafficViewEnrollmentStatus = trafficViewEnrollmentStatus; - AllowedEndpointRecordTypes = allowedEndpointRecordTypes; - MaxReturn = maxReturn; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the status of the Traffic Manager profile. Possible - /// values include: 'Enabled', 'Disabled' - /// - [JsonProperty(PropertyName = "properties.profileStatus")] - public ProfileStatus? ProfileStatus { get; set; } - - /// - /// Gets or sets the traffic routing method of the Traffic Manager - /// profile. Possible values include: 'Performance', 'Priority', - /// 'Weighted', 'Geographic', 'MultiValue', 'Subnet' - /// - [JsonProperty(PropertyName = "properties.trafficRoutingMethod")] - public TrafficRoutingMethod? TrafficRoutingMethod { get; set; } - - /// - /// Gets or sets the DNS settings of the Traffic Manager profile. - /// - [JsonProperty(PropertyName = "properties.dnsConfig")] - public DnsConfig DnsConfig { get; set; } - - /// - /// Gets or sets the endpoint monitoring settings of the Traffic - /// Manager profile. - /// - [JsonProperty(PropertyName = "properties.monitorConfig")] - public MonitorConfig MonitorConfig { get; set; } - - /// - /// Gets or sets the list of endpoints in the Traffic Manager profile. - /// - [JsonProperty(PropertyName = "properties.endpoints")] - public IList Endpoints { get; set; } - - /// - /// Gets or sets indicates whether Traffic View is 'Enabled' or - /// 'Disabled' for the Traffic Manager profile. Null, indicates - /// 'Disabled'. Enabling this feature will increase the cost of the - /// Traffic Manage profile. Possible values include: 'Enabled', - /// 'Disabled' - /// - [JsonProperty(PropertyName = "properties.trafficViewEnrollmentStatus")] - public TrafficViewEnrollmentStatus? TrafficViewEnrollmentStatus { get; set; } - - /// - /// Gets or sets the list of allowed endpoint record types. - /// - [JsonProperty(PropertyName = "properties.allowedEndpointRecordTypes")] - public IList AllowedEndpointRecordTypes { get; set; } - - /// - /// Gets or sets maximum number of endpoints to be returned for - /// MultiValue routing type. - /// - [JsonProperty(PropertyName = "properties.maxReturn")] - public long? MaxReturn { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileMonitorStatus.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileMonitorStatus.cs deleted file mode 100644 index 1837646a45177..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileMonitorStatus.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - - /// - /// Defines values for ProfileMonitorStatus. - /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ProfileMonitorStatusConverter))] - public struct ProfileMonitorStatus : System.IEquatable - { - private ProfileMonitorStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ProfileMonitorStatus CheckingEndpoints = "CheckingEndpoints"; - - public static readonly ProfileMonitorStatus Online = "Online"; - - public static readonly ProfileMonitorStatus Degraded = "Degraded"; - - public static readonly ProfileMonitorStatus Disabled = "Disabled"; - - public static readonly ProfileMonitorStatus Inactive = "Inactive"; - - - /// - /// Underlying value of enum ProfileMonitorStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ProfileMonitorStatus - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ProfileMonitorStatus - /// - public bool Equals(ProfileMonitorStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ProfileMonitorStatus - /// - public static implicit operator ProfileMonitorStatus(string value) - { - return new ProfileMonitorStatus(value); - } - - /// - /// Implicit operator to convert ProfileMonitorStatus to string - /// - public static implicit operator string(ProfileMonitorStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ProfileMonitorStatus - /// - public static bool operator == (ProfileMonitorStatus e1, ProfileMonitorStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ProfileMonitorStatus - /// - public static bool operator != (ProfileMonitorStatus e1, ProfileMonitorStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ProfileMonitorStatus - /// - public override bool Equals(object obj) - { - return obj is ProfileMonitorStatus && Equals((ProfileMonitorStatus)obj); - } - - /// - /// Returns for hashCode ProfileMonitorStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileMonitorStatusConverter.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileMonitorStatusConverter.cs deleted file mode 100644 index 149bc37fe4704..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileMonitorStatusConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ProfileMonitorStatus. - /// - public sealed class ProfileMonitorStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ProfileMonitorStatus by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ProfileMonitorStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ProfileMonitorStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ProfileMonitorStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ProfileMonitorStatus for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileStatus.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileStatus.cs deleted file mode 100644 index 8e8a6aee0c713..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileStatus.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - - /// - /// Defines values for ProfileStatus. - /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ProfileStatusConverter))] - public struct ProfileStatus : System.IEquatable - { - private ProfileStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ProfileStatus Enabled = "Enabled"; - - public static readonly ProfileStatus Disabled = "Disabled"; - - - /// - /// Underlying value of enum ProfileStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ProfileStatus - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ProfileStatus - /// - public bool Equals(ProfileStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ProfileStatus - /// - public static implicit operator ProfileStatus(string value) - { - return new ProfileStatus(value); - } - - /// - /// Implicit operator to convert ProfileStatus to string - /// - public static implicit operator string(ProfileStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ProfileStatus - /// - public static bool operator == (ProfileStatus e1, ProfileStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ProfileStatus - /// - public static bool operator != (ProfileStatus e1, ProfileStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ProfileStatus - /// - public override bool Equals(object obj) - { - return obj is ProfileStatus && Equals((ProfileStatus)obj); - } - - /// - /// Returns for hashCode ProfileStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileStatusConverter.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileStatusConverter.cs deleted file mode 100644 index 82ea466b8d937..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProfileStatusConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ProfileStatus. - /// - public sealed class ProfileStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ProfileStatus by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ProfileStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ProfileStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ProfileStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ProfileStatus for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProxyResource.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProxyResource.cs deleted file mode 100644 index 3bc78225bf248..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/ProxyResource.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using System.Linq; - - /// - /// The resource model definition for a ARM proxy resource. It will have - /// everything other than required location and tags - /// - public partial class ProxyResource : Resource - { - /// - /// Initializes a new instance of the ProxyResource class. - /// - public ProxyResource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ProxyResource class. - /// - /// Fully qualified resource Id for the resource. Ex - - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} - /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Network/trafficManagerProfiles. - public ProxyResource(string id = default(string), string name = default(string), string type = default(string)) - : base(id, name, type) - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/QueryExperience.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/QueryExperience.cs deleted file mode 100644 index c346241fcb40e..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/QueryExperience.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Class representing a Traffic Manager HeatMap query experience - /// properties. - /// - public partial class QueryExperience - { - /// - /// Initializes a new instance of the QueryExperience class. - /// - public QueryExperience() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the QueryExperience class. - /// - /// The id of the endpoint from the - /// 'endpoints' array which these queries were routed to. - /// The number of queries originating from - /// this location. - /// The latency experienced by queries - /// originating from this location. - public QueryExperience(int endpointId, int queryCount, double? latency = default(double?)) - { - EndpointId = endpointId; - QueryCount = queryCount; - Latency = latency; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the id of the endpoint from the 'endpoints' array - /// which these queries were routed to. - /// - [JsonProperty(PropertyName = "endpointId")] - public int EndpointId { get; set; } - - /// - /// Gets or sets the number of queries originating from this location. - /// - [JsonProperty(PropertyName = "queryCount")] - public int QueryCount { get; set; } - - /// - /// Gets or sets the latency experienced by queries originating from - /// this location. - /// - [JsonProperty(PropertyName = "latency")] - public double? Latency { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - //Nothing to validate - } - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Region.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Region.cs deleted file mode 100644 index a1d29b4e8ab7d..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Region.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Class representing a region in the Geographic hierarchy used with the - /// Geographic traffic routing method. - /// - public partial class Region - { - /// - /// Initializes a new instance of the Region class. - /// - public Region() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Region class. - /// - /// The code of the region - /// The name of the region - /// The list of Regions grouped under this Region - /// in the Geographic Hierarchy. - public Region(string code = default(string), string name = default(string), IList regions = default(IList)) - { - Code = code; - Name = name; - Regions = regions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the code of the region - /// - [JsonProperty(PropertyName = "code")] - public string Code { get; set; } - - /// - /// Gets or sets the name of the region - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets the list of Regions grouped under this Region in the - /// Geographic Hierarchy. - /// - [JsonProperty(PropertyName = "regions")] - public IList Regions { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Resource.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Resource.cs deleted file mode 100644 index 0ebe8a3577ac8..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/Resource.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Newtonsoft.Json; - using System.Linq; - - /// - /// The core properties of ARM resources - /// - public partial class Resource : IResource - { - /// - /// Initializes a new instance of the Resource class. - /// - public Resource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Resource class. - /// - /// Fully qualified resource Id for the resource. Ex - - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} - /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Network/trafficManagerProfiles. - public Resource(string id = default(string), string name = default(string), string type = default(string)) - { - Id = id; - Name = name; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets fully qualified resource Id for the resource. Ex - - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; set; } - - /// - /// Gets or sets the name of the resource - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets the type of the resource. Ex- - /// Microsoft.Network/trafficManagerProfiles. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrackedResource.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrackedResource.cs deleted file mode 100644 index 22283a01397b5..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrackedResource.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The resource model definition for a ARM tracked top level resource - /// - public partial class TrackedResource : Resource - { - /// - /// Initializes a new instance of the TrackedResource class. - /// - public TrackedResource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the TrackedResource class. - /// - /// Fully qualified resource Id for the resource. Ex - - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} - /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Network/trafficManagerProfiles. - /// Resource tags. - /// The Azure Region where the resource - /// lives - public TrackedResource(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string)) - : base(id, name, type) - { - Tags = tags; - Location = location; - 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 Azure Region where the resource lives - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficFlow.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficFlow.cs deleted file mode 100644 index 5687c84a4744f..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficFlow.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Class representing a Traffic Manager HeatMap traffic flow properties. - /// - public partial class TrafficFlow - { - /// - /// Initializes a new instance of the TrafficFlow class. - /// - public TrafficFlow() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the TrafficFlow class. - /// - /// The IP address that this query experience - /// originated from. - /// The approximate latitude that these queries - /// originated from. - /// The approximate longitude that these - /// queries originated from. - /// The query experiences produced in - /// this HeatMap calculation. - public TrafficFlow(string sourceIp = default(string), double? latitude = default(double?), double? longitude = default(double?), IList queryExperiences = default(IList)) - { - SourceIp = sourceIp; - Latitude = latitude; - Longitude = longitude; - QueryExperiences = queryExperiences; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the IP address that this query experience originated - /// from. - /// - [JsonProperty(PropertyName = "sourceIp")] - public string SourceIp { get; set; } - - /// - /// Gets or sets the approximate latitude that these queries originated - /// from. - /// - [JsonProperty(PropertyName = "latitude")] - public double? Latitude { get; set; } - - /// - /// Gets or sets the approximate longitude that these queries - /// originated from. - /// - [JsonProperty(PropertyName = "longitude")] - public double? Longitude { get; set; } - - /// - /// Gets or sets the query experiences produced in this HeatMap - /// calculation. - /// - [JsonProperty(PropertyName = "queryExperiences")] - public IList QueryExperiences { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficManagerGeographicHierarchy.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficManagerGeographicHierarchy.cs deleted file mode 100644 index 8f7104eab659f..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficManagerGeographicHierarchy.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Class representing the Geographic hierarchy used with the Geographic - /// traffic routing method. - /// - [Rest.Serialization.JsonTransformation] - public partial class TrafficManagerGeographicHierarchy : ProxyResource - { - /// - /// Initializes a new instance of the TrafficManagerGeographicHierarchy - /// class. - /// - public TrafficManagerGeographicHierarchy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the TrafficManagerGeographicHierarchy - /// class. - /// - /// Fully qualified resource Id for the resource. Ex - - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} - /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Network/trafficManagerProfiles. - /// The region at the root of the - /// hierarchy from all the regions in the hierarchy can be - /// retrieved. - public TrafficManagerGeographicHierarchy(string id = default(string), string name = default(string), string type = default(string), Region geographicHierarchy = default(Region)) - : base(id, name, type) - { - GeographicHierarchy = geographicHierarchy; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the region at the root of the hierarchy from all the - /// regions in the hierarchy can be retrieved. - /// - [JsonProperty(PropertyName = "properties.geographicHierarchy")] - public Region GeographicHierarchy { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficManagerNameAvailability.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficManagerNameAvailability.cs deleted file mode 100644 index bc02445211fc7..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficManagerNameAvailability.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Class representing a Traffic Manager Name Availability response. - /// - public partial class TrafficManagerNameAvailability - { - /// - /// Initializes a new instance of the TrafficManagerNameAvailability - /// class. - /// - public TrafficManagerNameAvailability() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the TrafficManagerNameAvailability - /// class. - /// - /// The relative name. - /// Traffic Manager profile resource type. - /// Describes whether the relative name is - /// available or not. - /// The reason why the name is not available, when - /// applicable. - /// Descriptive message that explains why the - /// name is not available, when applicable. - public TrafficManagerNameAvailability(string name = default(string), string type = default(string), bool? nameAvailable = default(bool?), string reason = default(string), string message = default(string)) - { - Name = name; - Type = type; - NameAvailable = nameAvailable; - Reason = reason; - Message = message; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the relative name. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets traffic Manager profile resource type. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Gets or sets describes whether the relative name is available or - /// not. - /// - [JsonProperty(PropertyName = "nameAvailable")] - public bool? NameAvailable { get; set; } - - /// - /// Gets or sets the reason why the name is not available, when - /// applicable. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets descriptive message that explains why the name is not - /// available, when applicable. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficRoutingMethod.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficRoutingMethod.cs deleted file mode 100644 index 4fe13984f5ea8..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficRoutingMethod.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - - /// - /// Defines values for TrafficRoutingMethod. - /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(TrafficRoutingMethodConverter))] - public struct TrafficRoutingMethod : System.IEquatable - { - private TrafficRoutingMethod(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly TrafficRoutingMethod Performance = "Performance"; - - public static readonly TrafficRoutingMethod Priority = "Priority"; - - public static readonly TrafficRoutingMethod Weighted = "Weighted"; - - public static readonly TrafficRoutingMethod Geographic = "Geographic"; - - public static readonly TrafficRoutingMethod MultiValue = "MultiValue"; - - public static readonly TrafficRoutingMethod Subnet = "Subnet"; - - - /// - /// Underlying value of enum TrafficRoutingMethod - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for TrafficRoutingMethod - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type TrafficRoutingMethod - /// - public bool Equals(TrafficRoutingMethod e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to TrafficRoutingMethod - /// - public static implicit operator TrafficRoutingMethod(string value) - { - return new TrafficRoutingMethod(value); - } - - /// - /// Implicit operator to convert TrafficRoutingMethod to string - /// - public static implicit operator string(TrafficRoutingMethod e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum TrafficRoutingMethod - /// - public static bool operator == (TrafficRoutingMethod e1, TrafficRoutingMethod e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum TrafficRoutingMethod - /// - public static bool operator != (TrafficRoutingMethod e1, TrafficRoutingMethod e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for TrafficRoutingMethod - /// - public override bool Equals(object obj) - { - return obj is TrafficRoutingMethod && Equals((TrafficRoutingMethod)obj); - } - - /// - /// Returns for hashCode TrafficRoutingMethod - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficRoutingMethodConverter.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficRoutingMethodConverter.cs deleted file mode 100644 index 02702ae582721..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficRoutingMethodConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for TrafficRoutingMethod. - /// - public sealed class TrafficRoutingMethodConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to TrafficRoutingMethod by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(TrafficRoutingMethod).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to TrafficRoutingMethod. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (TrafficRoutingMethod)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for TrafficRoutingMethod for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficViewEnrollmentStatus.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficViewEnrollmentStatus.cs deleted file mode 100644 index c20cc190ff760..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficViewEnrollmentStatus.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager.Models -{ - using Newtonsoft.Json; - - /// - /// Defines values for TrafficViewEnrollmentStatus. - /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(TrafficViewEnrollmentStatusConverter))] - public struct TrafficViewEnrollmentStatus : System.IEquatable - { - private TrafficViewEnrollmentStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly TrafficViewEnrollmentStatus Enabled = "Enabled"; - - public static readonly TrafficViewEnrollmentStatus Disabled = "Disabled"; - - - /// - /// Underlying value of enum TrafficViewEnrollmentStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for TrafficViewEnrollmentStatus - /// - public override string ToString() - { - return UnderlyingValue == null ? null : UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type TrafficViewEnrollmentStatus - /// - public bool Equals(TrafficViewEnrollmentStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to TrafficViewEnrollmentStatus - /// - public static implicit operator TrafficViewEnrollmentStatus(string value) - { - return new TrafficViewEnrollmentStatus(value); - } - - /// - /// Implicit operator to convert TrafficViewEnrollmentStatus to string - /// - public static implicit operator string(TrafficViewEnrollmentStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum TrafficViewEnrollmentStatus - /// - public static bool operator == (TrafficViewEnrollmentStatus e1, TrafficViewEnrollmentStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum TrafficViewEnrollmentStatus - /// - public static bool operator != (TrafficViewEnrollmentStatus e1, TrafficViewEnrollmentStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for TrafficViewEnrollmentStatus - /// - public override bool Equals(object obj) - { - return obj is TrafficViewEnrollmentStatus && Equals((TrafficViewEnrollmentStatus)obj); - } - - /// - /// Returns for hashCode TrafficViewEnrollmentStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficViewEnrollmentStatusConverter.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficViewEnrollmentStatusConverter.cs deleted file mode 100644 index 51dc0244b239f..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/TrafficViewEnrollmentStatusConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for TrafficViewEnrollmentStatus. - /// - public sealed class TrafficViewEnrollmentStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// TrafficViewEnrollmentStatus by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(TrafficViewEnrollmentStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// TrafficViewEnrollmentStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (TrafficViewEnrollmentStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for TrafficViewEnrollmentStatus for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/UserMetricsModel.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/UserMetricsModel.cs deleted file mode 100644 index 2cd84f3ad69a0..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/Models/UserMetricsModel.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Class representing Traffic Manager User Metrics. - /// - [Rest.Serialization.JsonTransformation] - public partial class UserMetricsModel : ProxyResource - { - /// - /// Initializes a new instance of the UserMetricsModel class. - /// - public UserMetricsModel() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the UserMetricsModel class. - /// - /// Fully qualified resource Id for the resource. Ex - - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} - /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Network/trafficManagerProfiles. - /// The key returned by the User Metrics - /// operation. - public UserMetricsModel(string id = default(string), string name = default(string), string type = default(string), string key = default(string)) - : base(id, name, type) - { - Key = key; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the key returned by the User Metrics operation. - /// - [JsonProperty(PropertyName = "properties.key")] - public string Key { get; set; } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ProfilesOperations.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ProfilesOperations.cs deleted file mode 100644 index d67b99e1e5354..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ProfilesOperations.cs +++ /dev/null @@ -1,1444 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - 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; - - /// - /// ProfilesOperations operations. - /// - internal partial class ProfilesOperations : IServiceOperations, IProfilesOperations - { - /// - /// Initializes a new instance of the ProfilesOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal ProfilesOperations(TrafficManagerManagementClient client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - Client = client; - } - - /// - /// Gets a reference to the TrafficManagerManagementClient - /// - public TrafficManagerManagementClient Client { get; private set; } - - /// - /// Checks the availability of a Traffic Manager Relative DNS name. - /// - /// - /// The name of the resource. - /// - /// - /// The type of the resource. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CheckTrafficManagerRelativeDnsNameAvailabilityWithHttpMessagesAsync(string name = default(string), string type = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - CheckTrafficManagerRelativeDnsNameAvailabilityParameters parameters = new CheckTrafficManagerRelativeDnsNameAvailabilityParameters(); - if (name != null || type != null) - { - parameters.Name = name; - parameters.Type = type; - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("parameters", parameters); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CheckTrafficManagerRelativeDnsNameAvailability", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Network/checkTrafficManagerNameAvailability").ToString(); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("POST"); - _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) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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; - } - - /// - /// Lists all Traffic Manager profiles within a resource group. - /// - /// - /// The name of the resource group containing the Traffic Manager profiles to - /// be listed. - /// - /// - /// 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>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("cancellationToken", cancellationToken); - 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/trafficmanagerprofiles").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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; - } - - /// - /// Lists all Traffic Manager profiles within a subscription. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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 Traffic Manager profile. - /// - /// - /// The name of the resource group containing the Traffic Manager profile. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (profileName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - 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/trafficmanagerprofiles/{profileName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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; - } - - /// - /// Create or update a Traffic Manager profile. - /// - /// - /// The name of the resource group containing the Traffic Manager profile. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The Traffic Manager profile parameters supplied to the CreateOrUpdate - /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, Profile parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (profileName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); - } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("parameters", parameters); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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/trafficmanagerprofiles/{profileName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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(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 != 201) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Deletes a Traffic Manager profile. - /// - /// - /// The name of the resource group containing the Traffic Manager profile to be - /// deleted. - /// - /// - /// The name of the Traffic Manager profile to be deleted. - /// - /// - /// 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> DeleteWithHttpMessagesAsync(string resourceGroupName, string profileName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (profileName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Delete", 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/trafficmanagerprofiles/{profileName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 != 200 && (int)_statusCode != 204) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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; - } - - /// - /// Update a Traffic Manager profile. - /// - /// - /// The name of the resource group containing the Traffic Manager profile. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The Traffic Manager profile parameters supplied to the Update 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string profileName, Profile parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (profileName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "profileName"); - } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("profileName", profileName); - tracingParameters.Add("parameters", parameters); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Update", 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/trafficmanagerprofiles/{profileName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{profileName}", System.Uri.EscapeDataString(profileName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ProfilesOperationsExtensions.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ProfilesOperationsExtensions.cs deleted file mode 100644 index 8ab996b3aebda..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/ProfilesOperationsExtensions.cs +++ /dev/null @@ -1,307 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for ProfilesOperations. - /// - public static partial class ProfilesOperationsExtensions - { - /// - /// Checks the availability of a Traffic Manager Relative DNS name. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource. - /// - /// - /// The type of the resource. - /// - public static TrafficManagerNameAvailability CheckTrafficManagerRelativeDnsNameAvailability(this IProfilesOperations operations, string name = default(string), string type = default(string)) - { - return operations.CheckTrafficManagerRelativeDnsNameAvailabilityAsync(name, type).GetAwaiter().GetResult(); - } - - /// - /// Checks the availability of a Traffic Manager Relative DNS name. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource. - /// - /// - /// The type of the resource. - /// - /// - /// The cancellation token. - /// - public static async Task CheckTrafficManagerRelativeDnsNameAvailabilityAsync(this IProfilesOperations operations, string name = default(string), string type = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CheckTrafficManagerRelativeDnsNameAvailabilityWithHttpMessagesAsync(name, type, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Lists all Traffic Manager profiles within a resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager profiles to - /// be listed. - /// - public static IEnumerable ListByResourceGroup(this IProfilesOperations operations, string resourceGroupName) - { - return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); - } - - /// - /// Lists all Traffic Manager profiles within a resource group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager profiles to - /// be listed. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByResourceGroupAsync(this IProfilesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Lists all Traffic Manager profiles within a subscription. - /// - /// - /// The operations group for this extension method. - /// - public static IEnumerable ListBySubscription(this IProfilesOperations operations) - { - return operations.ListBySubscriptionAsync().GetAwaiter().GetResult(); - } - - /// - /// Lists all Traffic Manager profiles within a subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async Task> ListBySubscriptionAsync(this IProfilesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Gets a Traffic Manager profile. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager profile. - /// - /// - /// The name of the Traffic Manager profile. - /// - public static Profile Get(this IProfilesOperations operations, string resourceGroupName, string profileName) - { - return operations.GetAsync(resourceGroupName, profileName).GetAwaiter().GetResult(); - } - - /// - /// Gets a Traffic Manager profile. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager profile. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Create or update a Traffic Manager profile. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager profile. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The Traffic Manager profile parameters supplied to the CreateOrUpdate - /// operation. - /// - public static Profile CreateOrUpdate(this IProfilesOperations operations, string resourceGroupName, string profileName, Profile parameters) - { - return operations.CreateOrUpdateAsync(resourceGroupName, profileName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Create or update a Traffic Manager profile. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager profile. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The Traffic Manager profile parameters supplied to the CreateOrUpdate - /// operation. - /// - /// - /// The cancellation token. - /// - public static async Task CreateOrUpdateAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, Profile parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, profileName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes a Traffic Manager profile. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager profile to be - /// deleted. - /// - /// - /// The name of the Traffic Manager profile to be deleted. - /// - public static DeleteOperationResult Delete(this IProfilesOperations operations, string resourceGroupName, string profileName) - { - return operations.DeleteAsync(resourceGroupName, profileName).GetAwaiter().GetResult(); - } - - /// - /// Deletes a Traffic Manager profile. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager profile to be - /// deleted. - /// - /// - /// The name of the Traffic Manager profile to be deleted. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Update a Traffic Manager profile. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager profile. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The Traffic Manager profile parameters supplied to the Update operation. - /// - public static Profile Update(this IProfilesOperations operations, string resourceGroupName, string profileName, Profile parameters) - { - return operations.UpdateAsync(resourceGroupName, profileName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Update a Traffic Manager profile. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing the Traffic Manager profile. - /// - /// - /// The name of the Traffic Manager profile. - /// - /// - /// The Traffic Manager profile parameters supplied to the Update operation. - /// - /// - /// The cancellation token. - /// - public static async Task UpdateAsync(this IProfilesOperations operations, string resourceGroupName, string profileName, Profile parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, profileName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/SdkInfo_TrafficManagerManagementClient.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/SdkInfo_TrafficManagerManagementClient.cs deleted file mode 100644 index 1da11ad88ecc6..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/SdkInfo_TrafficManagerManagementClient.cs +++ /dev/null @@ -1,42 +0,0 @@ - -// -// Code 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.TrafficManager -{ - using System; - using System.Collections.Generic; - using System.Linq; - - internal static partial class SdkInfo - { - public static IEnumerable> ApiInfo_TrafficManagerManagementClient - { - get - { - return new Tuple[] - { - new Tuple("Network", "Endpoints", "2018-08-01"), - new Tuple("Network", "GeographicHierarchies", "2018-08-01"), - new Tuple("Network", "HeatMap", "2018-08-01"), - new Tuple("Network", "Profiles", "2018-08-01"), - new Tuple("Network", "TrafficManagerUserMetricsKeys", "2018-08-01"), - }.AsEnumerable(); - } - } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/trafficmanager/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --opt-in-extensible-enums --csharp-sdks-folder=D:\\GitHub\\Repos\\AllenCalMinChild\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "3f1e770aa89c7d306d7cdb4f7aa852819d2f9fa8"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section - } -} - diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerManagementClient.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerManagementClient.cs deleted file mode 100644 index 53c207fde9c54..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerManagementClient.cs +++ /dev/null @@ -1,383 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Microsoft.Rest.Serialization; - using Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - using System.Net; - using System.Net.Http; - - public partial class TrafficManagerManagementClient : ServiceClient, ITrafficManagerManagementClient, IAzureClient - { - /// - /// The base URI of the service. - /// - public System.Uri BaseUri { get; set; } - - /// - /// Gets or sets json serialization settings. - /// - public JsonSerializerSettings SerializationSettings { get; private set; } - - /// - /// Gets or sets json deserialization settings. - /// - public JsonSerializerSettings DeserializationSettings { get; private set; } - - /// - /// Credentials needed for the client to connect to Azure. - /// - public ServiceClientCredentials Credentials { get; private set; } - - /// - /// Gets subscription credentials which uniquely identify Microsoft Azure - /// subscription. The subscription ID forms part of the URI for every service - /// call. - /// - public string SubscriptionId { get; set; } - - /// - /// Client Api Version. - /// - public string ApiVersion { get; private set; } - - /// - /// The preferred language for the response. - /// - public string AcceptLanguage { get; set; } - - /// - /// The retry timeout in seconds for Long Running Operations. Default value is - /// 30. - /// - public int? LongRunningOperationRetryTimeout { get; set; } - - /// - /// Whether a unique x-ms-client-request-id should be generated. When set to - /// true a unique x-ms-client-request-id value is generated and included in - /// each request. Default is true. - /// - public bool? GenerateClientRequestId { get; set; } - - /// - /// Gets the IEndpointsOperations. - /// - public virtual IEndpointsOperations Endpoints { get; private set; } - - /// - /// Gets the IProfilesOperations. - /// - public virtual IProfilesOperations Profiles { get; private set; } - - /// - /// Gets the IGeographicHierarchiesOperations. - /// - public virtual IGeographicHierarchiesOperations GeographicHierarchies { get; private set; } - - /// - /// Gets the IHeatMapOperations. - /// - public virtual IHeatMapOperations HeatMap { get; private set; } - - /// - /// Gets the ITrafficManagerUserMetricsKeysOperations. - /// - public virtual ITrafficManagerUserMetricsKeysOperations TrafficManagerUserMetricsKeys { get; private set; } - - /// - /// Initializes a new instance of the TrafficManagerManagementClient class. - /// - /// - /// HttpClient to be used - /// - /// - /// True: will dispose the provided httpClient on calling TrafficManagerManagementClient.Dispose(). False: will not dispose provided httpClient - protected TrafficManagerManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) - { - Initialize(); - } - - /// - /// Initializes a new instance of the TrafficManagerManagementClient class. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - protected TrafficManagerManagementClient(params DelegatingHandler[] handlers) : base(handlers) - { - Initialize(); - } - - /// - /// Initializes a new instance of the TrafficManagerManagementClient class. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - protected TrafficManagerManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) - { - Initialize(); - } - - /// - /// Initializes a new instance of the TrafficManagerManagementClient class. - /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - protected TrafficManagerManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - BaseUri = baseUri; - } - - /// - /// Initializes a new instance of the TrafficManagerManagementClient class. - /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - protected TrafficManagerManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - BaseUri = baseUri; - } - - /// - /// Initializes a new instance of the TrafficManagerManagementClient class. - /// - /// - /// Required. Credentials needed for the client to connect to Azure. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public TrafficManagerManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) - { - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - Credentials = credentials; - if (Credentials != null) - { - Credentials.InitializeServiceClient(this); - } - } - - /// - /// Initializes a new instance of the TrafficManagerManagementClient class. - /// - /// - /// Required. Credentials needed for the client to connect to Azure. - /// - /// - /// HttpClient to be used - /// - /// - /// True: will dispose the provided httpClient on calling TrafficManagerManagementClient.Dispose(). False: will not dispose provided httpClient - /// - /// Thrown when a required parameter is null - /// - public TrafficManagerManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) - { - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - Credentials = credentials; - if (Credentials != null) - { - Credentials.InitializeServiceClient(this); - } - } - - /// - /// Initializes a new instance of the TrafficManagerManagementClient class. - /// - /// - /// Required. Credentials needed for the client to connect to Azure. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public TrafficManagerManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) - { - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - Credentials = credentials; - if (Credentials != null) - { - Credentials.InitializeServiceClient(this); - } - } - - /// - /// Initializes a new instance of the TrafficManagerManagementClient class. - /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Required. Credentials needed for the client to connect to Azure. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public TrafficManagerManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - BaseUri = baseUri; - Credentials = credentials; - if (Credentials != null) - { - Credentials.InitializeServiceClient(this); - } - } - - /// - /// Initializes a new instance of the TrafficManagerManagementClient class. - /// - /// - /// Optional. The base URI of the service. - /// - /// - /// Required. Credentials needed for the client to connect to Azure. - /// - /// - /// Optional. The http client handler used to handle http transport. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Thrown when a required parameter is null - /// - public TrafficManagerManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - BaseUri = baseUri; - Credentials = credentials; - if (Credentials != null) - { - Credentials.InitializeServiceClient(this); - } - } - - /// - /// An optional partial-method to perform custom initialization. - /// - partial void CustomInitialize(); - /// - /// Initializes client properties. - /// - private void Initialize() - { - Endpoints = new EndpointsOperations(this); - Profiles = new ProfilesOperations(this); - GeographicHierarchies = new GeographicHierarchiesOperations(this); - HeatMap = new HeatMapOperations(this); - TrafficManagerUserMetricsKeys = new TrafficManagerUserMetricsKeysOperations(this); - BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2018-08-01"; - AcceptLanguage = "en-US"; - LongRunningOperationRetryTimeout = 30; - GenerateClientRequestId = true; - SerializationSettings = new JsonSerializerSettings - { - Formatting = Newtonsoft.Json.Formatting.Indented, - DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, - DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, - NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, - ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new ReadOnlyJsonContractResolver(), - Converters = new List - { - new Iso8601TimeSpanConverter() - } - }; - SerializationSettings.Converters.Add(new TransformationJsonConverter()); - DeserializationSettings = new JsonSerializerSettings - { - DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, - DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, - NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, - ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new ReadOnlyJsonContractResolver(), - Converters = new List - { - new Iso8601TimeSpanConverter() - } - }; - CustomInitialize(); - DeserializationSettings.Converters.Add(new TransformationJsonConverter()); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerUserMetricsKeysOperations.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerUserMetricsKeysOperations.cs deleted file mode 100644 index ef9d9328f6510..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerUserMetricsKeysOperations.cs +++ /dev/null @@ -1,589 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code 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.TrafficManager -{ - 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; - - /// - /// TrafficManagerUserMetricsKeysOperations operations. - /// - internal partial class TrafficManagerUserMetricsKeysOperations : IServiceOperations, ITrafficManagerUserMetricsKeysOperations - { - /// - /// Initializes a new instance of the TrafficManagerUserMetricsKeysOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal TrafficManagerUserMetricsKeysOperations(TrafficManagerManagementClient client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - Client = client; - } - - /// - /// Gets a reference to the TrafficManagerManagementClient - /// - public TrafficManagerManagementClient Client { get; private set; } - - /// - /// Get the subscription-level key used for Real User Metrics collection. - /// - /// - /// 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(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - 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}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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; - } - - /// - /// Create or update a subscription-level key used for Real User Metrics - /// collection. - /// - /// - /// 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> CreateOrUpdateWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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; - // 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 != 201) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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 == 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); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Delete a subscription-level key used for Real User Metrics collection. - /// - /// - /// 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> DeleteWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (Client.ApiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - 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/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerUserMetricsKeysOperationsExtensions.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerUserMetricsKeysOperationsExtensions.cs deleted file mode 100644 index bf03d22e4b7e9..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated/TrafficManagerUserMetricsKeysOperationsExtensions.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.TrafficManager -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for TrafficManagerUserMetricsKeysOperations. - /// - public static partial class TrafficManagerUserMetricsKeysOperationsExtensions - { - /// - /// Get the subscription-level key used for Real User Metrics collection. - /// - /// - /// The operations group for this extension method. - /// - public static UserMetricsModel Get(this ITrafficManagerUserMetricsKeysOperations operations) - { - return operations.GetAsync().GetAwaiter().GetResult(); - } - - /// - /// Get the subscription-level key used for Real User Metrics collection. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this ITrafficManagerUserMetricsKeysOperations operations, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Create or update a subscription-level key used for Real User Metrics - /// collection. - /// - /// - /// The operations group for this extension method. - /// - public static UserMetricsModel CreateOrUpdate(this ITrafficManagerUserMetricsKeysOperations operations) - { - return operations.CreateOrUpdateAsync().GetAwaiter().GetResult(); - } - - /// - /// Create or update a subscription-level key used for Real User Metrics - /// collection. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async Task CreateOrUpdateAsync(this ITrafficManagerUserMetricsKeysOperations operations, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Delete a subscription-level key used for Real User Metrics collection. - /// - /// - /// The operations group for this extension method. - /// - public static DeleteOperationResult Delete(this ITrafficManagerUserMetricsKeysOperations operations) - { - return operations.DeleteAsync().GetAwaiter().GetResult(); - } - - /// - /// Delete a subscription-level key used for Real User Metrics collection. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteAsync(this ITrafficManagerUserMetricsKeysOperations operations, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Microsoft.Azure.Management.TrafficManager.csproj b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Microsoft.Azure.Management.TrafficManager.csproj deleted file mode 100644 index 57b7d6e47700c..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Microsoft.Azure.Management.TrafficManager.csproj +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - Microsoft.Azure.Management.TrafficManager - Microsoft Azure Management TrafficManager Library - Microsoft.Azure.Management.TrafficManager - 2.5.4 - Microsoft Azure TrafficManager management;TrafficManager;TrafficManager management; - New API version 2018-08-01 including support for MinChildEndpoints with IP type. - - - $(SdkTargetFx) - - - - - - \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Properties/AssemblyInfo.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Properties/AssemblyInfo.cs deleted file mode 100644 index 1b23d2e669e15..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -using System.Reflection; -using System.Resources; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("Microsoft Azure Traffic Manager Management Library")] -[assembly: AssemblyDescription("Provides Microsoft Azure Traffic Manager management functions for managing the Microsoft Azure Traffic Manager service.")] - -[assembly: AssemblyVersion("2.0.1.0")] -[assembly: AssemblyFileVersion("2.5.4.0")] - -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("Microsoft Azure .NET SDK")] -[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: NeutralResourcesLanguage("en")] diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/generate.ps1 b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/generate.ps1 deleted file mode 100644 index 2a1c471972d01..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/generate.ps1 +++ /dev/null @@ -1 +0,0 @@ -Start-AutoRestCodeGeneration -ResourceProvider "trafficmanager/resource-manager" -AutoRestVersion "v2" -AutoRestCodeGenerationFlags "--opt-in-extensible-enums" \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/RecordedDelegatingHandler.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/RecordedDelegatingHandler.cs deleted file mode 100644 index 32433b9111e9e..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/RecordedDelegatingHandler.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -namespace TrafficManager.Tests.Helpers -{ - using System; - using System.Net; - using System.Net.Http; - using System.Net.Http.Headers; - using System.Threading.Tasks; - - public class RecordedDelegatingHandler : DelegatingHandler - { - private HttpResponseMessage _response; - - public RecordedDelegatingHandler() - { - StatusCodeToReturn = HttpStatusCode.Created; - SubsequentStatusCodeToReturn = StatusCodeToReturn; - } - - public RecordedDelegatingHandler(HttpResponseMessage response) - { - StatusCodeToReturn = HttpStatusCode.Created; - SubsequentStatusCodeToReturn = StatusCodeToReturn; - _response = response; - } - - public HttpStatusCode StatusCodeToReturn { get; set; } - - public HttpStatusCode SubsequentStatusCodeToReturn { get; set; } - - public string Request { get; private set; } - - public HttpRequestHeaders RequestHeaders { get; private set; } - - public HttpContentHeaders ContentHeaders { get; private set; } - - public HttpMethod Method { get; private set; } - - public Uri Uri { get; private set; } - - public bool IsPassThrough { get; set; } - - private int counter; - - protected override async Task SendAsync(HttpRequestMessage request, - System.Threading.CancellationToken cancellationToken) - { - counter++; - // Save request - if (request.Content == null) - { - Request = string.Empty; - } - else - { - Request = await request.Content.ReadAsStringAsync(); - } - RequestHeaders = request.Headers; - if (request.Content != null) - { - ContentHeaders = request.Content.Headers; - } - Method = request.Method; - Uri = request.RequestUri; - - // Prepare response - if (IsPassThrough) - { - return await base.SendAsync(request, cancellationToken); - } - else - { - if (_response != null && counter == 1) - { - return _response; - } - else - { - var statusCode = StatusCodeToReturn; - if (counter > 1) - statusCode = SubsequentStatusCodeToReturn; - HttpResponseMessage response = new HttpResponseMessage(statusCode); - response.Content = new StringContent(""); - return response; - } - } - } - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/ResourceGroupHelper.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/ResourceGroupHelper.cs deleted file mode 100644 index 2756ed0e900b7..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/ResourceGroupHelper.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// - -namespace TrafficManager.Tests.Helpers -{ - using System; - using System.Collections.Generic; - using Microsoft.Azure.Management.Resources; - using System.Linq; - using Microsoft.Azure.Management.Resources.Models; - using Microsoft.Rest.ClientRuntime.Azure.TestFramework; - using Xunit; - - public static class ResourceGroupHelper - { - /// - /// Default constructor for management clients, using the TestSupport Infrastructure - /// - /// the test class - /// A resource management client, created from the current context (environment variables) - public static ResourceManagementClient GetResourceManagementClient(this TestBase testBase, MockContext context) - { - var client = context.GetServiceClient(); - return client; - } - - /// - /// Get a default resource location for a given resource type - /// - /// The resource management client - /// The type of resource to create - /// A location where this resource type is supported for the current subscription - public static string GetResourceLocation(ResourceManagementClient client, string resourceType) - { - var supportedLocations = new HashSet(new[] { "global", "East Asia", "West US", "North Central US", "North Europe", "West Europe", "South Central US", "East US" }, StringComparer.OrdinalIgnoreCase); - - string location = null; - string[] parts = resourceType.Split('/'); - string providerName = parts[0]; - var provider = client.Providers.Get(providerName); - foreach (var resource in provider.ResourceTypes) - { - if (string.Equals(resource.ResourceType, parts[1], StringComparison.OrdinalIgnoreCase)) - { - location = resource.Locations.FirstOrDefault(supportedLocations.Contains); - } - } - - return location; - } - - public const string ResourceGroupLocation = "Central US"; - - public static ResourceGroup CreateResourceGroup(this TestBase testBase, MockContext context, string resourceGroupName) - { - ResourceManagementClient resourcesClient = ResourceGroupHelper.GetResourceManagementClient(testBase, context); - - - Assert.False(string.IsNullOrEmpty(ResourceGroupLocation), "CSM did not return any valid locations for DNS resources"); - - var response = resourcesClient.ResourceGroups.CreateOrUpdate(resourceGroupName, - new ResourceGroup - { - Location = ResourceGroupLocation - }); - - return response; - } - - public static void DeleteResourceGroup(this TestBase testBase, MockContext context, string resourceGroupName) - { - ResourceManagementClient resourcesClient = ResourceGroupHelper.GetResourceManagementClient(testBase, context); - - resourcesClient.ResourceGroups.Delete(resourceGroupName); - } - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/TrafficManagerHelper.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/TrafficManagerHelper.cs deleted file mode 100644 index 50f5056f9e558..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Helpers/TrafficManagerHelper.cs +++ /dev/null @@ -1,287 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -namespace Microsoft.Azure.Management.TrafficManager.Testing.Helpers -{ - using System.Collections.Generic; - using Microsoft.Azure.Management.Resources; - using Microsoft.Azure.Management.TrafficManager.Models; - using Microsoft.Rest.ClientRuntime.Azure.TestFramework; - - public static class TrafficManagerHelper - { - /// - /// Default constructor for management clients, using the TestSupport Infrastructure - /// - /// the test class - /// - /// A resource management client, created from the current context (environment variables) - public static TrafficManagerManagementClient GetTrafficManagerManagementClient(this TestBase testBase, MockContext context) - { - return context.GetServiceClient(); - } - - public static Profile BuildProfile( - string id, - string name, - string type, - string location, - Dictionary tags, - string profileStatus, - string trafficRoutingMethod, - string trafficViewEnrollmentStatus, - long? maxReturn, - DnsConfig dnsConfig, - MonitorConfig monitorConfig, - Endpoint[] endpoints) - { - return new Profile( - id: id, - name: name, - type: type, - location: location, - tags: tags, - profileStatus: profileStatus, - trafficRoutingMethod: trafficRoutingMethod, - trafficViewEnrollmentStatus: trafficViewEnrollmentStatus, - maxReturn: maxReturn, - dnsConfig: dnsConfig, - monitorConfig: monitorConfig, - endpoints: endpoints); - } - - public static Profile CreateOrUpdateDefaultProfileWithExternalEndpoint( - TrafficManagerManagementClient trafficManagerClient, - string resourceGroupName, - string profileName, - string trafficRoutingMethod = "Performance", - string trafficViewEnrollmentStatus = "Disabled", - string target = "foobar.contoso.com") - { - - Profile profile = TrafficManagerHelper.CreateOrUpdateDefaultEmptyProfile( - trafficManagerClient, - resourceGroupName, - profileName, - trafficRoutingMethod, - trafficViewEnrollmentStatus); - - // Create the endpoint and associate it with the resource group and profile. - TrafficManagerHelper.CreateOrUpdateDefaultEndpoint( - trafficManagerClient, - resourceGroupName, - profileName, - target); - - return trafficManagerClient.Profiles.Get(resourceGroupName, profileName); - } - - public static Profile CreateOrUpdateDefaultEmptyProfile( - TrafficManagerManagementClient trafficManagerClient, - string resourceGroupName, - string profileName, - string trafficRoutingMethod = "Performance", - string trafficViewEnrollmentStatus = "Disabled", - long? maxReturn = null) - { - return trafficManagerClient.Profiles.CreateOrUpdate( - resourceGroupName, - profileName, - GenerateDefaultEmptyProfile(profileName, trafficRoutingMethod, trafficViewEnrollmentStatus, maxReturn)); - } - - public static Endpoint CreateOrUpdateDefaultEndpoint( - TrafficManagerManagementClient trafficManagerClient, - string resourceGroupName, - string profileName, - string target = "foobar.contoso.com") - { - string endpointName = "My external endpoint"; - return trafficManagerClient.Endpoints.CreateOrUpdate( - resourceGroupName, - profileName, - "ExternalEndpoints", - endpointName, - GenerateDefaultEndpoint(endpointName, target)); - } - - public static Profile GenerateDefaultEmptyProfile( - string profileName, - string trafficRoutingMethod = "Performance", - string trafficViewEnrollmentStatus = "Disabled", - long? maxReturn = null) - { - return TrafficManagerHelper.BuildProfile( - id: null, - name: profileName, - type: "microsoft.network/trafficmanagerprofiles", - location: "global", - tags: null, - profileStatus: "Enabled", - trafficRoutingMethod: trafficRoutingMethod, - trafficViewEnrollmentStatus: trafficViewEnrollmentStatus, - maxReturn: maxReturn, - dnsConfig: new DnsConfig - { - RelativeName = profileName, - Ttl = 35 - }, - monitorConfig: new MonitorConfig - { - Protocol = "http", - Port = 80, - Path = "/testpath.aspx" - }, - endpoints: null); - } - - public static Endpoint GenerateDefaultEndpoint(string name = "My external endpoint", string target = "foobar.contoso.com") - { - Endpoint endpoint = new Endpoint( - null, - name, - "Microsoft.Network/trafficManagerProfiles/ExternalEndpoints"); - endpoint.TargetResourceId = null; - endpoint.Target = target; - endpoint.EndpointLocation = "North Europe"; - endpoint.EndpointStatus = "Enabled"; - return endpoint; - } - - public static string GenerateName() - { - return TestUtilities.GenerateName("azuresdkfornetautoresttrafficmanager"); - } - - - public static string GetPersistentResourceGroupName() - { - return "azuresdkpersistentheatmapdata"; - - } - - - public static string GetPersistentTrafficViewProfile() - { - return "persistentHeatMap"; - } - - public static Profile CreateOrUpdateProfileWithCustomHeadersAndStatusCodeRanges( - TrafficManagerManagementClient trafficManagerClient, - string resourceGroupName, - string profileName) - { - Profile expectedProfile = GenerateDefaultEmptyProfile(profileName); - expectedProfile.MonitorConfig.CustomHeaders = new List - { - new MonitorConfigCustomHeadersItem("host", "www.contoso.com"), - new MonitorConfigCustomHeadersItem("custom-name", "custom-value") - }; - - expectedProfile.MonitorConfig.ExpectedStatusCodeRanges = new List - { - new MonitorConfigExpectedStatusCodeRangesItem(200, 499) - }; - - trafficManagerClient.Profiles.CreateOrUpdate( - resourceGroupName, - profileName, - expectedProfile); - - - expectedProfile.Endpoints = new List(); - for (int ndx = 0; ndx < 3; ndx++) - { - Endpoint endpoint = TrafficManagerHelper.GenerateDefaultEndpoint( - $"My external endpoint {ndx}", - $"foobar.Contoso{ndx}.com"); - - endpoint.CustomHeaders = new List - { - new EndpointPropertiesCustomHeadersItem("custom-name", "custom-value-overriden") - }; - - trafficManagerClient.Endpoints.CreateOrUpdate( - resourceGroupName, - profileName, - "ExternalEndpoints", - endpoint.Name, - endpoint); - - expectedProfile.Endpoints.Add(endpoint); - } - - return expectedProfile; - } - - public static Profile CreateOrUpdateProfileWithSubnets( - TrafficManagerManagementClient trafficManagerClient, - string resourceGroupName, - string profileName) - { - Profile expectedProfile = CreateOrUpdateDefaultEmptyProfile(trafficManagerClient, resourceGroupName, profileName, "Subnet"); - - expectedProfile.Endpoints = new List(); - for (int ndx = 0; ndx < 4; ndx++) - { - Endpoint endpoint = TrafficManagerHelper.GenerateDefaultEndpoint( - $"My external endpoint {ndx}", - $"foobar.Contoso{ndx}.com"); - - EndpointPropertiesSubnetsItem range = new EndpointPropertiesSubnetsItem($"1.2.{ndx}.0", $"1.2.{ndx}.250"); - EndpointPropertiesSubnetsItem subnet = new EndpointPropertiesSubnetsItem($"3.4.{ndx}.0", null, 24); - endpoint.Subnets = new List { range, subnet }; - - trafficManagerClient.Endpoints.CreateOrUpdate( - resourceGroupName, - profileName, - "ExternalEndpoints", - endpoint.Name, - endpoint); - - expectedProfile.Endpoints.Add(endpoint); - } - - return expectedProfile; - } - - public static Profile CreateOrUpdateProfileWithMultiValue( - TrafficManagerManagementClient trafficManagerClient, - string resourceGroupName, - string profileName, - long? maxReturn = 2, - long? minChildEndpointsSeed = null, - long? minChildEndpointsIPv4Seed = null, - long? minChildEndpointsIPv6Seed = null) - { - Profile expectedProfile = CreateOrUpdateDefaultEmptyProfile(trafficManagerClient, resourceGroupName, profileName, "MultiValue", "Disabled", maxReturn); - - expectedProfile.Endpoints = new List(); - for (int ndx = 0; ndx < 5; ndx++) - { - Endpoint endpoint = TrafficManagerHelper.GenerateDefaultEndpoint( - $"My external endpoint {ndx}", - $"1.2.3.{ndx}"); - - endpoint.MinChildEndpoints = minChildEndpointsSeed.HasValue ? minChildEndpointsSeed + ndx : null; - endpoint.MinChildEndpointsIPv4 = minChildEndpointsIPv4Seed.HasValue ? minChildEndpointsIPv4Seed + ndx : null; - endpoint.MinChildEndpointsIPv6 = minChildEndpointsIPv6Seed.HasValue ? minChildEndpointsIPv6Seed + ndx : null; - - EndpointPropertiesSubnetsItem range = new EndpointPropertiesSubnetsItem($"1.2.{ndx}.0", $"1.2.{ndx}.250"); - EndpointPropertiesSubnetsItem subnet = new EndpointPropertiesSubnetsItem($"3.4.{ndx}.0", null, 24); - endpoint.Subnets = new List { range, subnet }; - - trafficManagerClient.Endpoints.CreateOrUpdate( - resourceGroupName, - profileName, - "ExternalEndpoints", - endpoint.Name, - endpoint); - - expectedProfile.Endpoints.Add(endpoint); - } - - return expectedProfile; - } - } -} diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Microsoft.Azure.Management.TrafficManager.Tests.csproj b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Microsoft.Azure.Management.TrafficManager.Tests.csproj deleted file mode 100644 index 1a04162f6a597..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Microsoft.Azure.Management.TrafficManager.Tests.csproj +++ /dev/null @@ -1,26 +0,0 @@ - - - - TrafficManager.Tests - TrafficManager.Tests Class Library - TrafficManager.Tests - 1.0.0 - true - - - - - - - - - - PreserveNewest - - - - - - - - \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Properties/AssemblyInfo.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Properties/AssemblyInfo.cs deleted file mode 100644 index 137dfccf9619d..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("TrafficManager2.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("TrafficManager2.Tests")] -[assembly: AssemblyCopyright("Copyright © 2015")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("573bce0a-b6cf-434a-a29b-a583b6737eb7")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.0.0.0")] -[assembly: AssemblyFileVersion("2.0.0.0")] diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/EndpointScenarioTests.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/EndpointScenarioTests.cs deleted file mode 100644 index 731a72ce2e537..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/EndpointScenarioTests.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -namespace Microsoft.Azure.Management.TrafficManager.Testing.ScenarioTests -{ - using System.Collections.Generic; - using System.Linq; - using global::TrafficManager.Tests.Helpers; - using Microsoft.Azure.Management.Resources.Models; - using Microsoft.Azure.Management.TrafficManager.Models; - using Microsoft.Azure.Management.TrafficManager.Testing.Helpers; - using Microsoft.Rest.ClientRuntime.Azure.TestFramework; - using Xunit; - - public class EndpointScenarioTests : TestBase - { - [Fact] - public void CrudEndpointGeographicProfile() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - string resourceGroupName = TrafficManagerHelper.GenerateName(); - string profileName = TrafficManagerHelper.GenerateName(); - ResourceGroup resourceGroup = this.CreateResourceGroup(context, resourceGroupName); - - // Create the profile - Profile profile = trafficManagerClient.Profiles.CreateOrUpdate( - resourceGroup.Name, - profileName, - TrafficManagerHelper.GenerateDefaultEmptyProfile(profileName, "Geographic")); - - Assert.Equal("Geographic", profile.TrafficRoutingMethod); - - Endpoint endpoint = new Endpoint( - null, - "My external endpoint", - "Microsoft.Network/trafficManagerProfiles/ExternalEndpoints"); - endpoint.TargetResourceId = null; - endpoint.Target = "foobar.contoso.com"; - endpoint.EndpointStatus = "Enabled"; - endpoint.GeoMapping = new[] { "GEO-AS", "GEO-AF" }; - - // Create the endpoint - Endpoint createEndpointResponse = trafficManagerClient.Endpoints.CreateOrUpdate( - resourceGroup.Name, - profileName, - "ExternalEndpoints", - endpoint.Name, - endpoint); - - Assert.Equal("GEO-AS", createEndpointResponse.GeoMapping[0]); - Assert.Equal("GEO-AF", createEndpointResponse.GeoMapping[1]); - - // Get the endpoint - Endpoint endpointGetResponse = trafficManagerClient.Endpoints.Get( - resourceGroup.Name, - profileName, - "ExternalEndpoints", - endpoint.Name); - - Assert.Equal("GEO-AS", endpointGetResponse.GeoMapping[0]); - Assert.Equal("GEO-AF", endpointGetResponse.GeoMapping[1]); - - // Delete the profile - trafficManagerClient.Profiles.Delete(resourceGroup.Name, profileName); - this.DeleteResourceGroup(context, resourceGroupName); - } - } - } -} - diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/GeographicHierarchyScenarioTests.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/GeographicHierarchyScenarioTests.cs deleted file mode 100644 index 051c6844bdc45..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/GeographicHierarchyScenarioTests.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -namespace Microsoft.Azure.Management.TrafficManager.Testing.ScenarioTests -{ - using System.Collections.Generic; - using System.Linq; - using global::TrafficManager.Tests.Helpers; - using Microsoft.Azure.Management.Resources.Models; - using Microsoft.Azure.Management.TrafficManager.Models; - using Microsoft.Azure.Management.TrafficManager.Testing.Helpers; - using Microsoft.Rest.ClientRuntime.Azure.TestFramework; - using Xunit; - - public class GeographicHierarchyScenarioTests : TestBase - { - [Fact] - public void GetDefaultGeographicHierarchy() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - TrafficManagerGeographicHierarchy getHierarchyResponse = trafficManagerClient.GeographicHierarchies.GetDefault(); - Assert.NotNull(getHierarchyResponse); - Assert.Equal("/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default", getHierarchyResponse.Id); - Assert.Equal("Microsoft.Network/trafficManagerGeographicHierarchies", getHierarchyResponse.Type); - Assert.Equal("default", getHierarchyResponse.Name); - - Assert.NotNull(getHierarchyResponse.GeographicHierarchy); - Region root = getHierarchyResponse.GeographicHierarchy; - - Assert.Equal("WORLD", root.Code); - Assert.Equal("World", root.Name); - Assert.NotEmpty(root.Regions); - - foreach (var grouping in root.Regions) - { - Assert.NotNull(grouping.Code); - Assert.NotEmpty(grouping.Code); - Assert.NotNull(grouping.Name); - Assert.NotEmpty(grouping.Name); - Assert.NotEmpty(grouping.Regions); - } - } - } - } -} - diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/ProfileScenarioTests.cs b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/ProfileScenarioTests.cs deleted file mode 100644 index 752ec5ae1afa6..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/ScenarioTests/ProfileScenarioTests.cs +++ /dev/null @@ -1,453 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -namespace Microsoft.Azure.Management.TrafficManager.Testing.ScenarioTests -{ - using System; - using System.Collections.Generic; - using System.Linq; - using global::TrafficManager.Tests.Helpers; - using Microsoft.Azure.Management.Resources.Models; - using Microsoft.Azure.Management.TrafficManager.Models; - using Microsoft.Azure.Management.TrafficManager.Testing.Helpers; - using Microsoft.Rest.ClientRuntime.Azure.TestFramework; - using Xunit; - - public class ProfileScenarioTests : TestBase - { - [Fact] - public void CrudProfileFullCycle() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - string resourceGroupName = TrafficManagerHelper.GenerateName(); - string profileName = TrafficManagerHelper.GenerateName(); - ResourceGroup resourceGroup = this.CreateResourceGroup(context, resourceGroupName); - - TrafficManagerHelper.CreateOrUpdateDefaultProfileWithExternalEndpoint( - trafficManagerClient, - resourceGroup.Name, - profileName); - - // Get the profile - trafficManagerClient.Profiles.Get( - resourceGroup.Name, - profileName); - - // Delete the profile - trafficManagerClient.Profiles.Delete(resourceGroup.Name, profileName); - this.DeleteResourceGroup(context, resourceGroupName); - } - } - - [Fact(Skip="Fails because of number formatting on netcore3.1+")] - public void TrafficViewEnableDisableQuerySizeScope() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - string resourceGroupName = TrafficManagerHelper.GetPersistentResourceGroupName(); - string profileName = TrafficManagerHelper.GetPersistentTrafficViewProfile(); - ResourceGroup resourceGroup = this.CreateResourceGroup(context, resourceGroupName); - - Profile profile = TrafficManagerHelper.CreateOrUpdateDefaultProfileWithExternalEndpoint( - trafficManagerClient, - resourceGroup.Name, - profileName); - - bool authorized = true; - bool found = true; - try - { - trafficManagerClient.HeatMap.Get(resourceGroupName, profileName); - } - catch (Microsoft.Rest.Azure.CloudException e) - { - authorized = !e.Body.Code.Contains("NotAuthorized"); - - // 'NotFound' can happen if there were no queries to the endpoint since it was provisioned. - found = !(authorized && e.Body.Code.Contains("NotFound")); // Let's hope you were paying attention in that math logic class. - } - - if (!found) - { - // Pause, then retry once. - System.Threading.Thread.Sleep(TimeSpan.FromSeconds(120)); - try - { - trafficManagerClient.HeatMap.Get(resourceGroupName, profileName); - } - catch (Microsoft.Rest.Azure.CloudException e) - { - authorized = !e.Body.Code.Contains("NotAuthorized"); - } - } - - Assert.False(authorized); - - // Change the enrollment status and update the profile. - // Clear the endpoints first; those are not serializable as child objects because they have their own resource info. - profile.TrafficViewEnrollmentStatus = "Enabled"; - profile.Endpoints = null; - trafficManagerClient.Profiles.CreateOrUpdate( - resourceGroupName, - profileName, - profile); - - HeatMapModel heatMapModel = trafficManagerClient.HeatMap.Get(resourceGroupName, profileName); - - Assert.True(heatMapModel.StartTime.Value.CompareTo(System.DateTime.MinValue) > 0, "Invalid start time"); - Assert.True(heatMapModel.StartTime.Value.CompareTo(heatMapModel.EndTime.Value) <= 0, "Start time smaller than end time"); - Assert.True(heatMapModel.Endpoints.Count > 0, "Endpoint list empty, Not really an error but can not run test with no heatmap data."); - foreach(HeatMapEndpoint ep in heatMapModel.Endpoints) - { - Assert.True((ep.EndpointId ?? -1) >= 0, "Endpoint id null or out of range"); - Assert.False(string.IsNullOrWhiteSpace(ep.ResourceId), "Resource Id undefined"); - } - foreach(TrafficFlow tf in heatMapModel.TrafficFlows) - { - Assert.False(string.IsNullOrWhiteSpace(tf.SourceIp), "SourceIp is undefined"); - foreach(QueryExperience qe in tf.QueryExperiences) - { - Assert.True(heatMapModel.Endpoints.Where(ep => ep.EndpointId == qe.EndpointId).Count() > 0, "Query Experience does not match an existing endpoint"); - } - } - - IList trafficFlowList = heatMapModel.TrafficFlows; - - - foreach(TrafficFlow tf in trafficFlowList) - { - if((tf.Latitude-.1 >= -90.0) && (tf.Latitude +.1 <= 90.0) && (tf.Longitude -.1 >= -180.0) && (tf.Longitude + .1 <= 180.0)) - { - heatMapModel = trafficManagerClient.HeatMap.Get(resourceGroupName, profileName, new List(){ (tf.Latitude+.10), (tf.Longitude-.10)}, new List(){ (tf.Latitude-0.10), (tf.Longitude+0.10)}); - Assert.True(heatMapModel.TrafficFlows.Where(currentTF => (currentTF.Latitude == tf.Latitude && currentTF.Longitude == tf.Longitude)).Count() > 0, "Subset of coordinates not found"); - - heatMapModel = trafficManagerClient.HeatMap.Get(resourceGroupName, profileName, new List(){ (tf.Latitude+.10), (tf.Longitude-.10)}, new List(){ (tf.Latitude+0.05), (tf.Longitude-0.05)}); - Assert.True(heatMapModel.TrafficFlows.Where(currentTF => (currentTF.Latitude == tf.Latitude && currentTF.Longitude == tf.Longitude)).Count() == 0, "Subset of coordinates not expected"); - } - - } - - - } - } - - [Fact] - public void EmptyHeatMapData() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - string resourceGroupName = TrafficManagerHelper.GenerateName(); - string profileName = TrafficManagerHelper.GenerateName(); - ResourceGroup resourceGroup = this.CreateResourceGroup(context, resourceGroupName); - - TrafficManagerHelper.CreateOrUpdateDefaultProfileWithExternalEndpoint( - trafficManagerClient, - resourceGroup.Name, - profileName, - "Performance", - "Enabled"); - - try - { - trafficManagerClient.HeatMap.Get(resourceGroupName, profileName); - } - catch (Microsoft.Rest.Azure.CloudException e) - { - Assert.Contains("NotFound", e.Body.Code); - } - } - } - - [Fact] - public void CrudProfileWithoutEndpoints_ThenUpdate() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - string resourceGroupName = TrafficManagerHelper.GenerateName(); - string profileName = TrafficManagerHelper.GenerateName(); - ResourceGroup resourceGroup = this.CreateResourceGroup(context, resourceGroupName); - - // Create the profile - Profile profile = TrafficManagerHelper.CreateOrUpdateDefaultEmptyProfile( - trafficManagerClient, - resourceGroupName, - profileName); - - Assert.Equal(0, profile.Endpoints.Count); - - // Create the endpoint and associate it with the resource group and profile. - TrafficManagerHelper.CreateOrUpdateDefaultEndpoint(trafficManagerClient, resourceGroupName, profileName); - - // Confirm the endpoint is associated with the profile. - Profile updatedProfile = trafficManagerClient.Profiles.Get( - resourceGroup.Name, - profileName); - - Assert.Equal(1, updatedProfile.Endpoints.Count); - - // Delete the profile. The associated endpoint will also be deleted. - trafficManagerClient.Profiles.DeleteWithHttpMessagesAsync(resourceGroup.Name, profileName); - this.DeleteResourceGroup(context, resourceGroupName); - } - } - - [Fact] - public void ListProfilesByResourceGroup() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - string resourceGroupName = TrafficManagerHelper.GenerateName(); - ResourceGroup resourceGroup = this.CreateResourceGroup(context, resourceGroupName); - List profileNames = new List(); - - for (int i = 0; i < 5; ++i) - { - string profileName = TrafficManagerHelper.GenerateName(); - profileNames.Add(profileName); - - TrafficManagerHelper.CreateOrUpdateDefaultProfileWithExternalEndpoint( - trafficManagerClient, - resourceGroupName, - profileName); - } - - IEnumerable listResponse = trafficManagerClient.Profiles.ListByResourceGroupWithHttpMessagesAsync(resourceGroup.Name).Result.Body; - - Assert.Equal(5, listResponse.Count()); - - // Delete the profiles - foreach (var profileName in profileNames) - { - trafficManagerClient.Profiles.DeleteWithHttpMessagesAsync(resourceGroup.Name, profileName); - } - - this.DeleteResourceGroup(context, resourceGroupName); - } - } - - [Fact] - public void ListAllProfiles() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - string resourceGroupName = TrafficManagerHelper.GenerateName(); - ResourceGroup resourceGroup = this.CreateResourceGroup(context, resourceGroupName); - List profileNames = new List(); - - for (int i = 0; i < 5; ++i) - { - string profileName = TrafficManagerHelper.GenerateName(); - profileNames.Add(profileName); - - TrafficManagerHelper.CreateOrUpdateDefaultProfileWithExternalEndpoint( - trafficManagerClient, - resourceGroupName, - profileName); - } - - IEnumerable listResponse = trafficManagerClient.Profiles.ListBySubscriptionWithHttpMessagesAsync().Result.Body; - - // Just in case the subscription had some other profiles - Assert.True(5 <= listResponse.Count()); - - // Delete the profiles - foreach (var profileName in profileNames) - { - trafficManagerClient.Profiles.DeleteWithHttpMessagesAsync(resourceGroup.Name, profileName); - } - - this.DeleteResourceGroup(context, resourceGroupName); - } - } - - [Fact] - public void CrudProfileWithCustomHeaders() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - string resourceGroupName = TrafficManagerHelper.GenerateName(); - string profileName = TrafficManagerHelper.GenerateName(); - ResourceGroup resourceGroup = this.CreateResourceGroup(context, resourceGroupName); - - // Create the profile - var expectedProfile = TrafficManagerHelper.CreateOrUpdateProfileWithCustomHeadersAndStatusCodeRanges( - trafficManagerClient, - resourceGroupName, - profileName); - - // Get the profile - var actualProfile = trafficManagerClient.Profiles.Get( - resourceGroup.Name, - profileName); - - Assert.Equal(expectedProfile.MonitorConfig.CustomHeaders.Count, actualProfile.MonitorConfig.CustomHeaders.Count); - for (var i = 0; i < expectedProfile.MonitorConfig.CustomHeaders.Count; ++i) - { - Assert.Equal(expectedProfile.MonitorConfig.CustomHeaders[i].Name, actualProfile.MonitorConfig.CustomHeaders[i].Name); - Assert.Equal(expectedProfile.MonitorConfig.CustomHeaders[i].Value, actualProfile.MonitorConfig.CustomHeaders[i].Value); - } - - for (var i = 0; i < expectedProfile.MonitorConfig.ExpectedStatusCodeRanges.Count; ++i) - { - Assert.Equal(expectedProfile.MonitorConfig.ExpectedStatusCodeRanges[i].Min, actualProfile.MonitorConfig.ExpectedStatusCodeRanges[i].Min); - Assert.Equal(expectedProfile.MonitorConfig.ExpectedStatusCodeRanges[i].Max, actualProfile.MonitorConfig.ExpectedStatusCodeRanges[i].Max); - } - - for (var i = 0; i < expectedProfile.Endpoints.Count; ++i) - { - for (var j = 0; j < expectedProfile.Endpoints[i].CustomHeaders.Count; ++j) - { - Assert.Equal(expectedProfile.Endpoints[i].CustomHeaders[j].Name, actualProfile.Endpoints[i].CustomHeaders[j].Name); - Assert.Equal(expectedProfile.Endpoints[i].CustomHeaders[j].Value, actualProfile.Endpoints[i].CustomHeaders[j].Value); - } - } - - // Delete the profile - trafficManagerClient.Profiles.Delete(resourceGroup.Name, profileName); - - this.DeleteResourceGroup(context, resourceGroupName); - } - } - - [Fact] - public void CrudProfileWithCustomSubnets() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - string resourceGroupName = TrafficManagerHelper.GenerateName(); - string profileName = TrafficManagerHelper.GenerateName(); - ResourceGroup resourceGroup = this.CreateResourceGroup(context, resourceGroupName); - - // Create the profile - var expectedProfile = TrafficManagerHelper.CreateOrUpdateProfileWithSubnets( - trafficManagerClient, - resourceGroupName, - profileName); - - // Get the profile - var actualProfile = trafficManagerClient.Profiles.Get( - resourceGroup.Name, - profileName); - - for (var i = 0; i < expectedProfile.Endpoints.Count; ++i) - { - Assert.Equal(2, expectedProfile.Endpoints[i].Subnets.Count); - Assert.Equal($"1.2.{i}.0", expectedProfile.Endpoints[i].Subnets[0].First); - Assert.Equal($"1.2.{i}.250", expectedProfile.Endpoints[i].Subnets[0].Last); - Assert.Equal($"3.4.{i}.0", expectedProfile.Endpoints[i].Subnets[1].First); - Assert.Equal(24, expectedProfile.Endpoints[i].Subnets[1].Scope); - } - - // Delete the profile - trafficManagerClient.Profiles.Delete(resourceGroup.Name, profileName); - - this.DeleteResourceGroup(context, resourceGroupName); - } - } - - [Fact] - public void CrudProfileWithMultiValue() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - string resourceGroupName = TrafficManagerHelper.GenerateName(); - string profileName = TrafficManagerHelper.GenerateName(); - ResourceGroup resourceGroup = this.CreateResourceGroup(context, resourceGroupName); - - // Create the profile - var expectedProfile = TrafficManagerHelper.CreateOrUpdateProfileWithMultiValue( - trafficManagerClient, - resourceGroupName, - profileName, - 3); - - // Get the profile - var actualProfile = trafficManagerClient.Profiles.Get( - resourceGroup.Name, - profileName); - - Assert.Equal(3, expectedProfile.MaxReturn); - - // Delete the profile - trafficManagerClient.Profiles.Delete(resourceGroup.Name, profileName); - - this.DeleteResourceGroup(context, resourceGroupName); - } - } - - [Fact] - public void CrudProfileWithMinChildEndpointsIp() - { - using (MockContext context = MockContext.Start(this.GetType())) - { - TrafficManagerManagementClient trafficManagerClient = this.GetTrafficManagerManagementClient(context); - - string resourceGroupName = TrafficManagerHelper.GenerateName(); - string profileName = TrafficManagerHelper.GenerateName(); - ResourceGroup resourceGroup = this.CreateResourceGroup(context, resourceGroupName); - - // Create the profile. This is multi-value and will have non-default min child endpoints. - var expectedProfile = TrafficManagerHelper.CreateOrUpdateProfileWithMultiValue( - trafficManagerClient, - resourceGroupName, - profileName, - 3, - 77, - 66, - 55); - - // Get the profile - var actualProfile = trafficManagerClient.Profiles.Get( - resourceGroup.Name, - profileName); - - Assert.Equal(5, expectedProfile.Endpoints.Count); - - Assert.Equal(77, expectedProfile.Endpoints[0].MinChildEndpoints); - Assert.Equal(66, expectedProfile.Endpoints[0].MinChildEndpointsIPv4); - Assert.Equal(55, expectedProfile.Endpoints[0].MinChildEndpointsIPv6); - - Assert.Equal(78, expectedProfile.Endpoints[1].MinChildEndpoints); - Assert.Equal(67, expectedProfile.Endpoints[1].MinChildEndpointsIPv4); - Assert.Equal(56, expectedProfile.Endpoints[1].MinChildEndpointsIPv6); - - Assert.Equal(79, expectedProfile.Endpoints[2].MinChildEndpoints); - Assert.Equal(68, expectedProfile.Endpoints[2].MinChildEndpointsIPv4); - Assert.Equal(57, expectedProfile.Endpoints[2].MinChildEndpointsIPv6); - - Assert.Equal(80, expectedProfile.Endpoints[3].MinChildEndpoints); - Assert.Equal(69, expectedProfile.Endpoints[3].MinChildEndpointsIPv4); - Assert.Equal(58, expectedProfile.Endpoints[3].MinChildEndpointsIPv6); - - Assert.Equal(81, expectedProfile.Endpoints[4].MinChildEndpoints); - Assert.Equal(70, expectedProfile.Endpoints[4].MinChildEndpointsIPv4); - Assert.Equal(59, expectedProfile.Endpoints[4].MinChildEndpointsIPv6); - - // Delete the profile - trafficManagerClient.Profiles.Delete(resourceGroup.Name, profileName); - - this.DeleteResourceGroup(context, resourceGroupName); - } - } - } -} - diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/EndpointScenarioTests/CrudEndpointGeographicProfile.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/EndpointScenarioTests/CrudEndpointGeographicProfile.json deleted file mode 100644 index 21f8b2b63d758..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/EndpointScenarioTests/CrudEndpointGeographicProfile.json +++ /dev/null @@ -1,602 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager1419?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MTk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "c51eab32-0cd4-41e1-8a0a-6df46a2764cf" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1419\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager1419\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "236" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:48:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-request-id": [ - "8d48a7ad-0a7c-4637-9645-7c5a821aaccd" - ], - "x-ms-correlation-request-id": [ - "8d48a7ad-0a7c-4637-9645-7c5a821aaccd" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234826Z:8d48a7ad-0a7c-4637-9645-7c5a821aaccd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1419/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager3618?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MTkvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMzYxOD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Geographic\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager3618\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "398" - ], - "x-ms-client-request-id": [ - "7dd1c2b3-268f-41c8-9e22-23b29a85512f" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1419/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3618\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager3618\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Geographic\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager3618\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager3618.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "800" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:48:27 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "7dd1c2b3-268f-41c8-9e22-23b29a85512f" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "ba73cb79-c0eb-41e7-b58e-cfa2956814f3" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234827Z:ba73cb79-c0eb-41e7-b58e-cfa2956814f3" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1419/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager3618/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MTkvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMzYxOC9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"geoMapping\": [\r\n \"GEO-AS\",\r\n \"GEO-AF\"\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "160" - ], - "x-ms-client-request-id": [ - "f7550258-010f-41b5-a9cd-f67f7948e914" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1419/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3618/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"GEO-AS\",\r\n \"GEO-AF\"\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "553" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:48:27 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f7550258-010f-41b5-a9cd-f67f7948e914" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "f5426cc0-f5cb-4195-a24a-2e6e673aa851" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234827Z:f5426cc0-f5cb-4195-a24a-2e6e673aa851" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1419/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager3618/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MTkvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMzYxOC9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6db94617-07b9-4fca-8ed9-46b2288fe55c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1419/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3618/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"GEO-AS\",\r\n \"GEO-AF\"\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:48:27 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "6db94617-07b9-4fca-8ed9-46b2288fe55c" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "ff15e7bb-f0fe-4531-bf3b-143a4b62eb00" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234828Z:ff15e7bb-f0fe-4531-bf3b-143a4b62eb00" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1419/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager3618?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MTkvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMzYxOD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f9ac738b-87dd-4dfa-a570-ad63a46e65e1" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:48:29 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f9ac738b-87dd-4dfa-a570-ad63a46e65e1" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "01996ebe-a869-4baf-8762-61ead174bfba" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234830Z:01996ebe-a869-4baf-8762-61ead174bfba" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager1419?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MTk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "77c0f6ee-3a85-4987-8f4c-f0f3a670a11e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:48:32 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxNDE5LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "2549809e-82b4-4a2d-a612-fc68e1b7ff7f" - ], - "x-ms-correlation-request-id": [ - "2549809e-82b4-4a2d-a612-fc68e1b7ff7f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234833Z:2549809e-82b4-4a2d-a612-fc68e1b7ff7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxNDE5LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4TkRFNUxVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:48:48 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxNDE5LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-request-id": [ - "76c9a718-582a-4fbc-8aa8-15852a489ba9" - ], - "x-ms-correlation-request-id": [ - "76c9a718-582a-4fbc-8aa8-15852a489ba9" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234848Z:76c9a718-582a-4fbc-8aa8-15852a489ba9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxNDE5LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4TkRFNUxVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:49:03 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxNDE5LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" - ], - "x-ms-request-id": [ - "c853e237-3fa3-4c6b-9965-b67fecb6bd8c" - ], - "x-ms-correlation-request-id": [ - "c853e237-3fa3-4c6b-9965-b67fecb6bd8c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234903Z:c853e237-3fa3-4c6b-9965-b67fecb6bd8c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxNDE5LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4TkRFNUxVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:49:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-request-id": [ - "f9ec0206-0888-4c73-b5b5-041b6bcfdaa4" - ], - "x-ms-correlation-request-id": [ - "f9ec0206-0888-4c73-b5b5-041b6bcfdaa4" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234918Z:f9ec0206-0888-4c73-b5b5-041b6bcfdaa4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxNDE5LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4TkRFNUxVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:49:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" - ], - "x-ms-request-id": [ - "f7d7756a-a4c3-4815-89da-31f1df81faf0" - ], - "x-ms-correlation-request-id": [ - "f7d7756a-a4c3-4815-89da-31f1df81faf0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234918Z:f7d7756a-a4c3-4815-89da-31f1df81faf0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager1419", - "azuresdkfornetautoresttrafficmanager3618" - ] - }, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/EndpointScenarioTests/CrudEndpointsFullCycle.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/EndpointScenarioTests/CrudEndpointsFullCycle.json deleted file mode 100644 index 7ff7affa33420..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/EndpointScenarioTests/CrudEndpointsFullCycle.json +++ /dev/null @@ -1,464 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourcegroups/azuresdkfornetautoresttrafficmanager1421?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY4ZDQxNDUtYzlhZS00NjY3LTkyNWQtYzUxYzhkODhhZDczL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MjE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "5f5b1038-c073-4a52-a62b-fa7444ff62d9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25009.03", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager1421\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "236" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 23 May 2017 09:03:31 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-request-id": [ - "3ce7c674-be36-4575-ac0e-f6c622c74fea" - ], - "x-ms-correlation-request-id": [ - "3ce7c674-be36-4575-ac0e-f6c622c74fea" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170523T090331Z:3ce7c674-be36-4575-ac0e-f6c622c74fea" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficmanagerprofiles/azsmnet6386?api-version=2017-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY4ZDQxNDUtYzlhZS00NjY3LTkyNWQtYzUxYzhkODhhZDczL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MjEvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXpzbW5ldDYzODY/YXBpLXZlcnNpb249MjAxNy0wNS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azsmnet6386\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n }\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "322" - ], - "x-ms-client-request-id": [ - "1ea61d4a-4cf7-4b12-8b69-b50210291ab7" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25009.03", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386\",\r\n \"name\": \"azsmnet6386\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azsmnet6386\",\r\n \"fqdn\": \"azsmnet6386.tmpreview.watmtest.azure-test.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": []\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "659" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 23 May 2017 09:03:32 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1ea61d4a-4cf7-4b12-8b69-b50210291ab7" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10792" - ], - "x-ms-correlation-request-id": [ - "9bbc655f-0a6a-4867-87db-d1aadc8bfc7a" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170523T090332Z:9bbc655f-0a6a-4867-87db-d1aadc8bfc7a" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficmanagerprofiles/azsmnet6386/ExternalEndpoints/azsmnet7187?api-version=2017-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY4ZDQxNDUtYzlhZS00NjY3LTkyNWQtYzUxYzhkODhhZDczL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MjEvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXpzbW5ldDYzODYvRXh0ZXJuYWxFbmRwb2ludHMvYXpzbW5ldDcxODc/YXBpLXZlcnNpb249MjAxNy0wNS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"name\": \"azsmnet7187\",\r\n \"type\": \"Microsoft.network/TrafficManagerProfiles/ExternalEndpoints\",\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "238" - ], - "x-ms-client-request-id": [ - "28830555-f72c-44b7-9a31-59a6e68066e1" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25009.03", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187\",\r\n \"name\": \"azsmnet7187\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "483" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 23 May 2017 09:03:33 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "28830555-f72c-44b7-9a31-59a6e68066e1" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-correlation-request-id": [ - "6d7b9339-4079-4482-893f-5be45d1a124b" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170523T090334Z:6d7b9339-4079-4482-893f-5be45d1a124b" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficmanagerprofiles/azsmnet6386/ExternalEndpoints/azsmnet7187?api-version=2017-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY4ZDQxNDUtYzlhZS00NjY3LTkyNWQtYzUxYzhkODhhZDczL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MjEvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXpzbW5ldDYzODYvRXh0ZXJuYWxFbmRwb2ludHMvYXpzbW5ldDcxODc/YXBpLXZlcnNpb249MjAxNy0wNS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4ad1d252-286f-4eec-9827-5144013a6556" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25009.03", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187\",\r\n \"name\": \"azsmnet7187\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 23 May 2017 09:03:34 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4ad1d252-286f-4eec-9827-5144013a6556" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" - ], - "x-ms-correlation-request-id": [ - "5c3f9e3b-479a-4c82-b210-4657091eff1b" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170523T090335Z:5c3f9e3b-479a-4c82-b210-4657091eff1b" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficmanagerprofiles/azsmnet6386/ExternalEndpoints/azsmnet7187?api-version=2017-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY4ZDQxNDUtYzlhZS00NjY3LTkyNWQtYzUxYzhkODhhZDczL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MjEvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXpzbW5ldDYzODYvRXh0ZXJuYWxFbmRwb2ludHMvYXpzbW5ldDcxODc/YXBpLXZlcnNpb249MjAxNy0wNS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b6b554fe-fb70-419e-a2bb-1da29bc3702c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25009.03", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"The endpoint 'azsmnet7187' of type 'externalendpoints' does not exist in the profile 'azsmnet6386'.\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "131" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 23 May 2017 09:03:39 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b6b554fe-fb70-419e-a2bb-1da29bc3702c" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" - ], - "x-ms-correlation-request-id": [ - "ac23b231-95b8-4f29-920a-0b9c47b7e61d" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170523T090339Z:ac23b231-95b8-4f29-920a-0b9c47b7e61d" - ] - }, - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficmanagerprofiles/azsmnet6386/ExternalEndpoints/azsmnet7187?api-version=2017-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY4ZDQxNDUtYzlhZS00NjY3LTkyNWQtYzUxYzhkODhhZDczL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MjEvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXpzbW5ldDYzODYvRXh0ZXJuYWxFbmRwb2ludHMvYXpzbW5ldDcxODc/YXBpLXZlcnNpb249MjAxNy0wNS0wMQ==", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"id\": \"/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187\",\r\n \"name\": \"azsmnet7187\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"target\": \"another.foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "547" - ], - "x-ms-client-request-id": [ - "62e5501a-83d7-4b75-a904-ca2dd6dbfedc" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25009.03", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187\",\r\n \"name\": \"azsmnet7187\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"another.foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 23 May 2017 09:03:35 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "62e5501a-83d7-4b75-a904-ca2dd6dbfedc" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-correlation-request-id": [ - "b4c776b9-e527-401a-a237-49e3b092ee85" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170523T090336Z:b4c776b9-e527-401a-a237-49e3b092ee85" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficmanagerprofiles/azsmnet6386/ExternalEndpoints/azsmnet7187?api-version=2017-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY4ZDQxNDUtYzlhZS00NjY3LTkyNWQtYzUxYzhkODhhZDczL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE0MjEvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXpzbW5ldDYzODYvRXh0ZXJuYWxFbmRwb2ludHMvYXpzbW5ldDcxODc/YXBpLXZlcnNpb249MjAxNy0wNS0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b8db2717-a10a-457d-be25-21219b00ab4c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25009.03", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 23 May 2017 09:03:37 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b8db2717-a10a-457d-be25-21219b00ab4c" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-correlation-request-id": [ - "e14060e4-1192-441c-9119-fe0fa8463e87" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170523T090338Z:e14060e4-1192-441c-9119-fe0fa8463e87" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "CrudEndpointsFullCycle": [ - "azsmnet6386", - "azsmnet7187" - ], - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager1421" - ] - }, - "Variables": { - "SubscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/GeographicHierarchyScenarioTests/GetDefaultGeographicHierarchy.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/GeographicHierarchyScenarioTests/GetDefaultGeographicHierarchy.json deleted file mode 100644 index 99cf5a336cf68..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/GeographicHierarchyScenarioTests/GetDefaultGeographicHierarchy.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default?api-version=2018-08-01", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljTWFuYWdlckdlb2dyYXBoaWNIaWVyYXJjaGllcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2c6ef1d2-2af1-4e79-a40a-05cd7baf0453" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Network/trafficManagerGeographicHierarchies\",\r\n \"properties\": {\r\n \"geographicHierarchy\": {\r\n \"code\": \"WORLD\",\r\n \"name\": \"World\",\r\n \"regions\": [\r\n {\r\n \"code\": \"GEO-EU\",\r\n \"name\": \"Europe\",\r\n \"regions\": [\r\n {\r\n \"code\": \"AD\",\r\n \"name\": \"Andorra\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AL\",\r\n \"name\": \"Albania\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AT\",\r\n \"name\": \"Austria\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AX\",\r\n \"name\": \"Åland Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BA\",\r\n \"name\": \"Bosnia and Herzegovina\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BE\",\r\n \"name\": \"Belgium\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BG\",\r\n \"name\": \"Bulgaria\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BY\",\r\n \"name\": \"Belarus\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CH\",\r\n \"name\": \"Switzerland\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CY\",\r\n \"name\": \"Cyprus\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CZ\",\r\n \"name\": \"Czech Republic\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"DE\",\r\n \"name\": \"Germany\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"DK\",\r\n \"name\": \"Denmark\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"EE\",\r\n \"name\": \"Estonia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"ES\",\r\n \"name\": \"Spain\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"FI\",\r\n \"name\": \"Finland\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"FO\",\r\n \"name\": \"Faroe Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"FR\",\r\n \"name\": \"France\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GB\",\r\n \"name\": \"United Kingdom\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GG\",\r\n \"name\": \"Guernsey\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GI\",\r\n \"name\": \"Gibraltar\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GR\",\r\n \"name\": \"Greece\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"HR\",\r\n \"name\": \"Croatia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"HU\",\r\n \"name\": \"Hungary\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"IE\",\r\n \"name\": \"Ireland\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"IM\",\r\n \"name\": \"Isle of Man\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"IS\",\r\n \"name\": \"Iceland\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"IT\",\r\n \"name\": \"Italy\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"JE\",\r\n \"name\": \"Jersey\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"LI\",\r\n \"name\": \"Liechtenstein\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"LT\",\r\n \"name\": \"Lithuania\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"LU\",\r\n \"name\": \"Luxembourg\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"LV\",\r\n \"name\": \"Latvia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MC\",\r\n \"name\": \"Monaco\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MD\",\r\n \"name\": \"Moldova\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"ME\",\r\n \"name\": \"Montenegro\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MK\",\r\n \"name\": \"Macedonia, FYRO\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MT\",\r\n \"name\": \"Malta\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NL\",\r\n \"name\": \"Netherlands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NO\",\r\n \"name\": \"Norway\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PL\",\r\n \"name\": \"Poland\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PT\",\r\n \"name\": \"Portugal\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"RO\",\r\n \"name\": \"Romania\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"RS\",\r\n \"name\": \"Serbia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"RU\",\r\n \"name\": \"Russia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SE\",\r\n \"name\": \"Sweden\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SI\",\r\n \"name\": \"Slovenia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SJ\",\r\n \"name\": \"Svalbard\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SK\",\r\n \"name\": \"Slovakia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SM\",\r\n \"name\": \"San Marino\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"UA\",\r\n \"name\": \"Ukraine\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"VA\",\r\n \"name\": \"Vatican City\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"XJ\",\r\n \"name\": \"Jan Mayen\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"XK\",\r\n \"name\": \"Kosovo\",\r\n \"regions\": []\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"GEO-ME\",\r\n \"name\": \"Middle East\",\r\n \"regions\": [\r\n {\r\n \"code\": \"AE\",\r\n \"name\": \"United Arab Emirates\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BH\",\r\n \"name\": \"Bahrain\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"IL\",\r\n \"name\": \"Israel\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"IQ\",\r\n \"name\": \"Iraq\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"IR\",\r\n \"name\": \"Iran\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"JO\",\r\n \"name\": \"Jordan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"KW\",\r\n \"name\": \"Kuwait\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"LB\",\r\n \"name\": \"Lebanon\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"OM\",\r\n \"name\": \"Oman\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PS\",\r\n \"name\": \"Palestinian Authority\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"QA\",\r\n \"name\": \"Qatar\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SY\",\r\n \"name\": \"Syria\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SA\",\r\n \"name\": \"Saudi Arabia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TR\",\r\n \"name\": \"Turkey\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"YE\",\r\n \"name\": \"Yemen\",\r\n \"regions\": []\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"GEO-NA\",\r\n \"name\": \"North America / Central America / Caribbean\",\r\n \"regions\": [\r\n {\r\n \"code\": \"AG\",\r\n \"name\": \"Antigua and Barbuda\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AI\",\r\n \"name\": \"Anguilla\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AW\",\r\n \"name\": \"Aruba\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BB\",\r\n \"name\": \"Barbados\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BL\",\r\n \"name\": \"Saint Barthélemy\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BM\",\r\n \"name\": \"Bermuda\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BQ\",\r\n \"name\": \"Bonaire\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BS\",\r\n \"name\": \"Bahamas\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BZ\",\r\n \"name\": \"Belize\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA\",\r\n \"name\": \"Canada\",\r\n \"regions\": [\r\n {\r\n \"code\": \"CA-AB\",\r\n \"name\": \"Alberta\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-BC\",\r\n \"name\": \"British Columbia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-MB\",\r\n \"name\": \"Manitoba\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-NB\",\r\n \"name\": \"New Brunswick\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-NL\",\r\n \"name\": \"Newfoundland and Labrador\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-NS\",\r\n \"name\": \"Nova Scotia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-NT\",\r\n \"name\": \"Northwest Territories\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-NU\",\r\n \"name\": \"Nunavut\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-ON\",\r\n \"name\": \"Ontario\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-PE\",\r\n \"name\": \"Prince Edward Island\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-QC\",\r\n \"name\": \"Québec\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-SK\",\r\n \"name\": \"Saskatchewan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CA-YT\",\r\n \"name\": \"Yukon Territory\",\r\n \"regions\": []\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"CR\",\r\n \"name\": \"Costa Rica\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CU\",\r\n \"name\": \"Cuba\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CW\",\r\n \"name\": \"Curaçao\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"DM\",\r\n \"name\": \"Dominica\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"DO\",\r\n \"name\": \"Dominican Republic\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GD\",\r\n \"name\": \"Grenada\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GL\",\r\n \"name\": \"Greenland\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GP\",\r\n \"name\": \"Guadeloupe\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GT\",\r\n \"name\": \"Guatemala\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"HN\",\r\n \"name\": \"Honduras\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"HT\",\r\n \"name\": \"Haiti\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"JM\",\r\n \"name\": \"Jamaica\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"KN\",\r\n \"name\": \"Saint Kitts and Nevis\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"KY\",\r\n \"name\": \"Cayman Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"LC\",\r\n \"name\": \"Saint Lucia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MF\",\r\n \"name\": \"Saint Martin\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MQ\",\r\n \"name\": \"Martinique\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MS\",\r\n \"name\": \"Montserrat\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MX\",\r\n \"name\": \"Mexico\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NI\",\r\n \"name\": \"Nicaragua\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PA\",\r\n \"name\": \"Panama\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PM\",\r\n \"name\": \"Saint Pierre and Miquelon\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PR\",\r\n \"name\": \"Puerto Rico\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SV\",\r\n \"name\": \"El Salvador\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SX\",\r\n \"name\": \"Sint Maarten\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TC\",\r\n \"name\": \"Turks and Caicos Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TT\",\r\n \"name\": \"Trinidad and Tobago\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"UM\",\r\n \"name\": \"U.S. Outlying Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US\",\r\n \"name\": \"United States\",\r\n \"regions\": [\r\n {\r\n \"code\": \"US-AK\",\r\n \"name\": \"Alaska\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-AL\",\r\n \"name\": \"Alabama\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-AR\",\r\n \"name\": \"Arkansas\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-AZ\",\r\n \"name\": \"Arizona\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-CA\",\r\n \"name\": \"California\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-CO\",\r\n \"name\": \"Colorado\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-CT\",\r\n \"name\": \"Connecticut\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-DC\",\r\n \"name\": \"District of Columbia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-DE\",\r\n \"name\": \"Delaware\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-FL\",\r\n \"name\": \"Florida\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-GA\",\r\n \"name\": \"Georgia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-HI\",\r\n \"name\": \"Hawaii\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-IA\",\r\n \"name\": \"Iowa\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-ID\",\r\n \"name\": \"Idaho\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-IL\",\r\n \"name\": \"Illinois\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-IN\",\r\n \"name\": \"Indiana\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-KS\",\r\n \"name\": \"Kansas\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-KY\",\r\n \"name\": \"Kentucky\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-LA\",\r\n \"name\": \"Louisiana\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-MA\",\r\n \"name\": \"Massachusetts\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-MD\",\r\n \"name\": \"Maryland\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-ME\",\r\n \"name\": \"Maine\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-MI\",\r\n \"name\": \"Michigan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-MN\",\r\n \"name\": \"Minnesota\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-MO\",\r\n \"name\": \"Missouri\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-MS\",\r\n \"name\": \"Mississippi\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-MT\",\r\n \"name\": \"Montana\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-NC\",\r\n \"name\": \"North Carolina\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-ND\",\r\n \"name\": \"North Dakota\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-NE\",\r\n \"name\": \"Nebraska\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-NH\",\r\n \"name\": \"New Hampshire\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-NJ\",\r\n \"name\": \"New Jersey\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-NM\",\r\n \"name\": \"New Mexico\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-NV\",\r\n \"name\": \"Nevada\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-NY\",\r\n \"name\": \"New York\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-OH\",\r\n \"name\": \"Ohio\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-OK\",\r\n \"name\": \"Oklahoma\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-OR\",\r\n \"name\": \"Oregon\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-PA\",\r\n \"name\": \"Pennsylvania\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-RI\",\r\n \"name\": \"Rhode Island\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-SC\",\r\n \"name\": \"South Carolina\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-SD\",\r\n \"name\": \"South Dakota\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-TN\",\r\n \"name\": \"Tennessee\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-TX\",\r\n \"name\": \"Texas\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-UT\",\r\n \"name\": \"Utah\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-VA\",\r\n \"name\": \"Virginia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-VT\",\r\n \"name\": \"Vermont\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-WA\",\r\n \"name\": \"Washington\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-WI\",\r\n \"name\": \"Wisconsin\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-WV\",\r\n \"name\": \"West Virginia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"US-WY\",\r\n \"name\": \"Wyoming\",\r\n \"regions\": []\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"VC\",\r\n \"name\": \"Saint Vincent and the Grenadines\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"VG\",\r\n \"name\": \"British Virgin Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"VI\",\r\n \"name\": \"U.S. Virgin Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"XE\",\r\n \"name\": \"Sint Eustatius\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"XS\",\r\n \"name\": \"Saba\",\r\n \"regions\": []\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"GEO-AS\",\r\n \"name\": \"Asia\",\r\n \"regions\": [\r\n {\r\n \"code\": \"AF\",\r\n \"name\": \"Afghanistan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AM\",\r\n \"name\": \"Armenia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AZ\",\r\n \"name\": \"Azerbaijan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BD\",\r\n \"name\": \"Bangladesh\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BN\",\r\n \"name\": \"Brunei\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BT\",\r\n \"name\": \"Bhutan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CC\",\r\n \"name\": \"Cocos (Keeling) Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CN\",\r\n \"name\": \"China\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CX\",\r\n \"name\": \"Christmas Island\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GE\",\r\n \"name\": \"Georgia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"HK\",\r\n \"name\": \"Hong Kong SAR\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"ID\",\r\n \"name\": \"Indonesia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"IN\",\r\n \"name\": \"India\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"IO\",\r\n \"name\": \"British Indian Ocean Territory\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"JP\",\r\n \"name\": \"Japan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"KG\",\r\n \"name\": \"Kyrgyzstan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"KH\",\r\n \"name\": \"Cambodia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"KP\",\r\n \"name\": \"North Korea\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"KR\",\r\n \"name\": \"Korea\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"KZ\",\r\n \"name\": \"Kazakhstan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"LA\",\r\n \"name\": \"Laos\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"LK\",\r\n \"name\": \"Sri Lanka\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MM\",\r\n \"name\": \"Myanmar\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MN\",\r\n \"name\": \"Mongolia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MO\",\r\n \"name\": \"Macao SAR\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MV\",\r\n \"name\": \"Maldives\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MY\",\r\n \"name\": \"Malaysia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NP\",\r\n \"name\": \"Nepal\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PH\",\r\n \"name\": \"Philippines\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PK\",\r\n \"name\": \"Pakistan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SG\",\r\n \"name\": \"Singapore\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TH\",\r\n \"name\": \"Thailand\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TJ\",\r\n \"name\": \"Tajikistan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TL\",\r\n \"name\": \"Timor_Leste\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TM\",\r\n \"name\": \"Turkmenistan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TW\",\r\n \"name\": \"Taiwan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"UZ\",\r\n \"name\": \"Uzbekistan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"VN\",\r\n \"name\": \"Vietnam\",\r\n \"regions\": []\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"GEO-AF\",\r\n \"name\": \"Africa\",\r\n \"regions\": [\r\n {\r\n \"code\": \"AO\",\r\n \"name\": \"Angola\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BF\",\r\n \"name\": \"Burkina Faso\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BI\",\r\n \"name\": \"Burundi\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BJ\",\r\n \"name\": \"Benin\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BV\",\r\n \"name\": \"Bouvet Island\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BW\",\r\n \"name\": \"Botswana\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CD\",\r\n \"name\": \"Congo (DRC)\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CF\",\r\n \"name\": \"Central African Republic\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CG\",\r\n \"name\": \"Congo\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CI\",\r\n \"name\": \"Côte d’Ivoire\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CM\",\r\n \"name\": \"Cameroon\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CV\",\r\n \"name\": \"Cabo Verde\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"DJ\",\r\n \"name\": \"Djibouti\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"DZ\",\r\n \"name\": \"Algeria\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"EG\",\r\n \"name\": \"Egypt\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"ER\",\r\n \"name\": \"Eritrea\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"ET\",\r\n \"name\": \"Ethiopia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GA\",\r\n \"name\": \"Gabon\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GH\",\r\n \"name\": \"Ghana\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GM\",\r\n \"name\": \"Gambia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GN\",\r\n \"name\": \"Guinea\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GQ\",\r\n \"name\": \"Equatorial Guinea\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GW\",\r\n \"name\": \"Guinea_Bissau\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"KE\",\r\n \"name\": \"Kenya\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"KM\",\r\n \"name\": \"Comoros\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"LR\",\r\n \"name\": \"Liberia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"LS\",\r\n \"name\": \"Lesotho\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"LY\",\r\n \"name\": \"Libya\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MA\",\r\n \"name\": \"Morocco\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MG\",\r\n \"name\": \"Madagascar\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"ML\",\r\n \"name\": \"Mali\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MR\",\r\n \"name\": \"Mauritania\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MU\",\r\n \"name\": \"Mauritius\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MW\",\r\n \"name\": \"Malawi\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MZ\",\r\n \"name\": \"Mozambique\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NA\",\r\n \"name\": \"Namibia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NE\",\r\n \"name\": \"Niger\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NG\",\r\n \"name\": \"Nigeria\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"RE\",\r\n \"name\": \"Réunion\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"RW\",\r\n \"name\": \"Rwanda\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SC\",\r\n \"name\": \"Seychelles\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SD\",\r\n \"name\": \"Sudan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SH\",\r\n \"name\": \"St Helena, Ascension, Tristan da Cunha\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SL\",\r\n \"name\": \"Sierra Leone\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SN\",\r\n \"name\": \"Senegal\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SO\",\r\n \"name\": \"Somalia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SS\",\r\n \"name\": \"South Sudan\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"ST\",\r\n \"name\": \"São Tomé and Príncipe\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SZ\",\r\n \"name\": \"Swaziland\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TD\",\r\n \"name\": \"Chad\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TF\",\r\n \"name\": \"French Southern Territories\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TG\",\r\n \"name\": \"Togo\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TN\",\r\n \"name\": \"Tunisia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TZ\",\r\n \"name\": \"Tanzania\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"UG\",\r\n \"name\": \"Uganda\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"YT\",\r\n \"name\": \"Mayotte\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"ZA\",\r\n \"name\": \"South Africa\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"ZM\",\r\n \"name\": \"Zambia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"ZW\",\r\n \"name\": \"Zimbabwe\",\r\n \"regions\": []\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"GEO-AN\",\r\n \"name\": \"Antarctica\",\r\n \"regions\": [\r\n {\r\n \"code\": \"AQ\",\r\n \"name\": \"Antarctica\",\r\n \"regions\": []\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"GEO-SA\",\r\n \"name\": \"South America\",\r\n \"regions\": [\r\n {\r\n \"code\": \"AR\",\r\n \"name\": \"Argentina\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BO\",\r\n \"name\": \"Bolivia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"BR\",\r\n \"name\": \"Brazil\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CL\",\r\n \"name\": \"Chile\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"CO\",\r\n \"name\": \"Colombia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"EC\",\r\n \"name\": \"Ecuador\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"FK\",\r\n \"name\": \"Falkland Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GF\",\r\n \"name\": \"French Guiana\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GS\",\r\n \"name\": \"South Georgia and South Sandwich Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GY\",\r\n \"name\": \"Guyana\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PE\",\r\n \"name\": \"Peru\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PY\",\r\n \"name\": \"Paraguay\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SR\",\r\n \"name\": \"Suriname\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"UY\",\r\n \"name\": \"Uruguay\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"VE\",\r\n \"name\": \"Venezuela\",\r\n \"regions\": []\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"GEO-AP\",\r\n \"name\": \"Australia / Pacific\",\r\n \"regions\": [\r\n {\r\n \"code\": \"AS\",\r\n \"name\": \"American Samoa\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AU\",\r\n \"name\": \"Australia\",\r\n \"regions\": [\r\n {\r\n \"code\": \"AU-ACT\",\r\n \"name\": \"Australian Capital Territory\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AU-NSW\",\r\n \"name\": \"New South Wales\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AU-NT\",\r\n \"name\": \"Northern Territory\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AU-QLD\",\r\n \"name\": \"Queensland\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AU-SA\",\r\n \"name\": \"South Australia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AU-TAS\",\r\n \"name\": \"Tasmania\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AU-VIC\",\r\n \"name\": \"Victoria\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"AU-WA\",\r\n \"name\": \"Western Australia\",\r\n \"regions\": []\r\n }\r\n ]\r\n },\r\n {\r\n \"code\": \"CK\",\r\n \"name\": \"Cook Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"FJ\",\r\n \"name\": \"Fiji\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"FM\",\r\n \"name\": \"Micronesia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"GU\",\r\n \"name\": \"Guam\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"HM\",\r\n \"name\": \"Heard Island and McDonald Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"KI\",\r\n \"name\": \"Kiribati\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MH\",\r\n \"name\": \"Marshall Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"MP\",\r\n \"name\": \"Northern Mariana Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NC\",\r\n \"name\": \"New Caledonia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NF\",\r\n \"name\": \"Norfolk Island\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NR\",\r\n \"name\": \"Nauru\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NU\",\r\n \"name\": \"Niue\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"NZ\",\r\n \"name\": \"New Zealand\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PF\",\r\n \"name\": \"French Polynesia\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PG\",\r\n \"name\": \"Papua New Guinea\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PN\",\r\n \"name\": \"Pitcairn Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"PW\",\r\n \"name\": \"Palau\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"SB\",\r\n \"name\": \"Solomon Islands\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TK\",\r\n \"name\": \"Tokelau\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TO\",\r\n \"name\": \"Tonga\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"TV\",\r\n \"name\": \"Tuvalu\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"VU\",\r\n \"name\": \"Vanuatu\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"WF\",\r\n \"name\": \"Wallis and Futuna\",\r\n \"regions\": []\r\n },\r\n {\r\n \"code\": \"WS\",\r\n \"name\": \"Samoa\",\r\n \"regions\": []\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:49:21 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2c6ef1d2-2af1-4e79-a40a-05cd7baf0453" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-tenant-reads": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "ca683ffa-d5d1-4d04-8ed7-5e8bc6aff485" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234922Z:ca683ffa-d5d1-4d04-8ed7-5e8bc6aff485" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileFullCycle.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileFullCycle.json deleted file mode 100644 index ece530c3a7fb2..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileFullCycle.json +++ /dev/null @@ -1,666 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager5524?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjU1MjQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "61b31549-0b52-489f-a829-0accad7d6b5b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager5524\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "236" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:45:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "a00cfaf3-4367-4a26-98bb-8f1a926a0c20" - ], - "x-ms-correlation-request-id": [ - "a00cfaf3-4367-4a26-98bb-8f1a926a0c20" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234520Z:a00cfaf3-4367-4a26-98bb-8f1a926a0c20" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9649?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjU1MjQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTY0OT9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9649\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "916b4d51-c3b9-4a57-893d-9039c0e4b728" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9649\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager9649\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9649\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager9649.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:45:21 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "916b4d51-c3b9-4a57-893d-9039c0e4b728" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10797" - ], - "x-ms-correlation-request-id": [ - "7f465991-5fd7-482e-9ea8-64f3b8404fb0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234522Z:7f465991-5fd7-482e-9ea8-64f3b8404fb0" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9649/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjU1MjQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTY0OS9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "a9a25778-a6c4-4249-8c7e-47ac8660a7bd" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9649/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:45:22 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a9a25778-a6c4-4249-8c7e-47ac8660a7bd" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-correlation-request-id": [ - "c2ddbe0c-f203-4d73-9945-6c61c4f72e71" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234522Z:c2ddbe0c-f203-4d73-9945-6c61c4f72e71" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9649?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjU1MjQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTY0OT9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "642a89eb-00b3-4c9b-94cc-e5e3c2d89130" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9649\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager9649\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9649\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager9649.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9649/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:45:22 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "642a89eb-00b3-4c9b-94cc-e5e3c2d89130" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "516f333c-8cdc-4eaa-8d1c-eb2e69bf5c42" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234523Z:516f333c-8cdc-4eaa-8d1c-eb2e69bf5c42" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9649?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjU1MjQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTY0OT9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b0de3c5e-84b5-4129-8ac5-14b8fd584c52" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9649\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager9649\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9649\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager9649.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9649/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:45:22 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b0de3c5e-84b5-4129-8ac5-14b8fd584c52" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10797" - ], - "x-ms-correlation-request-id": [ - "1e966706-b746-45b8-b836-bb0152c51a5a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234523Z:1e966706-b746-45b8-b836-bb0152c51a5a" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5524/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9649?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjU1MjQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTY0OT9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d6cc7d16-5d84-4c5c-a8d6-846c414ec708" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:45:23 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d6cc7d16-5d84-4c5c-a8d6-846c414ec708" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "012f9e80-68d3-459d-bb1c-d6d70e161f06" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234524Z:012f9e80-68d3-459d-bb1c-d6d70e161f06" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager5524?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjU1MjQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "0563f5e7-3ffa-4d09-8889-d4c421ec6034" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:45:31 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1NTI0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" - ], - "x-ms-request-id": [ - "c6b469c1-0e09-49d7-98b7-d63b4ea7a53a" - ], - "x-ms-correlation-request-id": [ - "c6b469c1-0e09-49d7-98b7-d63b4ea7a53a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234531Z:c6b469c1-0e09-49d7-98b7-d63b4ea7a53a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1NTI0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkxTlRJMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:45:46 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1NTI0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" - ], - "x-ms-request-id": [ - "defc0c9d-acbf-4a55-8ab4-05b5a651de42" - ], - "x-ms-correlation-request-id": [ - "defc0c9d-acbf-4a55-8ab4-05b5a651de42" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234547Z:defc0c9d-acbf-4a55-8ab4-05b5a651de42" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1NTI0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkxTlRJMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:46:01 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1NTI0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-request-id": [ - "9f30fbe4-3639-43ad-ad8a-15034d1c1ba8" - ], - "x-ms-correlation-request-id": [ - "9f30fbe4-3639-43ad-ad8a-15034d1c1ba8" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234602Z:9f30fbe4-3639-43ad-ad8a-15034d1c1ba8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1NTI0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkxTlRJMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:46:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" - ], - "x-ms-request-id": [ - "835c84f6-18d8-46a3-8f0a-ef6290ef6980" - ], - "x-ms-correlation-request-id": [ - "835c84f6-18d8-46a3-8f0a-ef6290ef6980" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234617Z:835c84f6-18d8-46a3-8f0a-ef6290ef6980" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1NTI0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkxTlRJMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:46:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" - ], - "x-ms-request-id": [ - "13a5bf57-fd60-4cb7-997f-51a1af1c78ae" - ], - "x-ms-correlation-request-id": [ - "13a5bf57-fd60-4cb7-997f-51a1af1c78ae" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234617Z:13a5bf57-fd60-4cb7-997f-51a1af1c78ae" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager5524", - "azuresdkfornetautoresttrafficmanager9649" - ] - }, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithCustomHeaders.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithCustomHeaders.json deleted file mode 100644 index 20aca346d204a..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithCustomHeaders.json +++ /dev/null @@ -1,736 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager1098?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjEwOTg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "2897222d-0e99-437e-9869-09c8abd8f6ae" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager1098\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "236" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:41:58 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "0454d8d2-5f11-4aac-9dae-16c176557f0c" - ], - "x-ms-correlation-request-id": [ - "0454d8d2-5f11-4aac-9dae-16c176557f0c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234158Z:0454d8d2-5f11-4aac-9dae-16c176557f0c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8217?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjEwOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODIxNz9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8217\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"host\",\r\n \"value\": \"www.contoso.com\"\r\n },\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value\"\r\n }\r\n ],\r\n \"expectedStatusCodeRanges\": [\r\n {\r\n \"min\": 200,\r\n \"max\": 499\r\n }\r\n ]\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "728" - ], - "x-ms-client-request-id": [ - "4b10dfd3-8a42-4841-86ef-2b1290d707d6" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8217\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8217\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8217\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8217.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10,\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"host\",\r\n \"value\": \"www.contoso.com\"\r\n },\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value\"\r\n }\r\n ],\r\n \"expectedStatusCodeRanges\": [\r\n {\r\n \"min\": 200,\r\n \"max\": 499\r\n }\r\n ]\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "958" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:42:01 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4b10dfd3-8a42-4841-86ef-2b1290d707d6" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "3cd16db1-a4dd-4e69-a54c-ad426bb8df6b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234202Z:3cd16db1-a4dd-4e69-a54c-ad426bb8df6b" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8217/ExternalEndpoints/My%20external%20endpoint%200?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjEwOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODIxNy9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQlMjAwP2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.Contoso0.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value-overriden\"\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "265" - ], - "x-ms-client-request-id": [ - "08288af9-e2e8-403b-b42f-1364dfc3d0c6" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8217/externalEndpoints/My external endpoint 0\",\r\n \"name\": \"My external endpoint 0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso0.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\",\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value-overriden\"\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "609" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:42:02 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "08288af9-e2e8-403b-b42f-1364dfc3d0c6" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "a4f1215b-d4d7-4d25-90da-9a1a37221d7b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234202Z:a4f1215b-d4d7-4d25-90da-9a1a37221d7b" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8217/ExternalEndpoints/My%20external%20endpoint%201?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjEwOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODIxNy9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQlMjAxP2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.Contoso1.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value-overriden\"\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "265" - ], - "x-ms-client-request-id": [ - "35e920be-6b17-40de-b2c7-d49e91998f07" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8217/externalEndpoints/My external endpoint 1\",\r\n \"name\": \"My external endpoint 1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso1.com\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"North Europe\",\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value-overriden\"\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "609" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:42:02 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "35e920be-6b17-40de-b2c7-d49e91998f07" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "caad2235-8b0c-4de0-8e20-e7cfa94aa9a2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234203Z:caad2235-8b0c-4de0-8e20-e7cfa94aa9a2" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8217/ExternalEndpoints/My%20external%20endpoint%202?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjEwOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODIxNy9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQlMjAyP2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.Contoso2.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value-overriden\"\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "265" - ], - "x-ms-client-request-id": [ - "cce1ad8b-e47c-49c1-a93e-9f276ffb06ee" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8217/externalEndpoints/My external endpoint 2\",\r\n \"name\": \"My external endpoint 2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso2.com\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"North Europe\",\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value-overriden\"\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "609" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:42:03 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cce1ad8b-e47c-49c1-a93e-9f276ffb06ee" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-correlation-request-id": [ - "d953179f-0b03-442a-bdba-d0750f7377b3" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234203Z:d953179f-0b03-442a-bdba-d0750f7377b3" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8217?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjEwOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODIxNz9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "eaea927c-6655-437a-a50b-29799e2d6f41" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8217\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8217\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8217\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8217.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10,\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"host\",\r\n \"value\": \"www.contoso.com\"\r\n },\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value\"\r\n }\r\n ],\r\n \"expectedStatusCodeRanges\": [\r\n {\r\n \"min\": 200,\r\n \"max\": 499\r\n }\r\n ]\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8217/externalEndpoints/My external endpoint 0\",\r\n \"name\": \"My external endpoint 0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso0.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\",\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value-overriden\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8217/externalEndpoints/My external endpoint 1\",\r\n \"name\": \"My external endpoint 1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso1.com\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"North Europe\",\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value-overriden\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8217/externalEndpoints/My external endpoint 2\",\r\n \"name\": \"My external endpoint 2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso2.com\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"North Europe\",\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value-overriden\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:42:03 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "eaea927c-6655-437a-a50b-29799e2d6f41" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "03560d96-1f76-4535-b3ca-b44c70bed0e0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234203Z:03560d96-1f76-4535-b3ca-b44c70bed0e0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1098/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8217?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjEwOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODIxNz9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "54ea520c-fe57-4476-960d-bf5d37e70475" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:42:04 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "54ea520c-fe57-4476-960d-bf5d37e70475" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "6aaa0c9b-0102-4fae-b0e9-d6de77203f10" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234204Z:6aaa0c9b-0102-4fae-b0e9-d6de77203f10" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager1098?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjEwOTg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16d549ef-425b-4c62-9c8d-d16925aa5149" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:42:06 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxMDk4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" - ], - "x-ms-request-id": [ - "eeb275d4-e0d2-474f-be7a-ade50f5f5e9b" - ], - "x-ms-correlation-request-id": [ - "eeb275d4-e0d2-474f-be7a-ade50f5f5e9b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234207Z:eeb275d4-e0d2-474f-be7a-ade50f5f5e9b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxMDk4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4TURrNExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:42:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxMDk4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-request-id": [ - "608b2ece-55ec-451f-b073-893b9a0f5245" - ], - "x-ms-correlation-request-id": [ - "608b2ece-55ec-451f-b073-893b9a0f5245" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234222Z:608b2ece-55ec-451f-b073-893b9a0f5245" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxMDk4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4TURrNExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:42:37 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxMDk4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" - ], - "x-ms-request-id": [ - "16440a2d-05ee-46d6-8552-9a7259336e09" - ], - "x-ms-correlation-request-id": [ - "16440a2d-05ee-46d6-8552-9a7259336e09" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234237Z:16440a2d-05ee-46d6-8552-9a7259336e09" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxMDk4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4TURrNExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:42:52 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-request-id": [ - "7fac7eac-6700-4614-90bf-cd237ae7aa55" - ], - "x-ms-correlation-request-id": [ - "7fac7eac-6700-4614-90bf-cd237ae7aa55" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234252Z:7fac7eac-6700-4614-90bf-cd237ae7aa55" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxMDk4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4TURrNExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:42:52 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" - ], - "x-ms-request-id": [ - "ec062f80-917e-408a-875e-da936c7761d6" - ], - "x-ms-correlation-request-id": [ - "ec062f80-917e-408a-875e-da936c7761d6" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234252Z:ec062f80-917e-408a-875e-da936c7761d6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager1098", - "azuresdkfornetautoresttrafficmanager8217" - ] - }, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithCustomSubnets.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithCustomSubnets.json deleted file mode 100644 index c5411de7c1d59..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithCustomSubnets.json +++ /dev/null @@ -1,803 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager4927?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ5Mjc/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "2ff8e9e0-dd55-4950-aaf4-a00141786d86" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager4927\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "236" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:40:54 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "a310333c-fb9f-4f42-a7ea-9869335d140c" - ], - "x-ms-correlation-request-id": [ - "a310333c-fb9f-4f42-a7ea-9869335d140c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234054Z:a310333c-fb9f-4f42-a7ea-9869335d140c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager239?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ5MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjM5P2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Subnet\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager239\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "393" - ], - "x-ms-client-request-id": [ - "419575c9-3153-41ef-b4ab-d89744bbf427" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager239\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager239\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Subnet\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager239\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager239.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "792" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:40:55 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "419575c9-3153-41ef-b4ab-d89744bbf427" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "0cb306ae-fd06-4203-9383-971957d60454" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234056Z:0cb306ae-fd06-4203-9383-971957d60454" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager239/ExternalEndpoints/My%20external%20endpoint%200?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ5MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjM5L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDA/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.Contoso0.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.0.0\",\r\n \"last\": \"1.2.0.250\"\r\n },\r\n {\r\n \"first\": \"3.4.0.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "311" - ], - "x-ms-client-request-id": [ - "11726439-a7de-42f0-bb73-c63cc40882f6" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager239/externalEndpoints/My external endpoint 0\",\r\n \"name\": \"My external endpoint 0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso0.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.0.0\",\r\n \"last\": \"1.2.0.250\"\r\n },\r\n {\r\n \"first\": \"3.4.0.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "616" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:40:57 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "11726439-a7de-42f0-bb73-c63cc40882f6" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "68285e9d-5c5b-44bc-a4dd-1ba91b749fa8" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234057Z:68285e9d-5c5b-44bc-a4dd-1ba91b749fa8" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager239/ExternalEndpoints/My%20external%20endpoint%201?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ5MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjM5L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDE/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.Contoso1.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.1.0\",\r\n \"last\": \"1.2.1.250\"\r\n },\r\n {\r\n \"first\": \"3.4.1.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "311" - ], - "x-ms-client-request-id": [ - "33655962-7bf2-4a47-b2a6-476325ed8f28" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager239/externalEndpoints/My external endpoint 1\",\r\n \"name\": \"My external endpoint 1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso1.com\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.1.0\",\r\n \"last\": \"1.2.1.250\"\r\n },\r\n {\r\n \"first\": \"3.4.1.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "616" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:40:57 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "33655962-7bf2-4a47-b2a6-476325ed8f28" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "66df4b9f-f6cc-4d9f-b7a9-9ef0c92fba9c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234058Z:66df4b9f-f6cc-4d9f-b7a9-9ef0c92fba9c" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager239/ExternalEndpoints/My%20external%20endpoint%202?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ5MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjM5L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDI/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.Contoso2.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.2.0\",\r\n \"last\": \"1.2.2.250\"\r\n },\r\n {\r\n \"first\": \"3.4.2.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "311" - ], - "x-ms-client-request-id": [ - "da32218d-3b8e-4284-a6f7-b68140ba2862" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager239/externalEndpoints/My external endpoint 2\",\r\n \"name\": \"My external endpoint 2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso2.com\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.2.0\",\r\n \"last\": \"1.2.2.250\"\r\n },\r\n {\r\n \"first\": \"3.4.2.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "616" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:40:58 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "da32218d-3b8e-4284-a6f7-b68140ba2862" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-correlation-request-id": [ - "370c390a-55ef-43ff-9d04-9faa5d8bfa63" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234059Z:370c390a-55ef-43ff-9d04-9faa5d8bfa63" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager239/ExternalEndpoints/My%20external%20endpoint%203?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ5MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjM5L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDM/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.Contoso3.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.3.0\",\r\n \"last\": \"1.2.3.250\"\r\n },\r\n {\r\n \"first\": \"3.4.3.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "311" - ], - "x-ms-client-request-id": [ - "d1e71b47-90e2-4c56-92ce-73fe6227b403" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager239/externalEndpoints/My external endpoint 3\",\r\n \"name\": \"My external endpoint 3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso3.com\",\r\n \"weight\": 1,\r\n \"priority\": 4,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.3.0\",\r\n \"last\": \"1.2.3.250\"\r\n },\r\n {\r\n \"first\": \"3.4.3.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "616" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:40:59 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d1e71b47-90e2-4c56-92ce-73fe6227b403" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-correlation-request-id": [ - "5b0e03b5-288c-4507-8db9-5b8359874640" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234059Z:5b0e03b5-288c-4507-8db9-5b8359874640" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager239?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ5MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjM5P2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2fa1d1df-5802-42a1-a54c-7fba33562487" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager239\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager239\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Subnet\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager239\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager239.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager239/externalEndpoints/My external endpoint 0\",\r\n \"name\": \"My external endpoint 0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso0.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.0.0\",\r\n \"last\": \"1.2.0.250\"\r\n },\r\n {\r\n \"first\": \"3.4.0.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager239/externalEndpoints/My external endpoint 1\",\r\n \"name\": \"My external endpoint 1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso1.com\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.1.0\",\r\n \"last\": \"1.2.1.250\"\r\n },\r\n {\r\n \"first\": \"3.4.1.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager239/externalEndpoints/My external endpoint 2\",\r\n \"name\": \"My external endpoint 2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso2.com\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.2.0\",\r\n \"last\": \"1.2.2.250\"\r\n },\r\n {\r\n \"first\": \"3.4.2.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager239/externalEndpoints/My external endpoint 3\",\r\n \"name\": \"My external endpoint 3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.Contoso3.com\",\r\n \"weight\": 1,\r\n \"priority\": 4,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.3.0\",\r\n \"last\": \"1.2.3.250\"\r\n },\r\n {\r\n \"first\": \"3.4.3.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:40:59 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2fa1d1df-5802-42a1-a54c-7fba33562487" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "5e943329-46ef-4291-bd3a-8dc8ecd23f8b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234100Z:5e943329-46ef-4291-bd3a-8dc8ecd23f8b" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager4927/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager239?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ5MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjM5P2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "14262039-ef0f-48f7-bead-8f408b8ec19e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:41:01 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "14262039-ef0f-48f7-bead-8f408b8ec19e" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "f073c30f-f6e1-4aaa-932a-39c8e5010d9e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234101Z:f073c30f-f6e1-4aaa-932a-39c8e5010d9e" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager4927?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ5Mjc/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2ecd24ee-2e5b-4248-af4b-3a6ae313a1c9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:41:05 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0OTI3LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "4b105cb0-6846-4e58-b6fa-6a2d0c70aed3" - ], - "x-ms-correlation-request-id": [ - "4b105cb0-6846-4e58-b6fa-6a2d0c70aed3" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234106Z:4b105cb0-6846-4e58-b6fa-6a2d0c70aed3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0OTI3LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT1RJM0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:41:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0OTI3LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-request-id": [ - "0410a310-34f9-4586-806b-9a2cc88db1f9" - ], - "x-ms-correlation-request-id": [ - "0410a310-34f9-4586-806b-9a2cc88db1f9" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234121Z:0410a310-34f9-4586-806b-9a2cc88db1f9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0OTI3LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT1RJM0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:41:36 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0OTI3LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" - ], - "x-ms-request-id": [ - "6255ea5c-e64c-4f9b-8d3e-479c0b828f19" - ], - "x-ms-correlation-request-id": [ - "6255ea5c-e64c-4f9b-8d3e-479c0b828f19" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234136Z:6255ea5c-e64c-4f9b-8d3e-479c0b828f19" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0OTI3LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT1RJM0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:41:50 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-request-id": [ - "518fcf6b-49ff-4abc-b2ec-5e8c3652b045" - ], - "x-ms-correlation-request-id": [ - "518fcf6b-49ff-4abc-b2ec-5e8c3652b045" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234151Z:518fcf6b-49ff-4abc-b2ec-5e8c3652b045" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0OTI3LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT1RJM0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:41:50 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" - ], - "x-ms-request-id": [ - "4d31f46b-8ebf-4dc7-ba77-b7f220ad3fae" - ], - "x-ms-correlation-request-id": [ - "4d31f46b-8ebf-4dc7-ba77-b7f220ad3fae" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234151Z:4d31f46b-8ebf-4dc7-ba77-b7f220ad3fae" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager4927", - "azuresdkfornetautoresttrafficmanager239" - ] - }, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithMinChildEndpointsIp.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithMinChildEndpointsIp.json deleted file mode 100644 index e1375f70099f7..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithMinChildEndpointsIp.json +++ /dev/null @@ -1,871 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager724?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjcyND9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "e5330ac8-1ae9-4925-aa34-e9f9c33f4406" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager724\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "234" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "f94f24cc-fca7-4d5f-9097-60613d5e2656" - ], - "x-ms-correlation-request-id": [ - "f94f24cc-fca7-4d5f-9097-60613d5e2656" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000110Z:f94f24cc-fca7-4d5f-9097-60613d5e2656" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7869?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjcyNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXI3ODY5P2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"MultiValue\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager7869\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\",\r\n \"maxReturn\": 3\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "419" - ], - "x-ms-client-request-id": [ - "cf303cc0-9513-454a-b41b-63e6e2f28537" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager7869\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"MultiValue\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager7869\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager7869.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\",\r\n \"maxReturn\": 3\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "813" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:11 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cf303cc0-9513-454a-b41b-63e6e2f28537" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "7e702baf-ae14-4298-b02e-75b68b23cfa1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000112Z:7e702baf-ae14-4298-b02e-75b68b23cfa1" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7869/ExternalEndpoints/My%20external%20endpoint%200?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjcyNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXI3ODY5L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDA/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"1.2.3.0\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 77,\r\n \"minChildEndpointsIPv4\": 66,\r\n \"minChildEndpointsIPv6\": 55,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.0.0\",\r\n \"last\": \"1.2.0.250\"\r\n },\r\n {\r\n \"first\": \"3.4.0.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "299" - ], - "x-ms-client-request-id": [ - "7ccaba6d-e2dd-4267-83de-11eef13f2592" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869/externalEndpoints/My external endpoint 0\",\r\n \"name\": \"My external endpoint 0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.0\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 77,\r\n \"minChildEndpointsIPv4\": 66,\r\n \"minChildEndpointsIPv6\": 55,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.0.0\",\r\n \"last\": \"1.2.0.250\"\r\n },\r\n {\r\n \"first\": \"3.4.0.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "604" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:12 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "7ccaba6d-e2dd-4267-83de-11eef13f2592" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "f092c05c-2625-42cc-8fef-e35edfd8840e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000113Z:f092c05c-2625-42cc-8fef-e35edfd8840e" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7869/ExternalEndpoints/My%20external%20endpoint%201?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjcyNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXI3ODY5L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDE/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"1.2.3.1\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 77,\r\n \"minChildEndpointsIPv4\": 66,\r\n \"minChildEndpointsIPv6\": 55,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.1.0\",\r\n \"last\": \"1.2.1.250\"\r\n },\r\n {\r\n \"first\": \"3.4.1.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "299" - ], - "x-ms-client-request-id": [ - "c17283d7-e2da-4a36-8ff9-c997278dc6bd" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869/externalEndpoints/My external endpoint 1\",\r\n \"name\": \"My external endpoint 1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.1\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 77,\r\n \"minChildEndpointsIPv4\": 66,\r\n \"minChildEndpointsIPv6\": 55,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.1.0\",\r\n \"last\": \"1.2.1.250\"\r\n },\r\n {\r\n \"first\": \"3.4.1.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "604" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:13 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c17283d7-e2da-4a36-8ff9-c997278dc6bd" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "b15173d8-ab1b-4bbd-8fbc-d276c39a05ee" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000114Z:b15173d8-ab1b-4bbd-8fbc-d276c39a05ee" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7869/ExternalEndpoints/My%20external%20endpoint%202?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjcyNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXI3ODY5L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDI/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"1.2.3.2\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 77,\r\n \"minChildEndpointsIPv4\": 66,\r\n \"minChildEndpointsIPv6\": 55,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.2.0\",\r\n \"last\": \"1.2.2.250\"\r\n },\r\n {\r\n \"first\": \"3.4.2.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "299" - ], - "x-ms-client-request-id": [ - "1d012f03-f7ff-4c7b-8538-6d826dcd5ebd" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869/externalEndpoints/My external endpoint 2\",\r\n \"name\": \"My external endpoint 2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.2\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 77,\r\n \"minChildEndpointsIPv4\": 66,\r\n \"minChildEndpointsIPv6\": 55,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.2.0\",\r\n \"last\": \"1.2.2.250\"\r\n },\r\n {\r\n \"first\": \"3.4.2.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "604" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:14 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1d012f03-f7ff-4c7b-8538-6d826dcd5ebd" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "e777031b-f2ef-4602-9055-e6751f05847a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000114Z:e777031b-f2ef-4602-9055-e6751f05847a" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7869/ExternalEndpoints/My%20external%20endpoint%203?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjcyNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXI3ODY5L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDM/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"1.2.3.3\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 77,\r\n \"minChildEndpointsIPv4\": 66,\r\n \"minChildEndpointsIPv6\": 55,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.3.0\",\r\n \"last\": \"1.2.3.250\"\r\n },\r\n {\r\n \"first\": \"3.4.3.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "299" - ], - "x-ms-client-request-id": [ - "a336231f-f7f2-4cb8-93e2-bf0400bf22e9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869/externalEndpoints/My external endpoint 3\",\r\n \"name\": \"My external endpoint 3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.3\",\r\n \"weight\": 1,\r\n \"priority\": 4,\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 77,\r\n \"minChildEndpointsIPv4\": 66,\r\n \"minChildEndpointsIPv6\": 55,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.3.0\",\r\n \"last\": \"1.2.3.250\"\r\n },\r\n {\r\n \"first\": \"3.4.3.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "604" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:14 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a336231f-f7f2-4cb8-93e2-bf0400bf22e9" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-correlation-request-id": [ - "5d1afe12-2be5-4525-95dd-676b69ad8015" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000115Z:5d1afe12-2be5-4525-95dd-676b69ad8015" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7869/ExternalEndpoints/My%20external%20endpoint%204?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjcyNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXI3ODY5L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"1.2.3.4\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 77,\r\n \"minChildEndpointsIPv4\": 66,\r\n \"minChildEndpointsIPv6\": 55,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.4.0\",\r\n \"last\": \"1.2.4.250\"\r\n },\r\n {\r\n \"first\": \"3.4.4.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "299" - ], - "x-ms-client-request-id": [ - "82875019-70e4-4aff-9ec5-b98a19c7a62e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869/externalEndpoints/My external endpoint 4\",\r\n \"name\": \"My external endpoint 4\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.4\",\r\n \"weight\": 1,\r\n \"priority\": 5,\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 77,\r\n \"minChildEndpointsIPv4\": 66,\r\n \"minChildEndpointsIPv6\": 55,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.4.0\",\r\n \"last\": \"1.2.4.250\"\r\n },\r\n {\r\n \"first\": \"3.4.4.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "604" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:15 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "82875019-70e4-4aff-9ec5-b98a19c7a62e" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-correlation-request-id": [ - "6483de7e-6e6a-48de-b53e-948c268119ca" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000116Z:6483de7e-6e6a-48de-b53e-948c268119ca" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7869?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjcyNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXI3ODY5P2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "89f206de-a718-42ca-a997-4ff221cc7d40" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager7869\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"MultiValue\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager7869\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager7869.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869/externalEndpoints/My external endpoint 0\",\r\n \"name\": \"My external endpoint 0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.0\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 77,\r\n \"minChildEndpointsIPv4\": 66,\r\n \"minChildEndpointsIPv6\": 55,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.0.0\",\r\n \"last\": \"1.2.0.250\"\r\n },\r\n {\r\n \"first\": \"3.4.0.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869/externalEndpoints/My external endpoint 1\",\r\n \"name\": \"My external endpoint 1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.1\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 78,\r\n \"minChildEndpointsIPv4\": 67,\r\n \"minChildEndpointsIPv6\": 56,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.1.0\",\r\n \"last\": \"1.2.1.250\"\r\n },\r\n {\r\n \"first\": \"3.4.1.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869/externalEndpoints/My external endpoint 2\",\r\n \"name\": \"My external endpoint 2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.2\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 79,\r\n \"minChildEndpointsIPv4\": 68,\r\n \"minChildEndpointsIPv6\": 57,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.2.0\",\r\n \"last\": \"1.2.2.250\"\r\n },\r\n {\r\n \"first\": \"3.4.2.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869/externalEndpoints/My external endpoint 3\",\r\n \"name\": \"My external endpoint 3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.3\",\r\n \"weight\": 1,\r\n \"priority\": 4,\r\n \"endpointLocation\": \"North Europe\",\r\n \"minChildEndpoints\": 80,\r\n \"minChildEndpointsIPv4\": 69,\r\n \"minChildEndpointsIPv6\": 58,\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.3.0\",\r\n \"last\": \"1.2.3.250\"\r\n },\r\n {\r\n \"first\": \"3.4.3.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7869/externalEndpoints/My external endpoint 4\",\r\n \"name\": \"My external endpoint 4\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.4\",\r\n \"weight\": 1,\r\n \"priority\": 5,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.4.0\",\r\n \"last\": \"1.2.4.250\"\r\n },\r\n {\r\n \"first\": \"3.4.4.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\",\r\n \"maxReturn\": 3\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:15 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "89f206de-a718-42ca-a997-4ff221cc7d40" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "bdd94d12-d1e9-4585-bf8e-8fd96d9bf886" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000116Z:bdd94d12-d1e9-4585-bf8e-8fd96d9bf886" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager724/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7869?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjcyNC9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXI3ODY5P2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "515312ed-7bee-4d5c-9382-9eb0e00dd52b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:18 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "515312ed-7bee-4d5c-9382-9eb0e00dd52b" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "8a521f60-a582-45c3-9cca-9b98333d297d" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000119Z:8a521f60-a582-45c3-9cca-9b98333d297d" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager724?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjcyND9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6026ce54-c4f9-4485-8f4a-3d9b8a4afc8e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:31 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" - ], - "x-ms-request-id": [ - "c62e13b8-23f5-499d-9396-404d58022850" - ], - "x-ms-correlation-request-id": [ - "c62e13b8-23f5-499d-9396-404d58022850" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000132Z:c62e13b8-23f5-499d-9396-404d58022850" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TnprdFEwVk9WRkpCVEZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKalpXNTBjbUZzZFhNaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:46 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" - ], - "x-ms-request-id": [ - "70478393-4f09-44bd-ae54-690c627c53fa" - ], - "x-ms-correlation-request-id": [ - "70478393-4f09-44bd-ae54-690c627c53fa" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000147Z:70478393-4f09-44bd-ae54-690c627c53fa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TnprdFEwVk9WRkpCVEZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKalpXNTBjbUZzZFhNaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:02:01 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" - ], - "x-ms-request-id": [ - "56d40518-3194-4b08-ae7d-f1f61c1a7bfe" - ], - "x-ms-correlation-request-id": [ - "56d40518-3194-4b08-ae7d-f1f61c1a7bfe" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000202Z:56d40518-3194-4b08-ae7d-f1f61c1a7bfe" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TnprdFEwVk9WRkpCVEZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKalpXNTBjbUZzZFhNaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:02:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" - ], - "x-ms-request-id": [ - "2a0124f8-9690-444b-951c-c034b62e4554" - ], - "x-ms-correlation-request-id": [ - "2a0124f8-9690-444b-951c-c034b62e4554" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000217Z:2a0124f8-9690-444b-951c-c034b62e4554" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TnprdFEwVk9WRkpCVEZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKalpXNTBjbUZzZFhNaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:02:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" - ], - "x-ms-request-id": [ - "8a3e9e4f-dc64-4cfa-87cf-2729157039cd" - ], - "x-ms-correlation-request-id": [ - "8a3e9e4f-dc64-4cfa-87cf-2729157039cd" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000217Z:8a3e9e4f-dc64-4cfa-87cf-2729157039cd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager724", - "azuresdkfornetautoresttrafficmanager7869" - ] - }, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithMultiValue.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithMultiValue.json deleted file mode 100644 index e6ac7820a9781..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithMultiValue.json +++ /dev/null @@ -1,870 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager279?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI3OT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "e5330ac8-1ae9-4925-aa34-e9f9c33f4406" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager279\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "234" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "f94f24cc-fca7-4d5f-9097-60613d5e2656" - ], - "x-ms-correlation-request-id": [ - "f94f24cc-fca7-4d5f-9097-60613d5e2656" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000110Z:f94f24cc-fca7-4d5f-9097-60613d5e2656" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2314?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI3OS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXIyMzE0P2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"MultiValue\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager2314\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\",\r\n \"maxReturn\": 3\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "419" - ], - "x-ms-client-request-id": [ - "cf303cc0-9513-454a-b41b-63e6e2f28537" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager2314\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"MultiValue\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager2314\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager2314.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\",\r\n \"maxReturn\": 3\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "813" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:11 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cf303cc0-9513-454a-b41b-63e6e2f28537" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "7e702baf-ae14-4298-b02e-75b68b23cfa1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000112Z:7e702baf-ae14-4298-b02e-75b68b23cfa1" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2314/ExternalEndpoints/My%20external%20endpoint%200?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI3OS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXIyMzE0L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDA/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"1.2.3.0\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.0.0\",\r\n \"last\": \"1.2.0.250\"\r\n },\r\n {\r\n \"first\": \"3.4.0.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "299" - ], - "x-ms-client-request-id": [ - "7ccaba6d-e2dd-4267-83de-11eef13f2592" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314/externalEndpoints/My external endpoint 0\",\r\n \"name\": \"My external endpoint 0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.0\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.0.0\",\r\n \"last\": \"1.2.0.250\"\r\n },\r\n {\r\n \"first\": \"3.4.0.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "604" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:12 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "7ccaba6d-e2dd-4267-83de-11eef13f2592" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "f092c05c-2625-42cc-8fef-e35edfd8840e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000113Z:f092c05c-2625-42cc-8fef-e35edfd8840e" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2314/ExternalEndpoints/My%20external%20endpoint%201?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI3OS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXIyMzE0L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDE/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"1.2.3.1\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.1.0\",\r\n \"last\": \"1.2.1.250\"\r\n },\r\n {\r\n \"first\": \"3.4.1.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "299" - ], - "x-ms-client-request-id": [ - "c17283d7-e2da-4a36-8ff9-c997278dc6bd" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314/externalEndpoints/My external endpoint 1\",\r\n \"name\": \"My external endpoint 1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.1\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.1.0\",\r\n \"last\": \"1.2.1.250\"\r\n },\r\n {\r\n \"first\": \"3.4.1.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "604" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:13 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c17283d7-e2da-4a36-8ff9-c997278dc6bd" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "b15173d8-ab1b-4bbd-8fbc-d276c39a05ee" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000114Z:b15173d8-ab1b-4bbd-8fbc-d276c39a05ee" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2314/ExternalEndpoints/My%20external%20endpoint%202?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI3OS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXIyMzE0L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDI/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"1.2.3.2\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.2.0\",\r\n \"last\": \"1.2.2.250\"\r\n },\r\n {\r\n \"first\": \"3.4.2.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "299" - ], - "x-ms-client-request-id": [ - "1d012f03-f7ff-4c7b-8538-6d826dcd5ebd" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314/externalEndpoints/My external endpoint 2\",\r\n \"name\": \"My external endpoint 2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.2\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.2.0\",\r\n \"last\": \"1.2.2.250\"\r\n },\r\n {\r\n \"first\": \"3.4.2.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "604" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:14 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "1d012f03-f7ff-4c7b-8538-6d826dcd5ebd" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "e777031b-f2ef-4602-9055-e6751f05847a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000114Z:e777031b-f2ef-4602-9055-e6751f05847a" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2314/ExternalEndpoints/My%20external%20endpoint%203?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI3OS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXIyMzE0L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDM/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"1.2.3.3\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.3.0\",\r\n \"last\": \"1.2.3.250\"\r\n },\r\n {\r\n \"first\": \"3.4.3.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "299" - ], - "x-ms-client-request-id": [ - "a336231f-f7f2-4cb8-93e2-bf0400bf22e9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314/externalEndpoints/My external endpoint 3\",\r\n \"name\": \"My external endpoint 3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.3\",\r\n \"weight\": 1,\r\n \"priority\": 4,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.3.0\",\r\n \"last\": \"1.2.3.250\"\r\n },\r\n {\r\n \"first\": \"3.4.3.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "604" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:14 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a336231f-f7f2-4cb8-93e2-bf0400bf22e9" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-correlation-request-id": [ - "5d1afe12-2be5-4525-95dd-676b69ad8015" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000115Z:5d1afe12-2be5-4525-95dd-676b69ad8015" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2314/ExternalEndpoints/My%20external%20endpoint%204?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI3OS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXIyMzE0L0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludCUyMDQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"1.2.3.4\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.4.0\",\r\n \"last\": \"1.2.4.250\"\r\n },\r\n {\r\n \"first\": \"3.4.4.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "299" - ], - "x-ms-client-request-id": [ - "82875019-70e4-4aff-9ec5-b98a19c7a62e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314/externalEndpoints/My external endpoint 4\",\r\n \"name\": \"My external endpoint 4\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.4\",\r\n \"weight\": 1,\r\n \"priority\": 5,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.4.0\",\r\n \"last\": \"1.2.4.250\"\r\n },\r\n {\r\n \"first\": \"3.4.4.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "604" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:15 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "82875019-70e4-4aff-9ec5-b98a19c7a62e" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-correlation-request-id": [ - "6483de7e-6e6a-48de-b53e-948c268119ca" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000116Z:6483de7e-6e6a-48de-b53e-948c268119ca" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2314?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI3OS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXIyMzE0P2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "89f206de-a718-42ca-a997-4ff221cc7d40" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager2314\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"MultiValue\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager2314\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager2314.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314/externalEndpoints/My external endpoint 0\",\r\n \"name\": \"My external endpoint 0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.0\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.0.0\",\r\n \"last\": \"1.2.0.250\"\r\n },\r\n {\r\n \"first\": \"3.4.0.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314/externalEndpoints/My external endpoint 1\",\r\n \"name\": \"My external endpoint 1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.1\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.1.0\",\r\n \"last\": \"1.2.1.250\"\r\n },\r\n {\r\n \"first\": \"3.4.1.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314/externalEndpoints/My external endpoint 2\",\r\n \"name\": \"My external endpoint 2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.2\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.2.0\",\r\n \"last\": \"1.2.2.250\"\r\n },\r\n {\r\n \"first\": \"3.4.2.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314/externalEndpoints/My external endpoint 3\",\r\n \"name\": \"My external endpoint 3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.3\",\r\n \"weight\": 1,\r\n \"priority\": 4,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.3.0\",\r\n \"last\": \"1.2.3.250\"\r\n },\r\n {\r\n \"first\": \"3.4.3.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2314/externalEndpoints/My external endpoint 4\",\r\n \"name\": \"My external endpoint 4\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"1.2.3.4\",\r\n \"weight\": 1,\r\n \"priority\": 5,\r\n \"endpointLocation\": \"North Europe\",\r\n \"subnets\": [\r\n {\r\n \"first\": \"1.2.4.0\",\r\n \"last\": \"1.2.4.250\"\r\n },\r\n {\r\n \"first\": \"3.4.4.0\",\r\n \"scope\": 24\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\",\r\n \"maxReturn\": 3\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:15 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "89f206de-a718-42ca-a997-4ff221cc7d40" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "bdd94d12-d1e9-4585-bf8e-8fd96d9bf886" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000116Z:bdd94d12-d1e9-4585-bf8e-8fd96d9bf886" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager279/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2314?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI3OS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9henVyZXNka2Zvcm5ldGF1dG9yZXN0dHJhZmZpY21hbmFnZXIyMzE0P2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "515312ed-7bee-4d5c-9382-9eb0e00dd52b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:18 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "515312ed-7bee-4d5c-9382-9eb0e00dd52b" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "8a521f60-a582-45c3-9cca-9b98333d297d" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000119Z:8a521f60-a582-45c3-9cca-9b98333d297d" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager279?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI3OT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6026ce54-c4f9-4485-8f4a-3d9b8a4afc8e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:31 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" - ], - "x-ms-request-id": [ - "c62e13b8-23f5-499d-9396-404d58022850" - ], - "x-ms-correlation-request-id": [ - "c62e13b8-23f5-499d-9396-404d58022850" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000132Z:c62e13b8-23f5-499d-9396-404d58022850" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TnprdFEwVk9WRkpCVEZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKalpXNTBjbUZzZFhNaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:01:46 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" - ], - "x-ms-request-id": [ - "70478393-4f09-44bd-ae54-690c627c53fa" - ], - "x-ms-correlation-request-id": [ - "70478393-4f09-44bd-ae54-690c627c53fa" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000147Z:70478393-4f09-44bd-ae54-690c627c53fa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TnprdFEwVk9WRkpCVEZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKalpXNTBjbUZzZFhNaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:02:01 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" - ], - "x-ms-request-id": [ - "56d40518-3194-4b08-ae7d-f1f61c1a7bfe" - ], - "x-ms-correlation-request-id": [ - "56d40518-3194-4b08-ae7d-f1f61c1a7bfe" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000202Z:56d40518-3194-4b08-ae7d-f1f61c1a7bfe" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TnprdFEwVk9WRkpCVEZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKalpXNTBjbUZzZFhNaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:02:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" - ], - "x-ms-request-id": [ - "2a0124f8-9690-444b-951c-c034b62e4554" - ], - "x-ms-correlation-request-id": [ - "2a0124f8-9690-444b-951c-c034b62e4554" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000217Z:2a0124f8-9690-444b-951c-c034b62e4554" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNzktQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJjZW50cmFsdXMifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TnprdFEwVk9WRkpCVEZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKalpXNTBjbUZzZFhNaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 18 Jul 2018 00:02:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" - ], - "x-ms-request-id": [ - "8a3e9e4f-dc64-4cfa-87cf-2729157039cd" - ], - "x-ms-correlation-request-id": [ - "8a3e9e4f-dc64-4cfa-87cf-2729157039cd" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180718T000217Z:8a3e9e4f-dc64-4cfa-87cf-2729157039cd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager279", - "azuresdkfornetautoresttrafficmanager2314" - ] - }, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithoutEndpoints_ThenUpdate.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithoutEndpoints_ThenUpdate.json deleted file mode 100644 index cacbc1ce99727..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfileWithoutEndpoints_ThenUpdate.json +++ /dev/null @@ -1,602 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager1990?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE5OTA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "232f86eb-382f-4cdc-bd83-f7c96bfa5ada" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1990\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager1990\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "236" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:46:28 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-request-id": [ - "d798223b-4051-49a1-9add-eb32ace45916" - ], - "x-ms-correlation-request-id": [ - "d798223b-4051-49a1-9add-eb32ace45916" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234628Z:d798223b-4051-49a1-9add-eb32ace45916" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1990/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8440?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE5OTAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODQ0MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8440\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "7ca91841-24ae-4a41-9355-3a9f85b25562" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1990/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8440\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8440\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8440\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8440.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:46:29 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "7ca91841-24ae-4a41-9355-3a9f85b25562" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "14d9a60c-9c88-4e56-b68e-214a420e0a5c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234630Z:14d9a60c-9c88-4e56-b68e-214a420e0a5c" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1990/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8440/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE5OTAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODQ0MC9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "25be45d3-0a37-4940-9cbc-74ea8fb092a9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1990/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8440/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:46:29 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "25be45d3-0a37-4940-9cbc-74ea8fb092a9" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-correlation-request-id": [ - "b7aeaffe-dc54-4ba6-9175-a3ba4a5dd7f3" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234630Z:b7aeaffe-dc54-4ba6-9175-a3ba4a5dd7f3" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1990/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8440?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE5OTAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODQ0MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d80c8046-0302-48c5-9c8b-d5ee74bf38c3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1990/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8440\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8440\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8440\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8440.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1990/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8440/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:46:29 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d80c8046-0302-48c5-9c8b-d5ee74bf38c3" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "bfca71c8-9303-4490-be16-0eae55d90db0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234630Z:bfca71c8-9303-4490-be16-0eae55d90db0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager1990/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8440?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE5OTAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODQ0MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b57999eb-c6aa-4a1a-b2be-457323ac0360" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:46:31 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b57999eb-c6aa-4a1a-b2be-457323ac0360" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "b1cab762-17dd-4849-950f-fb8c0b5c5278" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234632Z:b1cab762-17dd-4849-950f-fb8c0b5c5278" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager1990?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjE5OTA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f69baa35-2112-4fd9-a68e-cc538b9a48f5" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:46:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxOTkwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "7b25615f-9189-43db-a8de-4430617a2bfb" - ], - "x-ms-correlation-request-id": [ - "7b25615f-9189-43db-a8de-4430617a2bfb" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234633Z:7b25615f-9189-43db-a8de-4430617a2bfb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxOTkwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4T1Rrd0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:46:48 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxOTkwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-request-id": [ - "3d8d502f-2929-44ef-bbb9-e752bf5fbf66" - ], - "x-ms-correlation-request-id": [ - "3d8d502f-2929-44ef-bbb9-e752bf5fbf66" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234648Z:3d8d502f-2929-44ef-bbb9-e752bf5fbf66" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxOTkwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4T1Rrd0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:03 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxOTkwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" - ], - "x-ms-request-id": [ - "819f6b1c-3e4a-4f39-a638-f622d6fdee1d" - ], - "x-ms-correlation-request-id": [ - "819f6b1c-3e4a-4f39-a638-f622d6fdee1d" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234703Z:819f6b1c-3e4a-4f39-a638-f622d6fdee1d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxOTkwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4T1Rrd0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:18 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-request-id": [ - "aa9958e4-3495-485a-b3dd-93a9197f60ae" - ], - "x-ms-correlation-request-id": [ - "aa9958e4-3495-485a-b3dd-93a9197f60ae" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234719Z:aa9958e4-3495-485a-b3dd-93a9197f60ae" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIxOTkwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl4T1Rrd0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:19 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" - ], - "x-ms-request-id": [ - "810aa970-0f26-4646-b5c1-65373421695e" - ], - "x-ms-correlation-request-id": [ - "810aa970-0f26-4646-b5c1-65373421695e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234719Z:810aa970-0f26-4646-b5c1-65373421695e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager1990", - "azuresdkfornetautoresttrafficmanager8440" - ] - }, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfile_FastFailoverSettings.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfile_FastFailoverSettings.json deleted file mode 100644 index ba67c9e38902e..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/CrudProfile_FastFailoverSettings.json +++ /dev/null @@ -1,831 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourcegroups/azuresdkfornetautoresttrafficmanager4834?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ4MzQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "8470bf12-a286-4df8-895f-4694ca935bf3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager4834\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "236" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 23 Mar 2018 02:30:42 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "e9b50d1a-f2ec-4d53-bab3-b3747ca8d4c1" - ], - "x-ms-correlation-request-id": [ - "e9b50d1a-f2ec-4d53-bab3-b3747ca8d4c1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023043Z:e9b50d1a-f2ec-4d53-bab3-b3747ca8d4c1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7579?api-version=2017-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ4MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNzU3OT9hcGktdmVyc2lvbj0yMDE3LTA1LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager7579\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 10,\r\n \"timeoutInSeconds\": 5,\r\n \"toleratedNumberOfFailures\": 2\r\n },\r\n \"endpoints\": [\r\n {\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.network/TrafficManagerProfiles/ExternalEndpoints\",\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ]\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "783" - ], - "x-ms-client-request-id": [ - "139a2dc6-33f4-4083-ac16-50880b761f35" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7579\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager7579\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager7579\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager7579.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 10,\r\n \"toleratedNumberOfFailures\": 2,\r\n \"timeoutInSeconds\": 5\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7579/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "1298" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Fri, 23 Mar 2018 02:30:44 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "139a2dc6-33f4-4083-ac16-50880b761f35" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "7de46fd7-cde0-4082-9327-9d3dc56c5df1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023044Z:7de46fd7-cde0-4082-9327-9d3dc56c5df1" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7579?api-version=2017-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ4MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNzU3OT9hcGktdmVyc2lvbj0yMDE3LTA1LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "74a341dc-c349-43ab-ae5b-1f0b32d26197" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7579\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager7579\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager7579\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager7579.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 10,\r\n \"toleratedNumberOfFailures\": 2,\r\n \"timeoutInSeconds\": 5\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7579/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Fri, 23 Mar 2018 02:30:45 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "74a341dc-c349-43ab-ae5b-1f0b32d26197" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "635eb697-d5ce-42e8-9b1b-af00f13d87d2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023045Z:635eb697-d5ce-42e8-9b1b-af00f13d87d2" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7579?api-version=2017-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ4MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNzU3OT9hcGktdmVyc2lvbj0yMDE3LTA1LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b35937b3-260d-4ca2-a1d3-1d571ba851b7" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7579\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager7579\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager7579\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager7579.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 4,\r\n \"timeoutInSeconds\": 6\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7579/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Fri, 23 Mar 2018 02:30:45 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b35937b3-260d-4ca2-a1d3-1d571ba851b7" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "a3659a84-5d2f-4db4-8436-a70121bebf73" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023045Z:a3659a84-5d2f-4db4-8436-a70121bebf73" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager7579?api-version=2017-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ4MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNzU3OT9hcGktdmVyc2lvbj0yMDE3LTA1LTAx", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"properties\": {\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"timeoutInSeconds\": 6,\r\n \"toleratedNumberOfFailures\": 4\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "238" - ], - "x-ms-client-request-id": [ - "c6062335-9729-467d-af73-6ff98799a2a7" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7579\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager7579\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager7579\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager7579.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 4,\r\n \"timeoutInSeconds\": 6\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourceGroups/azuresdkfornetautoresttrafficmanager4834/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager7579/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Fri, 23 Mar 2018 02:30:45 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c6062335-9729-467d-af73-6ff98799a2a7" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "891d072c-557a-45d0-a635-e00f60949b8f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023045Z:891d072c-557a-45d0-a635-e00f60949b8f" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/resourcegroups/azuresdkfornetautoresttrafficmanager4834?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjQ4MzQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9384bcca-e0bf-4d7c-bdeb-0c41936d9f50" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 23 Mar 2018 02:30:49 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "2fe257d2-e04d-4e54-b6f4-49cea4dea930" - ], - "x-ms-correlation-request-id": [ - "2fe257d2-e04d-4e54-b6f4-49cea4dea930" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023050Z:2fe257d2-e04d-4e54-b6f4-49cea4dea930" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT0RNMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 23 Mar 2018 02:31:05 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-request-id": [ - "183037bc-f446-4ecd-badb-0231b209682c" - ], - "x-ms-correlation-request-id": [ - "183037bc-f446-4ecd-badb-0231b209682c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023105Z:183037bc-f446-4ecd-badb-0231b209682c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT0RNMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 23 Mar 2018 02:31:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" - ], - "x-ms-request-id": [ - "2d2e3e9d-a64b-4534-bb48-b3ba204a9934" - ], - "x-ms-correlation-request-id": [ - "2d2e3e9d-a64b-4534-bb48-b3ba204a9934" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023121Z:2d2e3e9d-a64b-4534-bb48-b3ba204a9934" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT0RNMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 23 Mar 2018 02:31:35 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-request-id": [ - "6a9772c4-840c-4e83-aa25-e5d1f27c1763" - ], - "x-ms-correlation-request-id": [ - "6a9772c4-840c-4e83-aa25-e5d1f27c1763" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023136Z:6a9772c4-840c-4e83-aa25-e5d1f27c1763" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT0RNMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 23 Mar 2018 02:31:50 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" - ], - "x-ms-request-id": [ - "939e56a8-c9dd-4ed4-b058-32832edc4abb" - ], - "x-ms-correlation-request-id": [ - "939e56a8-c9dd-4ed4-b058-32832edc4abb" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023151Z:939e56a8-c9dd-4ed4-b058-32832edc4abb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT0RNMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 23 Mar 2018 02:32:06 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" - ], - "x-ms-request-id": [ - "b055f78c-95e2-4238-936e-f58f5cb46851" - ], - "x-ms-correlation-request-id": [ - "b055f78c-95e2-4238-936e-f58f5cb46851" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023206Z:b055f78c-95e2-4238-936e-f58f5cb46851" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT0RNMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 23 Mar 2018 02:32:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-request-id": [ - "b18ed0e7-7e44-4667-a8c2-f8ad357e6bfb" - ], - "x-ms-correlation-request-id": [ - "b18ed0e7-7e44-4667-a8c2-f8ad357e6bfb" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023222Z:b18ed0e7-7e44-4667-a8c2-f8ad357e6bfb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT0RNMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 23 Mar 2018 02:32:36 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" - ], - "x-ms-request-id": [ - "d8ca9e07-ae8a-485c-8239-db2fb6608605" - ], - "x-ms-correlation-request-id": [ - "d8ca9e07-ae8a-485c-8239-db2fb6608605" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023237Z:d8ca9e07-ae8a-485c-8239-db2fb6608605" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c9cbd920-c00c-427c-852b-8aaf38badaeb/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI0ODM0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzljYmQ5MjAtYzAwYy00MjdjLTg1MmItOGFhZjM4YmFkYWViL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkwT0RNMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 23 Mar 2018 02:32:37 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-request-id": [ - "8e945b72-f529-409d-a2a0-fc42a000bbf8" - ], - "x-ms-correlation-request-id": [ - "8e945b72-f529-409d-a2a0-fc42a000bbf8" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180323T023237Z:8e945b72-f529-409d-a2a0-fc42a000bbf8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager4834", - "azuresdkfornetautoresttrafficmanager7579" - ] - }, - "Variables": { - "SubscriptionId": "c9cbd920-c00c-427c-852b-8aaf38badaeb" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/EmptyHeatMapData.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/EmptyHeatMapData.json deleted file mode 100644 index 4ab4d939c326e..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/EmptyHeatMapData.json +++ /dev/null @@ -1,336 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager7434?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjc0MzQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "2fb68496-9fd4-45ff-9ade-20866070ed39" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7434\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager7434\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "236" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:16 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "9ba3c7ad-169e-4b1b-994b-3deee0eacb73" - ], - "x-ms-correlation-request-id": [ - "9ba3c7ad-169e-4b1b-994b-3deee0eacb73" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234417Z:9ba3c7ad-169e-4b1b-994b-3deee0eacb73" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7434/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2812?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjc0MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjgxMj9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager2812\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Enabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "398" - ], - "x-ms-client-request-id": [ - "f8c9555d-12bc-49e1-9638-9f3114d662dd" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7434/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2812\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager2812\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager2812\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager2812.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Enabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "800" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:18 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "f8c9555d-12bc-49e1-9638-9f3114d662dd" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "cb808bf7-a25c-4ccd-9c3d-df78c053f18c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234418Z:cb808bf7-a25c-4ccd-9c3d-df78c053f18c" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7434/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2812/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjc0MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjgxMi9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "70d5b17b-b8a3-46b5-8984-ad1f8ce694cc" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7434/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2812/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:18 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "70d5b17b-b8a3-46b5-8984-ad1f8ce694cc" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "963cd101-16c0-45c8-bf76-7e31fe428135" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234419Z:963cd101-16c0-45c8-bf76-7e31fe428135" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7434/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2812?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjc0MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjgxMj9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d1e68813-5a33-453f-9048-8fa5989bebca" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7434/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2812\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager2812\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager2812\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager2812.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7434/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2812/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Enabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:18 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d1e68813-5a33-453f-9048-8fa5989bebca" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "8e5a5672-5f14-48e2-9708-b84a7f561b3b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234419Z:8e5a5672-5f14-48e2-9708-b84a7f561b3b" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7434/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2812/heatMaps/default?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjc0MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjgxMi9oZWF0TWFwcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a0df416e-7521-454d-aca7-aecb7c5f939f" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested heat map content does not exist. This could be because the given profile has not received any queries in the previous 7 days. If any query was received, it may takes up to 24 hours to show in the heatmap.\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "250" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:21 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a0df416e-7521-454d-aca7-aecb7c5f939f" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "599" - ], - "x-ms-correlation-request-id": [ - "3eacc67d-b504-4ed2-9da2-70311afb7025" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234421Z:3eacc67d-b504-4ed2-9da2-70311afb7025" - ] - }, - "StatusCode": 404 - } - ], - "Names": { - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager7434", - "azuresdkfornetautoresttrafficmanager2812" - ] - }, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/ListAllProfiles.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/ListAllProfiles.json deleted file mode 100644 index 2fe33cbd8e6d1..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/ListAllProfiles.json +++ /dev/null @@ -1,1694 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager5144?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "999e1290-731c-4ef2-9016-f98bbde273fb" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager5144\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "236" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "1f9d8b1f-1491-4469-bd8f-05f5c0586e53" - ], - "x-ms-correlation-request-id": [ - "1f9d8b1f-1491-4469-bd8f-05f5c0586e53" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234300Z:1f9d8b1f-1491-4469-bd8f-05f5c0586e53" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8670?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODY3MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8670\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "be124c58-e97b-4560-89ed-62a87a788ab6" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8670\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8670\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8670\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8670.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:02 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "be124c58-e97b-4560-89ed-62a87a788ab6" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "7f43c5ef-381b-4a22-99c6-5124d9d39d84" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234302Z:7f43c5ef-381b-4a22-99c6-5124d9d39d84" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8670/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODY3MC9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "dada62a9-3826-41f1-a34d-172460e2aca9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8670/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:02 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "dada62a9-3826-41f1-a34d-172460e2aca9" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "e8e1d5a6-451e-4128-9912-5ed590eed7f9" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234303Z:e8e1d5a6-451e-4128-9912-5ed590eed7f9" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8670?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODY3MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d2575863-4a0e-4a73-8acf-28e58d85a09e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8670\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8670\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8670\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8670.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8670/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:03 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d2575863-4a0e-4a73-8acf-28e58d85a09e" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "d75d27f1-cf18-487f-809e-4b6b97ec179f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234303Z:d75d27f1-cf18-487f-809e-4b6b97ec179f" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager4338?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNDMzOD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager4338\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "e6ed754b-0f17-493b-aec9-c66d2b973142" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4338\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager4338\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager4338\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager4338.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:04 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e6ed754b-0f17-493b-aec9-c66d2b973142" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "8df7cf97-b05b-4050-8d36-94eccf7a4cd5" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234305Z:8df7cf97-b05b-4050-8d36-94eccf7a4cd5" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager4338/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNDMzOC9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "dcc7bf0d-3395-47e1-bc29-be29469843a1" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4338/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:05 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "dcc7bf0d-3395-47e1-bc29-be29469843a1" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "73a15cbb-57aa-4e5d-b543-3ca19d3f3094" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234306Z:73a15cbb-57aa-4e5d-b543-3ca19d3f3094" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager4338?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNDMzOD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "15704377-eb07-4212-a1ea-b4f35b8fd1df" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4338\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager4338\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager4338\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager4338.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4338/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:07 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "15704377-eb07-4212-a1ea-b4f35b8fd1df" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "d1dcc460-3812-44e7-a747-00b978edff0b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234307Z:d1dcc460-3812-44e7-a747-00b978edff0b" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2286?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjI4Nj9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager2286\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "492d41f0-3b54-4e10-be9c-c16d29e60f14" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2286\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager2286\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager2286\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager2286.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:08 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "492d41f0-3b54-4e10-be9c-c16d29e60f14" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10797" - ], - "x-ms-correlation-request-id": [ - "b15aae85-429f-4c78-9f0f-12a6554a9a12" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234308Z:b15aae85-429f-4c78-9f0f-12a6554a9a12" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2286/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjI4Ni9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "47708634-e29e-4411-ba04-8971f822f6d8" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2286/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:08 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "47708634-e29e-4411-ba04-8971f822f6d8" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-correlation-request-id": [ - "14d54944-b109-4e7a-a4c2-cf89a55b41e2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234309Z:14d54944-b109-4e7a-a4c2-cf89a55b41e2" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2286?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjI4Nj9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "54c9e3a8-3983-46a1-b70c-b721089e7a93" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2286\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager2286\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager2286\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager2286.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2286/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:09 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "54c9e3a8-3983-46a1-b70c-b721089e7a93" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10797" - ], - "x-ms-correlation-request-id": [ - "a8b3f383-44c3-4550-a144-078ec9748594" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234309Z:a8b3f383-44c3-4550-a144-078ec9748594" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8250?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODI1MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8250\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "3fa242d5-203a-4e33-a2df-81f970a645c6" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8250\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8250\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8250\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8250.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:10 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "3fa242d5-203a-4e33-a2df-81f970a645c6" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10796" - ], - "x-ms-correlation-request-id": [ - "735831aa-978e-4d44-873b-96ce9bef830b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234310Z:735831aa-978e-4d44-873b-96ce9bef830b" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8250/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODI1MC9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "b460dd5f-41a9-4700-9126-e26a2ff311fc" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8250/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:10 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b460dd5f-41a9-4700-9126-e26a2ff311fc" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-correlation-request-id": [ - "a19760f2-caaa-4180-9082-33b826f4e9a3" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234311Z:a19760f2-caaa-4180-9082-33b826f4e9a3" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8250?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODI1MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "688f5f94-7783-4a2a-a133-616114cfe4ea" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8250\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8250\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8250\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8250.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8250/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:11 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "688f5f94-7783-4a2a-a133-616114cfe4ea" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10796" - ], - "x-ms-correlation-request-id": [ - "84ff69b6-765c-4c37-b700-a39ec01b3433" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234311Z:84ff69b6-765c-4c37-b700-a39ec01b3433" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9466?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTQ2Nj9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9466\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "b57438a0-009a-4e9e-9e99-9c12b9158172" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9466\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager9466\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9466\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager9466.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:12 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "b57438a0-009a-4e9e-9e99-9c12b9158172" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10795" - ], - "x-ms-correlation-request-id": [ - "9a962d48-ea2f-4628-bfa0-4497e42e0408" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234312Z:9a962d48-ea2f-4628-bfa0-4497e42e0408" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9466/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTQ2Ni9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "222d0843-2d86-40c4-9483-56e7ca6459ba" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9466/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:12 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "222d0843-2d86-40c4-9483-56e7ca6459ba" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-correlation-request-id": [ - "443f6fce-b843-43c9-919f-87570459dc25" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234313Z:443f6fce-b843-43c9-919f-87570459dc25" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9466?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTQ2Nj9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "944a9f3b-4d8f-49e7-b949-385c2960dfc3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9466\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager9466\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9466\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager9466.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9466/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:13 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "944a9f3b-4d8f-49e7-b949-385c2960dfc3" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10795" - ], - "x-ms-correlation-request-id": [ - "00134961-adb5-4aff-ad78-5643ce4d5fcb" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234313Z:00134961-adb5-4aff-ad78-5643ce4d5fcb" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/providers/Microsoft.Network/trafficmanagerprofiles?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljbWFuYWdlcnByb2ZpbGVzP2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "cbbc3819-4c09-44ce-9240-1d795ac62057" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/edtestps\",\r\n \"name\": \"edtestps\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"edtestps\",\r\n \"fqdn\": \"edtestps.trafficmanager.net\",\r\n \"ttl\": 30\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/edtestps/externalEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.google.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/edtestps/externalEndpoints/endpoint2\",\r\n \"name\": \"endpoint2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.microsoft.com\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/edtestps/externalEndpoints/endpoint3\",\r\n \"name\": \"endpoint3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.reddit.com\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/edtestps/externalEndpoints/endpoint4\",\r\n \"name\": \"endpoint4\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.facebook.com\",\r\n \"weight\": 1,\r\n \"priority\": 4,\r\n \"endpointLocation\": null\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-nested\",\r\n \"name\": \"hrkulkar-nested\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Priority\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"hrkulkar-nested\",\r\n \"fqdn\": \"hrkulkar-nested.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-nested/externalEndpoints/higher-priority\",\r\n \"name\": \"higher-priority\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.bing.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-nested/externalEndpoints/lower-priority\",\r\n \"name\": \"lower-priority\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.microsoft.com\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": null\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-parent\",\r\n \"name\": \"hrkulkar-parent\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Priority\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"hrkulkar-parent\",\r\n \"fqdn\": \"hrkulkar-parent.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-parent/nestedEndpoints/hrkulkar-nested\",\r\n \"name\": \"hrkulkar-nested\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/nestedEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-nested\",\r\n \"target\": \"hrkulkar-nested.trafficmanager.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null,\r\n \"minChildEndpoints\": 1\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-parent/externalEndpoints/lower-pri\",\r\n \"name\": \"lower-pri\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.google.com\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": null\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/jnowak5\",\r\n \"name\": \"jnowak5\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"jnowak5\",\r\n \"fqdn\": \"jnowak5.trafficmanager.net\",\r\n \"ttl\": 334\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/jnowak5/azureEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-Web-EastAsia/providers/Microsoft.Web/sites/jnowaktest2\",\r\n \"target\": \"jnowaktest2.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"East Asia\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/jnowak5/azureEndpoints/endpoint2\",\r\n \"name\": \"endpoint2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/jnowaktest3\",\r\n \"target\": \"jnowaktest3.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"West US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/jnowakantares3\",\r\n \"name\": \"jnowakantares3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"jnowakantares3\",\r\n \"fqdn\": \"jnowakantares3.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/jnowakantares4\",\r\n \"name\": \"jnowakantares4\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"jnowakantares4\",\r\n \"fqdn\": \"jnowakantares4.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/jnowakantares4/azureEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-Web-EastAsia/providers/Microsoft.Web/sites/jnowaktest2\",\r\n \"target\": \"jnowaktest2.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"East Asia\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/jnowaktest6\",\r\n \"name\": \"jnowaktest6\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"jnowaktest6\",\r\n \"fqdn\": \"jnowaktest6.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/MasterProfilePreview\",\r\n \"name\": \"MasterProfilePreview\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"MasterProfilePreview\",\r\n \"fqdn\": \"MasterProfilePreview.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTPS\",\r\n \"port\": 443,\r\n \"path\": \"/TrafficManagerInstanceHealthProbe.svc/probe\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/MasterProfilePreview/azureEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/tmfrontend-x/providers/Microsoft.ClassicCompute/domainNames/tmfrontend-x\",\r\n \"target\": \"tmfrontend-x.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"Central US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/MasterProfilePreview/azureEndpoints/endpoint2\",\r\n \"name\": \"endpoint2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/tmfrontend-x-sec/providers/Microsoft.ClassicCompute/domainNames/tmfrontend-x-sec\",\r\n \"target\": \"tmfrontend-x-sec.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"West US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestchildprofile0\",\r\n \"name\": \"migrationtestchildprofile0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"migrationtestchildprofile0\",\r\n \"fqdn\": \"migrationtestchildprofile0.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestchildprofile0/azureEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/vipmock1/providers/Microsoft.ClassicCompute/domainNames/vipmock1\",\r\n \"target\": \"vipmock1.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"East US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestchildprofile1\",\r\n \"name\": \"migrationtestchildprofile1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"migrationtestchildprofile1\",\r\n \"fqdn\": \"migrationtestchildprofile1.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestchildprofile1/azureEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-Web-EastAsia/providers/Microsoft.Web/sites/Bugbush-running\",\r\n \"target\": \"bugbush-running.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"East Asia\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile0\",\r\n \"name\": \"migrationtestprofile0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"migrationtestprofile0\",\r\n \"fqdn\": \"migrationtestprofile0.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile0/azureEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-Web-EastAsia/providers/Microsoft.Web/sites/Bugbush-running\",\r\n \"target\": \"bugbush-running.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"East Asia\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile0/azureEndpoints/endpoint2\",\r\n \"name\": \"endpoint2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"Stopped\",\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/garethrepro/providers/Microsoft.Web/sites/Bugbash-slots/slots/StoppedSlot\",\r\n \"target\": \"bugbash-slots-stoppedslot.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"East US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile0/azureEndpoints/endpoint3\",\r\n \"name\": \"endpoint3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"Stopped\",\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-Web-SouthCentralUS/providers/Microsoft.Web/sites/Bugbash-stopped1\",\r\n \"target\": \"bugbash-stopped1.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"South Central US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile0/azureEndpoints/endpoint5\",\r\n \"name\": \"endpoint5\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/esswatm/providers/Microsoft.ClassicCompute/domainNames/esswatm\",\r\n \"target\": \"esswatm.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 5,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile0/externalEndpoints/endpoint8\",\r\n \"name\": \"endpoint8\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"bing.com\",\r\n \"weight\": 1,\r\n \"priority\": 8,\r\n \"endpointLocation\": \"Central US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile0/externalEndpoints/endpoint9\",\r\n \"name\": \"endpoint9\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"msn.com\",\r\n \"weight\": 1,\r\n \"priority\": 9,\r\n \"endpointLocation\": \"East US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile0/nestedEndpoints/endpoint10\",\r\n \"name\": \"endpoint10\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/nestedEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestchildprofile0\",\r\n \"target\": \"migrationtestchildprofile0.trafficmanager.net\",\r\n \"weight\": 1,\r\n \"priority\": 10,\r\n \"endpointLocation\": \"East US\",\r\n \"minChildEndpoints\": 1\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile0/nestedEndpoints/endpoint11\",\r\n \"name\": \"endpoint11\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/nestedEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestchildprofile1\",\r\n \"target\": \"migrationtestchildprofile1.trafficmanager.net\",\r\n \"weight\": 1,\r\n \"priority\": 11,\r\n \"endpointLocation\": \"Central US\",\r\n \"minChildEndpoints\": 1\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile1\",\r\n \"name\": \"migrationtestprofile1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"migrationtestprofile1\",\r\n \"fqdn\": \"migrationtestprofile1.trafficmanager.net\",\r\n \"ttl\": 30\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile1/azureEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-Web-EastAsia/providers/Microsoft.Web/sites/Bugbush-running\",\r\n \"target\": \"bugbush-running.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"East Asia\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile1/azureEndpoints/endpoint2\",\r\n \"name\": \"endpoint2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"Stopped\",\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/garethrepro/providers/Microsoft.Web/sites/Bugbash-slots/slots/StoppedSlot\",\r\n \"target\": \"bugbash-slots-stoppedslot.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"East US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile1/azureEndpoints/endpoint3\",\r\n \"name\": \"endpoint3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"Stopped\",\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-Web-SouthCentralUS/providers/Microsoft.Web/sites/Bugbash-stopped1\",\r\n \"target\": \"bugbash-stopped1.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"South Central US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile1/azureEndpoints/endpoint5\",\r\n \"name\": \"endpoint5\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/esswatm/providers/Microsoft.ClassicCompute/domainNames/esswatm\",\r\n \"target\": \"esswatm.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 5,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile1/externalEndpoints/endpoint8\",\r\n \"name\": \"endpoint8\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"bing.com\",\r\n \"weight\": 1,\r\n \"priority\": 8,\r\n \"endpointLocation\": \"Central US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile1/externalEndpoints/endpoint9\",\r\n \"name\": \"endpoint9\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"msn.com\",\r\n \"weight\": 1,\r\n \"priority\": 9,\r\n \"endpointLocation\": \"East US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile1/nestedEndpoints/endpoint10\",\r\n \"name\": \"endpoint10\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/nestedEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestchildprofile0\",\r\n \"target\": \"migrationtestchildprofile0.trafficmanager.net\",\r\n \"weight\": 1,\r\n \"priority\": 10,\r\n \"endpointLocation\": \"East US\",\r\n \"minChildEndpoints\": 1\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile1/nestedEndpoints/endpoint11\",\r\n \"name\": \"endpoint11\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/nestedEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestchildprofile1\",\r\n \"target\": \"migrationtestchildprofile1.trafficmanager.net\",\r\n \"weight\": 1,\r\n \"priority\": 11,\r\n \"endpointLocation\": \"Central US\",\r\n \"minChildEndpoints\": 1\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile2\",\r\n \"name\": \"migrationtestprofile2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Priority\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"migrationtestprofile2\",\r\n \"fqdn\": \"migrationtestprofile2.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTPS\",\r\n \"port\": 443,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile2/azureEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-Web-EastAsia/providers/Microsoft.Web/sites/Bugbush-running\",\r\n \"target\": \"bugbush-running.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"East Asia\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile2/azureEndpoints/endpoint2\",\r\n \"name\": \"endpoint2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"Stopped\",\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/garethrepro/providers/Microsoft.Web/sites/Bugbash-slots/slots/StoppedSlot\",\r\n \"target\": \"bugbash-slots-stoppedslot.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"East US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile2/azureEndpoints/endpoint3\",\r\n \"name\": \"endpoint3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"Stopped\",\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-Web-SouthCentralUS/providers/Microsoft.Web/sites/Bugbash-stopped1\",\r\n \"target\": \"bugbash-stopped1.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"South Central US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile2/azureEndpoints/endpoint5\",\r\n \"name\": \"endpoint5\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/esswatm/providers/Microsoft.ClassicCompute/domainNames/esswatm\",\r\n \"target\": \"esswatm.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 5,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile2/externalEndpoints/endpoint8\",\r\n \"name\": \"endpoint8\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"bing.com\",\r\n \"weight\": 1,\r\n \"priority\": 8,\r\n \"endpointLocation\": \"Central US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile2/externalEndpoints/endpoint9\",\r\n \"name\": \"endpoint9\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"msn.com\",\r\n \"weight\": 1,\r\n \"priority\": 9,\r\n \"endpointLocation\": \"East US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile2/nestedEndpoints/endpoint10\",\r\n \"name\": \"endpoint10\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/nestedEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestchildprofile0\",\r\n \"target\": \"migrationtestchildprofile0.trafficmanager.net\",\r\n \"weight\": 1,\r\n \"priority\": 10,\r\n \"endpointLocation\": \"East US\",\r\n \"minChildEndpoints\": 1\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofile2/nestedEndpoints/endpoint11\",\r\n \"name\": \"endpoint11\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/nestedEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestchildprofile1\",\r\n \"target\": \"migrationtestchildprofile1.trafficmanager.net\",\r\n \"weight\": 1,\r\n \"priority\": 11,\r\n \"endpointLocation\": \"Central US\",\r\n \"minChildEndpoints\": 1\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofiledisabled0\",\r\n \"name\": \"migrationtestprofiledisabled0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Disabled\",\r\n \"trafficRoutingMethod\": \"Priority\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"migrationtestprofiledisabled0\",\r\n \"fqdn\": \"migrationtestprofiledisabled0.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofiledisabled0/azureEndpoints/esswatm.cloudapp.net\",\r\n \"name\": \"esswatm.cloudapp.net\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/esswatm/providers/Microsoft.ClassicCompute/domainNames/esswatm\",\r\n \"target\": \"esswatm.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofiledisabled0/azureEndpoints/vipmock2.cloudapp.net\",\r\n \"name\": \"vipmock2.cloudapp.net\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/vipmock2/providers/Microsoft.ClassicCompute/domainNames/vipmock2\",\r\n \"target\": \"vipmock2.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"West US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofiledisabledendpoints0\",\r\n \"name\": \"migrationtestprofiledisabledendpoints0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"migrationtestprofiledisabledendpoints0\",\r\n \"fqdn\": \"migrationtestprofiledisabledendpoints0.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/migrationtestprofilenoendpoints0\",\r\n \"name\": \"migrationtestprofilenoendpoints0\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"migrationtestprofilenoendpoints0\",\r\n \"fqdn\": \"migrationtestprofilenoendpoints0.trafficmanager.net\",\r\n \"ttl\": 30\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTPS\",\r\n \"port\": 443,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/newprofile01\",\r\n \"name\": \"newprofile01\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"newprofile01\",\r\n \"fqdn\": \"newprofile01.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/newprofile01/azureEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/gtmvipmock-aphrodite/providers/Microsoft.ClassicCompute/domainNames/gtmvipmock-aphrodite\",\r\n \"target\": \"gtmvipmock-aphrodite.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"East Asia\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/newprofile02\",\r\n \"name\": \"newprofile02\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"newprofile02\",\r\n \"fqdn\": \"newprofile02.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/newprofile02/azureEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/gtmvipmock-demeter/providers/Microsoft.ClassicCompute/domainNames/gtmvipmock-demeter\",\r\n \"target\": \"gtmvipmock-demeter.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Central US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/nreprofile03\",\r\n \"name\": \"nreprofile03\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"nreprofile03\",\r\n \"fqdn\": \"nreprofile03.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/nreprofile03/azureEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/gtmvipmock-demeter/providers/Microsoft.ClassicCompute/domainNames/gtmvipmock-demeter\",\r\n \"target\": \"gtmvipmock-demeter.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Central US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/sdgsdgsdgsd\",\r\n \"name\": \"sdgsdgsdgsd\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"sdgsdgsdgsd\",\r\n \"fqdn\": \"sdgsdgsdgsd.trafficmanager.net\",\r\n \"ttl\": 31\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/sdgsdgsdgsd/externalEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.microsoft.com\",\r\n \"weight\": 2,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"West US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/testDns05\",\r\n \"name\": \"testDns05\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Disabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"testDns05\",\r\n \"fqdn\": \"testDns05.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/vip/probe/test\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/testDns05/azureEndpoints/\",\r\n \"name\": \"\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"testvipmock1.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 0,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/testDns05/azureEndpoints/\",\r\n \"name\": \"\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"testvipmock2.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 0,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/testDns05/azureEndpoints/\",\r\n \"name\": \"\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"testvipmock3.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 0,\r\n \"endpointLocation\": null\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/watmscenariotes\",\r\n \"name\": \"watmscenariotes\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"watmscenariotes\",\r\n \"fqdn\": \"watmscenariotes.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/watmscenariotes/externalEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.microsoft.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/watmscenariotes/externalEndpoints/endpoint2\",\r\n \"name\": \"endpoint2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.windows.com\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": null\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/www-trafficmanager-cn\",\r\n \"name\": \"www-trafficmanager-cn\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"testben01\",\r\n \"fqdn\": \"testben01.trafficmanager.net\",\r\n \"ttl\": 30\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/Default-TrafficManager/providers/Microsoft.Network/trafficManagerProfiles/www-trafficmanager-cn/externalEndpoints/endpoint1\",\r\n \"name\": \"endpoint1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.windowsazure.cn\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/Advisor-fast-failover-testing\",\r\n \"name\": \"Advisor-fast-failover-testing\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"advisor-fast-failover-testing\",\r\n \"fqdn\": \"advisor-fast-failover-testing.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/endpoints-same-region\",\r\n \"name\": \"endpoints-same-region\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"endpoints-same-region\",\r\n \"fqdn\": \"endpoints-same-region.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/endpoints-same-region/azureEndpoints/e1-region\",\r\n \"name\": \"e1-region\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/AzAdvisor/providers/Microsoft.Web/sites/geo-testing\",\r\n \"target\": \"geo-testing.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"South Central US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/fast-failover\",\r\n \"name\": \"fast-failover\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"fast-failover\",\r\n \"fqdn\": \"fast-failover.trafficmanager.net\",\r\n \"ttl\": 60\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 10,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 5\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/fast-failover/azureEndpoints/fastfailover\",\r\n \"name\": \"fastfailover\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/AzAdvisor/providers/Microsoft.Web/sites/geo-testing\",\r\n \"target\": \"geo-testing.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"South Central US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/tm-bug-test\",\r\n \"name\": \"tm-bug-test\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Geographic\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"tm-bug-test\",\r\n \"fqdn\": \"tm-bug-test.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/tm-bug-test/nestedEndpoints/bug-nest1\",\r\n \"name\": \"bug-nest1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/nestedEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/yunc-Advisor-test\",\r\n \"target\": \"yunc-advisor-test.trafficmanager.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null,\r\n \"minChildEndpoints\": 1,\r\n \"geoMapping\": [\r\n \"IN\",\r\n \"NZ\",\r\n \"PE\",\r\n \"US\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/tt\",\r\n \"name\": \"tt\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"tt\",\r\n \"fqdn\": \"tt.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/ttl-testing\",\r\n \"name\": \"ttl-testing\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"ttl-testing\",\r\n \"fqdn\": \"ttl-testing.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/ttl-testing/azureEndpoints/ttl-300sec\",\r\n \"name\": \"ttl-300sec\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/AzAdvisor/providers/Microsoft.Web/sites/geo-testing\",\r\n \"target\": \"geo-testing.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"South Central US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/yunc-Advisor-test\",\r\n \"name\": \"yunc-Advisor-test\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Geographic\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"yunc-advisor-test\",\r\n \"fqdn\": \"yunc-advisor-test.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azadvisor/providers/Microsoft.Network/trafficManagerProfiles/yunc-Advisor-test/azureEndpoints/geo-no-fallback\",\r\n \"name\": \"geo-no-fallback\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/AzAdvisor/providers/Microsoft.Web/sites/geo-testing\",\r\n \"target\": \"geo-testing.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"South Central US\",\r\n \"geoMapping\": [\r\n \"JP\",\r\n \"US\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Enabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2286\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager2286\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager2286\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager2286.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager2286/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4338\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager4338\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager4338\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager4338.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4338/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8250\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8250\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8250\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8250.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8250/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8670\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8670\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8670\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8670.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8670/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9466\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager9466\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9466\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager9466.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9466/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5941/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3771\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager3771\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager3771\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager3771.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7431/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4007\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager4007\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager4007\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager4007.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7441/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3036\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager3036\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager3036\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager3036.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7441/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3036/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Enabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager7664/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9772\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager9772\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9772\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager9772.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager9026/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4328\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager4328\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager4328\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager4328.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10,\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"host\",\r\n \"value\": \"www.contoso.com\"\r\n },\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value\"\r\n }\r\n ],\r\n \"expectedStatusCodeRanges\": [\r\n {\r\n \"min\": 200,\r\n \"max\": 499\r\n }\r\n ]\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager9026/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4328/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.Contoso0.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\",\r\n \"customHeaders\": [\r\n {\r\n \"name\": \"custom-name\",\r\n \"value\": \"custom-value-overriden\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/bugbashestebon/providers/Microsoft.Network/trafficManagerProfiles/Test-espere-IPv6-Weighted\",\r\n \"name\": \"Test-espere-IPv6-Weighted\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"test-espere-ipv6-weighted\",\r\n \"fqdn\": \"test-espere-ipv6-weighted.trafficmanager.net\",\r\n \"ttl\": 30\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/bugbashestebon/providers/Microsoft.Network/trafficManagerProfiles/Test-espere-IPv6-Weighted/externalEndpoints/Microsoft\",\r\n \"name\": \"Microsoft\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"2001:4860:4802:34::a\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"Central US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/bugbashestebon/providers/Microsoft.Network/trafficManagerProfiles/Test-espere-IPv6-Weighted/externalEndpoints/Google\",\r\n \"name\": \"Google\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"2001:4860:4802:38::a\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"Central US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/commandrunner/providers/Microsoft.Network/trafficManagerProfiles/cmdrunner-preview\",\r\n \"name\": \"cmdrunner-preview\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Priority\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"cmdrunner-preview\",\r\n \"fqdn\": \"cmdrunner-preview.trafficmanager.net\",\r\n \"ttl\": 10\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"TCP\",\r\n \"port\": 443,\r\n \"path\": null,\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/commandrunner/providers/Microsoft.Network/trafficManagerProfiles/cmdrunner-preview/azureEndpoints/primary\",\r\n \"name\": \"primary\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/commandrunner-prev-1/providers/Microsoft.ClassicCompute/domainNames/commandrunner-prev-1\",\r\n \"target\": \"commandrunner-prev-1.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"Central US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/commandrunner/providers/Microsoft.Network/trafficManagerProfiles/cmdrunner-preview/azureEndpoints/secondary\",\r\n \"name\": \"secondary\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/commandrunner-prev-2/providers/Microsoft.ClassicCompute/domainNames/commandrunner-prev-2\",\r\n \"target\": \"commandrunner-prev-2.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"West US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/cosmosdb/providers/Microsoft.Network/trafficManagerProfiles/deb-external\",\r\n \"name\": \"deb-external\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"deb-external\",\r\n \"fqdn\": \"deb-external.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTPS\",\r\n \"port\": 443,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/cosmosdb/providers/Microsoft.Network/trafficManagerProfiles/deb-external/externalEndpoints/bing\",\r\n \"name\": \"bing\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"bing.com\",\r\n \"weight\": 2,\r\n \"priority\": 2,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/cosmosdb/providers/Microsoft.Network/trafficManagerProfiles/deb-external/externalEndpoints/yahoo\",\r\n \"name\": \"yahoo\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"yahoo.com\",\r\n \"weight\": 3,\r\n \"priority\": 3,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/cosmosdb/providers/Microsoft.Network/trafficManagerProfiles/deb-external/azureEndpoints/vipmock\",\r\n \"name\": \"vipmock\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/vipmock1/providers/Microsoft.ClassicCompute/domainNames/vipmock1\",\r\n \"target\": \"vipmock1.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 4,\r\n \"endpointLocation\": \"East US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/cosmosdb/providers/Microsoft.Network/trafficManagerProfiles/deb-external/azureEndpoints/vipmock1\",\r\n \"name\": \"vipmock1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/vipmock2/providers/Microsoft.ClassicCompute/domainNames/vipmock2\",\r\n \"target\": \"vipmock2.cloudapp.net\",\r\n \"weight\": 4,\r\n \"priority\": 5,\r\n \"endpointLocation\": \"West US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/cosmosdb/providers/Microsoft.Network/trafficManagerProfiles/deb-external/azureEndpoints/vipmock3\",\r\n \"name\": \"vipmock3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/vipmock3/providers/Microsoft.ClassicCompute/domainNames/vipmock3\",\r\n \"target\": \"vipmock3.cloudapp.net\",\r\n \"weight\": 5,\r\n \"priority\": 6,\r\n \"endpointLocation\": \"East US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/estebon1/providers/Microsoft.Network/trafficManagerProfiles/estebon1\",\r\n \"name\": \"estebon1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"estebon1\",\r\n \"fqdn\": \"estebon1.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/estebon1/providers/Microsoft.Network/trafficManagerProfiles/estebon1/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Enabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/estebon1/providers/Microsoft.Network/trafficManagerProfiles/estebon3\",\r\n \"name\": \"estebon3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"estebon3\",\r\n \"fqdn\": \"estebon3.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/estebon1/providers/Microsoft.Network/trafficManagerProfiles/estebon3/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Enabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hk-test-test\",\r\n \"name\": \"hk-test-test\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Geographic\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"hk-test-test\",\r\n \"fqdn\": \"hk-test-test.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hk-test-test/externalEndpoints/bing\",\r\n \"name\": \"bing\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.bing.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"GEO-SA\",\r\n \"GEO-AN\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hk-test-test/externalEndpoints/google\",\r\n \"name\": \"google\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"a.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"GEO-NA\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hk-test-test/azureEndpoints/azep\",\r\n \"name\": \"azep\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/atmcloudresolvers-next-db2-00/providers/Microsoft.ClassicCompute/domainNames/atmcloudresolvers-next-db2-00\",\r\n \"target\": \"atmcloudresolvers-next-db2-00.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"North Europe\",\r\n \"geoMapping\": [\r\n \"WORLD\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-geo\",\r\n \"name\": \"hrkulkar-geo\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {\r\n \"tagName\": \"valval2\"\r\n },\r\n \"properties\": {\r\n \"profileStatus\": \"Disabled\",\r\n \"trafficRoutingMethod\": \"Geographic\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"hrkulkar-geo\",\r\n \"fqdn\": \"hrkulkar-geo.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-geo/externalEndpoints/ex1\",\r\n \"name\": \"ex1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.bing.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"WORLD\",\r\n \"GEO-ME\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-geo/externalEndpoints/google\",\r\n \"name\": \"google\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.google.com\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"GEO-EU\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-perf\",\r\n \"name\": \"hrkulkar-perf\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"hrkulkar-perf\",\r\n \"fqdn\": \"hrkulkar-perf.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-perf/externalEndpoints/bing\",\r\n \"name\": \"bing\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.bing.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Central US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar2\",\r\n \"name\": \"hrkulkar2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Disabled\",\r\n \"trafficRoutingMethod\": \"Geographic\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"hrkulkar2\",\r\n \"fqdn\": \"hrkulkar2.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar2/externalEndpoints/ex\",\r\n \"name\": \"ex\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.bing.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"GEO-SA\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar2/nestedEndpoints/hrkulkar\",\r\n \"name\": \"hrkulkar\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/nestedEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar\",\r\n \"target\": \"hrkulkar.trafficmanager.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": null,\r\n \"minChildEndpoints\": 1,\r\n \"geoMapping\": [\r\n \"GEO-AN\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/moving-resource-group-test\",\r\n \"name\": \"moving-resource-group-test\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"moving-resource-group-test\",\r\n \"fqdn\": \"moving-resource-group-test.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/moving-resource-group-test/azureEndpoints/test-move-2\",\r\n \"name\": \"test-move-2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarDemoDay/providers/Microsoft.Web/sites/demo1-hrkulkar-2\",\r\n \"target\": \"demo1-hrkulkar-2.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"South Central US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Network/trafficManagerProfiles/moving-resource-group-test/azureEndpoints/test-rg-move\",\r\n \"name\": \"test-rg-move\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar-test-move/providers/Microsoft.Web/sites/test-rg-move\",\r\n \"target\": \"test-rg-move.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"South Central US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar-edgedns/providers/Microsoft.Network/trafficManagerProfiles/edgedns-hrkulkar-child-test\",\r\n \"name\": \"edgedns-hrkulkar-child-test\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Geographic\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"edgedns-hrkulkar-child-test\",\r\n \"fqdn\": \"edgedns-hrkulkar-child-test.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar-edgedns/providers/Microsoft.Network/trafficManagerProfiles/edgedns-hrkulkar-child-test/externalEndpoints/()\",\r\n \"name\": \"()\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"2607:f8b0:400a:808::200e\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"WORLD\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar-edgedns/providers/Microsoft.Network/trafficManagerProfiles/edgedns-parent-hrkulkar\",\r\n \"name\": \"edgedns-parent-hrkulkar\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Priority\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"edgedns-parent-hrkulkar\",\r\n \"fqdn\": \"edgedns-parent-hrkulkar.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar-edgedns/providers/Microsoft.Network/trafficManagerProfiles/edgedns-parent-hrkulkar/nestedEndpoints/practice\",\r\n \"name\": \"practice\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/nestedEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar-edgedns/providers/Microsoft.Network/trafficManagerProfiles/edgedns-hrkulkar-child-test\",\r\n \"target\": \"edgedns-hrkulkar-child-test.trafficmanager.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null,\r\n \"minChildEndpoints\": 1\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar-edgedns/providers/Microsoft.Network/trafficManagerProfiles/edgedns-parent-hrkulkar/externalEndpoints/goog\",\r\n \"name\": \"goog\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.google.com\",\r\n \"weight\": 1,\r\n \"priority\": 1000,\r\n \"endpointLocation\": null\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar\",\r\n \"name\": \"hrkulkar\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"hrkulkar\",\r\n \"fqdn\": \"hrkulkar.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar/externalEndpoints/bingy\",\r\n \"name\": \"bingy\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.bing.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"West US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar/externalEndpoints/isthistoolonganendpointforTrafficManagerProfilesWellsee\",\r\n \"name\": \"isthistoolonganendpointforTrafficManagerProfilesWellsee\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.google.com\",\r\n \"weight\": 2,\r\n \"priority\": 2,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar/externalEndpoints/ihuihiu\",\r\n \"name\": \"ihuihiu\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"google.com\",\r\n \"weight\": 3,\r\n \"priority\": 3,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar/externalEndpoints/你好\",\r\n \"name\": \"你好\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.microsoft.com\",\r\n \"weight\": 4,\r\n \"priority\": 4,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar/externalEndpoints/yahoo\",\r\n \"name\": \"yahoo\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.yahoo.com\",\r\n \"weight\": 20,\r\n \"priority\": 5,\r\n \"endpointLocation\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar/externalEndpoints/commas,in,endpoint,name\",\r\n \"name\": \"commas,in,endpoint,name\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Disabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"www.target.com\",\r\n \"weight\": 5,\r\n \"priority\": 6,\r\n \"endpointLocation\": null\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-test-move\",\r\n \"name\": \"hrkulkar-test-move\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Weighted\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"hrkulkar-test-move\",\r\n \"fqdn\": \"hrkulkar-test-move.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-test-move/azureEndpoints/az\",\r\n \"name\": \"az\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar-test-move/providers/Microsoft.Web/sites/hrkulkar-test-move\",\r\n \"target\": \"hrkulkar-test-move.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"Central US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-test-move/azureEndpoints/moved-az\",\r\n \"name\": \"moved-az\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/prabhttest/providers/Microsoft.ClassicCompute/domainNames/prabhttest\",\r\n \"target\": \"prabhttest.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": \"West US\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkarother/providers/Microsoft.Network/trafficManagerProfiles/hrkulkar-test-move/azureEndpoints/the-real-moved-az\",\r\n \"name\": \"the-real-moved-az\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/azureEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/hrkulkar/providers/Microsoft.Web/sites/hrkulkar-test-move-2\",\r\n \"target\": \"hrkulkar-test-move-2.azurewebsites.net\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": \"Central US\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/johnmic/providers/Microsoft.Network/trafficManagerProfiles/johnmic-child4\",\r\n \"name\": \"johnmic-child4\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Priority\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"johnmic.child4\",\r\n \"fqdn\": \"johnmic.child4.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/vip/probe/foo\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/johnmic/providers/Microsoft.Network/trafficManagerProfiles/johnmic-child4/externalEndpoints/vipmock2\",\r\n \"name\": \"vipmock2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"vipmock2.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/johnmic/providers/Microsoft.Network/trafficManagerProfiles/johnmic-parent4\",\r\n \"name\": \"johnmic-parent4\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Priority\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"johnmic.parent4\",\r\n \"fqdn\": \"johnmic.parent4.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/vip/probe/foo\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/johnmic/providers/Microsoft.Network/trafficManagerProfiles/johnmic-parent4/nestedEndpoints/nested\",\r\n \"name\": \"nested\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/nestedEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"targetResourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/johnmic/providers/Microsoft.Network/trafficManagerProfiles/johnmic-child4\",\r\n \"target\": \"johnmic.child4.trafficmanager.net\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null,\r\n \"minChildEndpoints\": 1\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/johnmic/providers/Microsoft.Network/trafficManagerProfiles/johnmic-parent4/externalEndpoints/vipmock1\",\r\n \"name\": \"vipmock1\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"vipmock1.cloudapp.net\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": null\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/testrg/providers/Microsoft.Network/trafficManagerProfiles/geobug\",\r\n \"name\": \"geobug\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Geographic\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"geobug\",\r\n \"fqdn\": \"geobug.trafficmanager.net\",\r\n \"ttl\": 300\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/testrg/providers/Microsoft.Network/trafficManagerProfiles/geobug/externalEndpoints/ep\",\r\n \"name\": \"ep\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foo.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"FR\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/testrg/providers/Microsoft.Network/trafficManagerProfiles/geobug/externalEndpoints/EP2\",\r\n \"name\": \"EP2\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"ep2.com\",\r\n \"weight\": 1,\r\n \"priority\": 2,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"GEO-EU\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/testrg/providers/Microsoft.Network/trafficManagerProfiles/geobug/externalEndpoints/ep3\",\r\n \"name\": \"ep3\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"ep3.com\",\r\n \"weight\": 1,\r\n \"priority\": 3,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"EE\"\r\n ]\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/testrg/providers/Microsoft.Network/trafficManagerProfiles/geobug/externalEndpoints/ep4\",\r\n \"name\": \"ep4\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"ep4.com\",\r\n \"weight\": 1,\r\n \"priority\": 4,\r\n \"endpointLocation\": null,\r\n \"geoMapping\": [\r\n \"GEO-AF\"\r\n ]\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:13 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cbbc3819-4c09-44ce-9240-1d795ac62057" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10794" - ], - "x-ms-correlation-request-id": [ - "daa60374-8d32-4b25-bd8e-089b4e16d4db" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234314Z:daa60374-8d32-4b25-bd8e-089b4e16d4db" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8670?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODY3MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "0b939c56-4ac6-4b39-a368-a13f1f3959c4" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:15 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "0b939c56-4ac6-4b39-a368-a13f1f3959c4" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "f1385c46-0c52-4187-8142-42f4352910a0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234316Z:f1385c46-0c52-4187-8142-42f4352910a0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager4338?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNDMzOD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e8921873-f2f4-486d-8982-6a86236e4dab" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:16 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e8921873-f2f4-486d-8982-6a86236e4dab" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "0736faa1-b0eb-4a83-b802-c26a29801eab" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234316Z:0736faa1-b0eb-4a83-b802-c26a29801eab" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager2286?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMjI4Nj9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "75cecc56-277c-4790-8c53-eb67b68e4afe" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:16 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "75cecc56-277c-4790-8c53-eb67b68e4afe" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "9da30517-5133-426c-ae31-7c72e19bf9e0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234316Z:9da30517-5133-426c-ae31-7c72e19bf9e0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8250?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODI1MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a5e46f01-ca7f-4b1a-97da-912b299b55e5" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:17 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a5e46f01-ca7f-4b1a-97da-912b299b55e5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "491b961a-e0f0-45d1-a3e9-2f4c4dc7488b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234317Z:491b961a-e0f0-45d1-a3e9-2f4c4dc7488b" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager5144/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9466?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTQ2Nj9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "cab0800d-6c01-4a1a-8faa-b2e307d3b31b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:17 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cab0800d-6c01-4a1a-8faa-b2e307d3b31b" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "55af5690-adcf-4933-a834-97814edcae61" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234318Z:55af5690-adcf-4933-a834-97814edcae61" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager5144?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjUxNDQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "1df6b833-ce8d-417f-9db9-f125bf266098" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1MTQ0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "8d89ada7-646e-4c04-bd10-715f4491b103" - ], - "x-ms-correlation-request-id": [ - "8d89ada7-646e-4c04-bd10-715f4491b103" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234321Z:8d89ada7-646e-4c04-bd10-715f4491b103" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1MTQ0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkxTVRRMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:36 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1MTQ0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-request-id": [ - "2de9442b-39ab-4b43-84a5-3f1e94620691" - ], - "x-ms-correlation-request-id": [ - "2de9442b-39ab-4b43-84a5-3f1e94620691" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234336Z:2de9442b-39ab-4b43-84a5-3f1e94620691" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1MTQ0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkxTVRRMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:43:51 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1MTQ0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" - ], - "x-ms-request-id": [ - "2eaff17f-97c7-4fc3-b9dc-6021d509a57e" - ], - "x-ms-correlation-request-id": [ - "2eaff17f-97c7-4fc3-b9dc-6021d509a57e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234351Z:2eaff17f-97c7-4fc3-b9dc-6021d509a57e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1MTQ0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkxTVRRMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:05 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-request-id": [ - "82d12305-5bff-4544-b12b-7266b5771766" - ], - "x-ms-correlation-request-id": [ - "82d12305-5bff-4544-b12b-7266b5771766" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234406Z:82d12305-5bff-4544-b12b-7266b5771766" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVI1MTQ0LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkkxTVRRMExVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:06 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" - ], - "x-ms-request-id": [ - "44b984e6-0f21-48d4-9955-baf3cdbfc0c7" - ], - "x-ms-correlation-request-id": [ - "44b984e6-0f21-48d4-9955-baf3cdbfc0c7" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234406Z:44b984e6-0f21-48d4-9955-baf3cdbfc0c7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager5144", - "azuresdkfornetautoresttrafficmanager8670", - "azuresdkfornetautoresttrafficmanager4338", - "azuresdkfornetautoresttrafficmanager2286", - "azuresdkfornetautoresttrafficmanager8250", - "azuresdkfornetautoresttrafficmanager9466" - ] - }, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/ListProfilesByResourceGroup.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/ListProfilesByResourceGroup.json deleted file mode 100644 index 865b9e3158c97..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/ListProfilesByResourceGroup.json +++ /dev/null @@ -1,1694 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager2630?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "022abbcf-0625-4f04-a678-5cc56053e847" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager2630\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "236" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:24 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "e439cf7e-94f8-4622-a503-a51d7801a637" - ], - "x-ms-correlation-request-id": [ - "e439cf7e-94f8-4622-a503-a51d7801a637" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234724Z:e439cf7e-94f8-4622-a503-a51d7801a637" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager1135?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMTEzNT9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager1135\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "cfd6ca85-7e01-4b98-8b0b-362ca65f385d" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1135\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager1135\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager1135\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager1135.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:25 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "cfd6ca85-7e01-4b98-8b0b-362ca65f385d" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "a95928ec-0aa4-4b4b-aad1-1c5a0a9f336f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234726Z:a95928ec-0aa4-4b4b-aad1-1c5a0a9f336f" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager1135/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMTEzNS9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "7e473998-0c64-4eee-bbbe-b314d8eb5629" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1135/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:26 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "7e473998-0c64-4eee-bbbe-b314d8eb5629" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "46f5af6c-7ced-4af7-837d-d4c40ccd2a05" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234727Z:46f5af6c-7ced-4af7-837d-d4c40ccd2a05" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager1135?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMTEzNT9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "590047c9-a7fb-45a2-8138-902c27cdedf9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1135\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager1135\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager1135\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager1135.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1135/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:26 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "590047c9-a7fb-45a2-8138-902c27cdedf9" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "2e28b66e-b6d9-4f4d-8a2e-0f60c6911085" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234727Z:2e28b66e-b6d9-4f4d-8a2e-0f60c6911085" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager5667?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNTY2Nz9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager5667\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "11baec2b-4a87-4664-ad75-f4f4c6d232b6" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager5667\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager5667\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager5667\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager5667.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:27 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "11baec2b-4a87-4664-ad75-f4f4c6d232b6" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10797" - ], - "x-ms-correlation-request-id": [ - "e83f413b-9f65-43c8-b7e2-b08eb1d477dd" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234727Z:e83f413b-9f65-43c8-b7e2-b08eb1d477dd" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager5667/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNTY2Ny9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "e553f862-9073-4797-82b0-224071b9d1b5" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager5667/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:27 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "e553f862-9073-4797-82b0-224071b9d1b5" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "031e8f37-d4d1-4796-8605-299add66ee61" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234727Z:031e8f37-d4d1-4796-8605-299add66ee61" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager5667?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNTY2Nz9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2b03d78b-7e90-411d-bfb5-19e9ba166152" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager5667\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager5667\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager5667\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager5667.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager5667/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:27 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "2b03d78b-7e90-411d-bfb5-19e9ba166152" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "f4df83f8-027e-4abc-a317-8ef3bb5cc9f6" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234728Z:f4df83f8-027e-4abc-a317-8ef3bb5cc9f6" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9633?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTYzMz9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9633\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "c058a50e-bfdd-4265-a368-8e00e8b74ef3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9633\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager9633\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9633\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager9633.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:28 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c058a50e-bfdd-4265-a368-8e00e8b74ef3" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10796" - ], - "x-ms-correlation-request-id": [ - "fb078a5d-45dd-4cc7-8f0b-d3df1eb8521b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234728Z:fb078a5d-45dd-4cc7-8f0b-d3df1eb8521b" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9633/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTYzMy9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "09045dad-a6c7-45b0-97ac-c384ecf01b2c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9633/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:28 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "09045dad-a6c7-45b0-97ac-c384ecf01b2c" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-correlation-request-id": [ - "1da3a38f-8896-4fa1-8509-d286a26fe981" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234728Z:1da3a38f-8896-4fa1-8509-d286a26fe981" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9633?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTYzMz9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ed076cb4-60bf-4079-912c-b76398ab315e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9633\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager9633\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9633\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager9633.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9633/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:28 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "ed076cb4-60bf-4079-912c-b76398ab315e" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10797" - ], - "x-ms-correlation-request-id": [ - "25e61f92-ac16-4140-9d51-ee40be4217d2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234729Z:25e61f92-ac16-4140-9d51-ee40be4217d2" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager4640?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNDY0MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager4640\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "a38986f6-08ef-4cd0-9604-a344350720ee" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4640\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager4640\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager4640\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager4640.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:29 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a38986f6-08ef-4cd0-9604-a344350720ee" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10795" - ], - "x-ms-correlation-request-id": [ - "ba9d9a17-70c3-4ffc-acd8-9882925c8afa" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234729Z:ba9d9a17-70c3-4ffc-acd8-9882925c8afa" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager4640/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNDY0MC9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "9a680d9f-f620-4b1e-8662-a808bf236096" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4640/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:29 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "9a680d9f-f620-4b1e-8662-a808bf236096" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-correlation-request-id": [ - "2fa89e6e-f5d6-41c1-9526-59fb7d35156a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234730Z:2fa89e6e-f5d6-41c1-9526-59fb7d35156a" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager4640?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNDY0MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "63275946-d839-4f59-b134-d2fa199eb82b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4640\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager4640\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager4640\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager4640.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4640/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:29 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "63275946-d839-4f59-b134-d2fa199eb82b" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10796" - ], - "x-ms-correlation-request-id": [ - "467ae9a6-7675-4b59-a274-39e4a9bfa998" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234730Z:467ae9a6-7675-4b59-a274-39e4a9bfa998" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8209?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODIwOT9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8209\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "399" - ], - "x-ms-client-request-id": [ - "97009c99-bed1-4d2d-a3b3-a12b1e449beb" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8209\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8209\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8209\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8209.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "801" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:30 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "97009c99-bed1-4d2d-a3b3-a12b1e449beb" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10794" - ], - "x-ms-correlation-request-id": [ - "2066542c-de16-45fc-b0db-9470e9be7cab" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234731Z:2066542c-de16-45fc-b0db-9470e9be7cab" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8209/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODIwOS9FeHRlcm5hbEVuZHBvaW50cy9NeSUyMGV4dGVybmFsJTIwZW5kcG9pbnQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "ef0acbaf-a5c9-44f2-bd8c-7f85c4905994" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8209/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "530" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:30 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "ef0acbaf-a5c9-44f2-bd8c-7f85c4905994" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-correlation-request-id": [ - "15c13485-8e2e-47e0-a07f-c557887a77e4" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234731Z:15c13485-8e2e-47e0-a07f-c557887a77e4" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8209?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODIwOT9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9712d50e-af5d-42cb-be84-52f861a43ac1" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8209\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8209\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8209\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8209.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8209/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:30 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "9712d50e-af5d-42cb-be84-52f861a43ac1" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10795" - ], - "x-ms-correlation-request-id": [ - "f746751e-8575-4e7f-81b3-375a2d2b5de5" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234731Z:f746751e-8575-4e7f-81b3-375a2d2b5de5" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXM/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "805021db-0179-405a-803d-c0b5ff7665e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1135\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager1135\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager1135\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager1135.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1135/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4640\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager4640\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager4640\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager4640.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager4640/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager5667\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager5667\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager5667\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager5667.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager5667/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8209\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager8209\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager8209\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager8209.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8209/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9633\",\r\n \"name\": \"azuresdkfornetautoresttrafficmanager9633\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azuresdkfornetautoresttrafficmanager9633\",\r\n \"fqdn\": \"azuresdkfornetautoresttrafficmanager9633.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": null,\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager9633/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": null,\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:31 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "805021db-0179-405a-803d-c0b5ff7665e3" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10794" - ], - "x-ms-correlation-request-id": [ - "af21520c-8b9c-4e4e-94bc-f066580cdf03" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234731Z:af21520c-8b9c-4e4e-94bc-f066580cdf03" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager1135?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyMTEzNT9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c15f5c49-64b9-4ee0-b32a-698603f84533" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:33 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "c15f5c49-64b9-4ee0-b32a-698603f84533" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "15f36a38-2547-40cc-98bc-87d32681523f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234733Z:15f36a38-2547-40cc-98bc-87d32681523f" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager8209?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyODIwOT9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "de1e5102-e4a1-4a99-8f78-a158e6f6384a" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:33 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "de1e5102-e4a1-4a99-8f78-a158e6f6384a" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10798" - ], - "x-ms-correlation-request-id": [ - "ec23d719-ad39-465c-bc14-6feb29b41b69" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234733Z:ec23d719-ad39-465c-bc14-6feb29b41b69" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager9633?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyOTYzMz9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "304511f4-992c-462c-814d-fd5c0d401e0c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:33 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "304511f4-992c-462c-814d-fd5c0d401e0c" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "fae5682b-d713-4345-b473-3282512e92ca" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234733Z:fae5682b-d713-4345-b473-3282512e92ca" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager4640?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNDY0MD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "45b2cf9c-1f72-46bd-854e-be60c0a05f77" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:33 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "45b2cf9c-1f72-46bd-854e-be60c0a05f77" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "17f9103b-ddde-46e6-976c-31acade73ead" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234734Z:17f9103b-ddde-46e6-976c-31acade73ead" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkfornetautoresttrafficmanager2630/providers/Microsoft.Network/trafficmanagerprofiles/azuresdkfornetautoresttrafficmanager5667?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzAvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMvYXp1cmVzZGtmb3JuZXRhdXRvcmVzdHRyYWZmaWNtYW5hZ2VyNTY2Nz9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a2e7b9ec-91c7-4da2-8956-6cae6d8ef9a1" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:34 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "a2e7b9ec-91c7-4da2-8956-6cae6d8ef9a1" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "a06647cd-a38c-40bd-a8ac-3e98ba2ed359" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234734Z:a06647cd-a38c-40bd-a8ac-3e98ba2ed359" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkfornetautoresttrafficmanager2630?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrZm9ybmV0YXV0b3Jlc3R0cmFmZmljbWFuYWdlcjI2MzA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a18a5aff-fe0b-4c36-be01-190afa7be6d7" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:34 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNjMwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "15fb35fc-f785-4067-98f1-9c357897e2ba" - ], - "x-ms-correlation-request-id": [ - "15fb35fc-f785-4067-98f1-9c357897e2ba" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234735Z:15fb35fc-f785-4067-98f1-9c357897e2ba" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNjMwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TmpNd0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:47:50 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNjMwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-request-id": [ - "77c5be22-b2a3-4f73-b3f2-2485624abf32" - ], - "x-ms-correlation-request-id": [ - "77c5be22-b2a3-4f73-b3f2-2485624abf32" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234750Z:77c5be22-b2a3-4f73-b3f2-2485624abf32" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNjMwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TmpNd0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:48:05 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNjMwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" - ], - "x-ms-request-id": [ - "ff40290f-e54b-4c27-b5cc-d141d460eea1" - ], - "x-ms-correlation-request-id": [ - "ff40290f-e54b-4c27-b5cc-d141d460eea1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234805Z:ff40290f-e54b-4c27-b5cc-d141d460eea1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNjMwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TmpNd0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:48:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-request-id": [ - "53e28815-747d-4790-971b-1353b38eb508" - ], - "x-ms-correlation-request-id": [ - "53e28815-747d-4790-971b-1353b38eb508" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234820Z:53e28815-747d-4790-971b-1353b38eb508" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BWlVSRVNES0ZPUk5FVEFVVE9SRVNUVFJBRkZJQ01BTkFHRVIyNjMwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCV2xWU1JWTkVTMFpQVWs1RlZFRlZWRTlTUlZOVVZGSkJSa1pKUTAxQlRrRkhSVkl5TmpNd0xVTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaVkyVnVkSEpoYkhWekluMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:48:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" - ], - "x-ms-request-id": [ - "75ab6ecf-3871-4fb1-9782-527301c94804" - ], - "x-ms-correlation-request-id": [ - "75ab6ecf-3871-4fb1-9782-527301c94804" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234820Z:75ab6ecf-3871-4fb1-9782-527301c94804" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "GenerateName": [ - "azuresdkfornetautoresttrafficmanager2630", - "azuresdkfornetautoresttrafficmanager1135", - "azuresdkfornetautoresttrafficmanager5667", - "azuresdkfornetautoresttrafficmanager9633", - "azuresdkfornetautoresttrafficmanager4640", - "azuresdkfornetautoresttrafficmanager8209" - ] - }, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/NameAvailabilityTest_NameAvailable.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/NameAvailabilityTest_NameAvailable.json deleted file mode 100644 index d1a2bfb39e3f8..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/NameAvailabilityTest_NameAvailable.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/providers/Microsoft.Network/checkTrafficManagerNameAvailability?api-version=2017-05-01", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9jaGVja1RyYWZmaWNNYW5hZ2VyTmFtZUF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDE3LTA1LTAx", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"azsmnet5403\",\r\n \"type\": \"microsoft.network/trafficmanagerprofiles\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "84" - ], - "x-ms-client-request-id": [ - "0079eee3-119d-459e-9423-9510de84effc" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25009.03", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"azsmnet5403\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"nameAvailable\": true,\r\n \"reason\": null,\r\n \"message\": null\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 23 May 2017 09:03:26 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "0079eee3-119d-459e-9423-9510de84effc" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-tenant-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "b404cf8e-1286-4488-9353-6a722ace5fb7" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170523T090326Z:b404cf8e-1286-4488-9353-6a722ace5fb7" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "NameAvailabilityTest_NameAvailable": [ - "azsmnet5403" - ] - }, - "Variables": { - "SubscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/NameAvailabilityTest_NameNotAvailable.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/NameAvailabilityTest_NameNotAvailable.json deleted file mode 100644 index 3ca28bd337b86..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/NameAvailabilityTest_NameNotAvailable.json +++ /dev/null @@ -1,212 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourcegroups/azsmnet1719?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY4ZDQxNDUtYzlhZS00NjY3LTkyNWQtYzUxYzhkODhhZDczL3Jlc291cmNlZ3JvdXBzL2F6c21uZXQxNzE5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "fd83cf6d-37de-4ea9-9eb8-95fcf7f93106" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25009.03", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azsmnet1719\",\r\n \"name\": \"azsmnet1719\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "178" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 23 May 2017 08:55:30 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-request-id": [ - "3ee0b462-86a1-44c7-879c-644e25ebfc65" - ], - "x-ms-correlation-request-id": [ - "3ee0b462-86a1-44c7-879c-644e25ebfc65" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170523T085531Z:3ee0b462-86a1-44c7-879c-644e25ebfc65" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azsmnet1719/providers/Microsoft.Network/trafficmanagerprofiles/azsmnet5183?api-version=2017-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTY4ZDQxNDUtYzlhZS00NjY3LTkyNWQtYzUxYzhkODhhZDczL3Jlc291cmNlR3JvdXBzL2F6c21uZXQxNzE5L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljbWFuYWdlcnByb2ZpbGVzL2F6c21uZXQ1MTgzP2FwaS12ZXJzaW9uPTIwMTctMDUtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azsmnet4696\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n }\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "322" - ], - "x-ms-client-request-id": [ - "d8296810-607e-48c9-a88f-5f706204048d" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25009.03", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/azsmnet1719/providers/Microsoft.Network/trafficManagerProfiles/azsmnet5183\",\r\n \"name\": \"azsmnet5183\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"azsmnet4696\",\r\n \"fqdn\": \"azsmnet4696.tmpreview.watmtest.azure-test.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": []\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "630" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 23 May 2017 08:55:33 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d8296810-607e-48c9-a88f-5f706204048d" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "7ec1eab9-8793-4efc-8fdd-4325b52a5914" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170523T085533Z:7ec1eab9-8793-4efc-8fdd-4325b52a5914" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/providers/Microsoft.Network/checkTrafficManagerNameAvailability?api-version=2017-05-01", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9jaGVja1RyYWZmaWNNYW5hZ2VyTmFtZUF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDE3LTA1LTAx", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"azsmnet4696\",\r\n \"type\": \"microsoft.network/trafficmanagerprofiles\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "84" - ], - "x-ms-client-request-id": [ - "edffa4f5-6f0a-40bd-928b-54623278772c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25009.03", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.3.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"azsmnet4696\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"nameAvailable\": false,\r\n \"reason\": \"AlreadyExists\",\r\n \"message\": \"Domain name azsmnet4696.tmpreview.watmtest.azure-test.net already exists. Please choose a different DNS prefix.\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 23 May 2017 08:55:33 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "edffa4f5-6f0a-40bd-928b-54623278772c" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-tenant-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "b2e8a9ca-59c9-467c-9322-33111097dc5d" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170523T085534Z:b2e8a9ca-59c9-467c-9322-33111097dc5d" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "NameAvailabilityTest_NameNotAvailable": [ - "azsmnet4696", - "azsmnet5183", - "azsmnet1719" - ] - }, - "Variables": { - "SubscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73" - } -} \ No newline at end of file diff --git a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/TrafficViewEnableDisableQuerySizeScope.json b/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/TrafficViewEnableDisableQuerySizeScope.json deleted file mode 100644 index 5a3aa49982b38..0000000000000 --- a/sdk/trafficmanager/Microsoft.Azure.Management.TrafficManager/tests/SessionRecords/ProfileScenarioTests/TrafficViewEnableDisableQuerySizeScope.json +++ /dev/null @@ -1,599 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourcegroups/azuresdkpersistentheatmapdata?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlZ3JvdXBzL2F6dXJlc2RrcGVyc2lzdGVudGhlYXRtYXBkYXRhP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "bf48ca36-b8d6-4265-8bba-b574cebacb7e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata\",\r\n \"name\": \"azuresdkpersistentheatmapdata\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "214" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:28 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "b16d6420-d53c-40d5-8735-be2bd032b149" - ], - "x-ms-correlation-request-id": [ - "b16d6420-d53c-40d5-8735-be2bd032b149" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234428Z:b16d6420-d53c-40d5-8735-be2bd032b149" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficmanagerprofiles/persistentHeatMap?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrcGVyc2lzdGVudGhlYXRtYXBkYXRhL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljbWFuYWdlcnByb2ZpbGVzL3BlcnNpc3RlbnRIZWF0TWFwP2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"persistentHeatMap\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"protocol\": \"http\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\"\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n },\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "376" - ], - "x-ms-client-request-id": [ - "d59fc7aa-a753-4a2c-b0f7-a92044942996" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficManagerProfiles/persistentHeatMap\",\r\n \"name\": \"persistentHeatMap\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"persistentheatmap\",\r\n \"fqdn\": \"persistentheatmap.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "698" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:30 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d59fc7aa-a753-4a2c-b0f7-a92044942996" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "c0588813-cc46-4ba4-b848-3a1288670ced" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234430Z:c0588813-cc46-4ba4-b848-3a1288670ced" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficmanagerprofiles/persistentHeatMap?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrcGVyc2lzdGVudGhlYXRtYXBkYXRhL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljbWFuYWdlcnByb2ZpbGVzL3BlcnNpc3RlbnRIZWF0TWFwP2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"persistentheatmap\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"timeoutInSeconds\": 10,\r\n \"toleratedNumberOfFailures\": 3\r\n },\r\n \"trafficViewEnrollmentStatus\": \"Enabled\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"global\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "544" - ], - "x-ms-client-request-id": [ - "fb85a8d9-ddc3-41e3-88a0-756ba9d936b9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficManagerProfiles/persistentHeatMap\",\r\n \"name\": \"persistentHeatMap\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"persistentheatmap\",\r\n \"fqdn\": \"persistentheatmap.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"Inactive\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [],\r\n \"trafficViewEnrollmentStatus\": \"Enabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:54 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "fb85a8d9-ddc3-41e3-88a0-756ba9d936b9" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10797" - ], - "x-ms-correlation-request-id": [ - "d126c48c-1a2d-438e-a369-20a1299aeea6" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234454Z:d126c48c-1a2d-438e-a369-20a1299aeea6" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficmanagerprofiles/persistentHeatMap/ExternalEndpoints/My%20external%20endpoint?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrcGVyc2lzdGVudGhlYXRtYXBkYXRhL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljbWFuYWdlcnByb2ZpbGVzL3BlcnNpc3RlbnRIZWF0TWFwL0V4dGVybmFsRW5kcG9pbnRzL015JTIwZXh0ZXJuYWwlMjBlbmRwb2ludD9hcGktdmVyc2lvbj0yMDE4LTA4LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"target\": \"foobar.contoso.com\",\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "139" - ], - "x-ms-client-request-id": [ - "4917fcb7-20a1-4e45-9b19-bc519182b4b9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficManagerProfiles/persistentHeatMap/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "496" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:31 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4917fcb7-20a1-4e45-9b19-bc519182b4b9" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "6416839b-56f4-43da-acd1-5b0786e7b899" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234431Z:6416839b-56f4-43da-acd1-5b0786e7b899" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficmanagerprofiles/persistentHeatMap?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrcGVyc2lzdGVudGhlYXRtYXBkYXRhL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljbWFuYWdlcnByb2ZpbGVzL3BlcnNpc3RlbnRIZWF0TWFwP2FwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "16d34462-0e13-423f-9d8a-776c72cdccde" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficManagerProfiles/persistentHeatMap\",\r\n \"name\": \"persistentHeatMap\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles\",\r\n \"location\": \"global\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"profileStatus\": \"Enabled\",\r\n \"trafficRoutingMethod\": \"Performance\",\r\n \"dnsConfig\": {\r\n \"relativeName\": \"persistentheatmap\",\r\n \"fqdn\": \"persistentheatmap.trafficmanager.net\",\r\n \"ttl\": 35\r\n },\r\n \"monitorConfig\": {\r\n \"profileMonitorStatus\": \"CheckingEndpoints\",\r\n \"protocol\": \"HTTP\",\r\n \"port\": 80,\r\n \"path\": \"/testpath.aspx\",\r\n \"intervalInSeconds\": 30,\r\n \"toleratedNumberOfFailures\": 3,\r\n \"timeoutInSeconds\": 10\r\n },\r\n \"endpoints\": [\r\n {\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficManagerProfiles/persistentHeatMap/externalEndpoints/My external endpoint\",\r\n \"name\": \"My external endpoint\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/externalEndpoints\",\r\n \"properties\": {\r\n \"endpointStatus\": \"Enabled\",\r\n \"endpointMonitorStatus\": \"CheckingEndpoint\",\r\n \"target\": \"foobar.contoso.com\",\r\n \"weight\": 1,\r\n \"priority\": 1,\r\n \"endpointLocation\": \"North Europe\"\r\n }\r\n }\r\n ],\r\n \"trafficViewEnrollmentStatus\": \"Disabled\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:31 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "16d34462-0e13-423f-9d8a-776c72cdccde" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "10799" - ], - "x-ms-correlation-request-id": [ - "a432302b-aaeb-41ec-91f5-60b1b2f4a6c9" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234432Z:a432302b-aaeb-41ec-91f5-60b1b2f4a6c9" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficmanagerprofiles/persistentHeatMap/heatMaps/default?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrcGVyc2lzdGVudGhlYXRtYXBkYXRhL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljbWFuYWdlcnByb2ZpbGVzL3BlcnNpc3RlbnRIZWF0TWFwL2hlYXRNYXBzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5fd91138-a08f-4370-8848-3144a3d18e4d" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"code\": \"NotAuthorized\",\r\n \"message\": \"Unable to access Profile HeatMap. Please register for 'Traffic View'. See if 'trafficViewEnrollmentStatus' is 'Enabled' in your profile.\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Connection": [ - "close" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:53 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "5fd91138-a08f-4370-8848-3144a3d18e4d" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-failure-cause": [ - "service" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "599" - ], - "x-ms-correlation-request-id": [ - "b6d8e634-3857-4106-8359-0a27c2b37c4e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234453Z:b6d8e634-3857-4106-8359-0a27c2b37c4e" - ] - }, - "StatusCode": 502 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficmanagerprofiles/persistentHeatMap/heatMaps/default?api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrcGVyc2lzdGVudGhlYXRtYXBkYXRhL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljbWFuYWdlcnByb2ZpbGVzL3BlcnNpc3RlbnRIZWF0TWFwL2hlYXRNYXBzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOC0wOC0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "841130d1-5ced-41d0-bb5f-950361ad704b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficManagerProfiles/persistentHeatMap/heatMaps/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/heatMaps\",\r\n \"properties\": {\r\n \"endTime\": \"2018-07-14T22:00:00Z\",\r\n \"endpoints\": [\r\n {\r\n \"endpointId\": 0,\r\n \"resourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficManagerProfiles/persistentheatmap/externalEndpoints/my external endpoint\"\r\n }\r\n ],\r\n \"startTime\": \"2018-07-07T22:00:00Z\",\r\n \"trafficFlows\": [\r\n {\r\n \"latitude\": 41.59,\r\n \"longitude\": -93.616,\r\n \"queryExperiences\": [\r\n {\r\n \"endpointId\": 0,\r\n \"queryCount\": 4\r\n }\r\n ],\r\n \"sourceIp\": \"52.176.43.64\"\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:54 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "841130d1-5ced-41d0-bb5f-950361ad704b" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "599" - ], - "x-ms-correlation-request-id": [ - "18a38992-796c-4dd0-99e6-d5c03061e4af" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234455Z:18a38992-796c-4dd0-99e6-d5c03061e4af" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficmanagerprofiles/persistentHeatMap/heatMaps/default?topLeft=41.69%2C-93.716&botRight=41.49%2C-93.516&api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrcGVyc2lzdGVudGhlYXRtYXBkYXRhL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljbWFuYWdlcnByb2ZpbGVzL3BlcnNpc3RlbnRIZWF0TWFwL2hlYXRNYXBzL2RlZmF1bHQ/dG9wTGVmdD00MS42OSUyQy05My43MTYmYm90UmlnaHQ9NDEuNDklMkMtOTMuNTE2JmFwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d62f7549-430b-401d-8cf3-48a6224c3efd" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficManagerProfiles/persistentHeatMap/heatMaps/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/heatMaps\",\r\n \"properties\": {\r\n \"endTime\": \"2018-07-14T22:00:00Z\",\r\n \"endpoints\": [\r\n {\r\n \"endpointId\": 0,\r\n \"resourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficManagerProfiles/persistentheatmap/externalEndpoints/my external endpoint\"\r\n }\r\n ],\r\n \"startTime\": \"2018-07-07T22:00:00Z\",\r\n \"trafficFlows\": [\r\n {\r\n \"latitude\": 41.59,\r\n \"longitude\": -93.616,\r\n \"queryExperiences\": [\r\n {\r\n \"endpointId\": 0,\r\n \"queryCount\": 4\r\n }\r\n ],\r\n \"sourceIp\": \"52.176.43.64\"\r\n }\r\n ]\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:55 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "d62f7549-430b-401d-8cf3-48a6224c3efd" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "598" - ], - "x-ms-correlation-request-id": [ - "273cdd28-62f0-4b01-9144-4a5a5c35d5f7" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234455Z:273cdd28-62f0-4b01-9144-4a5a5c35d5f7" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficmanagerprofiles/persistentHeatMap/heatMaps/default?topLeft=41.69%2C-93.716&botRight=41.64%2C-93.666&api-version=2018-08-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTYyMDdhNWQtNDc0Ni00YTJkLTlmN2YtYzVhYzc3YTVkZGZkL3Jlc291cmNlR3JvdXBzL2F6dXJlc2RrcGVyc2lzdGVudGhlYXRtYXBkYXRhL3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljbWFuYWdlcnByb2ZpbGVzL3BlcnNpc3RlbnRIZWF0TWFwL2hlYXRNYXBzL2RlZmF1bHQ/dG9wTGVmdD00MS42OSUyQy05My43MTYmYm90UmlnaHQ9NDEuNjQlMkMtOTMuNjY2JmFwaS12ZXJzaW9uPTIwMTgtMDgtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4e3e4f88-f713-4b6d-a563-61a18f24d704" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.TrafficManager.TrafficManagerManagementClient/2.5.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficManagerProfiles/persistentHeatMap/heatMaps/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Network/trafficManagerProfiles/heatMaps\",\r\n \"properties\": {\r\n \"endTime\": \"2018-07-14T22:00:00Z\",\r\n \"endpoints\": [\r\n {\r\n \"endpointId\": 0,\r\n \"resourceId\": \"/subscriptions/56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd/resourceGroups/azuresdkpersistentheatmapdata/providers/Microsoft.Network/trafficManagerProfiles/persistentheatmap/externalEndpoints/my external endpoint\"\r\n }\r\n ],\r\n \"startTime\": \"2018-07-07T22:00:00Z\",\r\n \"trafficFlows\": []\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Tue, 17 Jul 2018 23:44:55 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Vary": [ - "Accept-Encoding" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-request-id": [ - "4e3e4f88-f713-4b6d-a563-61a18f24d704" - ], - "X-AspNet-Version": [ - "4.0.30319" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "597" - ], - "x-ms-correlation-request-id": [ - "822a1fe4-2f58-490a-b29c-bb7637dab1ad" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180717T234455Z:822a1fe4-2f58-490a-b29c-bb7637dab1ad" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd" - } -} \ No newline at end of file