diff --git a/src/ResourceManagement/HDInsight/HDInsight.Tests/HDInsight.Tests.csproj b/src/ResourceManagement/HDInsight/HDInsight.Tests/HDInsight.Tests.csproj index 0ce205a4ad42..95f41ae42434 100644 --- a/src/ResourceManagement/HDInsight/HDInsight.Tests/HDInsight.Tests.csproj +++ b/src/ResourceManagement/HDInsight/HDInsight.Tests/HDInsight.Tests.csproj @@ -4,6 +4,7 @@ {033442D6-65E4-4A90-A6C0-9608B821A13B} HDInsight.Tests HDInsight.Tests + c7e9322a @@ -14,13 +15,14 @@ + - + PreserveNewest @@ -36,6 +38,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest diff --git a/src/ResourceManagement/HDInsight/HDInsight.Tests/ScenarioTests/GetConfigurationTests.cs b/src/ResourceManagement/HDInsight/HDInsight.Tests/ScenarioTests/GetConfigurationTests.cs new file mode 100644 index 000000000000..392bdc63f271 --- /dev/null +++ b/src/ResourceManagement/HDInsight/HDInsight.Tests/ScenarioTests/GetConfigurationTests.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +using System.Linq; +using System.Net; +using HDInsight.Tests.Helpers; +using Hyak.Common; +using Microsoft.Azure.Management.HDInsight; +using Microsoft.Azure.Management.HDInsight.Models; +using Microsoft.Azure.Test; +using Xunit; + +namespace HDInsight.Tests +{ + public class GetConfigurationTests + { + [Fact] + public void TestGetConfigCoreSiteCluster() + { + var handler = new RecordedDelegatingHandler {StatusCodeToReturn = HttpStatusCode.OK}; + + using (var context = UndoContext.Current) + { + context.Start(); + + var client = HDInsightManagementTestUtilities.GetHDInsightManagementClient(handler); + var resourceManagementClient = HDInsightManagementTestUtilities.GetResourceManagementClient(handler); + + var resourceGroup = HDInsightManagementTestUtilities.CreateResourceGroup(resourceManagementClient); + const string dnsname = "hdisdk-configtest"; + + var spec = GetClusterSpecHelpers.GetPaasClusterSpec(); + + client.Clusters.Create(resourceGroup, dnsname, spec); + + var configs = client.Clusters.GetClusterConfigurations(resourceGroup, dnsname, "core-site"); + + Assert.Equal(2, configs.Configuration.Count); + + client.Clusters.Delete(resourceGroup, dnsname); + } + } + } +} diff --git a/src/ResourceManagement/HDInsight/HDInsight.Tests/SessionRecords/HDInsight.Tests.GetConfigurationTests/TestGetConfigCoreSiteCluster.json b/src/ResourceManagement/HDInsight/HDInsight.Tests/SessionRecords/HDInsight.Tests.GetConfigurationTests/TestGetConfigCoreSiteCluster.json new file mode 100644 index 000000000000..9c616e4b502e --- /dev/null +++ b/src/ResourceManagement/HDInsight/HDInsight.Tests/SessionRecords/HDInsight.Tests.GetConfigurationTests/TestGetConfigCoreSiteCluster.json @@ -0,0 +1,1545 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourcegroups/hdi7393?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlZ3JvdXBzL2hkaTczOTM/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393\",\r\n \"name\": \"hdi7393\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "167" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "17c5a606-bbf1-4e93-916b-e54bf63d1711" + ], + "x-ms-correlation-request-id": [ + "17c5a606-bbf1-4e93-916b-e54bf63d1711" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T002954Z:17c5a606-bbf1-4e93-916b-e54bf63d1711" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:29:53 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\",\r\n \"configurations\": {\r\n \"core-site\": {\r\n \"fs.defaultFS\": \"wasb://nemadj-local-1030-clust-d-cont@nemadjwestus.blob.core.windows.net\",\r\n \"fs.azure.account.key.nemadjwestus.blob.core.windows.net\": \"1hf2tI8jvOQOxhON223U6LmRzdTc5Mym3rObjVFjzm2WGlghB9wT0I0CMWF+B6hi71HV61ET3DaxRfBwUJrntw==\"\r\n },\r\n \"gateway\": {\r\n \"restAuthCredential.isEnabled\": \"true\",\r\n \"restAuthCredential.username\": \"hadoopuser\",\r\n \"restAuthCredential.password\": \"Password1!\"\r\n }\r\n }\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"headnode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"password\": \"Passw0rd!321\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n }\r\n },\r\n \"scriptActions\": []\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"scriptActions\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "1517" + ], + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"Accepted\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.cloudapp.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.cloudapp.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1248" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-hdi-clusteruri": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview" + ], + "x-ms-request-id": [ + "93e17492-571f-4066-94ed-ffc7b94f402d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "ee335387-229d-4230-ae12-4615cf3466ea" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T002956Z:ee335387-229d-4230-ae12-4615cf3466ea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:29:56 GMT" + ], + "ETag": [ + "\"c3c9c970-aa54-4cfb-949b-1d8ff5250455\"" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"Accepted\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.cloudapp.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.cloudapp.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1248" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b0a4519a-aaa3-43f2-bcc8-00851871c1d1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "49522c2a-1de7-4f06-9a35-45049fb02cd5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T002957Z:49522c2a-1de7-4f06-9a35-45049fb02cd5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:29:56 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"ClusterStorageProvisioned\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1303" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "33d69473-db78-4e99-8a5f-b2c02f304079" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "b0d455e4-24a5-48c6-95f0-48d0b058f910" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T003057Z:b0d455e4-24a5-48c6-95f0-48d0b058f910" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:30:56 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"ClusterStorageProvisioned\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1303" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "dd056a93-d1b3-4f2a-b8ab-5a505b957dfa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "55ba3d5f-4e8a-4ae3-ae04-a6ff0a6f9743" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T003158Z:55ba3d5f-4e8a-4ae3-ae04-a6ff0a6f9743" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:31:57 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"ClusterStorageProvisioned\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1303" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ee431c2a-bb27-47e9-b72e-e5deab891d22" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "ecfd9aa9-4e4d-43ae-b8f0-a2bce8625131" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T003258Z:ecfd9aa9-4e4d-43ae-b8f0-a2bce8625131" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:32:58 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"ClusterStorageProvisioned\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1303" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "45c898ff-5f8e-4cec-9cad-b13ae6fe593b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "7952ada7-eb4e-4c84-b6b1-acfab4c74c9f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T003359Z:7952ada7-eb4e-4c84-b6b1-acfab4c74c9f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:33:59 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4ec637c7-c352-49d2-aa64-fc31cd55df94" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "154aa1dd-96ac-45d3-9558-f17df106fd31" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T003459Z:154aa1dd-96ac-45d3-9558-f17df106fd31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:34:59 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ac6b1376-bbc5-4924-9951-5e2f2829ba26" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "7deb7ee9-4212-4ae8-9489-2e943162987c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T003600Z:7deb7ee9-4212-4ae8-9489-2e943162987c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:35:59 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cc7e4910-0e74-466b-8625-bdcc2ef108b1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "2cd6c369-e795-407a-bff2-e1d25c97dbf8" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T003700Z:2cd6c369-e795-407a-bff2-e1d25c97dbf8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:37:00 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2be937cf-2a39-47d4-a833-a8abbc7d5d92" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "f02fdaeb-5eb6-4e1a-a45f-46faa43fb5eb" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T003801Z:f02fdaeb-5eb6-4e1a-a45f-46faa43fb5eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:38:00 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "21f4b617-3c07-4597-b241-2ff6062db504" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "bf217ed9-1b3b-4ec7-b784-88b1ac9b95e1" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T003901Z:bf217ed9-1b3b-4ec7-b784-88b1ac9b95e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:39:01 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "66177bee-55de-4c95-a204-d3daee8a3617" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "2735b0df-5f1f-47d0-9558-007201ee0e82" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T004002Z:2735b0df-5f1f-47d0-9558-007201ee0e82" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:40:02 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "226493b4-9ae6-4572-b805-15a43d2d38b3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "5f051d96-d082-4822-827b-218774776b2c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T004102Z:5f051d96-d082-4822-827b-218774776b2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:41:01 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "abae3f79-20e3-420a-a803-d30e57e256f4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "21c14ec3-7871-483a-bd67-c5ab0714d59b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T004202Z:21c14ec3-7871-483a-bd67-c5ab0714d59b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:42:02 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "8beb0ee9-312f-4b4e-b850-4155b9fed5f7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "d51faa8b-223e-420f-b8b8-913feb44e5ef" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T004303Z:d51faa8b-223e-420f-b8b8-913feb44e5ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:43:02 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d1c7b5a3-8c63-4906-bf3f-6630447e2810" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "004e7e02-d8b4-4630-a702-66f03fa7999f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T004403Z:004e7e02-d8b4-4630-a702-66f03fa7999f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:44:03 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "301f0f36-e349-4f37-9f37-ee5f482d0b2e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "78d6eeae-2bdb-4448-91a8-82c050ce6a3f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T004503Z:78d6eeae-2bdb-4448-91a8-82c050ce6a3f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:45:03 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "200efcc0-e2d8-454e-98c8-1acadf08d5eb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "eb243e9b-c1f3-4ad3-a3ab-0ddd19d7ffa3" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T004604Z:eb243e9b-c1f3-4ad3-a3ab-0ddd19d7ffa3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:46:04 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c6f1d948-7a21-4411-991e-25863efe5a75" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "7652393f-5b68-4dbf-a533-2d93acd84703" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T004704Z:7652393f-5b68-4dbf-a533-2d93acd84703" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:47:03 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cfc4524c-f26a-4ff6-8033-04d2123070d7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "ed6befad-e632-48a8-9b53-db191a8f1d50" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T004804Z:ed6befad-e632-48a8-9b53-db191a8f1d50" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:48:04 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"AzureVMConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1298" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "724c232d-7b19-47d1-ab9e-402ee326ecab" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "f0727dcb-bc4c-4500-ad82-4f5dd51ee7ed" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T004905Z:f0727dcb-bc4c-4500-ad82-4f5dd51ee7ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:49:04 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"InProgress\",\r\n \"clusterState\": \"HdInsightConfiguration\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1300" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3ebf5765-2efd-495e-b00f-2bcf62a573e7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "26ecfffb-7683-4c90-bb33-09d6e10bdd38" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T005005Z:26ecfffb-7683-4c90-bb33-09d6e10bdd38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:50:05 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest\",\r\n \"name\": \"hdisdk-configtest\",\r\n \"type\": \"Microsoft.HDInsight/clusters\",\r\n \"location\": \"West US\",\r\n \"etag\": \"c3c9c970-aa54-4cfb-949b-1d8ff5250455\",\r\n \"tags\": {\r\n \"tag1\": \"value1\",\r\n \"tag2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"clusterVersion\": \"3.1.4.658\",\r\n \"osType\": \"Windows\",\r\n \"clusterDefinition\": {\r\n \"kind\": \"Hadoop\"\r\n },\r\n \"computeProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"HeadNode\",\r\n \"targetInstanceCount\": 2,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"ExtraLarge\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n },\r\n {\r\n \"name\": \"workernode\",\r\n \"targetInstanceCount\": 5,\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Large\"\r\n },\r\n \"osProfile\": {\r\n \"windowsOperatingSystemProfile\": {\r\n \"rdpSettings\": {\r\n \"username\": \"hdirp\",\r\n \"expiryDate\": \"2025-03-01T00:00:00\"\r\n }\r\n },\r\n \"linuxOperatingSystemProfile\": null\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterState\": \"Operational\",\r\n \"createdDate\": \"2015-08-18T00:29:56.36\",\r\n \"quotaInfo\": {\r\n \"coresUsed\": 36\r\n },\r\n \"connectivityEndpoints\": [\r\n {\r\n \"name\": \"HTTPS\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 443\r\n },\r\n {\r\n \"name\": \"RDP\",\r\n \"protocol\": \"TCP\",\r\n \"location\": \"hdisdk-configtest.hdinsight-stable.azure-test.net\",\r\n \"port\": 3389\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1288" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "384dd9d5-7651-4b5a-a93a-d04156736ae1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "a184af7a-aefb-4f4b-b520-e9aeea95362d" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T005105Z:a184af7a-aefb-4f4b-b520-e9aeea95362d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:51:05 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest/configurations/core-site?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3QvY29uZmlndXJhdGlvbnMvY29yZS1zaXRlP2FwaS12ZXJzaW9uPTIwMTUtMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"fs.azure.account.key.nemadjwestus.blob.core.windows.net\": \"1hf2tI8jvOQOxhON223U6LmRzdTc5Mym3rObjVFjzm2WGlghB9wT0I0CMWF+B6hi71HV61ET3DaxRfBwUJrntw==\",\r\n \"fs.defaultFS\": \"wasb://nemadj-local-1030-clust-d-cont@nemadjwestus.blob.core.windows.net\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "240" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f3adb561-bedb-43d1-a1e5-ca0a60ffd490" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "b74a3de3-3137-4e39-b3cb-9c3c943c1df6" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T005106Z:b74a3de3-3137-4e39-b3cb-9c3c943c1df6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:51:05 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Q/YXBpLXZlcnNpb249MjAxNS0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "60" + ], + "x-ms-request-id": [ + "bbff968b-cde7-4d60-a3b3-23375e2556fe" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "3925328a-0e68-4c43-87f2-884165c41e4e" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T005107Z:3925328a-0e68-4c43-87f2-884165c41e4e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:51:07 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest/operationresults/a6f0d524-29c1-4e58-be31-b4d992d19657-0?api-version=2015-03-01-preview" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest/operationresults/a6f0d524-29c1-4e58-be31-b4d992d19657-0?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Qvb3BlcmF0aW9ucmVzdWx0cy9hNmYwZDUyNC0yOWMxLTRlNTgtYmUzMS1iNGQ5OTJkMTk2NTctMD9hcGktdmVyc2lvbj0yMDE1LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-03-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "60" + ], + "x-ms-request-id": [ + "8944d062-317d-4eda-aa6c-fa99c2591a61" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "1ab726dd-b456-4af4-8e8a-6ece5d0a2462" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T005108Z:1ab726dd-b456-4af4-8e8a-6ece5d0a2462" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:51:07 GMT" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest/operationresults/a6f0d524-29c1-4e58-be31-b4d992d19657-0?api-version=2015-03-01-preview" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/93eb2bdc-fa17-417c-ae1b-3b6c17b76db4/resourceGroups/hdi7393/providers/Microsoft.HDInsight/clusters/hdisdk-configtest/operationresults/a6f0d524-29c1-4e58-be31-b4d992d19657-0?api-version=2015-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTNlYjJiZGMtZmExNy00MTdjLWFlMWItM2I2YzE3Yjc2ZGI0L3Jlc291cmNlR3JvdXBzL2hkaTczOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5IREluc2lnaHQvY2x1c3RlcnMvaGRpc2RrLWNvbmZpZ3Rlc3Qvb3BlcmF0aW9ucmVzdWx0cy9hNmYwZDUyNC0yOWMxLTRlNTgtYmUzMS1iNGQ5OTJkMTk2NTctMD9hcGktdmVyc2lvbj0yMDE1LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-version": [ + "2015-03-01-preview" + ], + "User-Agent": [ + "Microsoft.Azure.Management.HDInsight.HDInsightManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1afb9559-b1fc-44b6-accc-785aaf77201a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "f810c7a5-a351-4773-b0f2-4119ffc014e4" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150818T005208Z:f810c7a5-a351-4773-b0f2-4119ffc014e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 18 Aug 2015 00:52:08 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 204 + } + ], + "Names": { + "CreateResourceGroup": [ + "hdi7393" + ] + }, + "Variables": { + "SubscriptionId": "93eb2bdc-fa17-417c-ae1b-3b6c17b76db4" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/HDInsight/HDInsight.Tests/app.config b/src/ResourceManagement/HDInsight/HDInsight.Tests/app.config new file mode 100644 index 000000000000..44298137ae7d --- /dev/null +++ b/src/ResourceManagement/HDInsight/HDInsight.Tests/app.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/ResourceManagement/HDInsight/HDInsight.Tests/packages.config b/src/ResourceManagement/HDInsight/HDInsight.Tests/packages.config index aefba1de3218..3fcbf066b30c 100644 --- a/src/ResourceManagement/HDInsight/HDInsight.Tests/packages.config +++ b/src/ResourceManagement/HDInsight/HDInsight.Tests/packages.config @@ -1,4 +1,8 @@  + + + + \ No newline at end of file diff --git a/src/ResourceManagement/HDInsight/HDInsight/Generated/ClusterOperations.cs b/src/ResourceManagement/HDInsight/HDInsight/Generated/ClusterOperations.cs index 0e4e5c6df881..88ede60bc2d4 100644 --- a/src/ResourceManagement/HDInsight/HDInsight/Generated/ClusterOperations.cs +++ b/src/ResourceManagement/HDInsight/HDInsight/Generated/ClusterOperations.cs @@ -2777,6 +2777,185 @@ public async Task GetCapabilitiesAsync(string location, Ca } } + /// + /// Gets the configuration for the specified cluster. + /// + /// + /// Required. The name of the resource group. + /// + /// + /// Required. The name of the cluster. + /// + /// + /// Required. The name of the cluster. + /// + /// + /// Cancellation token. + /// + /// + /// The Cluster Configurations operation response. + /// + public async Task GetClusterConfigurationsAsync(string resourceGroupName, string clusterName, string configurationName, CancellationToken cancellationToken) + { + // Validate + if (resourceGroupName == null) + { + throw new ArgumentNullException("resourceGroupName"); + } + if (clusterName == null) + { + throw new ArgumentNullException("clusterName"); + } + if (configurationName == null) + { + throw new ArgumentNullException("configurationName"); + } + + // Tracing + bool shouldTrace = TracingAdapter.IsEnabled; + string invocationId = null; + if (shouldTrace) + { + invocationId = TracingAdapter.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("configurationName", configurationName); + TracingAdapter.Enter(invocationId, this, "GetClusterConfigurationsAsync", tracingParameters); + } + + // Construct URL + string url = ""; + url = url + "/subscriptions/"; + if (this.Client.Credentials.SubscriptionId != null) + { + url = url + Uri.EscapeDataString(this.Client.Credentials.SubscriptionId); + } + url = url + "/resourceGroups/"; + url = url + Uri.EscapeDataString(resourceGroupName); + url = url + "/providers/"; + url = url + "Microsoft.HDInsight"; + url = url + "/clusters/"; + url = url + Uri.EscapeDataString(clusterName); + url = url + "/configurations/"; + url = url + Uri.EscapeDataString(configurationName); + List queryParameters = new List(); + queryParameters.Add("api-version=2015-03-01-preview"); + if (queryParameters.Count > 0) + { + url = url + "?" + string.Join("&", queryParameters); + } + string baseUrl = this.Client.BaseUri.AbsoluteUri; + // Trim '/' character from the end of baseUrl and beginning of url. + if (baseUrl[baseUrl.Length - 1] == '/') + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + if (url[0] == '/') + { + url = url.Substring(1); + } + url = baseUrl + "/" + url; + url = url.Replace(" ", "%20"); + + // Create HTTP transport objects + HttpRequestMessage httpRequest = null; + try + { + httpRequest = new HttpRequestMessage(); + httpRequest.Method = HttpMethod.Get; + httpRequest.RequestUri = new Uri(url); + + // Set Headers + + // Set Credentials + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(httpRequest, cancellationToken).ConfigureAwait(false); + + // Send Request + HttpResponseMessage httpResponse = null; + try + { + if (shouldTrace) + { + TracingAdapter.SendRequest(invocationId, httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + httpResponse = await this.Client.HttpClient.SendAsync(httpRequest, cancellationToken).ConfigureAwait(false); + if (shouldTrace) + { + TracingAdapter.ReceiveResponse(invocationId, httpResponse); + } + HttpStatusCode statusCode = httpResponse.StatusCode; + if (statusCode != HttpStatusCode.OK) + { + cancellationToken.ThrowIfCancellationRequested(); + CloudException ex = CloudException.Create(httpRequest, null, httpResponse, await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false)); + if (shouldTrace) + { + TracingAdapter.Error(invocationId, ex); + } + throw ex; + } + + // Create Result + ClusterConfigurationsResponse result = null; + // Deserialize Response + if (statusCode == HttpStatusCode.OK) + { + cancellationToken.ThrowIfCancellationRequested(); + string responseContent = await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + result = new ClusterConfigurationsResponse(); + JToken responseDoc = null; + if (string.IsNullOrEmpty(responseContent) == false) + { + responseDoc = JToken.Parse(responseContent); + } + + if (responseDoc != null && responseDoc.Type != JTokenType.Null) + { + JToken configurationSequenceElement = ((JToken)responseDoc); + if (configurationSequenceElement != null && configurationSequenceElement.Type != JTokenType.Null) + { + foreach (JProperty property in configurationSequenceElement) + { + string configurationKey = ((string)property.Name); + string configurationValue = ((string)property.Value); + result.Configuration.Add(configurationKey, configurationValue); + } + } + } + + } + result.StatusCode = statusCode; + if (httpResponse.Headers.Contains("x-ms-request-id")) + { + result.RequestId = httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + + if (shouldTrace) + { + TracingAdapter.Exit(invocationId, result); + } + return result; + } + finally + { + if (httpResponse != null) + { + httpResponse.Dispose(); + } + } + } + finally + { + if (httpRequest != null) + { + httpRequest.Dispose(); + } + } + } + /// /// Gets the connectivity settings for the specified cluster. /// diff --git a/src/ResourceManagement/HDInsight/HDInsight/Generated/ClusterOperationsExtensions.cs b/src/ResourceManagement/HDInsight/HDInsight/Generated/ClusterOperationsExtensions.cs index 86718c3ae6b3..99ad329bf45e 100644 --- a/src/ResourceManagement/HDInsight/HDInsight/Generated/ClusterOperationsExtensions.cs +++ b/src/ResourceManagement/HDInsight/HDInsight/Generated/ClusterOperationsExtensions.cs @@ -577,6 +577,58 @@ public static Task GetCapabilitiesAsync(this IClusterOpera return operations.GetCapabilitiesAsync(location, CancellationToken.None); } + /// + /// Gets the configuration for the specified cluster. + /// + /// + /// Reference to the + /// Microsoft.Azure.Management.HDInsight.IClusterOperations. + /// + /// + /// Required. The name of the resource group. + /// + /// + /// Required. The name of the cluster. + /// + /// + /// Required. The name of the cluster. + /// + /// + /// The Cluster Configurations operation response. + /// + public static ClusterConfigurationsResponse GetClusterConfigurations(this IClusterOperations operations, string resourceGroupName, string clusterName, string configurationName) + { + return Task.Factory.StartNew((object s) => + { + return ((IClusterOperations)s).GetClusterConfigurationsAsync(resourceGroupName, clusterName, configurationName); + } + , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + } + + /// + /// Gets the configuration for the specified cluster. + /// + /// + /// Reference to the + /// Microsoft.Azure.Management.HDInsight.IClusterOperations. + /// + /// + /// Required. The name of the resource group. + /// + /// + /// Required. The name of the cluster. + /// + /// + /// Required. The name of the cluster. + /// + /// + /// The Cluster Configurations operation response. + /// + public static Task GetClusterConfigurationsAsync(this IClusterOperations operations, string resourceGroupName, string clusterName, string configurationName) + { + return operations.GetClusterConfigurationsAsync(resourceGroupName, clusterName, configurationName, CancellationToken.None); + } + /// /// Gets the connectivity settings for the specified cluster. /// diff --git a/src/ResourceManagement/HDInsight/HDInsight/Generated/IClusterOperations.cs b/src/ResourceManagement/HDInsight/HDInsight/Generated/IClusterOperations.cs index 56733d92101d..13172064c34e 100644 --- a/src/ResourceManagement/HDInsight/HDInsight/Generated/IClusterOperations.cs +++ b/src/ResourceManagement/HDInsight/HDInsight/Generated/IClusterOperations.cs @@ -238,6 +238,26 @@ public partial interface IClusterOperations /// Task GetCapabilitiesAsync(string location, CancellationToken cancellationToken); + /// + /// Gets the configuration for the specified cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the cluster. + /// + /// + /// The name of the cluster. + /// + /// + /// Cancellation token. + /// + /// + /// The Cluster Configurations operation response. + /// + Task GetClusterConfigurationsAsync(string resourceGroupName, string clusterName, string configurationName, CancellationToken cancellationToken); + /// /// Gets the connectivity settings for the specified cluster. /// diff --git a/src/ResourceManagement/HDInsight/HDInsight/Generated/Models/ClusterConfigurationsResponse.cs b/src/ResourceManagement/HDInsight/HDInsight/Generated/Models/ClusterConfigurationsResponse.cs new file mode 100644 index 000000000000..fcfcedeb006a --- /dev/null +++ b/src/ResourceManagement/HDInsight/HDInsight/Generated/Models/ClusterConfigurationsResponse.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Warning: This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if the +// code is regenerated. + +using System; +using System.Collections.Generic; +using System.Linq; +using Hyak.Common; +using Microsoft.Azure; + +namespace Microsoft.Azure.Management.HDInsight.Models +{ + /// + /// The Cluster Configurations operation response. + /// + public partial class ClusterConfigurationsResponse : AzureOperationResponse + { + private IDictionary _configuration; + + /// + /// Optional. + /// + public IDictionary Configuration + { + get { return this._configuration; } + set { this._configuration = value; } + } + + /// + /// Initializes a new instance of the ClusterConfigurationsResponse + /// class. + /// + public ClusterConfigurationsResponse() + { + this.Configuration = new LazyDictionary(); + } + } +} diff --git a/src/ResourceManagement/Resource/ResourceManagement/Generated/DeploymentOperationOperations.cs b/src/ResourceManagement/Resource/ResourceManagement/Generated/DeploymentOperationOperations.cs index 325b8a6eef5f..542aa8fbaf6b 100644 --- a/src/ResourceManagement/Resource/ResourceManagement/Generated/DeploymentOperationOperations.cs +++ b/src/ResourceManagement/Resource/ResourceManagement/Generated/DeploymentOperationOperations.cs @@ -547,11 +547,11 @@ public async Task ListAsync(string resourceGroup } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -765,11 +765,11 @@ public async Task ListNextAsync(string nextLink, } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } diff --git a/src/ResourceManagement/Resource/ResourceManagement/Generated/DeploymentOperations.cs b/src/ResourceManagement/Resource/ResourceManagement/Generated/DeploymentOperations.cs index 939e0ee14dab..e20297ba5c79 100644 --- a/src/ResourceManagement/Resource/ResourceManagement/Generated/DeploymentOperations.cs +++ b/src/ResourceManagement/Resource/ResourceManagement/Generated/DeploymentOperations.cs @@ -1930,11 +1930,11 @@ public async Task ListAsync(string resourceGroupName, Depl } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -2322,11 +2322,11 @@ public async Task ListNextAsync(string nextLink, Cancellat } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } diff --git a/src/ResourceManagement/Resource/ResourceManagement/Generated/Features.cs b/src/ResourceManagement/Resource/ResourceManagement/Generated/Features.cs index abeee6ac3311..524cdfa6f98b 100644 --- a/src/ResourceManagement/Resource/ResourceManagement/Generated/Features.cs +++ b/src/ResourceManagement/Resource/ResourceManagement/Generated/Features.cs @@ -412,11 +412,11 @@ public async Task ListAsync(string resourceProvider } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -602,11 +602,11 @@ public async Task ListAllAsync(CancellationToken ca } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -778,11 +778,11 @@ public async Task ListAllNextAsync(string nextLink, } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -954,11 +954,11 @@ public async Task ListNextAsync(string nextLink, Ca } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } diff --git a/src/ResourceManagement/Resource/ResourceManagement/Generated/ManagementLockOperations.cs b/src/ResourceManagement/Resource/ResourceManagement/Generated/ManagementLockOperations.cs index ca3cfee69664..d1fee8fca436 100644 --- a/src/ResourceManagement/Resource/ResourceManagement/Generated/ManagementLockOperations.cs +++ b/src/ResourceManagement/Resource/ResourceManagement/Generated/ManagementLockOperations.cs @@ -1616,11 +1616,11 @@ public async Task ListAtResourceGroupLevelAsync(string } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -1882,11 +1882,11 @@ public async Task ListAtResourceLevelAsync(string reso } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -2092,11 +2092,11 @@ public async Task ListAtSubscriptionLevelAsync(Managem } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -2275,11 +2275,11 @@ public async Task ListNextAsync(string nextLink, Cance } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } diff --git a/src/ResourceManagement/Resource/ResourceManagement/Generated/ProviderOperations.cs b/src/ResourceManagement/Resource/ResourceManagement/Generated/ProviderOperations.cs index 5f94ae1664e9..fdf52b0d971e 100644 --- a/src/ResourceManagement/Resource/ResourceManagement/Generated/ProviderOperations.cs +++ b/src/ResourceManagement/Resource/ResourceManagement/Generated/ProviderOperations.cs @@ -468,11 +468,11 @@ public async Task ListAsync(ProviderListParameters parameter } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -676,11 +676,11 @@ public async Task ListNextAsync(string nextLink, Cancellatio } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } diff --git a/src/ResourceManagement/Resource/ResourceManagement/Generated/ResourceGroupOperations.cs b/src/ResourceManagement/Resource/ResourceManagement/Generated/ResourceGroupOperations.cs index 32349bd68966..285c26538f64 100644 --- a/src/ResourceManagement/Resource/ResourceManagement/Generated/ResourceGroupOperations.cs +++ b/src/ResourceManagement/Resource/ResourceManagement/Generated/ResourceGroupOperations.cs @@ -1110,11 +1110,11 @@ public async Task ListAsync(ResourceGroupListParameters } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -1308,11 +1308,11 @@ public async Task ListNextAsync(string nextLink, Cancel } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } diff --git a/src/ResourceManagement/Resource/ResourceManagement/Generated/ResourceOperations.cs b/src/ResourceManagement/Resource/ResourceManagement/Generated/ResourceOperations.cs index cb926fa3c24d..0728b24d9743 100644 --- a/src/ResourceManagement/Resource/ResourceManagement/Generated/ResourceOperations.cs +++ b/src/ResourceManagement/Resource/ResourceManagement/Generated/ResourceOperations.cs @@ -1329,11 +1329,11 @@ public async Task ListAsync(ResourceListParameters parameter } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -1569,11 +1569,11 @@ public async Task ListNextAsync(string nextLink, Cancellatio } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } diff --git a/src/ResourceManagement/Resource/ResourceManagement/Generated/TagOperations.cs b/src/ResourceManagement/Resource/ResourceManagement/Generated/TagOperations.cs index 349980380bf8..b31b29dfc313 100644 --- a/src/ResourceManagement/Resource/ResourceManagement/Generated/TagOperations.cs +++ b/src/ResourceManagement/Resource/ResourceManagement/Generated/TagOperations.cs @@ -956,11 +956,11 @@ public async Task ListAsync(CancellationToken cancellationToken) } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } @@ -1177,11 +1177,11 @@ public async Task ListNextAsync(string nextLink, CancellationTok } } - JToken odatanextLinkValue = responseDoc["@odata.nextLink"]; - if (odatanextLinkValue != null && odatanextLinkValue.Type != JTokenType.Null) + JToken nextLinkValue = responseDoc["nextLink"]; + if (nextLinkValue != null && nextLinkValue.Type != JTokenType.Null) { - string odatanextLinkInstance = ((string)odatanextLinkValue); - result.NextLink = odatanextLinkInstance; + string nextLinkInstance = ((string)nextLinkValue); + result.NextLink = nextLinkInstance; } } diff --git a/src/ResourceManagement/Resource/ResourceManagement/Microsoft.Azure.Management.Resources.nuget.proj b/src/ResourceManagement/Resource/ResourceManagement/Microsoft.Azure.Management.Resources.nuget.proj index 560d524fc7e2..70262b92b6f3 100644 --- a/src/ResourceManagement/Resource/ResourceManagement/Microsoft.Azure.Management.Resources.nuget.proj +++ b/src/ResourceManagement/Resource/ResourceManagement/Microsoft.Azure.Management.Resources.nuget.proj @@ -5,7 +5,7 @@ Microsoft.Azure.Management.Resources --> - 2.18.6-preview + 2.18.7-preview $(MSBuildThisFileDirectory) diff --git a/src/ResourceManagement/Resource/ResourceManagement/Properties/AssemblyInfo.cs b/src/ResourceManagement/Resource/ResourceManagement/Properties/AssemblyInfo.cs index d594b664edec..7ea6b6906021 100644 --- a/src/ResourceManagement/Resource/ResourceManagement/Properties/AssemblyInfo.cs +++ b/src/ResourceManagement/Resource/ResourceManagement/Properties/AssemblyInfo.cs @@ -21,7 +21,7 @@ [assembly: AssemblyDescription("Provides Microsoft Azure resource management operations including Resource Groups.")] [assembly: AssemblyVersion("2.0.0.0")] -[assembly: AssemblyFileVersion("2.18.6.0")] +[assembly: AssemblyFileVersion("2.18.7.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Azure .NET SDK")] diff --git a/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/DeploymentTests.InMemory.cs b/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/DeploymentTests.InMemory.cs index 01899be0627a..9401193a6a1c 100644 --- a/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/DeploymentTests.InMemory.cs +++ b/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/DeploymentTests.InMemory.cs @@ -177,7 +177,7 @@ public void ListDeploymentOperationsReturnsMultipleObjects() } } ], - '@odata.nextLink': 'https://wa.com/subscriptions/mysubid/resourcegroups/TestRG/deployments/test-release-3/operations?$skiptoken=983fknw' + 'nextLink': 'https://wa.com/subscriptions/mysubid/resourcegroups/TestRG/deployments/test-release-3/operations?$skiptoken=983fknw' } ") }; @@ -212,7 +212,7 @@ public void ListDeploymentOperationsReturnsEmptyArray() { Content = new StringContent(@"{ 'value': [], - '@odata.nextLink': 'https://wa.com/subscriptions/mysubid/resourcegroups/TestRG/deployments/test-release-3/operations?$skiptoken=983fknw' + 'nextLink': 'https://wa.com/subscriptions/mysubid/resourcegroups/TestRG/deployments/test-release-3/operations?$skiptoken=983fknw' }") }; @@ -353,7 +353,7 @@ public void ListDeploymentOperationsWorksWithNextLink() } } ], - '@odata.nextLink': 'https://wa.com/subscriptions/mysubid/resourcegroups/TestRG/deployments/test-release-3/operations?$skiptoken=983fknw' + 'nextLink': 'https://wa.com/subscriptions/mysubid/resourcegroups/TestRG/deployments/test-release-3/operations?$skiptoken=983fknw' } ") }; @@ -834,7 +834,7 @@ public void DeploymentTestsListAllValidateMessage() } } ], - '@odata.nextLink': 'https://wa/subscriptions/subId/templateDeployments?$skiptoken=983fknw' + 'nextLink': 'https://wa/subscriptions/subId/templateDeployments?$skiptoken=983fknw' }") }; var handler = new RecordedDelegatingHandler(response) { StatusCodeToReturn = HttpStatusCode.OK }; @@ -941,7 +941,7 @@ public void DeploymentTestsListValidateMessage() } } ], - '@odata.nextLink': 'https://wa/subscriptions/subId/templateDeployments?$skiptoken=983fknw' + 'nextLink': 'https://wa/subscriptions/subId/templateDeployments?$skiptoken=983fknw' }") }; var handler = new RecordedDelegatingHandler(response) { StatusCodeToReturn = HttpStatusCode.OK }; @@ -1054,7 +1054,7 @@ public void DeploymentTestsListForGroupValidateMessage() } } ], - '@odata.nextLink': 'https://wa/subscriptions/subId/templateDeployments?$skiptoken=983fknw' + 'nextLink': 'https://wa/subscriptions/subId/templateDeployments?$skiptoken=983fknw' }") }; var handler = new RecordedDelegatingHandler(response) { StatusCodeToReturn = HttpStatusCode.OK }; diff --git a/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/FeatureTests.InMemory.cs b/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/FeatureTests.InMemory.cs index ecd534fe2cce..7dfc2cbf757c 100644 --- a/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/FeatureTests.InMemory.cs +++ b/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/FeatureTests.InMemory.cs @@ -184,7 +184,7 @@ public void ListPreviewedFeatures() 'type': 'Microsoft.Features/providers/features' } ], - '@odata.nextLink': 'https://wa.com/subscriptions/mysubid/resourcegroups/TestRG/deployments/test-release-3/operations?$skiptoken=983fknw' + 'nextLink': 'https://wa.com/subscriptions/mysubid/resourcegroups/TestRG/deployments/test-release-3/operations?$skiptoken=983fknw' } ") }; @@ -247,7 +247,7 @@ public void ListAllPreviewedFeatures() 'type': 'Microsoft.Features/providers/features' } ], - '@odata.nextLink': 'https://wa.com/subscriptions/mysubid/resourcegroups/TestRG/deployments/test-release-3/operations?$skiptoken=983fknw' + 'nextLink': 'https://wa.com/subscriptions/mysubid/resourcegroups/TestRG/deployments/test-release-3/operations?$skiptoken=983fknw' } ") }; diff --git a/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/ResourceGroupTests.InMemory.cs b/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/ResourceGroupTests.InMemory.cs index 937dcac13b72..dcb88503e24c 100644 --- a/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/ResourceGroupTests.InMemory.cs +++ b/src/ResourceManagement/Resource/Resources.Tests/InMemoryTests/ResourceGroupTests.InMemory.cs @@ -282,7 +282,7 @@ public void ResourceGroupListAllValidateMessage() } } ], - '@odata.nextLink': 'https://wa/subscriptions/subId/resourcegroups?api-version=1.0&$skiptoken=662idk', + 'nextLink': 'https://wa/subscriptions/subId/resourcegroups?api-version=1.0&$skiptoken=662idk', }") }; response.Headers.Add("x-ms-request-id", "1"); @@ -368,7 +368,7 @@ public void ResourceGroupListValidateMessage() 'locked': 'false' } ], - '@odata.nextLink': 'https://wa/subscriptions/subId/resourcegroups?api-version=1.0&$skiptoken=662idk', + 'nextLink': 'https://wa/subscriptions/subId/resourcegroups?api-version=1.0&$skiptoken=662idk', }") }; response.Headers.Add("x-ms-request-id", "1"); diff --git a/src/ResourceManagement/SiteRecovery/SiteRecovery.Tests/Spec.TechSupport.SiteRecovery/SiteRecoveryManagementTestUtilities.cs b/src/ResourceManagement/SiteRecovery/SiteRecovery.Tests/Spec.TechSupport.SiteRecovery/SiteRecoveryManagementTestUtilities.cs index 1a3ad11c4e07..6f347070bb6d 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecovery.Tests/Spec.TechSupport.SiteRecovery/SiteRecoveryManagementTestUtilities.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecovery.Tests/Spec.TechSupport.SiteRecovery/SiteRecoveryManagementTestUtilities.cs @@ -43,6 +43,7 @@ public static RecoveryServicesManagementClient GetRecoveryServicesManagementClie } return new RecoveryServicesManagementClient( + "Microsoft.SiteRecovery", (SubscriptionCloudCredentials)environment.Credentials, environment.BaseUri).WithHandler(HttpMockServer.CreateInstance()); } @@ -101,9 +102,9 @@ public static SiteRecoveryManagementClient GetSiteRecoveryManagementClient(this } return new SiteRecoveryManagementClient( - SiteRecoveryTestsBase.MyCloudService, SiteRecoveryTestsBase.MyVaultName, SiteRecoveryTestsBase.MyResourceGroupName, + "Microsoft.SiteRecovery", (SubscriptionCloudCredentials)environment.Credentials, environment.BaseUri).WithHandler(HttpMockServer.CreateInstance()); } diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/IRecoveryServicesManagementClient.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/IRecoveryServicesManagementClient.cs index 68a880e4de81..f167684a6184 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/IRecoveryServicesManagementClient.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/IRecoveryServicesManagementClient.cs @@ -73,6 +73,11 @@ int LongRunningOperationRetryTimeout get; set; } + string ResourceNamespace + { + get; set; + } + /// /// Definition of cloud service operations for the Recovery services /// extension. diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ISiteRecoveryManagementClient.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ISiteRecoveryManagementClient.cs index 54a93f7638ac..8d079966ebb5 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ISiteRecoveryManagementClient.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ISiteRecoveryManagementClient.cs @@ -44,11 +44,6 @@ Uri BaseUri get; } - string CloudServiceName - { - get; set; - } - /// /// Gets subscription credentials which uniquely identify Microsoft /// Azure subscription. The subscription ID forms part of the URI for @@ -85,6 +80,11 @@ string ResourceName get; set; } + string ResourceNamespace + { + get; set; + } + /// /// Definition for Job Operations. /// diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/JobOperations.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/JobOperations.cs index 10a10c3ff146..687995cd5e7a 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/JobOperations.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/JobOperations.cs @@ -109,7 +109,7 @@ public async Task BeginRestartingAsync(string jobI url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -272,7 +272,7 @@ public async Task BeginResumingAsync(string jobId, url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -450,7 +450,7 @@ public async Task GetAsync(string jobId, CustomRequestHeaders custo url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -2147,7 +2147,7 @@ public async Task ListAsync(JobQueryParameter parameters, Custo url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/AzureFailbackInput.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/AzureFailbackInput.cs new file mode 100644 index 000000000000..7a634940f14c --- /dev/null +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/AzureFailbackInput.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Warning: This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if the +// code is regenerated. + +using System; +using System.Linq; +using Microsoft.Azure.Management.SiteRecovery.Models; + +namespace Microsoft.Azure.Management.SiteRecovery.Models +{ + /// + /// The HyperV Azure failback input. + /// + public partial class AzureFailbackInput : FailoverReplicationProviderSpecificInput + { + private bool _createRecoveryVmIfDoesntExist; + + /// + /// Optional. Secondary key encryption key certificate. + /// + public bool CreateRecoveryVmIfDoesntExist + { + get { return this._createRecoveryVmIfDoesntExist; } + set { this._createRecoveryVmIfDoesntExist = value; } + } + + private bool _skipDataSync; + + /// + /// Optional. Secondary key encryption key certificate. + /// + public bool SkipDataSync + { + get { return this._skipDataSync; } + set { this._skipDataSync = value; } + } + + /// + /// Initializes a new instance of the AzureFailbackInput class. + /// + public AzureFailbackInput() + { + } + } +} diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/AzureFailoverInput.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/AzureFailoverInput.cs new file mode 100644 index 000000000000..b7436094e39e --- /dev/null +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/AzureFailoverInput.cs @@ -0,0 +1,73 @@ +// +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Warning: This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if the +// code is regenerated. + +using System; +using System.Linq; +using Microsoft.Azure.Management.SiteRecovery.Models; + +namespace Microsoft.Azure.Management.SiteRecovery.Models +{ + /// + /// The HyperV Azure failover input. + /// + public partial class AzureFailoverInput : FailoverReplicationProviderSpecificInput + { + private string _primaryKekCertificatePfx; + + /// + /// Optional. + /// + public string PrimaryKekCertificatePfx + { + get { return this._primaryKekCertificatePfx; } + set { this._primaryKekCertificatePfx = value; } + } + + private string _secondaryKekCertificatePfx; + + /// + /// Optional. + /// + public string SecondaryKekCertificatePfx + { + get { return this._secondaryKekCertificatePfx; } + set { this._secondaryKekCertificatePfx = value; } + } + + private string _vaultLocation; + + /// + /// Optional. + /// + public string VaultLocation + { + get { return this._vaultLocation; } + set { this._vaultLocation = value; } + } + + /// + /// Initializes a new instance of the AzureFailoverInput class. + /// + public AzureFailoverInput() + { + } + } +} diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/AzureReprotectInput.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/AzureReprotectInput.cs new file mode 100644 index 000000000000..039ccd3acb81 --- /dev/null +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/AzureReprotectInput.cs @@ -0,0 +1,106 @@ +// +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Warning: This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if the +// code is regenerated. + +using System; +using System.Linq; +using Microsoft.Azure.Management.SiteRecovery.Models; + +namespace Microsoft.Azure.Management.SiteRecovery.Models +{ + /// + /// The HyperV Azure reprotect input. + /// + public partial class AzureReprotectInput : FailoverReplicationProviderSpecificInput + { + private string _hvHostVmId; + + /// + /// Optional. Secondary key encryption key certificate. + /// + public string HvHostVmId + { + get { return this._hvHostVmId; } + set { this._hvHostVmId = value; } + } + + private string _oSType; + + /// + /// Optional. Secondary key encryption key certificate. + /// + public string OSType + { + get { return this._oSType; } + set { this._oSType = value; } + } + + private string _storageAccountName; + + /// + /// Optional. Secondary key encryption key certificate. + /// + public string StorageAccountName + { + get { return this._storageAccountName; } + set { this._storageAccountName = value; } + } + + private string _storageAccountSubscriptionId; + + /// + /// Optional. Secondary key encryption key certificate. + /// + public string StorageAccountSubscriptionId + { + get { return this._storageAccountSubscriptionId; } + set { this._storageAccountSubscriptionId = value; } + } + + private string _vHDId; + + /// + /// Optional. Secondary key encryption key certificate. + /// + public string VHDId + { + get { return this._vHDId; } + set { this._vHDId = value; } + } + + private string _vmName; + + /// + /// Optional. Secondary key encryption key certificate. + /// + public string VmName + { + get { return this._vmName; } + set { this._vmName = value; } + } + + /// + /// Initializes a new instance of the AzureReprotectInput class. + /// + public AzureReprotectInput() + { + } + } +} diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/DisassociateProtectionProfileInput.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/DisassociateProtectionProfileInput.cs index 176a450f2256..28f761758824 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/DisassociateProtectionProfileInput.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/DisassociateProtectionProfileInput.cs @@ -21,6 +21,7 @@ using System; using System.Linq; +using Microsoft.Azure.Management.SiteRecovery.Models; namespace Microsoft.Azure.Management.SiteRecovery.Models { @@ -62,12 +63,12 @@ public string RecoveryProtectionContainerId set { this._recoveryProtectionContainerId = value; } } - private string _replicationProviderSettings; + private ProtectionProfileProviderSpecificInput _replicationProviderSettings; /// - /// Optional. + /// Optional. the replication provider settings. /// - public string ReplicationProviderSettings + public ProtectionProfileProviderSpecificInput ReplicationProviderSettings { get { return this._replicationProviderSettings; } set { this._replicationProviderSettings = value; } diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/FailoverReplicationProviderSpecificInput.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/FailoverReplicationProviderSpecificInput.cs new file mode 100644 index 000000000000..34dd43ed97d1 --- /dev/null +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/FailoverReplicationProviderSpecificInput.cs @@ -0,0 +1,40 @@ +// +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Warning: This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if the +// code is regenerated. + +using System; +using System.Linq; + +namespace Microsoft.Azure.Management.SiteRecovery.Models +{ + /// + /// Create profile provider specific input. + /// + public partial class FailoverReplicationProviderSpecificInput + { + /// + /// Initializes a new instance of the + /// FailoverReplicationProviderSpecificInput class. + /// + public FailoverReplicationProviderSpecificInput() + { + } + } +} diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/FailoverRequest.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/FailoverRequest.cs index 07e167fb6174..86587bbcf771 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/FailoverRequest.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/FailoverRequest.cs @@ -21,6 +21,7 @@ using System; using System.Linq; +using Microsoft.Azure.Management.SiteRecovery.Models; namespace Microsoft.Azure.Management.SiteRecovery.Models { @@ -51,12 +52,12 @@ public string ReplicationProvider set { this._replicationProvider = value; } } - private string _replicationProviderSettings; + private FailoverReplicationProviderSpecificInput _replicationProviderSettings; /// /// Optional. Replication provider settings. /// - public string ReplicationProviderSettings + public FailoverReplicationProviderSpecificInput ReplicationProviderSettings { get { return this._replicationProviderSettings; } set { this._replicationProviderSettings = value; } diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/HyperVReplicaAzureProtectionProfileInput.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/HyperVReplicaAzureProtectionProfileInput.cs index d4a65660c768..cac3be7f086e 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/HyperVReplicaAzureProtectionProfileInput.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/HyperVReplicaAzureProtectionProfileInput.cs @@ -32,15 +32,15 @@ namespace Microsoft.Azure.Management.SiteRecovery.Models /// public partial class HyperVReplicaAzureProtectionProfileInput : ProtectionProfileProviderSpecificInput { - private int _appConsistencyFreq; + private int _applicationConsistentSnapshotFrequencyInHours; /// /// Optional. /// - public int AppConsistencyFreq + public int ApplicationConsistentSnapshotFrequencyInHours { - get { return this._appConsistencyFreq; } - set { this._appConsistencyFreq = value; } + get { return this._applicationConsistentSnapshotFrequencyInHours; } + set { this._applicationConsistentSnapshotFrequencyInHours = value; } } private string _encryption; @@ -54,15 +54,15 @@ public string Encryption set { this._encryption = value; } } - private System.TimeSpan? _onlineIrStartTime; + private System.TimeSpan? _onlineReplicationStartTime; /// /// Optional. /// - public System.TimeSpan? OnlineIrStartTime + public System.TimeSpan? OnlineReplicationStartTime { - get { return this._onlineIrStartTime; } - set { this._onlineIrStartTime = value; } + get { return this._onlineReplicationStartTime; } + set { this._onlineReplicationStartTime = value; } } private int _recoveryPointHistoryDuration; diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/ProtectionProfileProviderSpecificInput.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/ProtectionProfileProviderSpecificInput.cs index d15f0894c6a4..c0a12f541bbd 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/ProtectionProfileProviderSpecificInput.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/ProtectionProfileProviderSpecificInput.cs @@ -25,7 +25,7 @@ namespace Microsoft.Azure.Management.SiteRecovery.Models { /// - /// Create profile provider specific input. + /// Profile operation provider specific input. /// public partial class ProtectionProfileProviderSpecificInput { diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpPlannedFailoverRequest.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpPlannedFailoverRequest.cs index 0201fdcc811f..3136d338bc83 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpPlannedFailoverRequest.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpPlannedFailoverRequest.cs @@ -21,6 +21,7 @@ using System; using System.Linq; +using Microsoft.Azure.Management.SiteRecovery.Models; namespace Microsoft.Azure.Management.SiteRecovery.Models { @@ -51,12 +52,12 @@ public string ReplicationProvider set { this._replicationProvider = value; } } - private string _replicationProviderSettings; + private FailoverReplicationProviderSpecificInput _replicationProviderSettings; /// /// Optional. Replication provider settings. /// - public string ReplicationProviderSettings + public FailoverReplicationProviderSpecificInput ReplicationProviderSettings { get { return this._replicationProviderSettings; } set { this._replicationProviderSettings = value; } diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpTestFailoverRequest.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpTestFailoverRequest.cs index a8b827e3aaba..530a26d7fdf3 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpTestFailoverRequest.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpTestFailoverRequest.cs @@ -21,6 +21,7 @@ using System; using System.Linq; +using Microsoft.Azure.Management.SiteRecovery.Models; namespace Microsoft.Azure.Management.SiteRecovery.Models { @@ -73,12 +74,12 @@ public string ReplicationProvider set { this._replicationProvider = value; } } - private string _replicationProviderSettings; + private FailoverReplicationProviderSpecificInput _replicationProviderSettings; /// /// Optional. Replication provider settings. /// - public string ReplicationProviderSettings + public FailoverReplicationProviderSpecificInput ReplicationProviderSettings { get { return this._replicationProviderSettings; } set { this._replicationProviderSettings = value; } diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpUnplannedFailoverRequest.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpUnplannedFailoverRequest.cs index 48a61df5520f..45acd193f706 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpUnplannedFailoverRequest.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/RpUnplannedFailoverRequest.cs @@ -21,6 +21,7 @@ using System; using System.Linq; +using Microsoft.Azure.Management.SiteRecovery.Models; namespace Microsoft.Azure.Management.SiteRecovery.Models { @@ -51,12 +52,12 @@ public string ReplicationProvider set { this._replicationProvider = value; } } - private string _replicationProviderSettings; + private FailoverReplicationProviderSpecificInput _replicationProviderSettings; /// /// Optional. Replication provider settings. /// - public string ReplicationProviderSettings + public FailoverReplicationProviderSpecificInput ReplicationProviderSettings { get { return this._replicationProviderSettings; } set { this._replicationProviderSettings = value; } diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionContainerOperations.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionContainerOperations.cs index 21689bee3a53..3c661d89d0f8 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionContainerOperations.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionContainerOperations.cs @@ -108,7 +108,7 @@ public async Task GetAsync(string protectionContain url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -608,7 +608,7 @@ public async Task ListAsync(CustomRequestHeader url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionEntityOperations.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionEntityOperations.cs index a6f6c95e231b..1b2d0856e5bb 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionEntityOperations.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionEntityOperations.cs @@ -126,7 +126,7 @@ public async Task BeginCommitFailoverAsync(string url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -187,7 +187,72 @@ public async Task BeginCommitFailoverAsync(string if (parameters.ReplicationProviderSettings != null) { - commitFailoverRequestValue["replicationProviderSettings"] = parameters.ReplicationProviderSettings; + JObject replicationProviderSettingsValue = new JObject(); + commitFailoverRequestValue["replicationProviderSettings"] = replicationProviderSettingsValue; + if (parameters.ReplicationProviderSettings is AzureFailoverInput) + { + replicationProviderSettingsValue["__type"] = "AzureFailoverInput"; + AzureFailoverInput derived = ((AzureFailoverInput)parameters.ReplicationProviderSettings); + + if (derived.VaultLocation != null) + { + replicationProviderSettingsValue["vaultLocation"] = derived.VaultLocation; + } + + if (derived.PrimaryKekCertificatePfx != null) + { + replicationProviderSettingsValue["primaryKekCertificatePfx"] = derived.PrimaryKekCertificatePfx; + } + + if (derived.SecondaryKekCertificatePfx != null) + { + replicationProviderSettingsValue["secondaryKekCertificatePfx"] = derived.SecondaryKekCertificatePfx; + } + } + if (parameters.ReplicationProviderSettings is AzureFailbackInput) + { + replicationProviderSettingsValue["__type"] = "AzureFailbackInput"; + AzureFailbackInput derived2 = ((AzureFailbackInput)parameters.ReplicationProviderSettings); + + replicationProviderSettingsValue["skipDataSync"] = derived2.SkipDataSync; + + replicationProviderSettingsValue["createRecoveryVmIfDoesntExist"] = derived2.CreateRecoveryVmIfDoesntExist; + } + if (parameters.ReplicationProviderSettings is AzureReprotectInput) + { + replicationProviderSettingsValue["__type"] = "AzureReprotectInput"; + AzureReprotectInput derived3 = ((AzureReprotectInput)parameters.ReplicationProviderSettings); + + if (derived3.HvHostVmId != null) + { + replicationProviderSettingsValue["hvHostVmId"] = derived3.HvHostVmId; + } + + if (derived3.VmName != null) + { + replicationProviderSettingsValue["vmName"] = derived3.VmName; + } + + if (derived3.OSType != null) + { + replicationProviderSettingsValue["oSType"] = derived3.OSType; + } + + if (derived3.VHDId != null) + { + replicationProviderSettingsValue["vHDId"] = derived3.VHDId; + } + + if (derived3.StorageAccountName != null) + { + replicationProviderSettingsValue["storageAccountName"] = derived3.StorageAccountName; + } + + if (derived3.StorageAccountSubscriptionId != null) + { + replicationProviderSettingsValue["storageAccountSubscriptionId"] = derived3.StorageAccountSubscriptionId; + } + } } if (parameters.FailoverDirection != null) @@ -331,7 +396,7 @@ public async Task BeginPlannedFailoverAsync(string url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -392,7 +457,72 @@ public async Task BeginPlannedFailoverAsync(string if (parameters.ReplicationProviderSettings != null) { - plannedFailoverRequestValue["replicationProviderSettings"] = parameters.ReplicationProviderSettings; + JObject replicationProviderSettingsValue = new JObject(); + plannedFailoverRequestValue["replicationProviderSettings"] = replicationProviderSettingsValue; + if (parameters.ReplicationProviderSettings is AzureFailoverInput) + { + replicationProviderSettingsValue["__type"] = "AzureFailoverInput"; + AzureFailoverInput derived = ((AzureFailoverInput)parameters.ReplicationProviderSettings); + + if (derived.VaultLocation != null) + { + replicationProviderSettingsValue["vaultLocation"] = derived.VaultLocation; + } + + if (derived.PrimaryKekCertificatePfx != null) + { + replicationProviderSettingsValue["primaryKekCertificatePfx"] = derived.PrimaryKekCertificatePfx; + } + + if (derived.SecondaryKekCertificatePfx != null) + { + replicationProviderSettingsValue["secondaryKekCertificatePfx"] = derived.SecondaryKekCertificatePfx; + } + } + if (parameters.ReplicationProviderSettings is AzureFailbackInput) + { + replicationProviderSettingsValue["__type"] = "AzureFailbackInput"; + AzureFailbackInput derived2 = ((AzureFailbackInput)parameters.ReplicationProviderSettings); + + replicationProviderSettingsValue["skipDataSync"] = derived2.SkipDataSync; + + replicationProviderSettingsValue["createRecoveryVmIfDoesntExist"] = derived2.CreateRecoveryVmIfDoesntExist; + } + if (parameters.ReplicationProviderSettings is AzureReprotectInput) + { + replicationProviderSettingsValue["__type"] = "AzureReprotectInput"; + AzureReprotectInput derived3 = ((AzureReprotectInput)parameters.ReplicationProviderSettings); + + if (derived3.HvHostVmId != null) + { + replicationProviderSettingsValue["hvHostVmId"] = derived3.HvHostVmId; + } + + if (derived3.VmName != null) + { + replicationProviderSettingsValue["vmName"] = derived3.VmName; + } + + if (derived3.OSType != null) + { + replicationProviderSettingsValue["oSType"] = derived3.OSType; + } + + if (derived3.VHDId != null) + { + replicationProviderSettingsValue["vHDId"] = derived3.VHDId; + } + + if (derived3.StorageAccountName != null) + { + replicationProviderSettingsValue["storageAccountName"] = derived3.StorageAccountName; + } + + if (derived3.StorageAccountSubscriptionId != null) + { + replicationProviderSettingsValue["storageAccountSubscriptionId"] = derived3.StorageAccountSubscriptionId; + } + } } if (parameters.FailoverDirection != null) @@ -536,7 +666,7 @@ public async Task BeginReprotectAsync(string pcNam url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -597,7 +727,72 @@ public async Task BeginReprotectAsync(string pcNam if (parameters.ReplicationProviderSettings != null) { - reprotectRequestValue["replicationProviderSettings"] = parameters.ReplicationProviderSettings; + JObject replicationProviderSettingsValue = new JObject(); + reprotectRequestValue["replicationProviderSettings"] = replicationProviderSettingsValue; + if (parameters.ReplicationProviderSettings is AzureFailoverInput) + { + replicationProviderSettingsValue["__type"] = "AzureFailoverInput"; + AzureFailoverInput derived = ((AzureFailoverInput)parameters.ReplicationProviderSettings); + + if (derived.VaultLocation != null) + { + replicationProviderSettingsValue["vaultLocation"] = derived.VaultLocation; + } + + if (derived.PrimaryKekCertificatePfx != null) + { + replicationProviderSettingsValue["primaryKekCertificatePfx"] = derived.PrimaryKekCertificatePfx; + } + + if (derived.SecondaryKekCertificatePfx != null) + { + replicationProviderSettingsValue["secondaryKekCertificatePfx"] = derived.SecondaryKekCertificatePfx; + } + } + if (parameters.ReplicationProviderSettings is AzureFailbackInput) + { + replicationProviderSettingsValue["__type"] = "AzureFailbackInput"; + AzureFailbackInput derived2 = ((AzureFailbackInput)parameters.ReplicationProviderSettings); + + replicationProviderSettingsValue["skipDataSync"] = derived2.SkipDataSync; + + replicationProviderSettingsValue["createRecoveryVmIfDoesntExist"] = derived2.CreateRecoveryVmIfDoesntExist; + } + if (parameters.ReplicationProviderSettings is AzureReprotectInput) + { + replicationProviderSettingsValue["__type"] = "AzureReprotectInput"; + AzureReprotectInput derived3 = ((AzureReprotectInput)parameters.ReplicationProviderSettings); + + if (derived3.HvHostVmId != null) + { + replicationProviderSettingsValue["hvHostVmId"] = derived3.HvHostVmId; + } + + if (derived3.VmName != null) + { + replicationProviderSettingsValue["vmName"] = derived3.VmName; + } + + if (derived3.OSType != null) + { + replicationProviderSettingsValue["oSType"] = derived3.OSType; + } + + if (derived3.VHDId != null) + { + replicationProviderSettingsValue["vHDId"] = derived3.VHDId; + } + + if (derived3.StorageAccountName != null) + { + replicationProviderSettingsValue["storageAccountName"] = derived3.StorageAccountName; + } + + if (derived3.StorageAccountSubscriptionId != null) + { + replicationProviderSettingsValue["storageAccountSubscriptionId"] = derived3.StorageAccountSubscriptionId; + } + } } if (parameters.FailoverDirection != null) @@ -749,7 +944,7 @@ public async Task BeginTestFailoverAsync(string pc url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -814,7 +1009,72 @@ public async Task BeginTestFailoverAsync(string pc if (parameters.ReplicationProviderSettings != null) { - testFailoverRequestValue["replicationProviderSettings"] = parameters.ReplicationProviderSettings; + JObject replicationProviderSettingsValue = new JObject(); + testFailoverRequestValue["replicationProviderSettings"] = replicationProviderSettingsValue; + if (parameters.ReplicationProviderSettings is AzureFailoverInput) + { + replicationProviderSettingsValue["__type"] = "AzureFailoverInput"; + AzureFailoverInput derived = ((AzureFailoverInput)parameters.ReplicationProviderSettings); + + if (derived.VaultLocation != null) + { + replicationProviderSettingsValue["vaultLocation"] = derived.VaultLocation; + } + + if (derived.PrimaryKekCertificatePfx != null) + { + replicationProviderSettingsValue["primaryKekCertificatePfx"] = derived.PrimaryKekCertificatePfx; + } + + if (derived.SecondaryKekCertificatePfx != null) + { + replicationProviderSettingsValue["secondaryKekCertificatePfx"] = derived.SecondaryKekCertificatePfx; + } + } + if (parameters.ReplicationProviderSettings is AzureFailbackInput) + { + replicationProviderSettingsValue["__type"] = "AzureFailbackInput"; + AzureFailbackInput derived2 = ((AzureFailbackInput)parameters.ReplicationProviderSettings); + + replicationProviderSettingsValue["skipDataSync"] = derived2.SkipDataSync; + + replicationProviderSettingsValue["createRecoveryVmIfDoesntExist"] = derived2.CreateRecoveryVmIfDoesntExist; + } + if (parameters.ReplicationProviderSettings is AzureReprotectInput) + { + replicationProviderSettingsValue["__type"] = "AzureReprotectInput"; + AzureReprotectInput derived3 = ((AzureReprotectInput)parameters.ReplicationProviderSettings); + + if (derived3.HvHostVmId != null) + { + replicationProviderSettingsValue["hvHostVmId"] = derived3.HvHostVmId; + } + + if (derived3.VmName != null) + { + replicationProviderSettingsValue["vmName"] = derived3.VmName; + } + + if (derived3.OSType != null) + { + replicationProviderSettingsValue["oSType"] = derived3.OSType; + } + + if (derived3.VHDId != null) + { + replicationProviderSettingsValue["vHDId"] = derived3.VHDId; + } + + if (derived3.StorageAccountName != null) + { + replicationProviderSettingsValue["storageAccountName"] = derived3.StorageAccountName; + } + + if (derived3.StorageAccountSubscriptionId != null) + { + replicationProviderSettingsValue["storageAccountSubscriptionId"] = derived3.StorageAccountSubscriptionId; + } + } } if (parameters.FailoverDirection != null) @@ -962,7 +1222,7 @@ public async Task BeginUnplannedFailoverAsync(stri url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -1025,7 +1285,72 @@ public async Task BeginUnplannedFailoverAsync(stri if (parameters.ReplicationProviderSettings != null) { - unplannedFailoverRequestValue["replicationProviderSettings"] = parameters.ReplicationProviderSettings; + JObject replicationProviderSettingsValue = new JObject(); + unplannedFailoverRequestValue["replicationProviderSettings"] = replicationProviderSettingsValue; + if (parameters.ReplicationProviderSettings is AzureFailoverInput) + { + replicationProviderSettingsValue["__type"] = "AzureFailoverInput"; + AzureFailoverInput derived = ((AzureFailoverInput)parameters.ReplicationProviderSettings); + + if (derived.VaultLocation != null) + { + replicationProviderSettingsValue["vaultLocation"] = derived.VaultLocation; + } + + if (derived.PrimaryKekCertificatePfx != null) + { + replicationProviderSettingsValue["primaryKekCertificatePfx"] = derived.PrimaryKekCertificatePfx; + } + + if (derived.SecondaryKekCertificatePfx != null) + { + replicationProviderSettingsValue["secondaryKekCertificatePfx"] = derived.SecondaryKekCertificatePfx; + } + } + if (parameters.ReplicationProviderSettings is AzureFailbackInput) + { + replicationProviderSettingsValue["__type"] = "AzureFailbackInput"; + AzureFailbackInput derived2 = ((AzureFailbackInput)parameters.ReplicationProviderSettings); + + replicationProviderSettingsValue["skipDataSync"] = derived2.SkipDataSync; + + replicationProviderSettingsValue["createRecoveryVmIfDoesntExist"] = derived2.CreateRecoveryVmIfDoesntExist; + } + if (parameters.ReplicationProviderSettings is AzureReprotectInput) + { + replicationProviderSettingsValue["__type"] = "AzureReprotectInput"; + AzureReprotectInput derived3 = ((AzureReprotectInput)parameters.ReplicationProviderSettings); + + if (derived3.HvHostVmId != null) + { + replicationProviderSettingsValue["hvHostVmId"] = derived3.HvHostVmId; + } + + if (derived3.VmName != null) + { + replicationProviderSettingsValue["vmName"] = derived3.VmName; + } + + if (derived3.OSType != null) + { + replicationProviderSettingsValue["oSType"] = derived3.OSType; + } + + if (derived3.VHDId != null) + { + replicationProviderSettingsValue["vHDId"] = derived3.VHDId; + } + + if (derived3.StorageAccountName != null) + { + replicationProviderSettingsValue["storageAccountName"] = derived3.StorageAccountName; + } + + if (derived3.StorageAccountSubscriptionId != null) + { + replicationProviderSettingsValue["storageAccountSubscriptionId"] = derived3.StorageAccountSubscriptionId; + } + } } if (parameters.FailoverDirection != null) @@ -1236,7 +1561,7 @@ public async Task DisableProtectionAsync(string pr url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -1447,7 +1772,7 @@ public async Task EnableProtectionAsync(string pro url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -1509,63 +1834,63 @@ public async Task EnableProtectionAsync(string pro if (input.ProviderSettings != null) { - JObject providerSettingsValue = new JObject(); - enableProtectionInputValue["ProviderSettings"] = providerSettingsValue; + JObject replicationProviderInputValue = new JObject(); + enableProtectionInputValue["replicationProviderInput"] = replicationProviderInputValue; if (input.ProviderSettings is AzureEnableProtectionInput) { - providerSettingsValue["__type"] = "AzureEnableProtectionInput"; + replicationProviderInputValue["__type"] = "AzureEnableProtectionInput"; AzureEnableProtectionInput derived = ((AzureEnableProtectionInput)input.ProviderSettings); if (derived.HvHostVmId != null) { - providerSettingsValue["HvHostVmId"] = derived.HvHostVmId; + replicationProviderInputValue["hvHostVmId"] = derived.HvHostVmId; } if (derived.VmName != null) { - providerSettingsValue["vmName"] = derived.VmName; + replicationProviderInputValue["vmName"] = derived.VmName; } if (derived.OSType != null) { - providerSettingsValue["osType"] = derived.OSType; + replicationProviderInputValue["osType"] = derived.OSType; } if (derived.VHDId != null) { - providerSettingsValue["vHDId"] = derived.VHDId; + replicationProviderInputValue["vHDId"] = derived.VHDId; } } if (input.ProviderSettings is SanEnableProtectionInput) { - providerSettingsValue["__type"] = "SanEnableProtectionInput"; + replicationProviderInputValue["__type"] = "SanEnableProtectionInput"; SanEnableProtectionInput derived2 = ((SanEnableProtectionInput)input.ProviderSettings); if (derived2.FabricId != null) { - providerSettingsValue["fabricId"] = derived2.FabricId; + replicationProviderInputValue["fabricId"] = derived2.FabricId; } if (derived2.CloudId != null) { - providerSettingsValue["cloudId"] = derived2.CloudId; + replicationProviderInputValue["cloudId"] = derived2.CloudId; } if (derived2.FabricReplicationGroupId != null) { - providerSettingsValue["fabricReplicationGroupId"] = derived2.FabricReplicationGroupId; + replicationProviderInputValue["fabricReplicationGroupId"] = derived2.FabricReplicationGroupId; } if (derived2.ReplicationType != null) { - providerSettingsValue["replicationType"] = derived2.ReplicationType; + replicationProviderInputValue["replicationType"] = derived2.ReplicationType; } - providerSettingsValue["recoveryPointObjective"] = derived2.RecoveryPointObjective; + replicationProviderInputValue["recoveryPointObjective"] = derived2.RecoveryPointObjective; if (derived2.RemoteArrayId != null) { - providerSettingsValue["remoteArrayId"] = derived2.RemoteArrayId; + replicationProviderInputValue["remoteArrayId"] = derived2.RemoteArrayId; } } } @@ -1699,7 +2024,7 @@ public async Task GetAsync(string protectionContainerI url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -6384,7 +6709,7 @@ public async Task ListAsync(string protectionConta url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionProfileOperations.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionProfileOperations.cs index 304614f6a427..67b9ea5a5acb 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionProfileOperations.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ProtectionProfileOperations.cs @@ -30,6 +30,7 @@ using System.Threading; using System.Threading.Tasks; using Hyak.Common; +using Hyak.Common.Internals; using Microsoft.Azure; using Microsoft.Azure.Management.SiteRecovery; using Microsoft.Azure.Management.SiteRecovery.Models; @@ -193,7 +194,7 @@ public async Task BeginAssociatingAsync(string nam url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -369,7 +370,7 @@ public async Task BeginCreatingAsync(CreateProtect url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -489,18 +490,37 @@ public async Task BeginCreatingAsync(CreateProtect replicationProviderSettingsValue["recoveryPointHistoryDuration"] = derived2.RecoveryPointHistoryDuration; - replicationProviderSettingsValue["appConsistencyFreq"] = derived2.AppConsistencyFreq; + replicationProviderSettingsValue["applicationConsistentSnapshotFrequencyInHours"] = derived2.ApplicationConsistentSnapshotFrequencyInHours; replicationProviderSettingsValue["replicationInterval"] = derived2.ReplicationInterval; - if (derived2.OnlineIrStartTime != null) + if (derived2.OnlineReplicationStartTime != null) { - replicationProviderSettingsValue["onlineIrStartTime"] = derived2.OnlineIrStartTime.Value.ToString(); + replicationProviderSettingsValue["onlineReplicationStartTime"] = derived2.OnlineReplicationStartTime.Value.ToString(); } if (derived2.StorageAccounts != null) { - replicationProviderSettingsValue["storageAccounts"] = derived2.StorageAccounts.ToString(); + if (derived2.StorageAccounts is ILazyCollection == false || ((ILazyCollection)derived2.StorageAccounts).IsInitialized) + { + JArray storageAccountsArray = new JArray(); + foreach (CustomerStorageAccount storageAccountsItem in derived2.StorageAccounts) + { + JObject customerStorageAccountValue = new JObject(); + storageAccountsArray.Add(customerStorageAccountValue); + + if (storageAccountsItem.StorageAccountName != null) + { + customerStorageAccountValue["storageAccountName"] = storageAccountsItem.StorageAccountName; + } + + if (storageAccountsItem.SubscriptionId != null) + { + customerStorageAccountValue["subscriptionId"] = storageAccountsItem.SubscriptionId; + } + } + replicationProviderSettingsValue["storageAccounts"] = storageAccountsArray; + } } if (derived2.Encryption != null) @@ -655,7 +675,7 @@ public async Task BeginDeletingAsync(string name, url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -831,7 +851,7 @@ public async Task BeginDissociatingAsync(string na url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -890,7 +910,123 @@ public async Task BeginDissociatingAsync(string na if (input.ReplicationProviderSettings != null) { - disassociateProtectionProfileInputValue["replicationProviderSettings"] = input.ReplicationProviderSettings; + JObject replicationProviderSettingsValue = new JObject(); + disassociateProtectionProfileInputValue["replicationProviderSettings"] = replicationProviderSettingsValue; + if (input.ReplicationProviderSettings is HyperVReplicaProtectionProfileInput) + { + replicationProviderSettingsValue["__type"] = "HyperVReplicaProtectionProfileInput"; + HyperVReplicaProtectionProfileInput derived = ((HyperVReplicaProtectionProfileInput)input.ReplicationProviderSettings); + + replicationProviderSettingsValue["replicationFrequencyInSeconds"] = derived.ReplicationFrequencyInSeconds; + + replicationProviderSettingsValue["recoveryPoints"] = derived.RecoveryPoints; + + replicationProviderSettingsValue["applicationConsistentSnapshotFrequencyInHours"] = derived.ApplicationConsistentSnapshotFrequencyInHours; + + if (derived.Compression != null) + { + replicationProviderSettingsValue["compression"] = derived.Compression; + } + + if (derived.InitialReplicationMethod != null) + { + replicationProviderSettingsValue["initialReplicationMethod"] = derived.InitialReplicationMethod; + } + + if (derived.OnlineReplicationStartTime != null) + { + replicationProviderSettingsValue["onlineReplicationStartTime"] = derived.OnlineReplicationStartTime.Value.ToString(); + } + + if (derived.OfflineReplicationImportPath != null) + { + replicationProviderSettingsValue["offlineReplicationImportPath"] = derived.OfflineReplicationImportPath; + } + + if (derived.OfflineReplicationExportPath != null) + { + replicationProviderSettingsValue["offlineReplicationExportPath"] = derived.OfflineReplicationExportPath; + } + + replicationProviderSettingsValue["replicationPort"] = derived.ReplicationPort; + + replicationProviderSettingsValue["allowedAuthenticationType"] = derived.AllowedAuthenticationType; + + if (derived.ReplicaDeletion != null) + { + replicationProviderSettingsValue["replicaDeletion"] = derived.ReplicaDeletion; + } + } + if (input.ReplicationProviderSettings is HyperVReplicaAzureProtectionProfileInput) + { + replicationProviderSettingsValue["__type"] = "HyperVReplicaAzureProtectionProfileInput"; + HyperVReplicaAzureProtectionProfileInput derived2 = ((HyperVReplicaAzureProtectionProfileInput)input.ReplicationProviderSettings); + + replicationProviderSettingsValue["recoveryPointHistoryDuration"] = derived2.RecoveryPointHistoryDuration; + + replicationProviderSettingsValue["applicationConsistentSnapshotFrequencyInHours"] = derived2.ApplicationConsistentSnapshotFrequencyInHours; + + replicationProviderSettingsValue["replicationInterval"] = derived2.ReplicationInterval; + + if (derived2.OnlineReplicationStartTime != null) + { + replicationProviderSettingsValue["onlineReplicationStartTime"] = derived2.OnlineReplicationStartTime.Value.ToString(); + } + + if (derived2.StorageAccounts != null) + { + if (derived2.StorageAccounts is ILazyCollection == false || ((ILazyCollection)derived2.StorageAccounts).IsInitialized) + { + JArray storageAccountsArray = new JArray(); + foreach (CustomerStorageAccount storageAccountsItem in derived2.StorageAccounts) + { + JObject customerStorageAccountValue = new JObject(); + storageAccountsArray.Add(customerStorageAccountValue); + + if (storageAccountsItem.StorageAccountName != null) + { + customerStorageAccountValue["storageAccountName"] = storageAccountsItem.StorageAccountName; + } + + if (storageAccountsItem.SubscriptionId != null) + { + customerStorageAccountValue["subscriptionId"] = storageAccountsItem.SubscriptionId; + } + } + replicationProviderSettingsValue["storageAccounts"] = storageAccountsArray; + } + } + + if (derived2.Encryption != null) + { + replicationProviderSettingsValue["encryption"] = derived2.Encryption; + } + } + if (input.ReplicationProviderSettings is SanProtectionProfileInput) + { + replicationProviderSettingsValue["__type"] = "SanProtectionProfileInput"; + SanProtectionProfileInput derived3 = ((SanProtectionProfileInput)input.ReplicationProviderSettings); + + if (derived3.CloudId != null) + { + replicationProviderSettingsValue["cloudId"] = derived3.CloudId; + } + + if (derived3.RemoteCloudId != null) + { + replicationProviderSettingsValue["remoteCloudId"] = derived3.RemoteCloudId; + } + + if (derived3.ArrayUniqueId != null) + { + replicationProviderSettingsValue["arrayUniqueId"] = derived3.ArrayUniqueId; + } + + if (derived3.RemoteArrayUniqueId != null) + { + replicationProviderSettingsValue["remoteArrayUniqueId"] = derived3.RemoteArrayUniqueId; + } + } } disassociateProtectionProfileInputValue["primaryProtectionContainerId"] = input.PrimaryProtectionContainerId; @@ -1029,7 +1165,7 @@ public async Task BeginUpdatingAsync(UpdateProtect url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -1134,18 +1270,37 @@ public async Task BeginUpdatingAsync(UpdateProtect replicationProviderSettingsValue["recoveryPointHistoryDuration"] = derived2.RecoveryPointHistoryDuration; - replicationProviderSettingsValue["appConsistencyFreq"] = derived2.AppConsistencyFreq; + replicationProviderSettingsValue["applicationConsistentSnapshotFrequencyInHours"] = derived2.ApplicationConsistentSnapshotFrequencyInHours; replicationProviderSettingsValue["replicationInterval"] = derived2.ReplicationInterval; - if (derived2.OnlineIrStartTime != null) + if (derived2.OnlineReplicationStartTime != null) { - replicationProviderSettingsValue["onlineIrStartTime"] = derived2.OnlineIrStartTime.Value.ToString(); + replicationProviderSettingsValue["onlineReplicationStartTime"] = derived2.OnlineReplicationStartTime.Value.ToString(); } if (derived2.StorageAccounts != null) { - replicationProviderSettingsValue["storageAccounts"] = derived2.StorageAccounts.ToString(); + if (derived2.StorageAccounts is ILazyCollection == false || ((ILazyCollection)derived2.StorageAccounts).IsInitialized) + { + JArray storageAccountsArray = new JArray(); + foreach (CustomerStorageAccount storageAccountsItem in derived2.StorageAccounts) + { + JObject customerStorageAccountValue = new JObject(); + storageAccountsArray.Add(customerStorageAccountValue); + + if (storageAccountsItem.StorageAccountName != null) + { + customerStorageAccountValue["storageAccountName"] = storageAccountsItem.StorageAccountName; + } + + if (storageAccountsItem.SubscriptionId != null) + { + customerStorageAccountValue["subscriptionId"] = storageAccountsItem.SubscriptionId; + } + } + replicationProviderSettingsValue["storageAccounts"] = storageAccountsArray; + } } if (derived2.Encryption != null) @@ -1492,7 +1647,7 @@ public async Task GetAsync(string protectionProfileId url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -4091,7 +4246,7 @@ public async Task ListAsync(CustomRequestHeaders url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/RecoveryPlanOperations.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/RecoveryPlanOperations.cs index e145a3a2406b..ffc5cd3fe828 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/RecoveryPlanOperations.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/RecoveryPlanOperations.cs @@ -110,7 +110,7 @@ public async Task BeginCommitAsync(string name, Cu url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -275,7 +275,7 @@ public async Task BeginCreateRecoveryPlanAsync(Rec url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -447,7 +447,7 @@ public async Task BeginDeleteAsync(string name, Cu url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -615,7 +615,7 @@ public async Task BeginRecoveryPlanPlannedFailover url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -679,7 +679,7 @@ public async Task BeginRecoveryPlanPlannedFailover if (input.ReplicationProviderSettings != null) { - rpPlannedFailoverRequestValue["replicationProviderSettings"] = input.ReplicationProviderSettings; + rpPlannedFailoverRequestValue["replicationProviderSettings"] = input.ReplicationProviderSettings.ToString(); } requestContent = requestDoc.ToString(Newtonsoft.Json.Formatting.Indented); @@ -818,7 +818,7 @@ public async Task BeginRecoveryPlanTestFailoverAsy url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -882,7 +882,7 @@ public async Task BeginRecoveryPlanTestFailoverAsy if (input.ReplicationProviderSettings != null) { - rpTestFailoverRequestValue["replicationProviderSettings"] = input.ReplicationProviderSettings; + rpTestFailoverRequestValue["replicationProviderSettings"] = input.ReplicationProviderSettings.ToString(); } rpTestFailoverRequestValue["networkType"] = input.NetworkType; @@ -1021,7 +1021,7 @@ public async Task BeginRecoveryPlanUnplannedFailov url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -1085,7 +1085,7 @@ public async Task BeginRecoveryPlanUnplannedFailov if (input.ReplicationProviderSettings != null) { - rpUnplannedFailoverRequestValue["replicationProviderSettings"] = input.ReplicationProviderSettings; + rpUnplannedFailoverRequestValue["replicationProviderSettings"] = input.ReplicationProviderSettings.ToString(); } rpUnplannedFailoverRequestValue["sourceSiteOperations"] = input.SourceSiteOperations; @@ -1210,7 +1210,7 @@ public async Task BeginReprotectAsync(string name, url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -1375,7 +1375,7 @@ public async Task BeginUpdateRecoveryPlanAsync(Rec url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -1736,7 +1736,7 @@ public async Task GetAsync(string name, CustomRequestHeade url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -3724,7 +3724,7 @@ public async Task GetRecoveryPlanXmlAsync(string name, Cus url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -4133,7 +4133,7 @@ public async Task ListAsync(CustomRequestHeaders custo url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/RecoveryServicesManagementClient.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/RecoveryServicesManagementClient.cs index 06a5c505543f..55c79631f6a9 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/RecoveryServicesManagementClient.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/RecoveryServicesManagementClient.cs @@ -90,6 +90,14 @@ public int LongRunningOperationRetryTimeout set { this._longRunningOperationRetryTimeout = value; } } + private string _resourceNamespace; + + public string ResourceNamespace + { + get { return this._resourceNamespace; } + set { this._resourceNamespace = value; } + } + private IResourceGroupsOperations _resourceGroup; /// @@ -142,6 +150,9 @@ public RecoveryServicesManagementClient() /// Initializes a new instance of the RecoveryServicesManagementClient /// class. /// + /// + /// Required. + /// /// /// Required. Gets subscription credentials which uniquely identify /// Microsoft Azure subscription. The subscription ID forms part of @@ -151,9 +162,13 @@ public RecoveryServicesManagementClient() /// Optional. Gets the URI used as the base for all cloud service /// requests. /// - public RecoveryServicesManagementClient(SubscriptionCloudCredentials credentials, Uri baseUri) + public RecoveryServicesManagementClient(string resourceNamespace, SubscriptionCloudCredentials credentials, Uri baseUri) : this() { + if (resourceNamespace == null) + { + throw new ArgumentNullException("resourceNamespace"); + } if (credentials == null) { throw new ArgumentNullException("credentials"); @@ -162,6 +177,7 @@ public RecoveryServicesManagementClient(SubscriptionCloudCredentials credentials { throw new ArgumentNullException("baseUri"); } + this._resourceNamespace = resourceNamespace; this._credentials = credentials; this._baseUri = baseUri; @@ -172,18 +188,26 @@ public RecoveryServicesManagementClient(SubscriptionCloudCredentials credentials /// Initializes a new instance of the RecoveryServicesManagementClient /// class. /// + /// + /// Required. + /// /// /// Required. Gets subscription credentials which uniquely identify /// Microsoft Azure subscription. The subscription ID forms part of /// the URI for every service call. /// - public RecoveryServicesManagementClient(SubscriptionCloudCredentials credentials) + public RecoveryServicesManagementClient(string resourceNamespace, SubscriptionCloudCredentials credentials) : this() { + if (resourceNamespace == null) + { + throw new ArgumentNullException("resourceNamespace"); + } if (credentials == null) { throw new ArgumentNullException("credentials"); } + this._resourceNamespace = resourceNamespace; this._credentials = credentials; this._baseUri = new Uri("https://management.core.windows.net"); @@ -213,6 +237,9 @@ public RecoveryServicesManagementClient(HttpClient httpClient) /// Initializes a new instance of the RecoveryServicesManagementClient /// class. /// + /// + /// Required. + /// /// /// Required. Gets subscription credentials which uniquely identify /// Microsoft Azure subscription. The subscription ID forms part of @@ -225,9 +252,13 @@ public RecoveryServicesManagementClient(HttpClient httpClient) /// /// The Http client /// - public RecoveryServicesManagementClient(SubscriptionCloudCredentials credentials, Uri baseUri, HttpClient httpClient) + public RecoveryServicesManagementClient(string resourceNamespace, SubscriptionCloudCredentials credentials, Uri baseUri, HttpClient httpClient) : this(httpClient) { + if (resourceNamespace == null) + { + throw new ArgumentNullException("resourceNamespace"); + } if (credentials == null) { throw new ArgumentNullException("credentials"); @@ -236,6 +267,7 @@ public RecoveryServicesManagementClient(SubscriptionCloudCredentials credentials { throw new ArgumentNullException("baseUri"); } + this._resourceNamespace = resourceNamespace; this._credentials = credentials; this._baseUri = baseUri; @@ -246,6 +278,9 @@ public RecoveryServicesManagementClient(SubscriptionCloudCredentials credentials /// Initializes a new instance of the RecoveryServicesManagementClient /// class. /// + /// + /// Required. + /// /// /// Required. Gets subscription credentials which uniquely identify /// Microsoft Azure subscription. The subscription ID forms part of @@ -254,13 +289,18 @@ public RecoveryServicesManagementClient(SubscriptionCloudCredentials credentials /// /// The Http client /// - public RecoveryServicesManagementClient(SubscriptionCloudCredentials credentials, HttpClient httpClient) + public RecoveryServicesManagementClient(string resourceNamespace, SubscriptionCloudCredentials credentials, HttpClient httpClient) : this(httpClient) { + if (resourceNamespace == null) + { + throw new ArgumentNullException("resourceNamespace"); + } if (credentials == null) { throw new ArgumentNullException("credentials"); } + this._resourceNamespace = resourceNamespace; this._credentials = credentials; this._baseUri = new Uri("https://management.core.windows.net"); @@ -282,6 +322,7 @@ protected override void Clone(ServiceClient cl { RecoveryServicesManagementClient clonedClient = ((RecoveryServicesManagementClient)client); + clonedClient._resourceNamespace = this._resourceNamespace; clonedClient._credentials = this._credentials; clonedClient._baseUri = this._baseUri; clonedClient._apiVersion = this._apiVersion; diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ServerOperations.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ServerOperations.cs index 4dfb57affaf7..59f04083997e 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ServerOperations.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/ServerOperations.cs @@ -105,7 +105,7 @@ public async Task GetAsync(string serverId, CustomRequestHeaders url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -355,7 +355,7 @@ public async Task ListAsync(CustomRequestHeaders customReque url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(this.Client.ResourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/SiteRecoveryManagementClient.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/SiteRecoveryManagementClient.cs index 948b21678947..9c135dba6ad3 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/SiteRecoveryManagementClient.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/SiteRecoveryManagementClient.cs @@ -50,14 +50,6 @@ public Uri BaseUri get { return this._baseUri; } } - private string _cloudServiceName; - - public string CloudServiceName - { - get { return this._cloudServiceName; } - set { this._cloudServiceName = value; } - } - private SubscriptionCloudCredentials _credentials; /// @@ -108,6 +100,14 @@ public string ResourceName set { this._resourceName = value; } } + private string _resourceNamespace; + + public string ResourceNamespace + { + get { return this._resourceNamespace; } + set { this._resourceNamespace = value; } + } + private IJobOperations _jobs; /// @@ -195,15 +195,15 @@ public SiteRecoveryManagementClient() /// Initializes a new instance of the SiteRecoveryManagementClient /// class. /// - /// - /// Required. - /// /// /// Required. /// /// /// Required. /// + /// + /// Required. + /// /// /// Required. Gets subscription credentials which uniquely identify /// Microsoft Azure subscription. The subscription ID forms part of @@ -213,13 +213,9 @@ public SiteRecoveryManagementClient() /// Optional. Gets the URI used as the base for all cloud service /// requests. /// - public SiteRecoveryManagementClient(string cloudServiceName, string resourceName, string resourceGroupName, SubscriptionCloudCredentials credentials, Uri baseUri) + public SiteRecoveryManagementClient(string resourceName, string resourceGroupName, string resourceNamespace, SubscriptionCloudCredentials credentials, Uri baseUri) : this() { - if (cloudServiceName == null) - { - throw new ArgumentNullException("cloudServiceName"); - } if (resourceName == null) { throw new ArgumentNullException("resourceName"); @@ -228,6 +224,10 @@ public SiteRecoveryManagementClient(string cloudServiceName, string resourceName { throw new ArgumentNullException("resourceGroupName"); } + if (resourceNamespace == null) + { + throw new ArgumentNullException("resourceNamespace"); + } if (credentials == null) { throw new ArgumentNullException("credentials"); @@ -236,9 +236,9 @@ public SiteRecoveryManagementClient(string cloudServiceName, string resourceName { throw new ArgumentNullException("baseUri"); } - this._cloudServiceName = cloudServiceName; this._resourceName = resourceName; this._resourceGroupName = resourceGroupName; + this._resourceNamespace = resourceNamespace; this._credentials = credentials; this._baseUri = baseUri; @@ -249,27 +249,23 @@ public SiteRecoveryManagementClient(string cloudServiceName, string resourceName /// Initializes a new instance of the SiteRecoveryManagementClient /// class. /// - /// - /// Required. - /// /// /// Required. /// /// /// Required. /// + /// + /// Required. + /// /// /// Required. Gets subscription credentials which uniquely identify /// Microsoft Azure subscription. The subscription ID forms part of /// the URI for every service call. /// - public SiteRecoveryManagementClient(string cloudServiceName, string resourceName, string resourceGroupName, SubscriptionCloudCredentials credentials) + public SiteRecoveryManagementClient(string resourceName, string resourceGroupName, string resourceNamespace, SubscriptionCloudCredentials credentials) : this() { - if (cloudServiceName == null) - { - throw new ArgumentNullException("cloudServiceName"); - } if (resourceName == null) { throw new ArgumentNullException("resourceName"); @@ -278,13 +274,17 @@ public SiteRecoveryManagementClient(string cloudServiceName, string resourceName { throw new ArgumentNullException("resourceGroupName"); } + if (resourceNamespace == null) + { + throw new ArgumentNullException("resourceNamespace"); + } if (credentials == null) { throw new ArgumentNullException("credentials"); } - this._cloudServiceName = cloudServiceName; this._resourceName = resourceName; this._resourceGroupName = resourceGroupName; + this._resourceNamespace = resourceNamespace; this._credentials = credentials; this._baseUri = new Uri("https://management.core.windows.net"); @@ -317,15 +317,15 @@ public SiteRecoveryManagementClient(HttpClient httpClient) /// Initializes a new instance of the SiteRecoveryManagementClient /// class. /// - /// - /// Required. - /// /// /// Required. /// /// /// Required. /// + /// + /// Required. + /// /// /// Required. Gets subscription credentials which uniquely identify /// Microsoft Azure subscription. The subscription ID forms part of @@ -338,13 +338,9 @@ public SiteRecoveryManagementClient(HttpClient httpClient) /// /// The Http client /// - public SiteRecoveryManagementClient(string cloudServiceName, string resourceName, string resourceGroupName, SubscriptionCloudCredentials credentials, Uri baseUri, HttpClient httpClient) + public SiteRecoveryManagementClient(string resourceName, string resourceGroupName, string resourceNamespace, SubscriptionCloudCredentials credentials, Uri baseUri, HttpClient httpClient) : this(httpClient) { - if (cloudServiceName == null) - { - throw new ArgumentNullException("cloudServiceName"); - } if (resourceName == null) { throw new ArgumentNullException("resourceName"); @@ -353,6 +349,10 @@ public SiteRecoveryManagementClient(string cloudServiceName, string resourceName { throw new ArgumentNullException("resourceGroupName"); } + if (resourceNamespace == null) + { + throw new ArgumentNullException("resourceNamespace"); + } if (credentials == null) { throw new ArgumentNullException("credentials"); @@ -361,9 +361,9 @@ public SiteRecoveryManagementClient(string cloudServiceName, string resourceName { throw new ArgumentNullException("baseUri"); } - this._cloudServiceName = cloudServiceName; this._resourceName = resourceName; this._resourceGroupName = resourceGroupName; + this._resourceNamespace = resourceNamespace; this._credentials = credentials; this._baseUri = baseUri; @@ -374,15 +374,15 @@ public SiteRecoveryManagementClient(string cloudServiceName, string resourceName /// Initializes a new instance of the SiteRecoveryManagementClient /// class. /// - /// - /// Required. - /// /// /// Required. /// /// /// Required. /// + /// + /// Required. + /// /// /// Required. Gets subscription credentials which uniquely identify /// Microsoft Azure subscription. The subscription ID forms part of @@ -391,13 +391,9 @@ public SiteRecoveryManagementClient(string cloudServiceName, string resourceName /// /// The Http client /// - public SiteRecoveryManagementClient(string cloudServiceName, string resourceName, string resourceGroupName, SubscriptionCloudCredentials credentials, HttpClient httpClient) + public SiteRecoveryManagementClient(string resourceName, string resourceGroupName, string resourceNamespace, SubscriptionCloudCredentials credentials, HttpClient httpClient) : this(httpClient) { - if (cloudServiceName == null) - { - throw new ArgumentNullException("cloudServiceName"); - } if (resourceName == null) { throw new ArgumentNullException("resourceName"); @@ -406,13 +402,17 @@ public SiteRecoveryManagementClient(string cloudServiceName, string resourceName { throw new ArgumentNullException("resourceGroupName"); } + if (resourceNamespace == null) + { + throw new ArgumentNullException("resourceNamespace"); + } if (credentials == null) { throw new ArgumentNullException("credentials"); } - this._cloudServiceName = cloudServiceName; this._resourceName = resourceName; this._resourceGroupName = resourceGroupName; + this._resourceNamespace = resourceNamespace; this._credentials = credentials; this._baseUri = new Uri("https://management.core.windows.net"); @@ -434,9 +434,9 @@ protected override void Clone(ServiceClient client { SiteRecoveryManagementClient clonedClient = ((SiteRecoveryManagementClient)client); - clonedClient._cloudServiceName = this._cloudServiceName; clonedClient._resourceName = this._resourceName; clonedClient._resourceGroupName = this._resourceGroupName; + clonedClient._resourceNamespace = this._resourceNamespace; clonedClient._credentials = this._credentials; clonedClient._baseUri = this._baseUri; clonedClient._apiVersion = this._apiVersion; diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/VaultExtendedInfoOperations.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/VaultExtendedInfoOperations.cs index 18d13f859040..d2bf942cd0d6 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/VaultExtendedInfoOperations.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/VaultExtendedInfoOperations.cs @@ -140,7 +140,7 @@ public async Task CreateExtendedInfoAsync(string resourc url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(resourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -311,7 +311,7 @@ public async Task GetExtendedInfoAsync(stri url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(resourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -550,7 +550,7 @@ public async Task UpdateExtendedInfoAsync(s url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(resourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -790,7 +790,7 @@ public async Task UploadCertificateAsync(string resou url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(resourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/VaultOperations.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/VaultOperations.cs index db48c8a50278..e73e229c1d03 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/VaultOperations.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/VaultOperations.cs @@ -121,7 +121,7 @@ public async Task BeginCreatingAsync(string resourceGroupNa url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(resourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -408,7 +408,7 @@ public async Task BeginDeletingAsync(st url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(resourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/"; url = url + "SiteRecoveryVault"; url = url + "/"; @@ -742,7 +742,7 @@ public async Task GetAsync(string resourceGroupName, CustomRe url = url + "/resourceGroups/"; url = url + Uri.EscapeDataString(resourceGroupName); url = url + "/providers/"; - url = url + "Microsoft.SiteRecovery"; + url = url + Uri.EscapeDataString(this.Client.ResourceNamespace); url = url + "/SiteRecoveryVault"; List queryParameters = new List(); queryParameters.Add("api-version=2015-03-15"); diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Microsoft.Azure.Management.SiteRecovery.nuget.proj b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Microsoft.Azure.Management.SiteRecovery.nuget.proj index 0e927586b52b..57879af63d8c 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Microsoft.Azure.Management.SiteRecovery.nuget.proj +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Microsoft.Azure.Management.SiteRecovery.nuget.proj @@ -5,7 +5,7 @@ Microsoft.Azure.Management.SiteRecovery --> - 0.1.0-preview + 0.1.1-preview $(MSBuildThisFileDirectory) diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Properties/AssemblyInfo.cs b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Properties/AssemblyInfo.cs index 686c6c24f466..103cbbcbc1c9 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Properties/AssemblyInfo.cs +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Properties/AssemblyInfo.cs @@ -19,7 +19,7 @@ [assembly: AssemblyDescription("Hydra specification for Recovery services Management")] [assembly: AssemblyVersion("0.9.0.0")] -[assembly: AssemblyFileVersion("0.1.0.0")] +[assembly: AssemblyFileVersion("0.1.1.0")] [assembly: AssemblyCompany("Microsoft Corporation")] [assembly: AssemblyProduct("Windows Azure")] diff --git a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/SiteRecoveryManagement.csproj b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/SiteRecoveryManagement.csproj index f970f2d0423b..f4edb2ce3bd8 100644 --- a/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/SiteRecoveryManagement.csproj +++ b/src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/SiteRecoveryManagement.csproj @@ -31,7 +31,10 @@ + + + @@ -40,6 +43,9 @@ + + Code + @@ -163,7 +169,9 @@ Designer - + + Designer + diff --git a/src/Search/Search.Tests/Search.Tests.csproj b/src/Search/Search.Tests/Search.Tests.csproj index 9aaa7ba1a980..f058d82300e2 100644 --- a/src/Search/Search.Tests/Search.Tests.csproj +++ b/src/Search/Search.Tests/Search.Tests.csproj @@ -232,6 +232,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest @@ -280,6 +283,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest diff --git a/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.IndexingTests/DynamicDocumentDateTimesRoundTripAsUtc.json b/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.IndexingTests/DynamicDocumentDateTimesRoundTripAsUtc.json index d8b6446ad8df..f8ee429453b5 100644 --- a/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.IndexingTests/DynamicDocumentDateTimesRoundTripAsUtc.json +++ b/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.IndexingTests/DynamicDocumentDateTimesRoundTripAsUtc.json @@ -10,10 +10,10 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "1071" + "1145" ], "Content-Type": [ "application/json; charset=utf-8" @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1151" + "1199" ], "x-ms-request-id": [ - "01da9b77-62f5-4011-99ff-f12a088b8735" + "4bee5fb8-e669-465d-aa5b-3cd4f77f9a7f" ], "x-ms-correlation-request-id": [ - "01da9b77-62f5-4011-99ff-f12a088b8735" + "4bee5fb8-e669-465d-aa5b-3cd4f77f9a7f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T005022Z:01da9b77-62f5-4011-99ff-f12a088b8735" + "CENTRALUS:20150818T225722Z:4bee5fb8-e669-465d-aa5b-3cd4f77f9a7f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:50:22 GMT" + "Tue, 18 Aug 2015 22:57:21 GMT" ] }, "StatusCode": 200 @@ -58,10 +58,10 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "1071" + "1145" ], "Content-Type": [ "application/json; charset=utf-8" @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" + "14999" ], "x-ms-request-id": [ - "fbd2b5f1-a1fe-49f5-aef8-5a200ec7d374" + "4bd1bbe0-5de7-467e-9698-f4a8c71ac2d9" ], "x-ms-correlation-request-id": [ - "fbd2b5f1-a1fe-49f5-aef8-5a200ec7d374" + "4bd1bbe0-5de7-467e-9698-f4a8c71ac2d9" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T005022Z:fbd2b5f1-a1fe-49f5-aef8-5a200ec7d374" + "CENTRALUS:20150818T225722Z:4bd1bbe0-5de7-467e-9698-f4a8c71ac2d9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,14 +91,14 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:50:22 GMT" + "Tue, 18 Aug 2015 22:57:21 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourcegroups/azsmnet8619?api-version=2014-04-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlZ3JvdXBzL2F6c21uZXQ4NjE5P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourcegroups/azsmnet3795?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlZ3JvdXBzL2F6c21uZXQzNzk1P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", "RequestHeaders": { @@ -112,7 +112,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet8619\",\r\n \"name\": \"azsmnet8619\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet3795\",\r\n \"name\": \"azsmnet3795\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "175" @@ -127,16 +127,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1150" + "1198" ], "x-ms-request-id": [ - "4ab0ceb9-b51a-4160-93e3-464b4bbce199" + "f8530ad5-c908-425b-9c76-a9bffe495c9f" ], "x-ms-correlation-request-id": [ - "4ab0ceb9-b51a-4160-93e3-464b4bbce199" + "f8530ad5-c908-425b-9c76-a9bffe495c9f" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T005022Z:4ab0ceb9-b51a-4160-93e3-464b4bbce199" + "CENTRALUS:20150818T225722Z:f8530ad5-c908-425b-9c76-a9bffe495c9f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -145,14 +145,14 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:50:22 GMT" + "Tue, 18 Aug 2015 22:57:22 GMT" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet8619/providers/Microsoft.Search/searchServices/azs-1995?api-version=2015-02-28", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ4NjE5L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy0xOTk1P2FwaS12ZXJzaW9uPTIwMTUtMDItMjg=", + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet3795/providers/Microsoft.Search/searchServices/azs-8776?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQzNzk1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy04Nzc2P2FwaS12ZXJzaW9uPTIwMTUtMDItMjg=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"West US\",\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"free\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -169,7 +169,7 @@ "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet8619/providers/Microsoft.Search/searchServices/azs-1995\",\r\n \"name\": \"azs-1995\",\r\n \"type\": \"Microsoft.Search/searchServices\",\r\n \"location\": \"West US\",\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"free\"\r\n },\r\n \"replicaCount\": 1,\r\n \"partitionCount\": 1,\r\n \"status\": \"running\",\r\n \"statusDetails\": null,\r\n \"provisioningState\": \"succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet3795/providers/Microsoft.Search/searchServices/azs-8776\",\r\n \"name\": \"azs-8776\",\r\n \"type\": \"Microsoft.Search/searchServices\",\r\n \"location\": \"West US\",\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"free\"\r\n },\r\n \"replicaCount\": 1,\r\n \"partitionCount\": 1,\r\n \"status\": \"running\",\r\n \"statusDetails\": null,\r\n \"provisioningState\": \"succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "363" @@ -184,34 +184,34 @@ "no-cache" ], "request-id": [ - "3b3f89a4-3505-4d49-8198-42b0a7dbf7e7" + "37e5791b-e042-48d3-a7a0-41bdc8316e64" ], "elapsed-time": [ - "1500" + "2164" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1153" + "1199" ], "x-ms-request-id": [ - "eef4026f-879a-44de-8aae-5c0566ae0c77" + "f661b3cb-15f5-40aa-880f-3dcd20a32b45" ], "x-ms-correlation-request-id": [ - "eef4026f-879a-44de-8aae-5c0566ae0c77" + "f661b3cb-15f5-40aa-880f-3dcd20a32b45" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T005027Z:eef4026f-879a-44de-8aae-5c0566ae0c77" + "CENTRALUS:20150818T225726Z:f661b3cb-15f5-40aa-880f-3dcd20a32b45" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:50:26 GMT" + "Tue, 18 Aug 2015 22:57:26 GMT" ], "ETag": [ - "W/\"datetime'2015-05-26T00%3A50%3A26.299924Z'\"" + "W/\"datetime'2015-08-18T22%3A57%3A26.3339577Z'\"" ], "X-AspNet-Version": [ "4.0.30319" @@ -220,8 +220,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet8619/providers/Microsoft.Search/searchServices/azs-1995/listAdminKeys?api-version=2015-02-28", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ4NjE5L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy0xOTk1L2xpc3RBZG1pbktleXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet3795/providers/Microsoft.Search/searchServices/azs-8776/listAdminKeys?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQzNzk1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy04Nzc2L2xpc3RBZG1pbktleXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { @@ -232,7 +232,7 @@ "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"primaryKey\": \"4C50A418D58FF164BA0C0289A0058C25\",\r\n \"secondaryKey\": \"BDD8E0BABEBB284B139A8DCB0205B435\"\r\n}", + "ResponseBody": "{\r\n \"primaryKey\": \"3D46E4F0F2EF1C2B95D5A473C32671BE\",\r\n \"secondaryKey\": \"416CC4EA9E7BEC7E8BE392251093BD63\"\r\n}", "ResponseHeaders": { "Content-Length": [ "99" @@ -247,31 +247,31 @@ "no-cache" ], "request-id": [ - "cbbde143-e745-4b06-aee0-f1b7abddc8d8" + "74c74d37-b422-4610-b1a6-0bdbb9d9ed03" ], "elapsed-time": [ - "501" + "340" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1152" + "1198" ], "x-ms-request-id": [ - "7cc2029b-3c37-414e-913b-044a76da1a4d" + "eb6b4d7f-2ea9-40a1-a3cc-d6db082d3d74" ], "x-ms-correlation-request-id": [ - "7cc2029b-3c37-414e-913b-044a76da1a4d" + "eb6b4d7f-2ea9-40a1-a3cc-d6db082d3d74" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T005027Z:7cc2029b-3c37-414e-913b-044a76da1a4d" + "CENTRALUS:20150818T225727Z:eb6b4d7f-2ea9-40a1-a3cc-d6db082d3d74" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:50:26 GMT" + "Tue, 18 Aug 2015 22:57:26 GMT" ], "X-AspNet-Version": [ "4.0.30319" @@ -280,8 +280,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet8619/providers/Microsoft.Search/searchServices/azs-1995/listQueryKeys?api-version=2015-02-28", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ4NjE5L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy0xOTk1L2xpc3RRdWVyeUtleXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet3795/providers/Microsoft.Search/searchServices/azs-8776/listQueryKeys?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQzNzk1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy04Nzc2L2xpc3RRdWVyeUtleXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": null,\r\n \"key\": \"45053CDFB5094A8D5615C8C1D0E15EB3\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": null,\r\n \"key\": \"43E14FEF469FF550714872A6E7EBA72A\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ "82" @@ -307,31 +307,31 @@ "no-cache" ], "request-id": [ - "82406e9c-fc04-41ed-a84f-a40e169e07cd" + "ce369154-cee1-4790-9590-a045d07a9d04" ], "elapsed-time": [ - "250" + "261" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" + "14999" ], "x-ms-request-id": [ - "f8994efc-610b-4eb9-9935-7e8e0ef8f00e" + "d26e103a-b03c-452d-a26c-58dc45672768" ], "x-ms-correlation-request-id": [ - "f8994efc-610b-4eb9-9935-7e8e0ef8f00e" + "d26e103a-b03c-452d-a26c-58dc45672768" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T005028Z:f8994efc-610b-4eb9-9935-7e8e0ef8f00e" + "CENTRALUS:20150818T225727Z:d26e103a-b03c-452d-a26c-58dc45672768" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:50:28 GMT" + "Tue, 18 Aug 2015 22:57:27 GMT" ], "X-AspNet-Version": [ "4.0.30319" @@ -343,28 +343,28 @@ "RequestUri": "/indexes?api-version=2015-02-28", "EncodedRequestUri": "L2luZGV4ZXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"azsmnet8111\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"functions\": [\r\n {\r\n \"type\": \"distance\",\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"fieldName\": \"location\",\r\n \"boost\": 2.0,\r\n \"interpolation\": \"linear\"\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"name\": \"azsmnet373\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"functions\": [\r\n {\r\n \"type\": \"distance\",\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"fieldName\": \"location\",\r\n \"boost\": 2.0,\r\n \"interpolation\": \"linear\"\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ - "3439" + "3438" ], "Accept": [ "application/json; odata.metadata=none" ], "api-key": [ - "4C50A418D58FF164BA0C0289A0058C25" + "3D46E4F0F2EF1C2B95D5A473C32671BE" ], "User-Agent": [ "Microsoft.Azure.Search.SearchServiceClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"azsmnet8111\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"text\": null,\r\n \"functions\": [\r\n {\r\n \"fieldName\": \"location\",\r\n \"freshness\": null,\r\n \"interpolation\": \"linear\",\r\n \"magnitude\": null,\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"tag\": null,\r\n \"type\": \"distance\",\r\n \"boost\": 2.0\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"name\": \"azsmnet373\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"text\": null,\r\n \"functions\": [\r\n {\r\n \"fieldName\": \"location\",\r\n \"freshness\": null,\r\n \"interpolation\": \"linear\",\r\n \"magnitude\": null,\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"tag\": null,\r\n \"type\": \"distance\",\r\n \"boost\": 2.0\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "2428" + "2427" ], "Content-Type": [ "application/json; odata.metadata=none" @@ -376,10 +376,10 @@ "no-cache" ], "request-id": [ - "a44ce0f0-6e9d-4527-9d78-bc58b9c2e8b6" + "bc82b175-0801-4ded-a631-f7897d94fee7" ], "elapsed-time": [ - "1184" + "1653" ], "OData-Version": [ "4.0" @@ -394,10 +394,10 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:50:32 GMT" + "Tue, 18 Aug 2015 22:57:30 GMT" ], "Location": [ - "https://azs-1995.search-dogfood.windows-int.net/indexes('azsmnet8111')?api-version=2015-02-28" + "https://azs-8776.search-dogfood.windows-int.net/indexes('azsmnet373')?api-version=2015-02-28" ] }, "StatusCode": 201 @@ -406,7 +406,7 @@ "RequestUri": "/indexes?api-version=2015-02-28", "EncodedRequestUri": "L2luZGV4ZXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"azsmnet2106\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"suggesters\": []\r\n}", + "RequestBody": "{\r\n \"name\": \"azsmnet2404\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"suggesters\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json" @@ -418,13 +418,13 @@ "application/json; odata.metadata=none" ], "api-key": [ - "4C50A418D58FF164BA0C0289A0058C25" + "3D46E4F0F2EF1C2B95D5A473C32671BE" ], "User-Agent": [ "Microsoft.Azure.Search.SearchServiceClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"azsmnet2106\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": []\r\n}", + "ResponseBody": "{\r\n \"name\": \"azsmnet2404\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": []\r\n}", "ResponseHeaders": { "Content-Length": [ "444" @@ -439,10 +439,10 @@ "no-cache" ], "request-id": [ - "a3af0664-0772-42e3-84b9-f4cf35565497" + "6ee4e6fd-1e39-43a0-a5dc-c87157bbc359" ], "elapsed-time": [ - "1001" + "1983" ], "OData-Version": [ "4.0" @@ -457,40 +457,40 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:50:55 GMT" + "Tue, 18 Aug 2015 22:57:52 GMT" ], "Location": [ - "https://azs-1995.search-dogfood.windows-int.net/indexes('azsmnet2106')?api-version=2015-02-28" + "https://azs-8776.search-dogfood.windows-int.net/indexes('azsmnet2404')?api-version=2015-02-28" ] }, "StatusCode": 201 }, { - "RequestUri": "/indexes/azsmnet2106/docs/search.index?api-version=2015-02-28", - "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDIxMDYvZG9jcy9zZWFyY2guaW5kZXg/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestUri": "/indexes/azsmnet2404/docs/search.index?api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDI0MDQvZG9jcy9zZWFyY2guaW5kZXg/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"value\": [\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"1\",\r\n \"PublishDate\": \"2000-01-01T00:00:00-08:00\"\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"2\",\r\n \"PublishDate\": \"1999-12-31T16:00:00-08:00\"\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"3\",\r\n \"PublishDate\": \"1999-12-31T16:00:00-08:00\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"value\": [\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"1\",\r\n \"PublishDate\": \"1999-12-31T16:00:00-08:00\"\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"2\",\r\n \"PublishDate\": \"1999-12-31T16:00:00-08:00\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ - "382" + "262" ], "Accept": [ "application/json; odata.metadata=none" ], "api-key": [ - "4C50A418D58FF164BA0C0289A0058C25" + "3D46E4F0F2EF1C2B95D5A473C32671BE" ], "User-Agent": [ "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"key\": \"1\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"2\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"3\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"key\": \"1\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"2\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "149" + "103" ], "Content-Type": [ "application/json; odata.metadata=none" @@ -502,10 +502,10 @@ "no-cache" ], "request-id": [ - "375643c0-9ce3-47fa-966c-31846249c2c8" + "3f927b76-9176-40b4-848b-b70e8557da89" ], "elapsed-time": [ - "114" + "173" ], "OData-Version": [ "4.0" @@ -520,14 +520,14 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:50:58 GMT" + "Tue, 18 Aug 2015 22:57:55 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/indexes/azsmnet2106/docs('1')?$select=*&api-version=2015-02-28", - "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDIxMDYvZG9jcygnMScpPyRzZWxlY3Q9JTJBJmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", + "RequestUri": "/indexes/azsmnet2404/docs('1')?$select=*&api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDI0MDQvZG9jcygnMScpPyRzZWxlY3Q9JTJBJmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -535,13 +535,13 @@ "application/json; odata.metadata=none" ], "api-key": [ - "4C50A418D58FF164BA0C0289A0058C25" + "3D46E4F0F2EF1C2B95D5A473C32671BE" ], "User-Agent": [ "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"ISBN\": \"1\",\r\n \"PublishDate\": \"2000-01-01T08:00:00Z\"\r\n}", + "ResponseBody": "{\r\n \"ISBN\": \"1\",\r\n \"PublishDate\": \"2000-01-01T00:00:00Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "49" @@ -556,10 +556,10 @@ "no-cache" ], "request-id": [ - "511351e5-4bcd-4ec0-9cdd-c665f2932bbc" + "8e3c336a-9ee5-447c-9a01-d8994fa92645" ], "elapsed-time": [ - "9" + "61" ], "OData-Version": [ "4.0" @@ -574,14 +574,14 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:51:00 GMT" + "Tue, 18 Aug 2015 22:57:57 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/indexes/azsmnet2106/docs('2')?$select=*&api-version=2015-02-28", - "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDIxMDYvZG9jcygnMicpPyRzZWxlY3Q9JTJBJmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", + "RequestUri": "/indexes/azsmnet2404/docs('2')?$select=*&api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDI0MDQvZG9jcygnMicpPyRzZWxlY3Q9JTJBJmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -589,7 +589,7 @@ "application/json; odata.metadata=none" ], "api-key": [ - "4C50A418D58FF164BA0C0289A0058C25" + "3D46E4F0F2EF1C2B95D5A473C32671BE" ], "User-Agent": [ "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" @@ -610,10 +610,10 @@ "no-cache" ], "request-id": [ - "a914dd7e-69cf-4dab-b978-43fbc41bde5a" + "4d1ef0e5-5b69-4327-8915-d8aa613f9d4a" ], "elapsed-time": [ - "4" + "14" ], "OData-Version": [ "4.0" @@ -628,61 +628,7 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:51:00 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/indexes/azsmnet2106/docs('3')?$select=*&api-version=2015-02-28", - "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDIxMDYvZG9jcygnMycpPyRzZWxlY3Q9JTJBJmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "Accept": [ - "application/json; odata.metadata=none" - ], - "api-key": [ - "4C50A418D58FF164BA0C0289A0058C25" - ], - "User-Agent": [ - "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" - ] - }, - "ResponseBody": "{\r\n \"ISBN\": \"3\",\r\n \"PublishDate\": \"2000-01-01T00:00:00Z\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "49" - ], - "Content-Type": [ - "application/json; odata.metadata=none" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "ac2d5cc3-5b93-4a47-93dd-eccc9685c4e1" - ], - "elapsed-time": [ - "5" - ], - "OData-Version": [ - "4.0" - ], - "Preference-Applied": [ - "odata.include-annotations=\"*\"" - ], - "Strict-Transport-Security": [ - "max-age=15724800; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 26 May 2015 00:51:00 GMT" + "Tue, 18 Aug 2015 22:57:57 GMT" ] }, "StatusCode": 200 @@ -690,14 +636,14 @@ ], "Names": { ".ctor": [ - "azsmnet8619", - "azsmnet8111" + "azsmnet3795", + "azsmnet373" ], "GenerateServiceName": [ - "azs-1995" + "azs-8776" ], - "b__23": [ - "azsmnet2106" + "b__21": [ + "azsmnet2404" ] }, "Variables": { diff --git a/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.IndexingTests/StaticallyTypedDateTimesRoundTripAsUtc.json b/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.IndexingTests/StaticallyTypedDateTimesRoundTripAsUtc.json index f687523114ed..147987ce6049 100644 --- a/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.IndexingTests/StaticallyTypedDateTimesRoundTripAsUtc.json +++ b/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.IndexingTests/StaticallyTypedDateTimesRoundTripAsUtc.json @@ -10,10 +10,10 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "1071" + "1145" ], "Content-Type": [ "application/json; charset=utf-8" @@ -25,16 +25,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1136" + "1198" ], "x-ms-request-id": [ - "90b12400-183f-4abd-b57f-f8a938b365e8" + "1eb29d06-ac3e-44ac-890d-d9107552da65" ], "x-ms-correlation-request-id": [ - "90b12400-183f-4abd-b57f-f8a938b365e8" + "1eb29d06-ac3e-44ac-890d-d9107552da65" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T004911Z:90b12400-183f-4abd-b57f-f8a938b365e8" + "CENTRALUS:20150818T225830Z:1eb29d06-ac3e-44ac-890d-d9107552da65" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -43,7 +43,7 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:49:11 GMT" + "Tue, 18 Aug 2015 22:58:30 GMT" ] }, "StatusCode": 200 @@ -58,10 +58,10 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "1071" + "1145" ], "Content-Type": [ "application/json; charset=utf-8" @@ -73,16 +73,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14972" + "14999" ], "x-ms-request-id": [ - "68ead672-3853-4d6c-a882-376cb28e7976" + "8f8e63cf-2945-43be-a7c5-2c11d3deec68" ], "x-ms-correlation-request-id": [ - "68ead672-3853-4d6c-a882-376cb28e7976" + "8f8e63cf-2945-43be-a7c5-2c11d3deec68" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T004912Z:68ead672-3853-4d6c-a882-376cb28e7976" + "CENTRALUS:20150818T225830Z:8f8e63cf-2945-43be-a7c5-2c11d3deec68" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -91,14 +91,14 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:49:11 GMT" + "Tue, 18 Aug 2015 22:58:30 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourcegroups/azsmnet7149?api-version=2014-04-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlZ3JvdXBzL2F6c21uZXQ3MTQ5P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourcegroups/azsmnet855?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlZ3JvdXBzL2F6c21uZXQ4NTU/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", "RequestHeaders": { @@ -112,10 +112,10 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet7149\",\r\n \"name\": \"azsmnet7149\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet855\",\r\n \"name\": \"azsmnet855\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "175" + "173" ], "Content-Type": [ "application/json; charset=utf-8" @@ -127,16 +127,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1135" + "1197" ], "x-ms-request-id": [ - "1a7b068b-5a95-4a35-a21b-7b636b54c58d" + "cf5080ed-f105-4a64-8b79-c0ea5535fc68" ], "x-ms-correlation-request-id": [ - "1a7b068b-5a95-4a35-a21b-7b636b54c58d" + "cf5080ed-f105-4a64-8b79-c0ea5535fc68" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T004912Z:1a7b068b-5a95-4a35-a21b-7b636b54c58d" + "CENTRALUS:20150818T225831Z:cf5080ed-f105-4a64-8b79-c0ea5535fc68" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -145,14 +145,14 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:49:11 GMT" + "Tue, 18 Aug 2015 22:58:30 GMT" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet7149/providers/Microsoft.Search/searchServices/azs-636?api-version=2015-02-28", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ3MTQ5L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy02MzY/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet855/providers/Microsoft.Search/searchServices/azs-8875?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ4NTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TZWFyY2gvc2VhcmNoU2VydmljZXMvYXpzLTg4NzU/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"West US\",\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"free\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -169,10 +169,10 @@ "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet7149/providers/Microsoft.Search/searchServices/azs-636\",\r\n \"name\": \"azs-636\",\r\n \"type\": \"Microsoft.Search/searchServices\",\r\n \"location\": \"West US\",\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"free\"\r\n },\r\n \"replicaCount\": 1,\r\n \"partitionCount\": 1,\r\n \"status\": \"running\",\r\n \"statusDetails\": null,\r\n \"provisioningState\": \"succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet855/providers/Microsoft.Search/searchServices/azs-8875\",\r\n \"name\": \"azs-8875\",\r\n \"type\": \"Microsoft.Search/searchServices\",\r\n \"location\": \"West US\",\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"free\"\r\n },\r\n \"replicaCount\": 1,\r\n \"partitionCount\": 1,\r\n \"status\": \"running\",\r\n \"statusDetails\": null,\r\n \"provisioningState\": \"succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "361" + "362" ], "Content-Type": [ "application/json; charset=utf-8" @@ -184,34 +184,34 @@ "no-cache" ], "request-id": [ - "2e9428bd-4c87-44a0-81a0-a16d5e6e22ed" + "1bd873c1-d409-4f55-b8bc-f0ce3bd98d3a" ], "elapsed-time": [ - "1168" + "931" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1149" + "1198" ], "x-ms-request-id": [ - "fbcdeb79-53b8-4be0-bc8f-6120dbaf3f3c" + "6110553a-c78e-4cc1-935a-c7c6c4ac335b" ], "x-ms-correlation-request-id": [ - "fbcdeb79-53b8-4be0-bc8f-6120dbaf3f3c" + "6110553a-c78e-4cc1-935a-c7c6c4ac335b" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T004916Z:fbcdeb79-53b8-4be0-bc8f-6120dbaf3f3c" + "CENTRALUS:20150818T225833Z:6110553a-c78e-4cc1-935a-c7c6c4ac335b" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:49:16 GMT" + "Tue, 18 Aug 2015 22:58:33 GMT" ], "ETag": [ - "W/\"datetime'2015-05-26T00%3A49%3A15.6318367Z'\"" + "W/\"datetime'2015-08-18T22%3A58%3A33.5057999Z'\"" ], "X-AspNet-Version": [ "4.0.30319" @@ -220,8 +220,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet7149/providers/Microsoft.Search/searchServices/azs-636/listAdminKeys?api-version=2015-02-28", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ3MTQ5L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy02MzYvbGlzdEFkbWluS2V5cz9hcGktdmVyc2lvbj0yMDE1LTAyLTI4", + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet855/providers/Microsoft.Search/searchServices/azs-8875/listAdminKeys?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ4NTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TZWFyY2gvc2VhcmNoU2VydmljZXMvYXpzLTg4NzUvbGlzdEFkbWluS2V5cz9hcGktdmVyc2lvbj0yMDE1LTAyLTI4", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { @@ -232,7 +232,7 @@ "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"primaryKey\": \"822E7689C71D0D7445DDE0A2A8065CC6\",\r\n \"secondaryKey\": \"845E9E670188321CE85C48243F9425DD\"\r\n}", + "ResponseBody": "{\r\n \"primaryKey\": \"6401A062F6E59195156FE6569E955219\",\r\n \"secondaryKey\": \"F2BA5E308C1A8193FFC8AF3ADDF15D48\"\r\n}", "ResponseHeaders": { "Content-Length": [ "99" @@ -247,31 +247,31 @@ "no-cache" ], "request-id": [ - "072139fd-09c0-4504-9ba6-5221bed33b05" + "8a2e3cec-dec4-4e9b-aa29-447872a445a8" ], "elapsed-time": [ - "240" + "601" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1148" + "1197" ], "x-ms-request-id": [ - "3a74eaa4-3251-4b82-a40d-c28bd5c833fa" + "756b9ae3-53c0-4160-a335-6bd8e710302c" ], "x-ms-correlation-request-id": [ - "3a74eaa4-3251-4b82-a40d-c28bd5c833fa" + "756b9ae3-53c0-4160-a335-6bd8e710302c" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T004916Z:3a74eaa4-3251-4b82-a40d-c28bd5c833fa" + "CENTRALUS:20150818T225834Z:756b9ae3-53c0-4160-a335-6bd8e710302c" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:49:16 GMT" + "Tue, 18 Aug 2015 22:58:33 GMT" ], "X-AspNet-Version": [ "4.0.30319" @@ -280,8 +280,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet7149/providers/Microsoft.Search/searchServices/azs-636/listQueryKeys?api-version=2015-02-28", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ3MTQ5L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy02MzYvbGlzdFF1ZXJ5S2V5cz9hcGktdmVyc2lvbj0yMDE1LTAyLTI4", + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet855/providers/Microsoft.Search/searchServices/azs-8875/listQueryKeys?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ4NTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TZWFyY2gvc2VhcmNoU2VydmljZXMvYXpzLTg4NzUvbGlzdFF1ZXJ5S2V5cz9hcGktdmVyc2lvbj0yMDE1LTAyLTI4", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -292,7 +292,7 @@ "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": null,\r\n \"key\": \"5985C1414B51AFA7CC632D0598F15D21\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": null,\r\n \"key\": \"40932DC0F481B68473EACFEF61E6405A\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "ResponseHeaders": { "Content-Length": [ "82" @@ -307,31 +307,31 @@ "no-cache" ], "request-id": [ - "cb8fa944-3c90-40f7-bd5d-c0c00315c21c" + "6266816a-a8cc-45eb-8a78-3cdd627ee0bb" ], "elapsed-time": [ - "238" + "243" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" + "14998" ], "x-ms-request-id": [ - "712fc0c9-1322-4e51-aae3-06585ad7ad78" + "b16e7bfb-7258-437e-84d3-54538da1b065" ], "x-ms-correlation-request-id": [ - "712fc0c9-1322-4e51-aae3-06585ad7ad78" + "b16e7bfb-7258-437e-84d3-54538da1b065" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150526T004917Z:712fc0c9-1322-4e51-aae3-06585ad7ad78" + "CENTRALUS:20150818T225834Z:b16e7bfb-7258-437e-84d3-54538da1b065" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:49:16 GMT" + "Tue, 18 Aug 2015 22:58:34 GMT" ], "X-AspNet-Version": [ "4.0.30319" @@ -343,7 +343,7 @@ "RequestUri": "/indexes?api-version=2015-02-28", "EncodedRequestUri": "L2luZGV4ZXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"azsmnet4618\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"functions\": [\r\n {\r\n \"type\": \"distance\",\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"fieldName\": \"location\",\r\n \"boost\": 2.0,\r\n \"interpolation\": \"linear\"\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"name\": \"azsmnet8150\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"functions\": [\r\n {\r\n \"type\": \"distance\",\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"fieldName\": \"location\",\r\n \"boost\": 2.0,\r\n \"interpolation\": \"linear\"\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json" @@ -355,13 +355,13 @@ "application/json; odata.metadata=none" ], "api-key": [ - "822E7689C71D0D7445DDE0A2A8065CC6" + "6401A062F6E59195156FE6569E955219" ], "User-Agent": [ "Microsoft.Azure.Search.SearchServiceClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"azsmnet4618\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"text\": null,\r\n \"functions\": [\r\n {\r\n \"fieldName\": \"location\",\r\n \"freshness\": null,\r\n \"interpolation\": \"linear\",\r\n \"magnitude\": null,\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"tag\": null,\r\n \"type\": \"distance\",\r\n \"boost\": 2.0\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"name\": \"azsmnet8150\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"text\": null,\r\n \"functions\": [\r\n {\r\n \"fieldName\": \"location\",\r\n \"freshness\": null,\r\n \"interpolation\": \"linear\",\r\n \"magnitude\": null,\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"tag\": null,\r\n \"type\": \"distance\",\r\n \"boost\": 2.0\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ "2428" @@ -376,10 +376,10 @@ "no-cache" ], "request-id": [ - "b976c9f3-e8f0-4e61-85a9-eac190d9fe02" + "7b1d53f1-8b45-4aa6-83de-934f62761263" ], "elapsed-time": [ - "829" + "1827" ], "OData-Version": [ "4.0" @@ -394,10 +394,10 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:49:20 GMT" + "Tue, 18 Aug 2015 22:58:38 GMT" ], "Location": [ - "https://azs-636.search-dogfood.windows-int.net/indexes('azsmnet4618')?api-version=2015-02-28" + "https://azs-8875.search-dogfood.windows-int.net/indexes('azsmnet8150')?api-version=2015-02-28" ] }, "StatusCode": 201 @@ -406,7 +406,7 @@ "RequestUri": "/indexes?api-version=2015-02-28", "EncodedRequestUri": "L2luZGV4ZXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"azsmnet6403\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"suggesters\": []\r\n}", + "RequestBody": "{\r\n \"name\": \"azsmnet5902\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"suggesters\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json" @@ -418,13 +418,13 @@ "application/json; odata.metadata=none" ], "api-key": [ - "822E7689C71D0D7445DDE0A2A8065CC6" + "6401A062F6E59195156FE6569E955219" ], "User-Agent": [ "Microsoft.Azure.Search.SearchServiceClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"azsmnet6403\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": []\r\n}", + "ResponseBody": "{\r\n \"name\": \"azsmnet5902\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": []\r\n}", "ResponseHeaders": { "Content-Length": [ "444" @@ -439,10 +439,10 @@ "no-cache" ], "request-id": [ - "5e6fff8d-3f1f-497a-b51a-2e7f2573f3f0" + "dbb2f83c-be6f-4b52-afe7-95435136eee6" ], "elapsed-time": [ - "751" + "980" ], "OData-Version": [ "4.0" @@ -457,40 +457,40 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:49:42 GMT" + "Tue, 18 Aug 2015 22:59:00 GMT" ], "Location": [ - "https://azs-636.search-dogfood.windows-int.net/indexes('azsmnet6403')?api-version=2015-02-28" + "https://azs-8875.search-dogfood.windows-int.net/indexes('azsmnet5902')?api-version=2015-02-28" ] }, "StatusCode": 201 }, { - "RequestUri": "/indexes/azsmnet6403/docs/search.index?api-version=2015-02-28", - "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDY0MDMvZG9jcy9zZWFyY2guaW5kZXg/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestUri": "/indexes/azsmnet5902/docs/search.index?api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDU5MDIvZG9jcy9zZWFyY2guaW5kZXg/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"value\": [\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"1\",\r\n \"PublishDate\": \"2000-01-01T00:00:00-08:00\"\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"2\",\r\n \"PublishDate\": \"1999-12-31T16:00:00-08:00\"\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"3\",\r\n \"PublishDate\": \"1999-12-31T16:00:00-08:00\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"value\": [\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"1\",\r\n \"PublishDate\": \"1999-12-31T16:00:00-08:00\"\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"2\",\r\n \"PublishDate\": \"1999-12-31T16:00:00-08:00\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ - "382" + "262" ], "Accept": [ "application/json; odata.metadata=none" ], "api-key": [ - "822E7689C71D0D7445DDE0A2A8065CC6" + "6401A062F6E59195156FE6569E955219" ], "User-Agent": [ "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"key\": \"1\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"2\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"3\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"key\": \"1\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"2\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "149" + "103" ], "Content-Type": [ "application/json; odata.metadata=none" @@ -502,10 +502,10 @@ "no-cache" ], "request-id": [ - "b15c3bd5-9cf1-41c2-827d-8493697285d0" + "4c407e60-0715-44c1-96fc-0138c6fad3f5" ], "elapsed-time": [ - "93" + "92" ], "OData-Version": [ "4.0" @@ -520,14 +520,14 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:49:44 GMT" + "Tue, 18 Aug 2015 22:59:01 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/indexes/azsmnet6403/docs('1')?$select=*&api-version=2015-02-28", - "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDY0MDMvZG9jcygnMScpPyRzZWxlY3Q9JTJBJmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", + "RequestUri": "/indexes/azsmnet5902/docs('1')?$select=*&api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDU5MDIvZG9jcygnMScpPyRzZWxlY3Q9JTJBJmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -535,13 +535,13 @@ "application/json; odata.metadata=none" ], "api-key": [ - "822E7689C71D0D7445DDE0A2A8065CC6" + "6401A062F6E59195156FE6569E955219" ], "User-Agent": [ "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" ] }, - "ResponseBody": "{\r\n \"ISBN\": \"1\",\r\n \"PublishDate\": \"2000-01-01T08:00:00Z\"\r\n}", + "ResponseBody": "{\r\n \"ISBN\": \"1\",\r\n \"PublishDate\": \"2000-01-01T00:00:00Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "49" @@ -556,10 +556,10 @@ "no-cache" ], "request-id": [ - "ff4e1af8-7569-4ffb-9232-6de14887ab42" + "78ca00df-830d-44ef-8477-ec6e0a2cb3d8" ], "elapsed-time": [ - "5" + "82" ], "OData-Version": [ "4.0" @@ -574,14 +574,14 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:49:46 GMT" + "Tue, 18 Aug 2015 22:59:03 GMT" ] }, "StatusCode": 200 }, { - "RequestUri": "/indexes/azsmnet6403/docs('2')?$select=*&api-version=2015-02-28", - "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDY0MDMvZG9jcygnMicpPyRzZWxlY3Q9JTJBJmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", + "RequestUri": "/indexes/azsmnet5902/docs('2')?$select=*&api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDU5MDIvZG9jcygnMicpPyRzZWxlY3Q9JTJBJmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -589,7 +589,7 @@ "application/json; odata.metadata=none" ], "api-key": [ - "822E7689C71D0D7445DDE0A2A8065CC6" + "6401A062F6E59195156FE6569E955219" ], "User-Agent": [ "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" @@ -610,64 +610,10 @@ "no-cache" ], "request-id": [ - "f326f8b2-99d9-48fe-a1dd-ca675c40037d" - ], - "elapsed-time": [ - "26" - ], - "OData-Version": [ - "4.0" - ], - "Preference-Applied": [ - "odata.include-annotations=\"*\"" - ], - "Strict-Transport-Security": [ - "max-age=15724800; includeSubDomains" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 26 May 2015 00:49:46 GMT" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/indexes/azsmnet6403/docs('3')?$select=*&api-version=2015-02-28", - "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDY0MDMvZG9jcygnMycpPyRzZWxlY3Q9JTJBJmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "Accept": [ - "application/json; odata.metadata=none" - ], - "api-key": [ - "822E7689C71D0D7445DDE0A2A8065CC6" - ], - "User-Agent": [ - "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" - ] - }, - "ResponseBody": "{\r\n \"ISBN\": \"3\",\r\n \"PublishDate\": \"2000-01-01T00:00:00Z\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "49" - ], - "Content-Type": [ - "application/json; odata.metadata=none" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "request-id": [ - "2d9e7cea-eae2-419d-832f-33ad512bed83" + "be85a67f-961d-469c-9f66-f29d53d47d93" ], "elapsed-time": [ - "9" + "7" ], "OData-Version": [ "4.0" @@ -682,7 +628,7 @@ "no-cache" ], "Date": [ - "Tue, 26 May 2015 00:49:46 GMT" + "Tue, 18 Aug 2015 22:59:03 GMT" ] }, "StatusCode": 200 @@ -690,14 +636,14 @@ ], "Names": { ".ctor": [ - "azsmnet7149", - "azsmnet4618" + "azsmnet855", + "azsmnet8150" ], "GenerateServiceName": [ - "azs-636" + "azs-8875" ], - "b__1d": [ - "azsmnet6403" + "b__1c": [ + "azsmnet5902" ] }, "Variables": { diff --git a/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.SearchTests/CanSearchWithDateTimeInStaticModel.json b/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.SearchTests/CanSearchWithDateTimeInStaticModel.json new file mode 100644 index 000000000000..c7c32b59cc92 --- /dev/null +++ b/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.SearchTests/CanSearchWithDateTimeInStaticModel.json @@ -0,0 +1,658 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search/register?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3JlZ2lzdGVyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1145" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-request-id": [ + "cbe40c7e-0a5a-4fd9-9628-d6f66b1301b0" + ], + "x-ms-correlation-request-id": [ + "cbe40c7e-0a5a-4fd9-9628-d6f66b1301b0" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000505Z:cbe40c7e-0a5a-4fd9-9628-d6f66b1301b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:05:04 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1145" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "f99d11da-8939-44ef-8854-e7a44bfdf2ec" + ], + "x-ms-correlation-request-id": [ + "f99d11da-8939-44ef-8854-e7a44bfdf2ec" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000505Z:f99d11da-8939-44ef-8854-e7a44bfdf2ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:05:04 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourcegroups/azsmnet7317?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlZ3JvdXBzL2F6c21uZXQ3MzE3P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet7317\",\r\n \"name\": \"azsmnet7317\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "175" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "df5260ea-9275-401c-a494-bbc0ea3fc4e0" + ], + "x-ms-correlation-request-id": [ + "df5260ea-9275-401c-a494-bbc0ea3fc4e0" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000505Z:df5260ea-9275-401c-a494-bbc0ea3fc4e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:05:05 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet7317/providers/Microsoft.Search/searchServices/azs-4681?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ3MzE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy00NjgxP2FwaS12ZXJzaW9uPTIwMTUtMDItMjg=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\",\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"free\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "97" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet7317/providers/Microsoft.Search/searchServices/azs-4681\",\r\n \"name\": \"azs-4681\",\r\n \"type\": \"Microsoft.Search/searchServices\",\r\n \"location\": \"West US\",\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"free\"\r\n },\r\n \"replicaCount\": 1,\r\n \"partitionCount\": 1,\r\n \"status\": \"running\",\r\n \"statusDetails\": null,\r\n \"provisioningState\": \"succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "363" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "1dec2760-76d6-4bf9-8195-d74b9092095a" + ], + "elapsed-time": [ + "994" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "9efa8e97-6861-408d-8d6a-7ddf6534c4ba" + ], + "x-ms-correlation-request-id": [ + "9efa8e97-6861-408d-8d6a-7ddf6534c4ba" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000508Z:9efa8e97-6861-408d-8d6a-7ddf6534c4ba" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:05:08 GMT" + ], + "ETag": [ + "W/\"datetime'2015-08-19T00%3A05%3A08.3011155Z'\"" + ], + "X-AspNet-Version": [ + "4.0.30319" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet7317/providers/Microsoft.Search/searchServices/azs-4681/listAdminKeys?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ3MzE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy00NjgxL2xpc3RBZG1pbktleXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ + "application/json" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"primaryKey\": \"267DDA629D60221E45550ACE4391D678\",\r\n \"secondaryKey\": \"3B5BF0EF5A79AD0FB18C481E06066D95\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "99" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "5f3bb646-9598-4d9f-8a42-04f473f7cdac" + ], + "elapsed-time": [ + "247" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "98b23362-08e7-4914-83bc-dc73e30c6958" + ], + "x-ms-correlation-request-id": [ + "98b23362-08e7-4914-83bc-dc73e30c6958" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000509Z:98b23362-08e7-4914-83bc-dc73e30c6958" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:05:08 GMT" + ], + "X-AspNet-Version": [ + "4.0.30319" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet7317/providers/Microsoft.Search/searchServices/azs-4681/listQueryKeys?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQ3MzE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3NlYXJjaFNlcnZpY2VzL2F6cy00NjgxL2xpc3RRdWVyeUtleXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ + "application/json" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": null,\r\n \"key\": \"4DBD5F9CC3F32402768D5EA53CAA9F7E\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "82" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "dc90a682-6a5c-4687-8467-8c11230c98d1" + ], + "elapsed-time": [ + "256" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "c3cba4dc-fcaa-4a96-908a-9c2cd2fc36bb" + ], + "x-ms-correlation-request-id": [ + "c3cba4dc-fcaa-4a96-908a-9c2cd2fc36bb" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000509Z:c3cba4dc-fcaa-4a96-908a-9c2cd2fc36bb" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:05:08 GMT" + ], + "X-AspNet-Version": [ + "4.0.30319" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/indexes?api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"azsmnet1711\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"functions\": [\r\n {\r\n \"type\": \"distance\",\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"fieldName\": \"location\",\r\n \"boost\": 2.0,\r\n \"interpolation\": \"linear\"\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "3439" + ], + "Accept": [ + "application/json; odata.metadata=none" + ], + "api-key": [ + "267DDA629D60221E45550ACE4391D678" + ], + "User-Agent": [ + "Microsoft.Azure.Search.SearchServiceClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"azsmnet1711\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"text\": null,\r\n \"functions\": [\r\n {\r\n \"fieldName\": \"location\",\r\n \"freshness\": null,\r\n \"interpolation\": \"linear\",\r\n \"magnitude\": null,\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"tag\": null,\r\n \"type\": \"distance\",\r\n \"boost\": 2.0\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2428" + ], + "Content-Type": [ + "application/json; odata.metadata=none" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "74d5d449-1029-46c3-bb31-7a0076cc8c58" + ], + "elapsed-time": [ + "1672" + ], + "OData-Version": [ + "4.0" + ], + "Preference-Applied": [ + "odata.include-annotations=\"*\"" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:05:12 GMT" + ], + "Location": [ + "https://azs-4681.search-dogfood.windows-int.net/indexes('azsmnet1711')?api-version=2015-02-28" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/indexes?api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"azsmnet9631\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"Title\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"Author\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"suggesters\": []\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "1008" + ], + "Accept": [ + "application/json; odata.metadata=none" + ], + "api-key": [ + "267DDA629D60221E45550ACE4391D678" + ], + "User-Agent": [ + "Microsoft.Azure.Search.SearchServiceClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"azsmnet9631\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"Title\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"Author\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "758" + ], + "Content-Type": [ + "application/json; odata.metadata=none" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "2ff03eb3-6a64-420b-9cb1-5c952cd0f01f" + ], + "elapsed-time": [ + "995" + ], + "OData-Version": [ + "4.0" + ], + "Preference-Applied": [ + "odata.include-annotations=\"*\"" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:05:37 GMT" + ], + "Location": [ + "https://azs-4681.search-dogfood.windows-int.net/indexes('azsmnet9631')?api-version=2015-02-28" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/indexes/azsmnet1711/docs/search.index?api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDE3MTEvZG9jcy9zZWFyY2guaW5kZXg/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"value\": [\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"1\",\r\n \"baseRate\": 199.0,\r\n \"description\": \"Best hotel in town if you like luxury hotels. They have an amazing infinity pool, a spa, and a really helpful concierge. The location is perfect -- right downtown, close to all the tourist attractions. We highly recommend this hotel.\",\r\n \"descriptionFr\": \"Meilleur hôtel en ville si vous aimez les hôtels de luxe. Ils ont une magnifique piscine à débordement, un spa et un concierge très utile. L'emplacement est parfait – en plein centre, à proximité de toutes les attractions touristiques. Nous recommandons fortement cet hôtel.\",\r\n \"hotelName\": \"Fancy Stay\",\r\n \"category\": \"Luxury\",\r\n \"tags\": [\r\n \"pool\",\r\n \"view\",\r\n \"wifi\",\r\n \"concierge\"\r\n ],\r\n \"parkingIncluded\": false,\r\n \"smokingAllowed\": false,\r\n \"lastRenovationDate\": \"2010-06-26T17:00:00-07:00\",\r\n \"rating\": 5,\r\n \"location\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": [\r\n -122.131577,\r\n 47.678581\r\n ]\r\n }\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"2\",\r\n \"baseRate\": 79.99,\r\n \"description\": \"Cheapest hotel in town\",\r\n \"descriptionFr\": \"Hôtel le moins cher en ville\",\r\n \"hotelName\": \"Roach Motel\",\r\n \"category\": \"Budget\",\r\n \"tags\": [\r\n \"motel\",\r\n \"budget\"\r\n ],\r\n \"parkingIncluded\": true,\r\n \"smokingAllowed\": true,\r\n \"lastRenovationDate\": \"1982-04-27T17:00:00-07:00\",\r\n \"rating\": 1,\r\n \"location\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": [\r\n -122.131577,\r\n 49.678581\r\n ]\r\n }\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"3\",\r\n \"baseRate\": 129.99,\r\n \"description\": \"Most popular hotel in town\",\r\n \"descriptionFr\": \"Hôtel le plus populaire en ville\",\r\n \"hotelName\": \"EconoStay\",\r\n \"category\": \"Budget\",\r\n \"tags\": [\r\n \"wifi\",\r\n \"budget\"\r\n ],\r\n \"parkingIncluded\": true,\r\n \"smokingAllowed\": false,\r\n \"lastRenovationDate\": \"1995-06-30T17:00:00-07:00\",\r\n \"rating\": 4,\r\n \"location\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": [\r\n -122.131577,\r\n 46.678581\r\n ]\r\n }\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"4\",\r\n \"baseRate\": 129.99,\r\n \"description\": \"Pretty good hotel\",\r\n \"descriptionFr\": \"Assez bon hôtel\",\r\n \"hotelName\": \"Express Rooms\",\r\n \"category\": \"Budget\",\r\n \"tags\": [\r\n \"wifi\",\r\n \"budget\"\r\n ],\r\n \"parkingIncluded\": true,\r\n \"smokingAllowed\": false,\r\n \"lastRenovationDate\": \"1995-06-30T17:00:00-07:00\",\r\n \"rating\": 4,\r\n \"location\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": [\r\n -122.131577,\r\n 48.678581\r\n ]\r\n }\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"5\",\r\n \"baseRate\": 129.99,\r\n \"description\": \"Another good hotel\",\r\n \"descriptionFr\": \"Un autre bon hôtel\",\r\n \"hotelName\": \"Comfy Place\",\r\n \"category\": \"Budget\",\r\n \"tags\": [\r\n \"wifi\",\r\n \"budget\"\r\n ],\r\n \"parkingIncluded\": true,\r\n \"smokingAllowed\": false,\r\n \"lastRenovationDate\": \"2012-08-11T17:00:00-07:00\",\r\n \"rating\": 4,\r\n \"location\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": [\r\n -122.131577,\r\n 48.678581\r\n ]\r\n }\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"6\",\r\n \"baseRate\": 279.99,\r\n \"description\": \"Surprisingly expensive\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "3701" + ], + "Accept": [ + "application/json; odata.metadata=none" + ], + "api-key": [ + "267DDA629D60221E45550ACE4391D678" + ], + "User-Agent": [ + "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"key\": \"1\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"2\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"3\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"4\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"5\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"6\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "287" + ], + "Content-Type": [ + "application/json; odata.metadata=none" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "7ea8533c-492e-4710-9f57-e0555bd0fca4" + ], + "elapsed-time": [ + "138" + ], + "OData-Version": [ + "4.0" + ], + "Preference-Applied": [ + "odata.include-annotations=\"*\"" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:05:32 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/indexes/azsmnet9631/docs/search.index?api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDk2MzEvZG9jcy9zZWFyY2guaW5kZXg/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"value\": [\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"123\",\r\n \"Title\": \"Lord of the Rings\",\r\n \"Author\": \"J.R.R. Tolkien\"\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"456\",\r\n \"Title\": \"War and Peace\",\r\n \"PublishDate\": \"2015-08-17T17:00:00-07:00\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "320" + ], + "Accept": [ + "application/json; odata.metadata=none" + ], + "api-key": [ + "267DDA629D60221E45550ACE4391D678" + ], + "User-Agent": [ + "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"key\": \"123\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"456\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; odata.metadata=none" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "a5a2e5a4-956c-4fed-a753-44433b6ef4e0" + ], + "elapsed-time": [ + "112" + ], + "OData-Version": [ + "4.0" + ], + "Preference-Applied": [ + "odata.include-annotations=\"*\"" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:05:38 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/indexes/azsmnet9631/docs?search=War%20and%20Peace&$count=false&searchMode=any&api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDk2MzEvZG9jcz9zZWFyY2g9V2FyJTIwYW5kJTIwUGVhY2UmJGNvdW50PWZhbHNlJnNlYXJjaE1vZGU9YW55JmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ + "application/json; odata.metadata=none" + ], + "api-key": [ + "267DDA629D60221E45550ACE4391D678" + ], + "User-Agent": [ + "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"@search.score\": 0.8660254,\r\n \"ISBN\": \"456\",\r\n \"Title\": \"War and Peace\",\r\n \"Author\": null,\r\n \"PublishDate\": \"2015-08-18T00:00:00Z\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "127" + ], + "Content-Type": [ + "application/json; odata.metadata=none" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "17a098b0-5286-4dbb-a741-178933faadd6" + ], + "elapsed-time": [ + "8" + ], + "OData-Version": [ + "4.0" + ], + "Preference-Applied": [ + "odata.include-annotations=\"*\"" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:05:40 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + ".ctor": [ + "azsmnet7317", + "azsmnet1711" + ], + "GenerateServiceName": [ + "azs-4681" + ], + "b__3e": [ + "azsmnet9631" + ] + }, + "Variables": { + "SubscriptionId": "b80cf239-2c72-47ab-b309-b26aec4656b1" + } +} \ No newline at end of file diff --git a/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.SuggestTests/CanSuggestWithDateTimeInStaticModel.json b/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.SuggestTests/CanSuggestWithDateTimeInStaticModel.json new file mode 100644 index 000000000000..b714b4241dbc --- /dev/null +++ b/src/Search/Search.Tests/SessionRecords/Microsoft.Azure.Search.Tests.SuggestTests/CanSuggestWithDateTimeInStaticModel.json @@ -0,0 +1,658 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search/register?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoL3JlZ2lzdGVyP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1145" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "0df1f889-51b3-4719-b38e-fe0c6724fac9" + ], + "x-ms-correlation-request-id": [ + "0df1f889-51b3-4719-b38e-fe0c6724fac9" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000354Z:0df1f889-51b3-4719-b38e-fe0c6724fac9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:03:53 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU2VhcmNoP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/providers/Microsoft.Search\",\r\n \"namespace\": \"Microsoft.Search\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"searchServices\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesCit\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesInt\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"searchServicesPpe\",\r\n \"locations\": [\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityCit\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityInt\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkServiceNameAvailabilityPpe\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\",\r\n \"2014-07-31-Preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2015-02-28\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1145" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "5fcf64ce-a231-48b2-ba6f-54a5347ec14b" + ], + "x-ms-correlation-request-id": [ + "5fcf64ce-a231-48b2-ba6f-54a5347ec14b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000354Z:5fcf64ce-a231-48b2-ba6f-54a5347ec14b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:03:53 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourcegroups/azsmnet146?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlZ3JvdXBzL2F6c21uZXQxNDY/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet146\",\r\n \"name\": \"azsmnet146\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "e8fdc554-47c3-4b33-a87d-289f5c8ea539" + ], + "x-ms-correlation-request-id": [ + "e8fdc554-47c3-4b33-a87d-289f5c8ea539" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000354Z:e8fdc554-47c3-4b33-a87d-289f5c8ea539" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:03:54 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet146/providers/Microsoft.Search/searchServices/azs-6589?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQxNDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TZWFyY2gvc2VhcmNoU2VydmljZXMvYXpzLTY1ODk/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\",\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"free\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "97" + ], + "Accept": [ + "application/json" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet146/providers/Microsoft.Search/searchServices/azs-6589\",\r\n \"name\": \"azs-6589\",\r\n \"type\": \"Microsoft.Search/searchServices\",\r\n \"location\": \"West US\",\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"free\"\r\n },\r\n \"replicaCount\": 1,\r\n \"partitionCount\": 1,\r\n \"status\": \"running\",\r\n \"statusDetails\": null,\r\n \"provisioningState\": \"succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "362" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "e7039e3c-dab8-4b66-b379-8185c1f35538" + ], + "elapsed-time": [ + "1629" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "49497ae8-3aa2-4b37-ab5d-43d42c0865ba" + ], + "x-ms-correlation-request-id": [ + "49497ae8-3aa2-4b37-ab5d-43d42c0865ba" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000358Z:49497ae8-3aa2-4b37-ab5d-43d42c0865ba" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:03:58 GMT" + ], + "ETag": [ + "W/\"datetime'2015-08-19T00%3A03%3A57.90958Z'\"" + ], + "X-AspNet-Version": [ + "4.0.30319" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet146/providers/Microsoft.Search/searchServices/azs-6589/listAdminKeys?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQxNDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TZWFyY2gvc2VhcmNoU2VydmljZXMvYXpzLTY1ODkvbGlzdEFkbWluS2V5cz9hcGktdmVyc2lvbj0yMDE1LTAyLTI4", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ + "application/json" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"primaryKey\": \"C7E1601022FE7593869BE49CDB38105B\",\r\n \"secondaryKey\": \"8F96C3D914465B3B9F6925D55736AA8F\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "99" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "431b8112-6f70-4e94-901b-e2403ead73a7" + ], + "elapsed-time": [ + "268" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "cbf1143f-be69-4de4-8464-aaeb9d9bb2d8" + ], + "x-ms-correlation-request-id": [ + "cbf1143f-be69-4de4-8464-aaeb9d9bb2d8" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000359Z:cbf1143f-be69-4de4-8464-aaeb9d9bb2d8" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:03:58 GMT" + ], + "X-AspNet-Version": [ + "4.0.30319" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b80cf239-2c72-47ab-b309-b26aec4656b1/resourceGroups/azsmnet146/providers/Microsoft.Search/searchServices/azs-6589/listQueryKeys?api-version=2015-02-28", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjgwY2YyMzktMmM3Mi00N2FiLWIzMDktYjI2YWVjNDY1NmIxL3Jlc291cmNlR3JvdXBzL2F6c21uZXQxNDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TZWFyY2gvc2VhcmNoU2VydmljZXMvYXpzLTY1ODkvbGlzdFF1ZXJ5S2V5cz9hcGktdmVyc2lvbj0yMDE1LTAyLTI4", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ + "application/json" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Search.SearchManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": null,\r\n \"key\": \"1B16C1862F7DE9260737736EDF726E4C\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "82" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "10202735-4f65-49b9-9143-5964a853249b" + ], + "elapsed-time": [ + "221" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "70a7952a-8885-448e-8396-627233c86a81" + ], + "x-ms-correlation-request-id": [ + "70a7952a-8885-448e-8396-627233c86a81" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150819T000359Z:70a7952a-8885-448e-8396-627233c86a81" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:03:58 GMT" + ], + "X-AspNet-Version": [ + "4.0.30319" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/indexes?api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"azsmnet3513\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"functions\": [\r\n {\r\n \"type\": \"distance\",\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"fieldName\": \"location\",\r\n \"boost\": 2.0,\r\n \"interpolation\": \"linear\"\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "3439" + ], + "Accept": [ + "application/json; odata.metadata=none" + ], + "api-key": [ + "C7E1601022FE7593869BE49CDB38105B" + ], + "User-Agent": [ + "Microsoft.Azure.Search.SearchServiceClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"azsmnet3513\",\r\n \"fields\": [\r\n {\r\n \"name\": \"hotelId\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"baseRate\",\r\n \"type\": \"Edm.Double\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"description\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"descriptionFr\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": \"fr.lucene\"\r\n },\r\n {\r\n \"name\": \"hotelName\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"tags\",\r\n \"type\": \"Collection(Edm.String)\",\r\n \"searchable\": true,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"parkingIncluded\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"smokingAllowed\",\r\n \"type\": \"Edm.Boolean\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"lastRenovationDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"rating\",\r\n \"type\": \"Edm.Int32\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": true,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"Edm.GeographyPoint\",\r\n \"searchable\": false,\r\n \"filterable\": true,\r\n \"retrievable\": true,\r\n \"sortable\": true,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [\r\n {\r\n \"name\": \"nearest\",\r\n \"text\": null,\r\n \"functions\": [\r\n {\r\n \"fieldName\": \"location\",\r\n \"freshness\": null,\r\n \"interpolation\": \"linear\",\r\n \"magnitude\": null,\r\n \"distance\": {\r\n \"referencePointParameter\": \"myloc\",\r\n \"boostingDistance\": 100.0\r\n },\r\n \"tag\": null,\r\n \"type\": \"distance\",\r\n \"boost\": 2.0\r\n }\r\n ],\r\n \"functionAggregation\": \"sum\"\r\n }\r\n ],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"description\",\r\n \"hotelName\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "2428" + ], + "Content-Type": [ + "application/json; odata.metadata=none" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "84342007-434d-4cff-abb4-471ab7696fdd" + ], + "elapsed-time": [ + "2390" + ], + "OData-Version": [ + "4.0" + ], + "Preference-Applied": [ + "odata.include-annotations=\"*\"" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:04:03 GMT" + ], + "Location": [ + "https://azs-6589.search-dogfood.windows-int.net/indexes('azsmnet3513')?api-version=2015-02-28" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/indexes?api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXM/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"azsmnet8715\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"key\": true,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"Title\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"Author\",\r\n \"type\": \"Edm.String\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"key\": false,\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"retrievable\": true\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"Title\"\r\n ]\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "1145" + ], + "Accept": [ + "application/json; odata.metadata=none" + ], + "api-key": [ + "C7E1601022FE7593869BE49CDB38105B" + ], + "User-Agent": [ + "Microsoft.Azure.Search.SearchServiceClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"azsmnet8715\",\r\n \"fields\": [\r\n {\r\n \"name\": \"ISBN\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": true,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"Title\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": true,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"Author\",\r\n \"type\": \"Edm.String\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n },\r\n {\r\n \"name\": \"PublishDate\",\r\n \"type\": \"Edm.DateTimeOffset\",\r\n \"searchable\": false,\r\n \"filterable\": false,\r\n \"retrievable\": true,\r\n \"sortable\": false,\r\n \"facetable\": false,\r\n \"key\": false,\r\n \"analyzer\": null\r\n }\r\n ],\r\n \"scoringProfiles\": [],\r\n \"defaultScoringProfile\": null,\r\n \"corsOptions\": null,\r\n \"suggesters\": [\r\n {\r\n \"name\": \"sg\",\r\n \"searchMode\": \"analyzingInfixMatching\",\r\n \"sourceFields\": [\r\n \"Title\"\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "834" + ], + "Content-Type": [ + "application/json; odata.metadata=none" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "80ca3bcb-c209-42c2-9acc-c243ab349a1f" + ], + "elapsed-time": [ + "1819" + ], + "OData-Version": [ + "4.0" + ], + "Preference-Applied": [ + "odata.include-annotations=\"*\"" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:04:28 GMT" + ], + "Location": [ + "https://azs-6589.search-dogfood.windows-int.net/indexes('azsmnet8715')?api-version=2015-02-28" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/indexes/azsmnet3513/docs/search.index?api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDM1MTMvZG9jcy9zZWFyY2guaW5kZXg/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"value\": [\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"1\",\r\n \"baseRate\": 199.0,\r\n \"description\": \"Best hotel in town if you like luxury hotels. They have an amazing infinity pool, a spa, and a really helpful concierge. The location is perfect -- right downtown, close to all the tourist attractions. We highly recommend this hotel.\",\r\n \"descriptionFr\": \"Meilleur hôtel en ville si vous aimez les hôtels de luxe. Ils ont une magnifique piscine à débordement, un spa et un concierge très utile. L'emplacement est parfait – en plein centre, à proximité de toutes les attractions touristiques. Nous recommandons fortement cet hôtel.\",\r\n \"hotelName\": \"Fancy Stay\",\r\n \"category\": \"Luxury\",\r\n \"tags\": [\r\n \"pool\",\r\n \"view\",\r\n \"wifi\",\r\n \"concierge\"\r\n ],\r\n \"parkingIncluded\": false,\r\n \"smokingAllowed\": false,\r\n \"lastRenovationDate\": \"2010-06-26T17:00:00-07:00\",\r\n \"rating\": 5,\r\n \"location\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": [\r\n -122.131577,\r\n 47.678581\r\n ]\r\n }\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"2\",\r\n \"baseRate\": 79.99,\r\n \"description\": \"Cheapest hotel in town\",\r\n \"descriptionFr\": \"Hôtel le moins cher en ville\",\r\n \"hotelName\": \"Roach Motel\",\r\n \"category\": \"Budget\",\r\n \"tags\": [\r\n \"motel\",\r\n \"budget\"\r\n ],\r\n \"parkingIncluded\": true,\r\n \"smokingAllowed\": true,\r\n \"lastRenovationDate\": \"1982-04-27T17:00:00-07:00\",\r\n \"rating\": 1,\r\n \"location\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": [\r\n -122.131577,\r\n 49.678581\r\n ]\r\n }\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"3\",\r\n \"baseRate\": 129.99,\r\n \"description\": \"Most popular hotel in town\",\r\n \"descriptionFr\": \"Hôtel le plus populaire en ville\",\r\n \"hotelName\": \"EconoStay\",\r\n \"category\": \"Budget\",\r\n \"tags\": [\r\n \"wifi\",\r\n \"budget\"\r\n ],\r\n \"parkingIncluded\": true,\r\n \"smokingAllowed\": false,\r\n \"lastRenovationDate\": \"1995-06-30T17:00:00-07:00\",\r\n \"rating\": 4,\r\n \"location\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": [\r\n -122.131577,\r\n 46.678581\r\n ]\r\n }\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"4\",\r\n \"baseRate\": 129.99,\r\n \"description\": \"Pretty good hotel\",\r\n \"descriptionFr\": \"Assez bon hôtel\",\r\n \"hotelName\": \"Express Rooms\",\r\n \"category\": \"Budget\",\r\n \"tags\": [\r\n \"wifi\",\r\n \"budget\"\r\n ],\r\n \"parkingIncluded\": true,\r\n \"smokingAllowed\": false,\r\n \"lastRenovationDate\": \"1995-06-30T17:00:00-07:00\",\r\n \"rating\": 4,\r\n \"location\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": [\r\n -122.131577,\r\n 48.678581\r\n ]\r\n }\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"5\",\r\n \"baseRate\": 129.99,\r\n \"description\": \"Another good hotel\",\r\n \"descriptionFr\": \"Un autre bon hôtel\",\r\n \"hotelName\": \"Comfy Place\",\r\n \"category\": \"Budget\",\r\n \"tags\": [\r\n \"wifi\",\r\n \"budget\"\r\n ],\r\n \"parkingIncluded\": true,\r\n \"smokingAllowed\": false,\r\n \"lastRenovationDate\": \"2012-08-11T17:00:00-07:00\",\r\n \"rating\": 4,\r\n \"location\": {\r\n \"type\": \"Point\",\r\n \"coordinates\": [\r\n -122.131577,\r\n 48.678581\r\n ]\r\n }\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"hotelId\": \"6\",\r\n \"baseRate\": 279.99,\r\n \"description\": \"Surprisingly expensive\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "3701" + ], + "Accept": [ + "application/json; odata.metadata=none" + ], + "api-key": [ + "C7E1601022FE7593869BE49CDB38105B" + ], + "User-Agent": [ + "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"key\": \"1\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"2\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"3\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"4\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"5\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"6\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "287" + ], + "Content-Type": [ + "application/json; odata.metadata=none" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "146d30f7-f5fa-435a-a1a1-553ae2a0290c" + ], + "elapsed-time": [ + "132" + ], + "OData-Version": [ + "4.0" + ], + "Preference-Applied": [ + "odata.include-annotations=\"*\"" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:04:23 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/indexes/azsmnet8715/docs/search.index?api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDg3MTUvZG9jcy9zZWFyY2guaW5kZXg/YXBpLXZlcnNpb249MjAxNS0wMi0yOA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"value\": [\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"123\",\r\n \"Title\": \"Lord of the Rings\",\r\n \"Author\": \"J.R.R. Tolkien\"\r\n },\r\n {\r\n \"@search.action\": \"upload\",\r\n \"ISBN\": \"456\",\r\n \"Title\": \"War and Peace\",\r\n \"PublishDate\": \"2015-08-17T17:00:00-07:00\"\r\n }\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "320" + ], + "Accept": [ + "application/json; odata.metadata=none" + ], + "api-key": [ + "C7E1601022FE7593869BE49CDB38105B" + ], + "User-Agent": [ + "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"key\": \"123\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n },\r\n {\r\n \"key\": \"456\",\r\n \"status\": true,\r\n \"errorMessage\": null\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; odata.metadata=none" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "b7a46d7d-f811-47bb-9fe4-6ab2f3ab68ed" + ], + "elapsed-time": [ + "162" + ], + "OData-Version": [ + "4.0" + ], + "Preference-Applied": [ + "odata.include-annotations=\"*\"" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:04:30 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/indexes/azsmnet8715/docs/search.suggest?search=War&suggesterName=sg&$select=ISBN,Title,PublishDate&fuzzy=false&api-version=2015-02-28", + "EncodedRequestUri": "L2luZGV4ZXMvYXpzbW5ldDg3MTUvZG9jcy9zZWFyY2guc3VnZ2VzdD9zZWFyY2g9V2FyJnN1Z2dlc3Rlck5hbWU9c2cmJHNlbGVjdD1JU0JOLFRpdGxlLFB1Ymxpc2hEYXRlJmZ1enp5PWZhbHNlJmFwaS12ZXJzaW9uPTIwMTUtMDItMjg=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "Accept": [ + "application/json; odata.metadata=none" + ], + "api-key": [ + "C7E1601022FE7593869BE49CDB38105B" + ], + "User-Agent": [ + "Microsoft.Azure.Search.SearchIndexClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"@search.text\": \"War and Peace\",\r\n \"ISBN\": \"456\",\r\n \"Title\": \"War and Peace\",\r\n \"PublishDate\": \"2015-08-18T00:00:00Z\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "118" + ], + "Content-Type": [ + "application/json; odata.metadata=none" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "request-id": [ + "6221b72f-5e05-49ea-80bc-4ed01110e9c6" + ], + "elapsed-time": [ + "179" + ], + "OData-Version": [ + "4.0" + ], + "Preference-Applied": [ + "odata.include-annotations=\"*\"" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 19 Aug 2015 00:04:32 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + ".ctor": [ + "azsmnet146", + "azsmnet3513" + ], + "GenerateServiceName": [ + "azs-6589" + ], + "b__35": [ + "azsmnet8715" + ] + }, + "Variables": { + "SubscriptionId": "b80cf239-2c72-47ab-b309-b26aec4656b1" + } +} \ No newline at end of file diff --git a/src/Search/Search.Tests/Tests/IndexingTests.cs b/src/Search/Search.Tests/Tests/IndexingTests.cs index 59d86bb5e923..9529ba4d3fdf 100644 --- a/src/Search/Search.Tests/Tests/IndexingTests.cs +++ b/src/Search/Search.Tests/Tests/IndexingTests.cs @@ -276,7 +276,7 @@ public void StaticallyTypedDateTimesRoundTripAsUtc() SearchIndexClient indexClient = Data.GetSearchIndexClient(createIndexResponse.Index.Name); - DateTime localDateTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Local); + // Can't test local date time since we might be testing against a pre-recorded mock response. DateTime utcDateTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc); DateTime unspecifiedDateTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Unspecified); @@ -284,21 +284,17 @@ public void StaticallyTypedDateTimesRoundTripAsUtc() IndexBatch.Create( new[] { - IndexAction.Create(new Book() { ISBN = "1", PublishDate = localDateTime }), - IndexAction.Create(new Book() { ISBN = "2", PublishDate = utcDateTime }), - IndexAction.Create(new Book() { ISBN = "3", PublishDate = unspecifiedDateTime }) + IndexAction.Create(new Book() { ISBN = "1", PublishDate = utcDateTime }), + IndexAction.Create(new Book() { ISBN = "2", PublishDate = unspecifiedDateTime }) }); indexClient.Documents.Index(batch); SearchTestUtilities.WaitForIndexing(); DocumentGetResponse getResponse = indexClient.Documents.Get("1"); - Assert.Equal(localDateTime.ToUniversalTime(), getResponse.Document.PublishDate); - - getResponse = indexClient.Documents.Get("2"); Assert.Equal(utcDateTime, getResponse.Document.PublishDate); - getResponse = indexClient.Documents.Get("3"); + getResponse = indexClient.Documents.Get("2"); Assert.Equal(utcDateTime, getResponse.Document.PublishDate); }); } @@ -326,7 +322,7 @@ public void DynamicDocumentDateTimesRoundTripAsUtc() SearchIndexClient indexClient = Data.GetSearchIndexClient(createIndexResponse.Index.Name); - DateTime localDateTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Local); + // Can't test local date time since we might be testing against a pre-recorded mock response. DateTime utcDateTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc); DateTime unspecifiedDateTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Unspecified); @@ -334,21 +330,17 @@ public void DynamicDocumentDateTimesRoundTripAsUtc() new IndexBatch( new[] { - new IndexAction(new Document() { { "ISBN", "1" }, { "PublishDate", localDateTime } }), - new IndexAction(new Document() { { "ISBN", "2" }, { "PublishDate", utcDateTime } }), - new IndexAction(new Document() { { "ISBN", "3" }, { "PublishDate", unspecifiedDateTime } }) + new IndexAction(new Document() { { "ISBN", "1" }, { "PublishDate", utcDateTime } }), + new IndexAction(new Document() { { "ISBN", "2" }, { "PublishDate", unspecifiedDateTime } }) }); indexClient.Documents.Index(batch); SearchTestUtilities.WaitForIndexing(); DocumentGetResponse getResponse = indexClient.Documents.Get("1"); - Assert.Equal(new DateTimeOffset(localDateTime), getResponse.Document["PublishDate"]); - - getResponse = indexClient.Documents.Get("2"); Assert.Equal(new DateTimeOffset(utcDateTime), getResponse.Document["PublishDate"]); - getResponse = indexClient.Documents.Get("3"); + getResponse = indexClient.Documents.Get("2"); Assert.Equal(new DateTimeOffset(utcDateTime), getResponse.Document["PublishDate"]); }); } diff --git a/src/Search/Search.Tests/Tests/Models/Book.cs b/src/Search/Search.Tests/Tests/Models/Book.cs index c9ebe9f136a3..1a1a646ed79e 100644 --- a/src/Search/Search.Tests/Tests/Models/Book.cs +++ b/src/Search/Search.Tests/Tests/Models/Book.cs @@ -36,7 +36,11 @@ public override bool Equals(object obj) return false; } - return ISBN == other.ISBN && Title == other.Title && Author == other.Author; + return + ISBN == other.ISBN && + Title == other.Title && + Author == other.Author && + PublishDate == other.PublishDate; } public override int GetHashCode() @@ -46,7 +50,12 @@ public override int GetHashCode() public override string ToString() { - return string.Format("ISBN: {0}; Title: {1}; Author: {2}", ISBN, Title, Author); + return string.Format( + "ISBN: {0}; Title: {1}; Author: {2}; PublishDate: {3}", + ISBN, + Title, + Author, + PublishDate); } } } diff --git a/src/Search/Search.Tests/Tests/SearchTests.cs b/src/Search/Search.Tests/Tests/SearchTests.cs index 2f3990a66a5e..7ea510fd18c2 100644 --- a/src/Search/Search.Tests/Tests/SearchTests.cs +++ b/src/Search/Search.Tests/Tests/SearchTests.cs @@ -20,6 +20,7 @@ using Hyak.Common; using Microsoft.Azure.Search.Models; using Microsoft.Azure.Search.Tests.Utilities; +using Microsoft.Azure.Test; using Microsoft.Azure.Test.TestCategories; using Xunit; @@ -561,6 +562,43 @@ public void CanSearchWithMinimumCoverage() }); } + [Fact] + public void CanSearchWithDateTimeInStaticModel() + { + Run(() => + { + SearchServiceClient serviceClient = Data.GetSearchServiceClient(); + + Index index = + new Index() + { + Name = TestUtilities.GenerateName(), + Fields = new[] + { + new Field("ISBN", DataType.String) { IsKey = true }, + new Field("Title", DataType.String) { IsSearchable = true }, + new Field("Author", DataType.String), + new Field("PublishDate", DataType.DateTimeOffset) + } + }; + + IndexDefinitionResponse createIndexResponse = serviceClient.Indexes.Create(index); + SearchIndexClient indexClient = Data.GetSearchIndexClient(createIndexResponse.Index.Name); + + var doc1 = new Book() { ISBN = "123", Title = "Lord of the Rings", Author = "J.R.R. Tolkien" }; + var doc2 = new Book() { ISBN = "456", Title = "War and Peace", PublishDate = new DateTime(2015, 8, 18) }; + var batch = IndexBatch.Create(IndexAction.Create(doc1), IndexAction.Create(doc2)); + + indexClient.Documents.Index(batch); + SearchTestUtilities.WaitForIndexing(); + + DocumentSearchResponse response = indexClient.Documents.Search("War and Peace"); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + Assert.Equal(1, response.Results.Count); + Assert.Equal(doc2, response.Results[0].Document); + }); + } + private IEnumerable IndexDocuments(SearchIndexClient client, int totalDocCount) { int existingDocumentCount = Data.TestDocuments.Length; diff --git a/src/Search/Search.Tests/Tests/Serialization/DateTimeConverterTests.cs b/src/Search/Search.Tests/Tests/Serialization/DateTimeConverterTests.cs index 9d954aff5256..94eef671c413 100644 --- a/src/Search/Search.Tests/Tests/Serialization/DateTimeConverterTests.cs +++ b/src/Search/Search.Tests/Tests/Serialization/DateTimeConverterTests.cs @@ -15,17 +15,26 @@ using System; using System.Collections.Generic; +using System.IO; using Microsoft.Azure.Search.Serialization; using Newtonsoft.Json; +using Newtonsoft.Json.Linq; using Xunit; namespace Microsoft.Azure.Search.Tests { public sealed class DateTimeConverterTests { - private readonly JsonSerializerSettings _jsonSettings = + private readonly JsonSerializerSettings _serializerSettings = new JsonSerializerSettings() { Converters = new List() { new DateTimeConverter() } }; + private readonly JsonSerializerSettings _deserializerSettings = + new JsonSerializerSettings() + { + DateParseHandling = DateParseHandling.DateTimeOffset, + Converters = new List() { new DateTimeConverter() } + }; + [Fact] public void CanWriteLocalDateTime() { @@ -33,11 +42,12 @@ public void CanWriteLocalDateTime() var expectedDateTime = new DateTimeOffset(localDateTime); string expectedJson = String.Format( - @"""{0}-{1}""", + @"""{0}{1}{2}""", expectedDateTime.DateTime.ToString("s"), + expectedDateTime.Offset < TimeSpan.Zero ? "-" : "+", expectedDateTime.Offset.ToString("hh\\:mm")); - string json = JsonConvert.SerializeObject(localDateTime, _jsonSettings); + string json = JsonConvert.SerializeObject(localDateTime, _serializerSettings); Assert.Equal(expectedJson, json); } @@ -47,7 +57,7 @@ public void CanWriteUtcDateTime() { var utcDateTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc); - string json = JsonConvert.SerializeObject(utcDateTime, _jsonSettings); + string json = JsonConvert.SerializeObject(utcDateTime, _serializerSettings); Assert.Equal(@"""2000-01-01T00:00:00+00:00""", json); } @@ -57,7 +67,7 @@ public void CanWriteUnspecifiedDateTime() { var utcDateTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Unspecified); - string json = JsonConvert.SerializeObject(utcDateTime, _jsonSettings); + string json = JsonConvert.SerializeObject(utcDateTime, _serializerSettings); Assert.Equal(@"""2000-01-01T00:00:00+00:00""", json); } @@ -70,7 +80,7 @@ public void CanWriteNullableDateTime() // Due to some JSON.NET weirdness, we need to wrap it in an object to trigger the DateTime? detection path. object obj = new { UtcDateTime = utcDateTime }; - string json = JsonConvert.SerializeObject(obj, _jsonSettings); + string json = JsonConvert.SerializeObject(obj, _serializerSettings); Assert.Equal(@"{""UtcDateTime"":""2000-01-01T00:00:00+00:00""}", json); } @@ -83,9 +93,112 @@ public void CanWriteNullDateTime() // Due to some JSON.NET weirdness, we need to wrap it in an object to trigger the DateTime? detection path. object obj = new { UtcDateTime = utcDateTime }; - string json = JsonConvert.SerializeObject(obj, _jsonSettings); + string json = JsonConvert.SerializeObject(obj, _serializerSettings); Assert.Equal(@"{""UtcDateTime"":null}", json); } + + [Fact] + public void CanReadUtcDateTime() + { + var expectedUtcDateTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc); + + DateTime actualDateTime = + JsonConvert.DeserializeObject(@"""2000-01-01T00:00:00Z""", _deserializerSettings); + + Assert.Equal(expectedUtcDateTime, actualDateTime); + } + + [Fact] + public void CanReadUtcDateTimeOffset() + { + var expectedUtcDateTimeOffset = new DateTimeOffset(new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc)); + + DateTimeOffset actualDateTimeOffset = + JsonConvert.DeserializeObject(@"""2000-01-01T00:00:00Z""", _deserializerSettings); + + Assert.Equal(expectedUtcDateTimeOffset, actualDateTimeOffset); + } + + [Fact] + public void ReadingDateTimeWithOffsetConvertsToUtc() + { + DateTime expectedUtcTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc); + + DateTime actualDateTime = + JsonConvert.DeserializeObject(@"""1999-12-31T16:00:00-08:00""", _deserializerSettings); + + Assert.Equal(expectedUtcTime, actualDateTime); + } + + [Fact] + public void CanReadDateTimeWithOffsetToDateTimeOffset() + { + var expectedUtcDateTimeOffset = + new DateTimeOffset(new DateTime(1999, 12, 31, 16, 0, 0), TimeSpan.FromHours(-8)); + + DateTimeOffset actualDateTimeOffset = + JsonConvert.DeserializeObject(@"""1999-12-31T16:00:00-08:00""", _deserializerSettings); + + Assert.Equal(expectedUtcDateTimeOffset, actualDateTimeOffset); + } + + [Fact] + public void CanReadNullableDateTime() + { + DateTime? expectedUtcDateTime = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc); + + DateTime? actualDateTime = + JsonConvert.DeserializeObject(@"""2000-01-01T00:00:00Z""", _deserializerSettings); + + Assert.Equal(expectedUtcDateTime, actualDateTime); + } + + [Fact] + public void CanReadNullableDateTimeOffset() + { + DateTimeOffset? expectedUtcDateTimeOffset = + new DateTimeOffset(new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc)); + + DateTimeOffset? actualDateTimeOffset = + JsonConvert.DeserializeObject(@"""2000-01-01T00:00:00Z""", _deserializerSettings); + + Assert.Equal(expectedUtcDateTimeOffset, actualDateTimeOffset); + } + + [Fact] + public void CanReadNullDateTime() + { + DateTime? nullUtcDateTime = null; + DateTime? actualDateTime = JsonConvert.DeserializeObject("null", _deserializerSettings); + Assert.Equal(nullUtcDateTime, actualDateTime); + } + + [Fact] + public void CanReadNullDateTimeOffset() + { + DateTimeOffset? nullUtcDateTimeOffset = null; + DateTimeOffset? actualDateTimeOffset = + JsonConvert.DeserializeObject("null", _deserializerSettings); + Assert.Equal(nullUtcDateTimeOffset, actualDateTimeOffset); + } + + [Fact] + public void CanReadPreParsedDateTime() + { + const string Json = @"{""CreatedAt"":""2000-01-01T00:00:00Z""}"; + using (JsonReader reader = new JsonTextReader(new StringReader(Json))) + { + JsonSerializer serializer = JsonSerializer.Create(_deserializerSettings); + JObject propertyBag = serializer.Deserialize(reader); + Model model = serializer.Deserialize(new JTokenReader(propertyBag)); + Assert.Equal(new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc), model.CreatedAt); + } + } + + private class Model + { + public DateTime CreatedAt { get; set; } + } } } diff --git a/src/Search/Search.Tests/Tests/SuggestTests.cs b/src/Search/Search.Tests/Tests/SuggestTests.cs index 94cf2aafec66..b3149c89b26d 100644 --- a/src/Search/Search.Tests/Tests/SuggestTests.cs +++ b/src/Search/Search.Tests/Tests/SuggestTests.cs @@ -20,6 +20,7 @@ using Hyak.Common; using Microsoft.Azure.Search.Models; using Microsoft.Azure.Search.Tests.Utilities; +using Microsoft.Azure.Test; using Microsoft.Azure.Test.TestCategories; using Xunit; @@ -307,6 +308,45 @@ public void CanSuggestWithMinimumCoverage() }); } + [Fact] + public void CanSuggestWithDateTimeInStaticModel() + { + Run(() => + { + SearchServiceClient serviceClient = Data.GetSearchServiceClient(); + + Index index = + new Index() + { + Name = TestUtilities.GenerateName(), + Fields = new[] + { + new Field("ISBN", DataType.String) { IsKey = true }, + new Field("Title", DataType.String) { IsSearchable = true }, + new Field("Author", DataType.String), + new Field("PublishDate", DataType.DateTimeOffset) + }, + Suggesters = new[] { new Suggester("sg", SuggesterSearchMode.AnalyzingInfixMatching, "Title") } + }; + + IndexDefinitionResponse createIndexResponse = serviceClient.Indexes.Create(index); + SearchIndexClient indexClient = Data.GetSearchIndexClient(createIndexResponse.Index.Name); + + var doc1 = new Book() { ISBN = "123", Title = "Lord of the Rings", Author = "J.R.R. Tolkien" }; + var doc2 = new Book() { ISBN = "456", Title = "War and Peace", PublishDate = new DateTime(2015, 8, 18) }; + var batch = IndexBatch.Create(IndexAction.Create(doc1), IndexAction.Create(doc2)); + + indexClient.Documents.Index(batch); + SearchTestUtilities.WaitForIndexing(); + + var parameters = new SuggestParameters() { Select = new[] { "ISBN", "Title", "PublishDate" } }; + DocumentSuggestResponse response = indexClient.Documents.Suggest("War", "sg", parameters); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + Assert.Equal(1, response.Results.Count); + Assert.Equal(doc2, response.Results[0].Document); + }); + } + private void AssertKeySequenceEqual(DocumentSuggestResponse response, params string[] expectedKeys) { Assert.Equal(HttpStatusCode.OK, response.StatusCode); diff --git a/src/Search/Search/Customizations/Serialization/ConverterBase.cs b/src/Search/Search/Customizations/Serialization/ConverterBase.cs new file mode 100644 index 000000000000..164fb4fae2ad --- /dev/null +++ b/src/Search/Search/Customizations/Serialization/ConverterBase.cs @@ -0,0 +1,91 @@ +// +// Copyright (c) Microsoft. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +using System; +using Newtonsoft.Json; + +namespace Microsoft.Azure.Search.Serialization +{ + /// + /// Base class for custom JsonConverters. + /// + internal abstract class ConverterBase : JsonConverter + { + protected void ExpectAndAdvance(JsonReader reader, JsonToken expectedToken, object expectedValue = null) + { + ExpectAndAdvance(reader, expectedToken, expectedValue); + } + + protected TValue ExpectAndAdvance(JsonReader reader, JsonToken expectedToken, object expectedValue = null) + { + TValue result = Expect(reader, expectedToken, expectedValue); + Advance(reader); + return result; + } + + protected void Expect(JsonReader reader, JsonToken expectedToken, object expectedValue = null) + { + Expect(reader, expectedToken, expectedValue); + } + + protected TValue Expect(JsonReader reader, JsonToken expectedToken, object expectedValue = null) + { + if (reader.TokenType != expectedToken) + { + throw new JsonSerializationException( + String.Format("Deserialization failed. Expected token: '{0}'", expectedToken)); + } + + if (expectedValue != null && !reader.Value.Equals(expectedValue)) + { + string message = + String.Format( + "Deserialization failed. Expected value: '{0}'. Actual: '{1}'", + expectedValue, + reader.Value); + + throw new JsonSerializationException(message); + } + + TValue result = default(TValue); + + if (reader.Value != null) + { + if (!typeof(TValue).IsAssignableFrom(reader.ValueType)) + { + string message = + String.Format( + "Deserialization failed. Value '{0}' is not of expected type '{1}'.", + reader.Value, + typeof(TValue)); + + throw new JsonSerializationException(message); + } + + result = (TValue)reader.Value; + } + + return result; + } + + protected void Advance(JsonReader reader) + { + if (!reader.Read()) + { + throw new JsonSerializationException("Deserialization failed. Unexpected end of input."); + } + } + } +} diff --git a/src/Search/Search/Customizations/Serialization/DateTimeConverter.cs b/src/Search/Search/Customizations/Serialization/DateTimeConverter.cs index 9c95808bfb6c..22113195e6f1 100644 --- a/src/Search/Search/Customizations/Serialization/DateTimeConverter.cs +++ b/src/Search/Search/Customizations/Serialization/DateTimeConverter.cs @@ -21,18 +21,8 @@ namespace Microsoft.Azure.Search.Serialization /// /// Converts System.DateTime objects to System.DateTimeOffset before serialization. /// - internal class DateTimeConverter : JsonConverter + internal class DateTimeConverter : ConverterBase { - public override bool CanRead - { - get { return false; } - } - - public override bool CanWrite - { - get { return true; } - } - public override bool CanConvert(Type objectType) { return typeof(DateTime).IsAssignableFrom(objectType) || typeof(DateTime?).IsAssignableFrom(objectType); @@ -44,7 +34,14 @@ public override object ReadJson( object existingValue, JsonSerializer serializer) { - throw new NotImplementedException(); + // Check for null first. + if (reader.TokenType == JsonToken.Null) + { + return null; + } + + DateTimeOffset? dateTimeOffset = Expect(reader, JsonToken.Date); + return dateTimeOffset.HasValue ? dateTimeOffset.Value.UtcDateTime : (DateTime?)null; } public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) diff --git a/src/Search/Search/Customizations/Serialization/GeographyPointConverter.cs b/src/Search/Search/Customizations/Serialization/GeographyPointConverter.cs index 7266253b47e6..05999eb9322b 100644 --- a/src/Search/Search/Customizations/Serialization/GeographyPointConverter.cs +++ b/src/Search/Search/Customizations/Serialization/GeographyPointConverter.cs @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Search.Serialization /// /// Serializes Microsoft.Spatial.GeographyPoint objects to Geo-JSON and vice-versa. /// - internal class GeographyPointConverter : JsonConverter + internal class GeographyPointConverter : ConverterBase { public override bool CanConvert(Type objectType) { @@ -41,30 +41,30 @@ public override object ReadJson( return null; } - Expect(reader, JsonToken.PropertyName, "type"); - Expect(reader, JsonToken.String, "Point"); - Expect(reader, JsonToken.PropertyName, "coordinates"); - Expect(reader, JsonToken.StartArray); - double longitude = Expect(reader, JsonToken.Float); - double latitude = Expect(reader, JsonToken.Float); - Expect(reader, JsonToken.EndArray); - - Advance(reader); + ExpectAndAdvance(reader, JsonToken.StartObject); + ExpectAndAdvance(reader, JsonToken.PropertyName, "type"); + ExpectAndAdvance(reader, JsonToken.String, "Point"); + ExpectAndAdvance(reader, JsonToken.PropertyName, "coordinates"); + ExpectAndAdvance(reader, JsonToken.StartArray); + double longitude = ExpectAndAdvance(reader, JsonToken.Float); + double latitude = ExpectAndAdvance(reader, JsonToken.Float); + ExpectAndAdvance(reader, JsonToken.EndArray); if (reader.TokenType == JsonToken.PropertyName && reader.Value.Equals("crs")) { - Expect(reader, JsonToken.StartObject); - Expect(reader, JsonToken.PropertyName, "type"); - Expect(reader, JsonToken.String, "name"); - Expect(reader, JsonToken.PropertyName, "properties"); - Expect(reader, JsonToken.StartObject); - Expect(reader, JsonToken.PropertyName, "name"); - Expect(reader, JsonToken.String, "EPSG:4326"); - Expect(reader, JsonToken.EndObject); - Expect(reader, JsonToken.EndObject); Advance(reader); + ExpectAndAdvance(reader, JsonToken.StartObject); + ExpectAndAdvance(reader, JsonToken.PropertyName, "type"); + ExpectAndAdvance(reader, JsonToken.String, "name"); + ExpectAndAdvance(reader, JsonToken.PropertyName, "properties"); + ExpectAndAdvance(reader, JsonToken.StartObject); + ExpectAndAdvance(reader, JsonToken.PropertyName, "name"); + ExpectAndAdvance(reader, JsonToken.String, "EPSG:4326"); + ExpectAndAdvance(reader, JsonToken.EndObject); + ExpectAndAdvance(reader, JsonToken.EndObject); } - + + Expect(reader, JsonToken.EndObject); return GeographyPoint.Create(latitude, longitude); } @@ -81,57 +81,5 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s writer.WriteEndArray(); writer.WriteEndObject(); } - - private void Expect(JsonReader reader, JsonToken expectedToken, object expectedValue = null) - { - Expect(reader, expectedToken, expectedValue); - } - - private TValue Expect(JsonReader reader, JsonToken expectedToken, object expectedValue = null) - { - Advance(reader); - if (reader.TokenType != expectedToken) - { - throw new JsonSerializationException( - String.Format("Deserialization failed. Expected token: '{0}'", expectedToken)); - } - - if (expectedValue != null && !reader.Value.Equals(expectedValue)) - { - string message = - String.Format( - "Deserialization failed. Expected value: '{0}'. Actual: '{1}'", - expectedValue, - reader.Value); - - throw new JsonSerializationException(message); - } - - if (reader.Value != null) - { - if (!typeof(TValue).IsAssignableFrom(reader.ValueType)) - { - string message = - String.Format( - "Deserialization failed. Value '{0}' is not of expected type '{1}'.", - reader.Value, - typeof(TValue)); - - throw new JsonSerializationException(message); - } - - return (TValue)reader.Value; - } - - return default(TValue); - } - - private void Advance(JsonReader reader) - { - if (!reader.Read()) - { - throw new JsonSerializationException("Deserialization failed. Unexpected end of input."); - } - } } } diff --git a/src/Search/Search/Customizations/Serialization/JsonUtility.cs b/src/Search/Search/Customizations/Serialization/JsonUtility.cs index ddcaf40d028f..a3cc909f9d2f 100644 --- a/src/Search/Search/Customizations/Serialization/JsonUtility.cs +++ b/src/Search/Search/Customizations/Serialization/JsonUtility.cs @@ -69,6 +69,7 @@ private static JsonSerializerSettings CreateDeserializerSettings(), new SuggestResultConverter() }