diff --git a/src/ResourceManagement/DataLake.Analytics/DataLakeAnalytics.Tests/ScenarioTests/AccountOperationTests.cs b/src/ResourceManagement/DataLake.Analytics/DataLakeAnalytics.Tests/ScenarioTests/AccountOperationTests.cs index 2f71bf65c06d..e8b8196d4a2f 100644 --- a/src/ResourceManagement/DataLake.Analytics/DataLakeAnalytics.Tests/ScenarioTests/AccountOperationTests.cs +++ b/src/ResourceManagement/DataLake.Analytics/DataLakeAnalytics.Tests/ScenarioTests/AccountOperationTests.cs @@ -4,6 +4,7 @@ using Microsoft.Azure.Management.DataLake.Analytics; using Microsoft.Azure.Management.DataLake.Analytics.Models; using Microsoft.Azure.Test; +using Microsoft.Rest.Azure; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; using System; using System.Collections.Generic; @@ -236,5 +237,110 @@ public void CreateGetUpdateDeleteTest() clientToUse.Account.Delete(commonData.ResourceGroupName, accountToChange.Name); } } + + [Fact] + public void FirewallTest() + { + using (var context = MockContext.Start(this.GetType().FullName)) + { + commonData = new CommonTestFixture(context); + var clientToUse = this.GetDataLakeAnalyticsAccountManagementClient(context); + + // Create a an account with trusted ID provider and firewall rules. + var firewallStart = "127.0.0.1"; + var firewallEnd = "127.0.0.2"; + var firewallRuleName1 = TestUtilities.GenerateName("firerule1"); + var adlaAcocunt = TestUtilities.GenerateName("adla01"); + // Create a test account + var responseCreate = + clientToUse.Account.Create(commonData.ResourceGroupName, adlaAcocunt, + parameters: new DataLakeAnalyticsAccount + { + Location = commonData.Location, + DefaultDataLakeStoreAccount = commonData.DataLakeStoreAccountName, + DataLakeStoreAccounts = new List + { + new DataLakeStoreAccountInfo + { + Name = commonData.DataLakeStoreAccountName, + Suffix = commonData.DataLakeStoreAccountSuffix + } + }, + FirewallRules = new List + { + new FirewallRule(firewallStart, firewallEnd, name: firewallRuleName1) + }, + FirewallAllowAzureIps = FirewallAllowAzureIpsState.Enabled, + FirewallState = FirewallState.Enabled + }); + + Assert.Equal(DataLakeAnalyticsAccountStatus.Succeeded, responseCreate.ProvisioningState); + + // get the account and ensure that all the values are properly set. + var responseGet = clientToUse.Account.Get(commonData.ResourceGroupName, adlaAcocunt); + + // validate the account creation process + Assert.Equal(DataLakeAnalyticsAccountStatus.Succeeded, responseGet.ProvisioningState); + Assert.NotNull(responseCreate.Id); + Assert.NotNull(responseGet.Id); + Assert.Contains(adlaAcocunt, responseGet.Id); + Assert.Equal(commonData.Location, responseGet.Location); + Assert.Equal(adlaAcocunt, responseGet.Name); + Assert.Equal("Microsoft.DataLakeAnalytics/accounts", responseGet.Type); + + // validate firewall state + Assert.Equal(FirewallState.Enabled, responseGet.FirewallState); + Assert.Equal(1, responseGet.FirewallRules.Count()); + Assert.Equal(firewallStart, responseGet.FirewallRules[0].StartIpAddress); + Assert.Equal(firewallEnd, responseGet.FirewallRules[0].EndIpAddress); + Assert.Equal(firewallRuleName1, responseGet.FirewallRules[0].Name); + Assert.Equal(FirewallAllowAzureIpsState.Enabled, responseGet.FirewallAllowAzureIps); + + // Test getting the specific firewall rules + var firewallRule = clientToUse.FirewallRules.Get(commonData.ResourceGroupName, adlaAcocunt, firewallRuleName1); + Assert.Equal(firewallStart, firewallRule.StartIpAddress); + Assert.Equal(firewallEnd, firewallRule.EndIpAddress); + Assert.Equal(firewallRuleName1, firewallRule.Name); + + + var updatedFirewallStart = "192.168.0.0"; + var updatedFirewallEnd = "192.168.0.1"; + firewallRule.StartIpAddress = updatedFirewallStart; + firewallRule.EndIpAddress = updatedFirewallEnd; + + // Update the firewall rule to change the start/end ip addresses + firewallRule = clientToUse.FirewallRules.CreateOrUpdate(commonData.ResourceGroupName, adlaAcocunt, firewallRuleName1, firewallRule); + Assert.Equal(updatedFirewallStart, firewallRule.StartIpAddress); + Assert.Equal(updatedFirewallEnd, firewallRule.EndIpAddress); + Assert.Equal(firewallRuleName1, firewallRule.Name); + + // just update the firewall rule start IP + firewallRule = clientToUse.FirewallRules.Update( + commonData.ResourceGroupName, + adlaAcocunt, + firewallRuleName1, + new UpdateFirewallRuleParameters + { + StartIpAddress = firewallStart + }); + + Assert.Equal(firewallStart, firewallRule.StartIpAddress); + Assert.Equal(updatedFirewallEnd, firewallRule.EndIpAddress); + Assert.Equal(firewallRuleName1, firewallRule.Name); + + // Remove the firewall rule and verify it is gone. + clientToUse.FirewallRules.Delete(commonData.ResourceGroupName, adlaAcocunt, firewallRuleName1); + + try + { + firewallRule = clientToUse.FirewallRules.Get(commonData.ResourceGroupName, adlaAcocunt, firewallRuleName1); + Assert.True(false, "Attempting to retrieve a deleted firewall rule did not throw."); + } + catch (CloudException e) + { + Assert.Equal(HttpStatusCode.NotFound, e.Response.StatusCode); + } + } + } } } diff --git a/src/ResourceManagement/DataLake.Analytics/DataLakeAnalytics.Tests/SessionRecords/DataLakeAnalytics.Tests.AccountOperationTests/FirewallTest.json b/src/ResourceManagement/DataLake.Analytics/DataLakeAnalytics.Tests/SessionRecords/DataLakeAnalytics.Tests.AccountOperationTests/FirewallTest.json new file mode 100644 index 000000000000..1cc2fcd0507e --- /dev/null +++ b/src/ResourceManagement/DataLake.Analytics/DataLakeAnalytics.Tests/SessionRecords/DataLakeAnalytics.Tests.AccountOperationTests/FirewallTest.json @@ -0,0 +1,1858 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeAnalytics/register?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VBbmFseXRpY3MvcmVnaXN0ZXI/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8eaea465-bd70-4a28-82be-26a9e23aa13a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeAnalytics\",\r\n \"namespace\": \"Microsoft.DataLakeAnalytics\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"accounts\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Japan West\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"accounts/dataLakeStoreAccounts\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Japan West\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"accounts/storageAccounts\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Japan West\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"accounts/storageAccounts/containers\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Japan West\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"accounts/storageAccounts/containers/listSasTokens\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Japan West\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/capability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 00:57:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1188" + ], + "x-ms-request-id": [ + "9efe6b76-c093-4e3e-ae47-4e14829d06d9" + ], + "x-ms-correlation-request-id": [ + "9efe6b76-c093-4e3e-ae47-4e14829d06d9" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005728Z:9efe6b76-c093-4e3e-ae47-4e14829d06d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeAnalytics?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VBbmFseXRpY3M/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "99f35b36-af45-4b74-9705-3498967f8461" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeAnalytics\",\r\n \"namespace\": \"Microsoft.DataLakeAnalytics\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"accounts\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Japan West\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"accounts/dataLakeStoreAccounts\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Japan West\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"accounts/storageAccounts\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Japan West\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"accounts/storageAccounts/containers\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Japan West\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"accounts/storageAccounts/containers/listSasTokens\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Japan West\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/capability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 00:57:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-request-id": [ + "e9630a3f-d09d-4bf9-b4a2-18fd0f4fb41c" + ], + "x-ms-correlation-request-id": [ + "e9630a3f-d09d-4bf9-b4a2-18fd0f4fb41c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005728Z:e9630a3f-d09d-4bf9-b4a2-18fd0f4fb41c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.Storage/register?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9yZWdpc3Rlcj9hcGktdmVyc2lvbj0yMDE2LTAyLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ac7d5045-8ff2-4ebd-8d66-11fcec57a2fd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"cd0cad5c-ac96-4c4c-99cd-cfafc285ba36\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/customKeys\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listReadOnlyKeys\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/generateSasCredentials\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listAccountSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listServiceSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"usages\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 00:57:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1187" + ], + "x-ms-request-id": [ + "cc2edf6a-472d-4e91-8a5d-b48e45518678" + ], + "x-ms-correlation-request-id": [ + "cc2edf6a-472d-4e91-8a5d-b48e45518678" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005729Z:cc2edf6a-472d-4e91-8a5d-b48e45518678" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.Storage?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZT9hcGktdmVyc2lvbj0yMDE2LTAyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fe4f9091-0894-451f-9d5f-f38aad4f9ce3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"cd0cad5c-ac96-4c4c-99cd-cfafc285ba36\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/customKeys\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listReadOnlyKeys\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/generateSasCredentials\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listAccountSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listServiceSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"usages\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 00:57:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-request-id": [ + "ad3a0b89-5c31-4f64-b27e-030604686d44" + ], + "x-ms-correlation-request-id": [ + "ad3a0b89-5c31-4f64-b27e-030604686d44" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005729Z:ad3a0b89-5c31-4f64-b27e-030604686d44" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore/register?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9yZWdpc3Rlcj9hcGktdmVyc2lvbj0yMDE2LTAyLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "834f0fbe-b436-4ff9-91fc-6f18496d5374" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore\",\r\n \"namespace\": \"Microsoft.DataLakeStore\",\r\n \"authorization\": {\r\n \"applicationId\": \"e9f49c6b-5ce5-44c8-925d-015017e9f7ad\",\r\n \"roleDefinitionId\": \"41c47f4b-8b45-4522-a73a-d20b16f0f1ec\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"accounts\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"accounts/firewallRules\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/capability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 00:57:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1186" + ], + "x-ms-request-id": [ + "0551c5a8-2089-4b3e-b843-a48c2289f829" + ], + "x-ms-correlation-request-id": [ + "0551c5a8-2089-4b3e-b843-a48c2289f829" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005729Z:0551c5a8-2089-4b3e-b843-a48c2289f829" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZT9hcGktdmVyc2lvbj0yMDE2LTAyLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d4ede27f-9495-4082-a15c-bef073537400" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore\",\r\n \"namespace\": \"Microsoft.DataLakeStore\",\r\n \"authorization\": {\r\n \"applicationId\": \"e9f49c6b-5ce5-44c8-925d-015017e9f7ad\",\r\n \"roleDefinitionId\": \"41c47f4b-8b45-4522-a73a-d20b16f0f1ec\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"accounts\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"accounts/firewallRules\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/capability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 00:57:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14958" + ], + "x-ms-request-id": [ + "f3b112a7-ffc3-4d63-b0f5-1cc41e9e13ee" + ], + "x-ms-correlation-request-id": [ + "f3b112a7-ffc3-4d63-b0f5-1cc41e9e13ee" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005729Z:f3b112a7-ffc3-4d63-b0f5-1cc41e9e13ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourcegroups/rgaba12931?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlZ3JvdXBzL3JnYWJhMTI5MzE/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d15ff59e-7093-43c0-9590-3325c8bcbfea" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'rgaba12931' could not be found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "102" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 00:57:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14957" + ], + "x-ms-request-id": [ + "c0deaec1-6cf6-497a-a2c1-2ac2388a263c" + ], + "x-ms-correlation-request-id": [ + "c0deaec1-6cf6-497a-a2c1-2ac2388a263c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005729Z:c0deaec1-6cf6-497a-a2c1-2ac2388a263c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourcegroups/rgaba12931?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlZ3JvdXBzL3JnYWJhMTI5MzE/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5b7c9b53-795d-4802-b2a1-44c4dbb791ae" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931\",\r\n \"name\": \"rgaba12931\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 00:57:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14956" + ], + "x-ms-request-id": [ + "fd038865-2695-4b47-965c-c590457e5435" + ], + "x-ms-correlation-request-id": [ + "fd038865-2695-4b47-965c-c590457e5435" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005729Z:fd038865-2695-4b47-965c-c590457e5435" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourcegroups/rgaba12931?api-version=2016-02-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlZ3JvdXBzL3JnYWJhMTI5MzE/YXBpLXZlcnNpb249MjAxNi0wMi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "31" + ], + "x-ms-client-request-id": [ + "a3dba4d8-8193-4f62-83e1-7490fb6fdd85" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.1.3-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931\",\r\n \"name\": \"rgaba12931\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "174" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 00:57:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1185" + ], + "x-ms-request-id": [ + "74f81537-f0f9-45fd-a9ca-f31f4760add3" + ], + "x-ms-correlation-request-id": [ + "74f81537-f0f9-45fd-a9ca-f31f4760add3" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005729Z:74f81537-f0f9-45fd-a9ca-f31f4760add3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake17894?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZVN0b3JlL2FjY291bnRzL3Rlc3RkYXRhbGFrZTE3ODk0P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ac63b629-fa62-4152-b3ed-91d28529fea7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testdatalake17894' under resource group 'rgaba12931' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "164" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 00:57:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "4ed2aa46-a282-4f3e-bd43-cae52ac03eb6" + ], + "x-ms-correlation-request-id": [ + "4ed2aa46-a282-4f3e-bd43-cae52ac03eb6" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005730Z:4ed2aa46-a282-4f3e-bd43-cae52ac03eb6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake17894?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZVN0b3JlL2FjY291bnRzL3Rlc3RkYXRhbGFrZTE3ODk0P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake17894.caboaccountdogfood.net\",\r\n \"accountId\": \"e130250b-7de9-41f9-98fd-7751b5136107\",\r\n \"creationTime\": \"2017-02-09T00:57:32.2481764Z\",\r\n \"lastModifiedTime\": \"2017-02-09T00:57:32.2481764Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake17894\",\r\n \"name\": \"testdatalake17894\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:58:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "26cd3627-ce4f-4ad7-bed6-18c65dc8ae2f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14788" + ], + "x-ms-correlation-request-id": [ + "5403db96-d75b-43f1-9730-80671d336bdb" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005801Z:5403db96-d75b-43f1-9730-80671d336bdb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake17894?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZVN0b3JlL2FjY291bnRzL3Rlc3RkYXRhbGFrZTE3ODk0P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e8ba0a74-2b94-4e64-ba8c-fa762e362395" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake17894.caboaccountdogfood.net\",\r\n \"accountId\": \"e130250b-7de9-41f9-98fd-7751b5136107\",\r\n \"creationTime\": \"2017-02-09T00:57:32.2481764Z\",\r\n \"lastModifiedTime\": \"2017-02-09T00:57:32.2481764Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake17894\",\r\n \"name\": \"testdatalake17894\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:58:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "850466a3-ce1a-4fd5-9324-773326adf89b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14739" + ], + "x-ms-correlation-request-id": [ + "40270ec3-2923-4192-b390-5fddcc4c8af5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005802Z:40270ec3-2923-4192-b390-5fddcc4c8af5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake17894?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZVN0b3JlL2FjY291bnRzL3Rlc3RkYXRhbGFrZTE3ODk0P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "31" + ], + "x-ms-client-request-id": [ + "5d27ef8b-8544-4809-a7ae-517e2b55bf9e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"e130250b-7de9-41f9-98fd-7751b5136107\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake17894\",\r\n \"name\": \"testdatalake17894\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "421" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:57:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourcegroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake17894/operationresults/0?api-version=2016-11-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/e130250b-7de9-41f9-98fd-7751b51361070?api-version=2016-11-01&expanded=true" + ], + "x-ms-request-id": [ + "6c66f98b-d8f2-4c6b-94c8-699bcbdb22b6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1108" + ], + "x-ms-correlation-request-id": [ + "560c4b24-7454-4412-80a1-78d77eba5f16" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005730Z:560c4b24-7454-4412-80a1-78d77eba5f16" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/e130250b-7de9-41f9-98fd-7751b51361070?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2UxMzAyNTBiLTdkZTktNDFmOS05OGZkLTc3NTFiNTEzNjEwNzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:58:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e90ddcb0-0ca7-4636-af30-98c090e181fa" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14894" + ], + "x-ms-correlation-request-id": [ + "b5db0dae-0181-4afa-ba09-db04a53e1437" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005801Z:b5db0dae-0181-4afa-ba09-db04a53e1437" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake29778?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZVN0b3JlL2FjY291bnRzL3Rlc3RkYXRhbGFrZTI5Nzc4P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "05a5d5ad-9548-428c-a370-3dd9d12cb416" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testdatalake29778' under resource group 'rgaba12931' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "164" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 09 Feb 2017 00:58:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "91e1e40b-6fde-4faf-a21f-9b3f1d4790bd" + ], + "x-ms-correlation-request-id": [ + "91e1e40b-6fde-4faf-a21f-9b3f1d4790bd" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005802Z:91e1e40b-6fde-4faf-a21f-9b3f1d4790bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake29778?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZVN0b3JlL2FjY291bnRzL3Rlc3RkYXRhbGFrZTI5Nzc4P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake29778.caboaccountdogfood.net\",\r\n \"accountId\": \"e4a2edba-2951-4034-85cb-fdc28a8cf180\",\r\n \"creationTime\": \"2017-02-09T00:58:04.8180921Z\",\r\n \"lastModifiedTime\": \"2017-02-09T00:58:04.8180921Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake29778\",\r\n \"name\": \"testdatalake29778\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:58:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9746b818-221f-44c9-80dc-1b0ec617a119" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14893" + ], + "x-ms-correlation-request-id": [ + "a725c4f7-cd9f-4371-825a-4f68dfbdcec4" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005833Z:a725c4f7-cd9f-4371-825a-4f68dfbdcec4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake29778?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZVN0b3JlL2FjY291bnRzL3Rlc3RkYXRhbGFrZTI5Nzc4P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ce5235f7-e00d-4ce1-8cd2-f791abebd06f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake29778.caboaccountdogfood.net\",\r\n \"accountId\": \"e4a2edba-2951-4034-85cb-fdc28a8cf180\",\r\n \"creationTime\": \"2017-02-09T00:58:04.8180921Z\",\r\n \"lastModifiedTime\": \"2017-02-09T00:58:04.8180921Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake29778\",\r\n \"name\": \"testdatalake29778\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:58:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a554598a-f6c4-46f0-8882-279824f13c7b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14787" + ], + "x-ms-correlation-request-id": [ + "eff33e82-f659-4aba-af64-41f925344421" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005834Z:eff33e82-f659-4aba-af64-41f925344421" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake29778?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZVN0b3JlL2FjY291bnRzL3Rlc3RkYXRhbGFrZTI5Nzc4P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "31" + ], + "x-ms-client-request-id": [ + "c31ad513-0e60-4603-8084-9364c5a92f9f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"e4a2edba-2951-4034-85cb-fdc28a8cf180\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake29778\",\r\n \"name\": \"testdatalake29778\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "421" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:58:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourcegroups/rgaba12931/providers/Microsoft.DataLakeStore/accounts/testdatalake29778/operationresults/0?api-version=2016-11-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/e4a2edba-2951-4034-85cb-fdc28a8cf1800?api-version=2016-11-01&expanded=true" + ], + "x-ms-request-id": [ + "6139bf61-c131-4877-a6a1-2a152945cc74" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1107" + ], + "x-ms-correlation-request-id": [ + "aaf16de3-81a4-403f-acb4-e394be223551" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005803Z:aaf16de3-81a4-403f-acb4-e394be223551" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/e4a2edba-2951-4034-85cb-fdc28a8cf1800?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2U0YTJlZGJhLTI5NTEtNDAzNC04NWNiLWZkYzI4YThjZjE4MDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:58:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "106d84fc-b296-48ac-bda8-58a56e77acba" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14700" + ], + "x-ms-correlation-request-id": [ + "fa018c7a-b29f-4694-b96f-4bbb9fae8b04" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005833Z:fa018c7a-b29f-4694-b96f-4bbb9fae8b04" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZUFuYWx5dGljcy9hY2NvdW50cy9hZGxhMDE3MTk0P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"defaultDataLakeStoreAccount\": \"testdatalake17894\",\r\n \"dataLakeStoreAccounts\": [\r\n {\r\n \"properties\": {\r\n \"suffix\": \"caboaccountdogfood.net\"\r\n },\r\n \"name\": \"testdatalake17894\"\r\n }\r\n ],\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule16199\"\r\n }\r\n ]\r\n },\r\n \"location\": \"East US 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "565" + ], + "x-ms-client-request-id": [ + "edbcda05-eb70-413a-ba94-b1be14240007" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Analytics.DataLakeAnalyticsAccountManagementClient/2.0.1-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule16199\"\r\n }\r\n ],\r\n \"defaultDataLakeStoreAccount\": \"testdatalake17894\",\r\n \"dataLakeStoreAccounts\": [\r\n {\r\n \"properties\": {\r\n \"suffix\": \"caboaccountdogfood.net\"\r\n },\r\n \"name\": \"testdatalake17894\"\r\n }\r\n ],\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"332e952d-805b-45a5-9e05-4748a9396113\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194\",\r\n \"name\": \"adla017194\",\r\n \"type\": \"Microsoft.DataLakeAnalytics/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "743" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:58:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourcegroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194/operationresults/0?api-version=2016-11-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeAnalytics/locations/EastUS2/operationResults/332e952d-805b-45a5-9e05-4748a93961130?api-version=2016-11-01&expanded=true" + ], + "x-ms-request-id": [ + "ae4a6bef-6f19-478c-ba36-736a2df0f12f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1184" + ], + "x-ms-correlation-request-id": [ + "b785f341-c72f-4c8c-b0be-23f697c53536" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005835Z:b785f341-c72f-4c8c-b0be-23f697c53536" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeAnalytics/locations/EastUS2/operationResults/332e952d-805b-45a5-9e05-4748a93961130?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VBbmFseXRpY3MvbG9jYXRpb25zL0Vhc3RVUzIvb3BlcmF0aW9uUmVzdWx0cy8zMzJlOTUyZC04MDViLTQ1YTUtOWUwNS00NzQ4YTkzOTYxMTMwP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDEmZXhwYW5kZWQ9dHJ1ZQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Analytics.DataLakeAnalyticsAccountManagementClient/2.0.1-preview" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:59:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2821c10d-d27b-4432-a669-00c3da08e1ed" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14735" + ], + "x-ms-correlation-request-id": [ + "01c7f52f-f5b7-42b2-ba62-b91203d7ad30" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005905Z:01c7f52f-f5b7-42b2-ba62-b91203d7ad30" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZUFuYWx5dGljcy9hY2NvdW50cy9hZGxhMDE3MTk0P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Analytics.DataLakeAnalyticsAccountManagementClient/2.0.1-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule16199\"\r\n }\r\n ],\r\n \"defaultDataLakeStoreAccount\": \"testdatalake17894\",\r\n \"dataLakeStoreAccounts\": [\r\n {\r\n \"properties\": {\r\n \"suffix\": \"caboaccountdogfood.net\"\r\n },\r\n \"name\": \"testdatalake17894\"\r\n }\r\n ],\r\n \"storageAccounts\": [],\r\n \"maxDegreeOfParallelism\": 63,\r\n \"maxJobCount\": 3,\r\n \"systemMaxDegreeOfParallelism\": 120,\r\n \"systemMaxJobCount\": 20,\r\n \"queryStoreRetention\": 30,\r\n \"hiveMetastores\": [],\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"adla017194.konaaccountdogfood.net\",\r\n \"accountId\": \"332e952d-805b-45a5-9e05-4748a9396113\",\r\n \"creationTime\": \"2017-02-09T00:58:40.2731661Z\",\r\n \"lastModifiedTime\": \"2017-02-09T00:58:40.2731661Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194\",\r\n \"name\": \"adla017194\",\r\n \"type\": \"Microsoft.DataLakeAnalytics/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:59:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "914430d6-e1a8-4569-be47-518f1db96601" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14951" + ], + "x-ms-correlation-request-id": [ + "35e4ea4b-5c39-42e7-aad2-8259ba6ea457" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005906Z:35e4ea4b-5c39-42e7-aad2-8259ba6ea457" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZUFuYWx5dGljcy9hY2NvdW50cy9hZGxhMDE3MTk0P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5eabd96f-20f7-4f5c-abe6-e39809826957" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Analytics.DataLakeAnalyticsAccountManagementClient/2.0.1-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule16199\"\r\n }\r\n ],\r\n \"defaultDataLakeStoreAccount\": \"testdatalake17894\",\r\n \"dataLakeStoreAccounts\": [\r\n {\r\n \"properties\": {\r\n \"suffix\": \"caboaccountdogfood.net\"\r\n },\r\n \"name\": \"testdatalake17894\"\r\n }\r\n ],\r\n \"storageAccounts\": [],\r\n \"maxDegreeOfParallelism\": 63,\r\n \"maxJobCount\": 3,\r\n \"systemMaxDegreeOfParallelism\": 120,\r\n \"systemMaxJobCount\": 20,\r\n \"queryStoreRetention\": 30,\r\n \"hiveMetastores\": [],\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"adla017194.konaaccountdogfood.net\",\r\n \"accountId\": \"332e952d-805b-45a5-9e05-4748a9396113\",\r\n \"creationTime\": \"2017-02-09T00:58:40.2731661Z\",\r\n \"lastModifiedTime\": \"2017-02-09T00:58:40.2731661Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194\",\r\n \"name\": \"adla017194\",\r\n \"type\": \"Microsoft.DataLakeAnalytics/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:59:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bda2e76b-8225-496b-b067-67a17c362e77" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14753" + ], + "x-ms-correlation-request-id": [ + "3dfd7976-dd75-483f-9f2b-1fd8177be7cd" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005906Z:3dfd7976-dd75-483f-9f2b-1fd8177be7cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194/firewallRules/firerule16199?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZUFuYWx5dGljcy9hY2NvdW50cy9hZGxhMDE3MTk0L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxNjE5OT9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2c894fbe-adff-4781-b06c-f14a38c9b637" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Analytics.DataLakeAnalyticsAccountManagementClient/2.0.1-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194/firewallRules/firerule16199\",\r\n \"name\": \"firerule16199\",\r\n \"type\": \"Microsoft.DataLakeAnalytics/accounts/firewallRules\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:59:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8c628ac6-bc39-4246-acb7-2415e7cc0473" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14699" + ], + "x-ms-correlation-request-id": [ + "b3182c48-1179-43c1-8d27-95c41c2dd996" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005907Z:b3182c48-1179-43c1-8d27-95c41c2dd996" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194/firewallRules/firerule16199?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZUFuYWx5dGljcy9hY2NvdW50cy9hZGxhMDE3MTk0L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxNjE5OT9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a0a1fa63-9d0d-491d-a23a-f24e040eddd6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Analytics.DataLakeAnalyticsAccountManagementClient/2.0.1-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"Firewall Rule does not exist.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "79" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:59:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "8268c84a-f66b-48ff-a0b5-e82372a9b358" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14950" + ], + "x-ms-correlation-request-id": [ + "0f73d278-75c7-46c3-bdb6-4a88780a7bd2" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005910Z:0f73d278-75c7-46c3-bdb6-4a88780a7bd2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194/firewallRules/firerule16199?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZUFuYWx5dGljcy9hY2NvdW50cy9hZGxhMDE3MTk0L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxNjE5OT9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.0.0\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194/firewallRules/firerule16199\",\r\n \"name\": \"firerule16199\",\r\n \"type\": \"Microsoft.DataLakeAnalytics/accounts/firewallRules\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "370" + ], + "x-ms-client-request-id": [ + "ec125aeb-e83a-4afc-a1af-852a12154724" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Analytics.DataLakeAnalyticsAccountManagementClient/2.0.1-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.0.0\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194/firewallRules/firerule16199\",\r\n \"name\": \"firerule16199\",\r\n \"type\": \"Microsoft.DataLakeAnalytics/accounts/firewallRules\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:59:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "65943f82-5c84-4522-8226-5ea639fb9b5e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1168" + ], + "x-ms-correlation-request-id": [ + "87e2f560-7f42-48a2-98c4-b452f480ee2e" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005908Z:87e2f560-7f42-48a2-98c4-b452f480ee2e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194/firewallRules/firerule16199?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZUFuYWx5dGljcy9hY2NvdW50cy9hZGxhMDE3MTk0L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxNjE5OT9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "63" + ], + "x-ms-client-request-id": [ + "66f6f239-b8ff-4845-836e-9b96c2cbbfe9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Analytics.DataLakeAnalyticsAccountManagementClient/2.0.1-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194/firewallRules/firerule16199\",\r\n \"name\": \"firerule16199\",\r\n \"type\": \"Microsoft.DataLakeAnalytics/accounts/firewallRules\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:59:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6603b072-24b4-4113-ab8c-a0494e8ca89c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1094" + ], + "x-ms-correlation-request-id": [ + "9bf742e0-b1e3-4e67-8c94-df7c0d872db3" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005909Z:9bf742e0-b1e3-4e67-8c94-df7c0d872db3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/rgaba12931/providers/Microsoft.DataLakeAnalytics/accounts/adla017194/firewallRules/firerule16199?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL3JnYWJhMTI5MzEvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhTGFrZUFuYWx5dGljcy9hY2NvdW50cy9hZGxhMDE3MTk0L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxNjE5OT9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "22b23cd6-ff45-4023-a1b6-0bf2ca2eaf84" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Analytics.DataLakeAnalyticsAccountManagementClient/2.0.1-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:59:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c567e538-4c8c-4cea-84b2-1b3ef363c63f" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1117" + ], + "x-ms-correlation-request-id": [ + "f591de15-5a2b-4a02-99f5-6feeeef749ac" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T005909Z:f591de15-5a2b-4a02-99f5-6feeeef749ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + ".ctor": [ + "rgaba12931", + "testaba18423", + "testaba24535", + "teststorage15609", + "testdatalake17894", + "testdatalake29778", + "testazureblob19059", + "testdb16583", + "testtbl11696", + "testtvf18636", + "testproc11077", + "testview14399", + "testcred15240", + "testsecret11927", + "testsecretpwd14827" + ], + "FirewallTest": [ + "firerule16199", + "adla017194" + ] + }, + "Variables": { + "SubscriptionId": "90585f39-ab85-4921-bb37-0468f7efd1dd" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/DataLake.Analytics/DataLakeAnalytics.Tests/project.json b/src/ResourceManagement/DataLake.Analytics/DataLakeAnalytics.Tests/project.json index 33cb7ae54195..fe6bb6f7f41a 100644 --- a/src/ResourceManagement/DataLake.Analytics/DataLakeAnalytics.Tests/project.json +++ b/src/ResourceManagement/DataLake.Analytics/DataLakeAnalytics.Tests/project.json @@ -38,8 +38,8 @@ "Microsoft.Rest.ClientRuntime": "[2.3.2,3.0)" , "Microsoft.Azure.Management.Storage": "[5.0.2-preview]", "Microsoft.Azure.Management.ResourceManager": "1.1.3-preview", - "Microsoft.Azure.Management.DataLake.Analytics": "[1.0.1-preview,2.0.0)", - "Microsoft.Azure.Management.DataLake.Store": "[1.0.1-preview,2.0.0)", + "Microsoft.Azure.Management.DataLake.Analytics": "[2.0.1-preview, 3.0.0-preview)", + "Microsoft.Azure.Management.DataLake.Store": "[2.0.1-preview, 3.0.0-preview)", "xunit": "2.2.0-beta2-build3300", "dotnet-test-xunit": "2.2.0-preview2-build1029" } diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Customizations/DataLakeAnalyticsCustomizationHelper.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Customizations/DataLakeAnalyticsCustomizationHelper.cs index 5b2a28152543..d8e61fb5cebe 100644 --- a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Customizations/DataLakeAnalyticsCustomizationHelper.cs +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Customizations/DataLakeAnalyticsCustomizationHelper.cs @@ -14,7 +14,7 @@ internal static class DataLakeAnalyticsCustomizationHelper /// This constant is used as the default package version to place in the user agent. /// It should mirror the package version in the project.json file. /// - internal const string PackageVersion = "2.0.0"; + internal const string PackageVersion = "2.0.1-preview"; internal const string DefaultAdlaDnsSuffix = "azuredatalakeanalytics.net"; diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/DataLakeAnalyticsAccountManagementClient.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/DataLakeAnalyticsAccountManagementClient.cs index 8b915ab23f73..f27277140b6d 100644 --- a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/DataLakeAnalyticsAccountManagementClient.cs +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/DataLakeAnalyticsAccountManagementClient.cs @@ -79,6 +79,11 @@ public partial class DataLakeAnalyticsAccountManagementClient : ServiceClient public bool? GenerateClientRequestId { get; set; } + /// + /// Gets the IFirewallRulesOperations. + /// + public virtual IFirewallRulesOperations FirewallRules { get; private set; } + /// /// Gets the IStorageAccountsOperations. /// @@ -295,6 +300,7 @@ internal DataLakeAnalyticsAccountManagementClient(System.Uri baseUri, ServiceCli /// private void Initialize() { + FirewallRules = new FirewallRulesOperations(this); StorageAccounts = new StorageAccountsOperations(this); DataLakeStoreAccounts = new DataLakeStoreAccountsOperations(this); Account = new AccountOperations(this); diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/FirewallRulesOperations.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/FirewallRulesOperations.cs new file mode 100644 index 000000000000..ce14355f1c84 --- /dev/null +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/FirewallRulesOperations.cs @@ -0,0 +1,1251 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.DataLake.Analytics +{ + using Azure; + using DataLake; + using Management; + using Azure; + using Management; + using DataLake; + using Models; + using Newtonsoft.Json; + using Rest; + using Rest.Azure; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FirewallRulesOperations operations. + /// + internal partial class FirewallRulesOperations : IServiceOperations, IFirewallRulesOperations + { + /// + /// Initializes a new instance of the FirewallRulesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal FirewallRulesOperations(DataLakeAnalyticsAccountManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DataLakeAnalyticsAccountManagementClient + /// + public DataLakeAnalyticsAccountManagementClient Client { get; private set; } + + /// + /// Creates or updates the specified firewall rule. During update, the firewall + /// rule with the specified name will be replaced with this new firewall rule. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account to add or replace the firewall + /// rule. + /// + /// + /// The name of the firewall rule to create or update. + /// + /// + /// Parameters supplied to create or update the firewall rule. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, FirewallRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (firewallRuleName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallRuleName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("firewallRuleName", firewallRuleName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{firewallRuleName}", System.Uri.EscapeDataString(firewallRuleName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the specified firewall rule. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account to which to update the firewall + /// rule. + /// + /// + /// The name of the firewall rule to update. + /// + /// + /// Parameters supplied to update the firewall rule. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, UpdateFirewallRuleParameters parameters = default(UpdateFirewallRuleParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (firewallRuleName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallRuleName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("firewallRuleName", firewallRuleName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{firewallRuleName}", System.Uri.EscapeDataString(firewallRuleName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes the specified firewall rule from the specified Data Lake Analytics + /// account + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account from which to delete the + /// firewall rule. + /// + /// + /// The name of the firewall rule to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (firewallRuleName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallRuleName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("firewallRuleName", firewallRuleName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{firewallRuleName}", System.Uri.EscapeDataString(firewallRuleName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + if (_httpResponse.Content != null) { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + } + else { + _responseContent = string.Empty; + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the specified Data Lake Analytics firewall rule. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account from which to get the firewall + /// rule. + /// + /// + /// The name of the firewall rule to retrieve. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (firewallRuleName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallRuleName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("firewallRuleName", firewallRuleName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{firewallRuleName}", System.Uri.EscapeDataString(firewallRuleName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists the Data Lake Analytics firewall rules within the specified Data Lake + /// Analytics account. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account from which to get the firewall + /// rules. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByAccount", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists the Data Lake Analytics firewall rules within the specified Data Lake + /// Analytics account. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByAccountNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} + + + diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/FirewallRulesOperationsExtensions.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/FirewallRulesOperationsExtensions.cs new file mode 100644 index 000000000000..21f166c3e70f --- /dev/null +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/FirewallRulesOperationsExtensions.cs @@ -0,0 +1,327 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.DataLake.Analytics +{ + using Azure; + using DataLake; + using Management; + using Azure; + using Management; + using DataLake; + using Models; + using Rest; + using Rest.Azure; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for FirewallRulesOperations. + /// + public static partial class FirewallRulesOperationsExtensions + { + /// + /// Creates or updates the specified firewall rule. During update, the firewall + /// rule with the specified name will be replaced with this new firewall rule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account to add or replace the firewall + /// rule. + /// + /// + /// The name of the firewall rule to create or update. + /// + /// + /// Parameters supplied to create or update the firewall rule. + /// + public static FirewallRule CreateOrUpdate(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, FirewallRule parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, accountName, firewallRuleName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the specified firewall rule. During update, the firewall + /// rule with the specified name will be replaced with this new firewall rule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account to add or replace the firewall + /// rule. + /// + /// + /// The name of the firewall rule to create or update. + /// + /// + /// Parameters supplied to create or update the firewall rule. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, FirewallRule parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates the specified firewall rule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account to which to update the firewall + /// rule. + /// + /// + /// The name of the firewall rule to update. + /// + /// + /// Parameters supplied to update the firewall rule. + /// + public static FirewallRule Update(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, UpdateFirewallRuleParameters parameters = default(UpdateFirewallRuleParameters)) + { + return operations.UpdateAsync(resourceGroupName, accountName, firewallRuleName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates the specified firewall rule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account to which to update the firewall + /// rule. + /// + /// + /// The name of the firewall rule to update. + /// + /// + /// Parameters supplied to update the firewall rule. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, UpdateFirewallRuleParameters parameters = default(UpdateFirewallRuleParameters), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified firewall rule from the specified Data Lake Analytics + /// account + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account from which to delete the + /// firewall rule. + /// + /// + /// The name of the firewall rule to delete. + /// + public static void Delete(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName) + { + operations.DeleteAsync(resourceGroupName, accountName, firewallRuleName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified firewall rule from the specified Data Lake Analytics + /// account + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account from which to delete the + /// firewall rule. + /// + /// + /// The name of the firewall rule to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken)) + { + await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, null, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specified Data Lake Analytics firewall rule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account from which to get the firewall + /// rule. + /// + /// + /// The name of the firewall rule to retrieve. + /// + public static FirewallRule Get(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName) + { + return operations.GetAsync(resourceGroupName, accountName, firewallRuleName).GetAwaiter().GetResult(); + } + + /// + /// Gets the specified Data Lake Analytics firewall rule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account from which to get the firewall + /// rule. + /// + /// + /// The name of the firewall rule to retrieve. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists the Data Lake Analytics firewall rules within the specified Data Lake + /// Analytics account. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account from which to get the firewall + /// rules. + /// + public static IPage ListByAccount(this IFirewallRulesOperations operations, string resourceGroupName, string accountName) + { + return operations.ListByAccountAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); + } + + /// + /// Lists the Data Lake Analytics firewall rules within the specified Data Lake + /// Analytics account. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Analytics + /// account. + /// + /// + /// The name of the Data Lake Analytics account from which to get the firewall + /// rules. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAccountAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists the Data Lake Analytics firewall rules within the specified Data Lake + /// Analytics account. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByAccountNext(this IFirewallRulesOperations operations, string nextPageLink) + { + return operations.ListByAccountNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists the Data Lake Analytics firewall rules within the specified Data Lake + /// Analytics account. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAccountNextAsync(this IFirewallRulesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} + + + diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/IDataLakeAnalyticsAccountManagementClient.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/IDataLakeAnalyticsAccountManagementClient.cs index eb3df492731c..3d55380de7cf 100644 --- a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/IDataLakeAnalyticsAccountManagementClient.cs +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/IDataLakeAnalyticsAccountManagementClient.cs @@ -74,6 +74,11 @@ public partial interface IDataLakeAnalyticsAccountManagementClient : System.IDis bool? GenerateClientRequestId { get; set; } + /// + /// Gets the IFirewallRulesOperations. + /// + IFirewallRulesOperations FirewallRules { get; } + /// /// Gets the IStorageAccountsOperations. /// diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/IFirewallRulesOperations.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/IFirewallRulesOperations.cs new file mode 100644 index 000000000000..2b9cbbecde7f --- /dev/null +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/IFirewallRulesOperations.cs @@ -0,0 +1,211 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.DataLake.Analytics +{ + using Azure; + using DataLake; + using Management; + using Azure; + using Management; + using DataLake; + using Models; + using Rest; + using Rest.Azure; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FirewallRulesOperations operations. + /// + public partial interface IFirewallRulesOperations + { + /// + /// Creates or updates the specified firewall rule. During update, the + /// firewall rule with the specified name will be replaced with this + /// new firewall rule. + /// + /// + /// The name of the Azure resource group that contains the Data Lake + /// Analytics account. + /// + /// + /// The name of the Data Lake Analytics account to add or replace the + /// firewall rule. + /// + /// + /// The name of the firewall rule to create or update. + /// + /// + /// Parameters supplied to create or update the firewall rule. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, FirewallRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the specified firewall rule. + /// + /// + /// The name of the Azure resource group that contains the Data Lake + /// Analytics account. + /// + /// + /// The name of the Data Lake Analytics account to which to update the + /// firewall rule. + /// + /// + /// The name of the firewall rule to update. + /// + /// + /// Parameters supplied to update the firewall rule. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, UpdateFirewallRuleParameters parameters = default(UpdateFirewallRuleParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the specified firewall rule from the specified Data Lake + /// Analytics account + /// + /// + /// The name of the Azure resource group that contains the Data Lake + /// Analytics account. + /// + /// + /// The name of the Data Lake Analytics account from which to delete + /// the firewall rule. + /// + /// + /// The name of the firewall rule to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the specified Data Lake Analytics firewall rule. + /// + /// + /// The name of the Azure resource group that contains the Data Lake + /// Analytics account. + /// + /// + /// The name of the Data Lake Analytics account from which to get the + /// firewall rule. + /// + /// + /// The name of the firewall rule to retrieve. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the Data Lake Analytics firewall rules within the specified + /// Data Lake Analytics account. + /// + /// + /// The name of the Azure resource group that contains the Data Lake + /// Analytics account. + /// + /// + /// The name of the Data Lake Analytics account from which to get the + /// firewall rules. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the Data Lake Analytics firewall rules within the specified + /// Data Lake Analytics account. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} + + + diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/DataLakeAnalyticsAccount.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/DataLakeAnalyticsAccount.cs index d8b93b708b09..5890e8ac881e 100644 --- a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/DataLakeAnalyticsAccount.cs +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/DataLakeAnalyticsAccount.cs @@ -87,7 +87,16 @@ public DataLakeAnalyticsAccount() { } /// 'Commitment_1000AUHours', 'Commitment_5000AUHours', /// 'Commitment_10000AUHours', 'Commitment_50000AUHours', /// 'Commitment_100000AUHours', 'Commitment_500000AUHours' - public DataLakeAnalyticsAccount(string location, string defaultDataLakeStoreAccount, IList dataLakeStoreAccounts, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), DataLakeAnalyticsAccountStatus? provisioningState = default(DataLakeAnalyticsAccountStatus?), DataLakeAnalyticsAccountState? state = default(DataLakeAnalyticsAccountState?), int? maxDegreeOfParallelism = default(int?), int? queryStoreRetention = default(int?), int? maxJobCount = default(int?), int? systemMaxDegreeOfParallelism = default(int?), int? systemMaxJobCount = default(int?), IList storageAccounts = default(IList), System.DateTime? creationTime = default(System.DateTime?), System.DateTime? lastModifiedTime = default(System.DateTime?), string endpoint = default(string), TierType? newTier = default(TierType?), TierType? currentTier = default(TierType?)) + /// The current state of the IP address + /// firewall for this Data Lake Analytics account. Possible values + /// include: 'Enabled', 'Disabled' + /// The current state of allowing + /// or disallowing IPs originating within Azure through the firewall. + /// If the firewall is disabled, this is not enforced. Possible values + /// include: 'Enabled', 'Disabled' + /// The list of firewall rules associated + /// with this Data Lake Analytics account. + public DataLakeAnalyticsAccount(string location, string defaultDataLakeStoreAccount, IList dataLakeStoreAccounts, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), DataLakeAnalyticsAccountStatus? provisioningState = default(DataLakeAnalyticsAccountStatus?), DataLakeAnalyticsAccountState? state = default(DataLakeAnalyticsAccountState?), int? maxDegreeOfParallelism = default(int?), int? queryStoreRetention = default(int?), int? maxJobCount = default(int?), int? systemMaxDegreeOfParallelism = default(int?), int? systemMaxJobCount = default(int?), IList storageAccounts = default(IList), System.DateTime? creationTime = default(System.DateTime?), System.DateTime? lastModifiedTime = default(System.DateTime?), string endpoint = default(string), TierType? newTier = default(TierType?), TierType? currentTier = default(TierType?), FirewallState? firewallState = default(FirewallState?), FirewallAllowAzureIpsState? firewallAllowAzureIps = default(FirewallAllowAzureIpsState?), IList firewallRules = default(IList)) : base(location, id, name, type, tags) { ProvisioningState = provisioningState; @@ -105,6 +114,9 @@ public DataLakeAnalyticsAccount() { } Endpoint = endpoint; NewTier = newTier; CurrentTier = currentTier; + FirewallState = firewallState; + FirewallAllowAzureIps = firewallAllowAzureIps; + FirewallRules = firewallRules; } /// @@ -220,6 +232,30 @@ public DataLakeAnalyticsAccount() { } [JsonProperty(PropertyName = "properties.currentTier")] public TierType? CurrentTier { get; protected set; } + /// + /// Gets or sets the current state of the IP address firewall for this + /// Data Lake Analytics account. Possible values include: 'Enabled', + /// 'Disabled' + /// + [JsonProperty(PropertyName = "properties.firewallState")] + public FirewallState? FirewallState { get; set; } + + /// + /// Gets or sets the current state of allowing or disallowing IPs + /// originating within Azure through the firewall. If the firewall is + /// disabled, this is not enforced. Possible values include: 'Enabled', + /// 'Disabled' + /// + [JsonProperty(PropertyName = "properties.firewallAllowAzureIps")] + public FirewallAllowAzureIpsState? FirewallAllowAzureIps { get; set; } + + /// + /// Gets or sets the list of firewall rules associated with this Data + /// Lake Analytics account. + /// + [JsonProperty(PropertyName = "properties.firewallRules")] + public IList FirewallRules { get; set; } + /// /// Validate the object. /// @@ -273,6 +309,16 @@ public override void Validate() } } } + if (FirewallRules != null) + { + foreach (var element2 in FirewallRules) + { + if (element2 != null) + { + element2.Validate(); + } + } + } } } } diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/DataLakeAnalyticsAccountUpdateParameters.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/DataLakeAnalyticsAccountUpdateParameters.cs index ccbf8569f34d..4f7143e51bef 100644 --- a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/DataLakeAnalyticsAccountUpdateParameters.cs +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/DataLakeAnalyticsAccountUpdateParameters.cs @@ -53,13 +53,25 @@ public DataLakeAnalyticsAccountUpdateParameters() { } /// 'Commitment_5000AUHours', 'Commitment_10000AUHours', /// 'Commitment_50000AUHours', 'Commitment_100000AUHours', /// 'Commitment_500000AUHours' - public DataLakeAnalyticsAccountUpdateParameters(IDictionary tags = default(IDictionary), int? maxDegreeOfParallelism = default(int?), int? queryStoreRetention = default(int?), int? maxJobCount = default(int?), TierType? newTier = default(TierType?)) + /// The current state of the IP address + /// firewall for this Data Lake Analytics account. Possible values + /// include: 'Enabled', 'Disabled' + /// The current state of allowing + /// or disallowing IPs originating within Azure through the firewall. + /// If the firewall is disabled, this is not enforced. Possible values + /// include: 'Enabled', 'Disabled' + /// The list of firewall rules associated + /// with this Data Lake Analytics account. + public DataLakeAnalyticsAccountUpdateParameters(IDictionary tags = default(IDictionary), int? maxDegreeOfParallelism = default(int?), int? queryStoreRetention = default(int?), int? maxJobCount = default(int?), TierType? newTier = default(TierType?), FirewallState? firewallState = default(FirewallState?), FirewallAllowAzureIpsState? firewallAllowAzureIps = default(FirewallAllowAzureIpsState?), IList firewallRules = default(IList)) { Tags = tags; MaxDegreeOfParallelism = maxDegreeOfParallelism; QueryStoreRetention = queryStoreRetention; MaxJobCount = maxJobCount; NewTier = newTier; + FirewallState = firewallState; + FirewallAllowAzureIps = firewallAllowAzureIps; + FirewallRules = firewallRules; } /// @@ -99,6 +111,30 @@ public DataLakeAnalyticsAccountUpdateParameters() { } [JsonProperty(PropertyName = "properties.newTier")] public TierType? NewTier { get; set; } + /// + /// Gets or sets the current state of the IP address firewall for this + /// Data Lake Analytics account. Possible values include: 'Enabled', + /// 'Disabled' + /// + [JsonProperty(PropertyName = "properties.firewallState")] + public FirewallState? FirewallState { get; set; } + + /// + /// Gets or sets the current state of allowing or disallowing IPs + /// originating within Azure through the firewall. If the firewall is + /// disabled, this is not enforced. Possible values include: 'Enabled', + /// 'Disabled' + /// + [JsonProperty(PropertyName = "properties.firewallAllowAzureIps")] + public FirewallAllowAzureIpsState? FirewallAllowAzureIps { get; set; } + + /// + /// Gets or sets the list of firewall rules associated with this Data + /// Lake Analytics account. + /// + [JsonProperty(PropertyName = "properties.firewallRules")] + public IList FirewallRules { get; set; } + /// /// Validate the object. /// @@ -123,6 +159,16 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxJobCount", 1); } + if (FirewallRules != null) + { + foreach (var element in FirewallRules) + { + if (element != null) + { + element.Validate(); + } + } + } } } } diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/ErrorDetails.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/ErrorDetails.cs deleted file mode 100644 index 357a3f267a0e..000000000000 --- a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/ErrorDetails.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Microsoft.Azure.Management.DataLake.Analytics.Models -{ - using Analytics; - using Azure; - using DataLake; - using Management; - using Azure; - using Management; - using DataLake; - using Analytics; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Generic resource error details information. - /// - public partial class ErrorDetails - { - /// - /// Initializes a new instance of the ErrorDetails class. - /// - public ErrorDetails() { } - - /// - /// Initializes a new instance of the ErrorDetails class. - /// - /// the HTTP status code or error code associated - /// with this error - /// the error message localized based on - /// Accept-Language - /// the target of the particular error (for - /// example, the name of the property in error). - public ErrorDetails(string code = default(string), string message = default(string), string target = default(string)) - { - Code = code; - Message = message; - Target = target; - } - - /// - /// Gets the HTTP status code or error code associated with this error - /// - [JsonProperty(PropertyName = "code")] - public string Code { get; protected set; } - - /// - /// Gets the error message localized based on Accept-Language - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; protected set; } - - /// - /// Gets the target of the particular error (for example, the name of - /// the property in error). - /// - [JsonProperty(PropertyName = "target")] - public string Target { get; protected set; } - - } -} - - - diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/FirewallAllowAzureIpsState.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/FirewallAllowAzureIpsState.cs new file mode 100644 index 000000000000..19c15f61ad03 --- /dev/null +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/FirewallAllowAzureIpsState.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.DataLake.Analytics.Models +{ + using Analytics; + using Azure; + using DataLake; + using Management; + using Azure; + using Management; + using DataLake; + using Analytics; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for FirewallAllowAzureIpsState. + /// + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + public enum FirewallAllowAzureIpsState + { + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled + } +} + + + diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/FirewallRule.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/FirewallRule.cs new file mode 100644 index 000000000000..e8e1ed9ff7e2 --- /dev/null +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/FirewallRule.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.DataLake.Analytics.Models +{ + using Analytics; + using Azure; + using DataLake; + using Management; + using Azure; + using Management; + using DataLake; + using Analytics; + using Newtonsoft.Json; + using Rest; + using Rest.Serialization; + using System.Linq; + + /// + /// Data Lake Analytics firewall rule information + /// + [JsonTransformation] + public partial class FirewallRule : OptionalSubResource + { + /// + /// Initializes a new instance of the FirewallRule class. + /// + public FirewallRule() { } + + /// + /// Initializes a new instance of the FirewallRule class. + /// + /// the start IP address for the firewall + /// rule. This can be either ipv4 or ipv6. Start and End should be in + /// the same protocol. + /// the end IP address for the firewall + /// rule. This can be either ipv4 or ipv6. Start and End should be in + /// the same protocol. + /// Resource Id + /// Resource name + /// Resource type + public FirewallRule(string startIpAddress, string endIpAddress, string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + StartIpAddress = startIpAddress; + EndIpAddress = endIpAddress; + } + + /// + /// Gets or sets the start IP address for the firewall rule. This can + /// be either ipv4 or ipv6. Start and End should be in the same + /// protocol. + /// + [JsonProperty(PropertyName = "properties.startIpAddress")] + public string StartIpAddress { get; set; } + + /// + /// Gets or sets the end IP address for the firewall rule. This can be + /// either ipv4 or ipv6. Start and End should be in the same protocol. + /// + [JsonProperty(PropertyName = "properties.endIpAddress")] + public string EndIpAddress { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StartIpAddress == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StartIpAddress"); + } + if (EndIpAddress == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EndIpAddress"); + } + } + } +} + + + diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/FirewallState.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/FirewallState.cs new file mode 100644 index 000000000000..12abb87855ac --- /dev/null +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/FirewallState.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.DataLake.Analytics.Models +{ + using Analytics; + using Azure; + using DataLake; + using Management; + using Azure; + using Management; + using DataLake; + using Analytics; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for FirewallState. + /// + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + public enum FirewallState + { + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled + } +} + + + diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/JobInformation.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/JobInformation.cs index f9b5177327bd..655c1e13dc7e 100644 --- a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/JobInformation.cs +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/JobInformation.cs @@ -45,7 +45,8 @@ public JobInformation() { } /// the error message details for the job, /// if the job failed. /// the degree of parallelism used - /// for this job. This must be greater than 0. + /// for this job. This must be greater than 0, if set to less than 0 it + /// will default to 1. /// the priority value for the current job. /// Lower numbers have a higher priority. By default, a job has a /// priority of 1000. This must be greater than 0. @@ -123,7 +124,7 @@ public JobInformation() { } /// /// Gets or sets the degree of parallelism used for this job. This must - /// be greater than 0. + /// be greater than 0, if set to less than 0 it will default to 1. /// [JsonProperty(PropertyName = "degreeOfParallelism")] public int? DegreeOfParallelism { get; set; } @@ -215,10 +216,6 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); } - if (DegreeOfParallelism < 1) - { - throw new ValidationException(ValidationRules.InclusiveMinimum, "DegreeOfParallelism", 1); - } if (Properties != null) { Properties.Validate(); diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/OptionalSubResource.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/OptionalSubResource.cs new file mode 100644 index 000000000000..e2db0e4217e2 --- /dev/null +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/OptionalSubResource.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.DataLake.Analytics.Models +{ + using Analytics; + using Azure; + using DataLake; + using Management; + using Azure; + using Management; + using DataLake; + using Analytics; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The Resource model definition for a nested resource with no required + /// properties. + /// + public partial class OptionalSubResource + { + /// + /// Initializes a new instance of the OptionalSubResource class. + /// + public OptionalSubResource() { } + + /// + /// Initializes a new instance of the OptionalSubResource class. + /// + /// Resource Id + /// Resource name + /// Resource type + public OptionalSubResource(string id = default(string), string name = default(string), string type = default(string)) + { + Id = id; + Name = name; + Type = type; + } + + /// + /// Gets resource Id + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; protected set; } + + /// + /// Gets or sets resource name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets resource type + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; protected set; } + + } +} + + + diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/UpdateFirewallRuleParameters.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/UpdateFirewallRuleParameters.cs new file mode 100644 index 000000000000..06ca7b3f0c25 --- /dev/null +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Generated/Models/UpdateFirewallRuleParameters.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.DataLake.Analytics.Models +{ + using Analytics; + using Azure; + using DataLake; + using Management; + using Azure; + using Management; + using DataLake; + using Analytics; + using Newtonsoft.Json; + using Rest; + using Rest.Serialization; + using System.Linq; + + /// + /// Data Lake Analytics firewall rule update parameters + /// + [JsonTransformation] + public partial class UpdateFirewallRuleParameters + { + /// + /// Initializes a new instance of the UpdateFirewallRuleParameters + /// class. + /// + public UpdateFirewallRuleParameters() { } + + /// + /// Initializes a new instance of the UpdateFirewallRuleParameters + /// class. + /// + /// the start IP address for the firewall + /// rule. This can be either ipv4 or ipv6. Start and End should be in + /// the same protocol. + /// the end IP address for the firewall + /// rule. This can be either ipv4 or ipv6. Start and End should be in + /// the same protocol. + public UpdateFirewallRuleParameters(string startIpAddress = default(string), string endIpAddress = default(string)) + { + StartIpAddress = startIpAddress; + EndIpAddress = endIpAddress; + } + + /// + /// Gets or sets the start IP address for the firewall rule. This can + /// be either ipv4 or ipv6. Start and End should be in the same + /// protocol. + /// + [JsonProperty(PropertyName = "properties.startIpAddress")] + public string StartIpAddress { get; set; } + + /// + /// Gets or sets the end IP address for the firewall rule. This can be + /// either ipv4 or ipv6. Start and End should be in the same protocol. + /// + [JsonProperty(PropertyName = "properties.endIpAddress")] + public string EndIpAddress { get; set; } + + } +} + + + diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Properties/AssemblyInfo.cs b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Properties/AssemblyInfo.cs index a832c2c715cf..3326726b43c0 100644 --- a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Properties/AssemblyInfo.cs +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/Properties/AssemblyInfo.cs @@ -8,7 +8,7 @@ [assembly: AssemblyDescription("Provides Microsoft Azure Data Lake Analytics management operations including account, catalog and job management.")] [assembly: AssemblyVersion("2.0.0.0")] -[assembly: AssemblyFileVersion("2.0.0.0")] +[assembly: AssemblyFileVersion("2.0.1.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Azure .NET SDK")] diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/generate.cmd b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/generate.cmd index 53fd6e9435a6..18d90ebf23b3 100644 --- a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/generate.cmd +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/generate.cmd @@ -8,9 +8,9 @@ setlocal set autoRestVersion=1.0.0-Nightly20170104 set source=-Source https://www.myget.org/F/autorest/api/v2 -set accountSpecFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/fdf8f01a22cac0cdab2e4ef20549e86b2f8820f8/arm-datalake-analytics/account/2016-11-01/swagger/account.json" -set jobSpecFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/fdf8f01a22cac0cdab2e4ef20549e86b2f8820f8/arm-datalake-analytics/job/2016-11-01/swagger/job.json" -set catalogSpecFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/fdf8f01a22cac0cdab2e4ef20549e86b2f8820f8/arm-datalake-analytics/catalog/2016-11-01/swagger/catalog.json" +set accountSpecFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0ae749b979d3a333de9eb76f726dad06223f455f/arm-datalake-analytics/account/2016-11-01/swagger/account.json" +set jobSpecFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0ae749b979d3a333de9eb76f726dad06223f455f/arm-datalake-analytics/job/2016-11-01/swagger/job.json" +set catalogSpecFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0ae749b979d3a333de9eb76f726dad06223f455f/arm-datalake-analytics/catalog/2016-11-01/swagger/catalog.json" set repoRoot=%~dp0..\..\..\.. set generateFolder=%~dp0Generated diff --git a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/project.json b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/project.json index 4f653d26d32a..960d635660c1 100644 --- a/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/project.json +++ b/src/ResourceManagement/DataLake.Analytics/Microsoft.Azure.Management.DataLake.Analytics/project.json @@ -1,5 +1,5 @@ { - "version": "2.0.0", + "version": "2.0.1-preview", "description": "Provides Data Lake Analytics account, job and catalog management capabilities for Microsoft Azure.", "authors": [ "Microsoft" ], diff --git a/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/ScenarioTests/AccountOperationTests.cs b/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/ScenarioTests/AccountOperationTests.cs index 1d534c93c419..d115088a75e4 100644 --- a/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/ScenarioTests/AccountOperationTests.cs +++ b/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/ScenarioTests/AccountOperationTests.cs @@ -167,7 +167,7 @@ public void FirewallAndTrustedProviderTest() var trustedIdName = TestUtilities.GenerateName("trustedrule1"); var adlsAccountName = TestUtilities.GenerateName("adlsacct"); - + var responseCreate = clientToUse.Account.Create(resourceGroupName: commonData.ResourceGroupName, name: adlsAccountName, parameters: new DataLakeStoreAccount @@ -180,9 +180,10 @@ public void FirewallAndTrustedProviderTest() TrustedIdProviders = new List { new TrustedIdProvider(trustedUrl, name: trustedIdName) - }, + }, FirewallState = FirewallState.Enabled, TrustedIdProviderState = TrustedIdProviderState.Enabled, + FirewallAllowAzureIps = FirewallAllowAzureIpsState.Enabled }); @@ -207,6 +208,7 @@ public void FirewallAndTrustedProviderTest() Assert.Equal(firewallStart, responseGet.FirewallRules[0].StartIpAddress); Assert.Equal(firewallEnd, responseGet.FirewallRules[0].EndIpAddress); Assert.Equal(firewallRuleName1, responseGet.FirewallRules[0].Name); + Assert.Equal(FirewallAllowAzureIpsState.Enabled, responseGet.FirewallAllowAzureIps); // validate trusted identity provider state Assert.Equal(TrustedIdProviderState.Enabled, responseGet.TrustedIdProviderState); @@ -232,6 +234,20 @@ public void FirewallAndTrustedProviderTest() Assert.Equal(updatedFirewallEnd, firewallRule.EndIpAddress); Assert.Equal(firewallRuleName1, firewallRule.Name); + // just update the firewall rule start IP + firewallRule = clientToUse.FirewallRules.Update( + commonData.ResourceGroupName, + adlsAccountName, + firewallRuleName1, + new UpdateFirewallRuleParameters + { + StartIpAddress = firewallStart + }); + + Assert.Equal(firewallStart, firewallRule.StartIpAddress); + Assert.Equal(updatedFirewallEnd, firewallRule.EndIpAddress); + Assert.Equal(firewallRuleName1, firewallRule.Name); + // Remove the firewall rule and verify it is gone. clientToUse.FirewallRules.Delete(commonData.ResourceGroupName, adlsAccountName, firewallRuleName1); @@ -254,11 +270,24 @@ public void FirewallAndTrustedProviderTest() var updatedIdUrl = string.Format("https://sts.windows.net/{0}", TestUtilities.GenerateGuid().ToString()); trustedIdProvider.IdProvider = updatedIdUrl; - // Update the firewall rule to change the start/end ip addresses + // Update the trusted id provider trustedIdProvider = clientToUse.TrustedIdProviders.CreateOrUpdate(commonData.ResourceGroupName, adlsAccountName, trustedIdName, trustedIdProvider); Assert.Equal(updatedIdUrl, trustedIdProvider.IdProvider); Assert.Equal(trustedIdName, trustedIdProvider.Name); + // update it with a patch + trustedIdProvider = clientToUse.TrustedIdProviders.Update( + commonData.ResourceGroupName, + adlsAccountName, + trustedIdName, + new UpdateTrustedIdProviderParameters + { + IdProvider = trustedUrl + }); + + Assert.Equal(trustedUrl, trustedIdProvider.IdProvider); + Assert.Equal(trustedIdName, trustedIdProvider.Name); + // Remove the firewall rule and verify it is gone. clientToUse.TrustedIdProviders.Delete(commonData.ResourceGroupName, adlsAccountName, trustedIdName); diff --git a/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/ScenarioTests/FileSystemOperationTests.cs b/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/ScenarioTests/FileSystemOperationTests.cs index 7d1d01af0607..2b9fefd28f26 100644 --- a/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/ScenarioTests/FileSystemOperationTests.cs +++ b/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/ScenarioTests/FileSystemOperationTests.cs @@ -283,6 +283,52 @@ public void DataLakeStoreFileSystemFileCreateWithContents() } } + [Fact] + public void DataLakeStoreFileSystemGetContentSummaryForFileAndFolder() + { + using (var context = MockContext.Start(this.GetType().FullName)) + { + commonData = new CommonTestFixture(context); + using ( + commonData.DataLakeStoreFileSystemClient = commonData.GetDataLakeStoreFileSystemManagementClient(context)) + { + var filePath = CreateFile(commonData.DataLakeStoreFileSystemClient, commonData.DataLakeStoreFileSystemAccountName, true, true); + GetAndCompareFileOrFolder(commonData.DataLakeStoreFileSystemClient, commonData.DataLakeStoreFileSystemAccountName, filePath, FileType.FILE, + fileContentsToAdd.Length); + CompareFileContents(commonData.DataLakeStoreFileSystemClient, commonData.DataLakeStoreFileSystemAccountName, filePath, + fileContentsToAdd); + + // get content summary for the root folder, which should contain the file and directory created + // it should also have at least one more directory. + var contentSummary = commonData.DataLakeStoreFileSystemClient.FileSystem.GetContentSummary( + commonData.DataLakeStoreFileSystemAccountName, + "/"); + Assert.True(contentSummary.ContentSummary.FileCount >= 1); + Assert.True(contentSummary.ContentSummary.DirectoryCount >= 2); + Assert.True(contentSummary.ContentSummary.Length >= fileContentsToAdd.Length); + Assert.True(contentSummary.ContentSummary.SpaceConsumed >= fileContentsToAdd.Length); + + // get content summary for the folder + contentSummary = commonData.DataLakeStoreFileSystemClient.FileSystem.GetContentSummary( + commonData.DataLakeStoreFileSystemAccountName, + folderToCreate); + Assert.Equal(1, contentSummary.ContentSummary.FileCount); + Assert.Equal(1, contentSummary.ContentSummary.DirectoryCount); + Assert.Equal(fileContentsToAdd.Length, contentSummary.ContentSummary.Length); + Assert.Equal(fileContentsToAdd.Length, contentSummary.ContentSummary.SpaceConsumed); + + // get the content summary for the file + contentSummary = commonData.DataLakeStoreFileSystemClient.FileSystem.GetContentSummary( + commonData.DataLakeStoreFileSystemAccountName, + filePath); + Assert.Equal(1, contentSummary.ContentSummary.FileCount); + Assert.Equal(0, contentSummary.ContentSummary.DirectoryCount); + Assert.Equal(fileContentsToAdd.Length, contentSummary.ContentSummary.Length); + Assert.Equal(fileContentsToAdd.Length, contentSummary.ContentSummary.SpaceConsumed); + } + } + } + [Fact] public void DataLakeStoreFileSystemAppendToFile() { diff --git a/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/FirewallAndTrustedProviderTest.json b/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/FirewallAndTrustedProviderTest.json index 8bbd21e20eaf..84088422e61d 100644 --- a/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/FirewallAndTrustedProviderTest.json +++ b/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/FirewallAndTrustedProviderTest.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/register?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9yZWdpc3Rlcj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore/register?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9yZWdpc3Rlcj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "245efc81-43f8-4653-862f-6dc3f6d24fc3" + "0185d2ea-d226-4137-9176-362c0cd85625" ], "accept-language": [ "en-US" @@ -17,7 +17,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore\",\r\n \"namespace\": \"Microsoft.DataLakeStore\",\r\n \"authorization\": {\r\n \"applicationId\": \"e9f49c6b-5ce5-44c8-925d-015017e9f7ad\",\r\n \"roleDefinitionId\": \"17eb9cca-f08a-4499-b2d3-852d175f614f\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"accounts\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"accounts/firewallRules\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/capability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore\",\r\n \"namespace\": \"Microsoft.DataLakeStore\",\r\n \"authorization\": {\r\n \"applicationId\": \"e9f49c6b-5ce5-44c8-925d-015017e9f7ad\",\r\n \"roleDefinitionId\": \"41c47f4b-8b45-4522-a73a-d20b16f0f1ec\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"accounts\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"accounts/firewallRules\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/capability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -29,25 +29,28 @@ "no-cache" ], "Date": [ - "Thu, 10 Nov 2016 22:52:35 GMT" + "Thu, 09 Feb 2017 00:48:29 GMT" ], "Pragma": [ "no-cache" ], + "Transfer-Encoding": [ + "chunked" + ], "Vary": [ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1179" ], "x-ms-request-id": [ - "279c408d-a318-44a6-9aaa-dee816a8c8a4" + "6b2c90a1-c5f1-4f8f-9089-aac3ddae331f" ], "x-ms-correlation-request-id": [ - "279c408d-a318-44a6-9aaa-dee816a8c8a4" + "6b2c90a1-c5f1-4f8f-9089-aac3ddae331f" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225236Z:279c408d-a318-44a6-9aaa-dee816a8c8a4" + "CENTRALUS:20170209T004829Z:6b2c90a1-c5f1-4f8f-9089-aac3ddae331f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -56,13 +59,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "aebdcefa-0c96-4d61-a494-f9eb92fc6f03" + "21eb4948-e4fb-47b0-b930-96e1c01a5da2" ], "accept-language": [ "en-US" @@ -72,7 +75,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore\",\r\n \"namespace\": \"Microsoft.DataLakeStore\",\r\n \"authorization\": {\r\n \"applicationId\": \"e9f49c6b-5ce5-44c8-925d-015017e9f7ad\",\r\n \"roleDefinitionId\": \"17eb9cca-f08a-4499-b2d3-852d175f614f\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"accounts\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"accounts/firewallRules\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/capability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore\",\r\n \"namespace\": \"Microsoft.DataLakeStore\",\r\n \"authorization\": {\r\n \"applicationId\": \"e9f49c6b-5ce5-44c8-925d-015017e9f7ad\",\r\n \"roleDefinitionId\": \"41c47f4b-8b45-4522-a73a-d20b16f0f1ec\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"accounts\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"accounts/firewallRules\",\r\n \"locations\": [\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"East US 2\",\r\n \"East US\",\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Southeast Asia\",\r\n \"Central US\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Europe\",\r\n \"West Europe\",\r\n \"East Asia\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/capability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -84,7 +87,7 @@ "no-cache" ], "Date": [ - "Thu, 10 Nov 2016 22:52:36 GMT" + "Thu, 09 Feb 2017 00:48:29 GMT" ], "Pragma": [ "no-cache" @@ -93,16 +96,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14930" ], "x-ms-request-id": [ - "8b77ee67-ef1d-4dac-aa10-ebf07f898c7d" + "33cd6425-f7bd-4833-838e-e7a573ca1483" ], "x-ms-correlation-request-id": [ - "8b77ee67-ef1d-4dac-aa10-ebf07f898c7d" + "33cd6425-f7bd-4833-838e-e7a573ca1483" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225236Z:8b77ee67-ef1d-4dac-aa10-ebf07f898c7d" + "CENTRALUS:20170209T004829Z:33cd6425-f7bd-4833-838e-e7a573ca1483" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -111,13 +114,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.Storage/register?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9yZWdpc3Rlcj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.Storage/register?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9yZWdpc3Rlcj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "fbba2061-e2ee-42eb-9225-fb00d4f9fa14" + "2102a5c0-667e-4db3-aed6-906a9b5fbbbf" ], "accept-language": [ "en-US" @@ -127,7 +130,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listAccountSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"usages\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/services\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2014-04-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/services/metricDefinitions\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2014-04-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"cd0cad5c-ac96-4c4c-99cd-cfafc285ba36\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/customKeys\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listReadOnlyKeys\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/generateSasCredentials\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listAccountSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listServiceSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"usages\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -139,25 +142,28 @@ "no-cache" ], "Date": [ - "Thu, 10 Nov 2016 22:52:36 GMT" + "Thu, 09 Feb 2017 00:48:29 GMT" ], "Pragma": [ "no-cache" ], + "Transfer-Encoding": [ + "chunked" + ], "Vary": [ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1178" ], "x-ms-request-id": [ - "97f13256-068b-4fd9-8238-055ce2707259" + "0ff21777-066c-4c59-ba9f-3b369858bd3e" ], "x-ms-correlation-request-id": [ - "97f13256-068b-4fd9-8238-055ce2707259" + "0ff21777-066c-4c59-ba9f-3b369858bd3e" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225237Z:97f13256-068b-4fd9-8238-055ce2707259" + "CENTRALUS:20170209T004829Z:0ff21777-066c-4c59-ba9f-3b369858bd3e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -166,13 +172,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.Storage?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.Storage?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "158275d6-514e-46f9-9593-679341920748" + "6085bebe-2d1d-4a34-91e4-66af72901b9e" ], "accept-language": [ "en-US" @@ -182,7 +188,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listAccountSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"usages\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/services\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2014-04-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/services/metricDefinitions\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2014-04-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"cd0cad5c-ac96-4c4c-99cd-cfafc285ba36\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"West US\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/customKeys\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listReadOnlyKeys\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-10-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/generateSasCredentials\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listAccountSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listServiceSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"usages\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -194,7 +200,7 @@ "no-cache" ], "Date": [ - "Thu, 10 Nov 2016 22:52:36 GMT" + "Thu, 09 Feb 2017 00:48:29 GMT" ], "Pragma": [ "no-cache" @@ -203,16 +209,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14929" ], "x-ms-request-id": [ - "33870da9-2794-42d1-bf31-351f0b411e55" + "e789236a-9af1-4b72-be4f-29770ab38a53" ], "x-ms-correlation-request-id": [ - "33870da9-2794-42d1-bf31-351f0b411e55" + "e789236a-9af1-4b72-be4f-29770ab38a53" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225237Z:33870da9-2794-42d1-bf31-351f0b411e55" + "CENTRALUS:20170209T004830Z:e789236a-9af1-4b72-be4f-29770ab38a53" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -221,13 +227,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourcegroups/datalakerg1727?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNzI3P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourcegroups/datalakerg18961?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxODk2MT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cc26c250-2ac9-4123-90a2-49f895f3e721" + "62745887-939a-4e9e-ba66-955a0054d7ed" ], "accept-language": [ "en-US" @@ -237,10 +243,10 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg1727' could not be found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg18961' could not be found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -252,7 +258,7 @@ "no-cache" ], "Date": [ - "Thu, 10 Nov 2016 22:52:36 GMT" + "Thu, 09 Feb 2017 00:48:29 GMT" ], "Pragma": [ "no-cache" @@ -261,16 +267,16 @@ "gateway" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14928" ], "x-ms-request-id": [ - "3a6d47b9-f9f8-4d1e-9670-e7878559bd35" + "f6cd421f-a8d4-4c83-a9b2-8410b3383143" ], "x-ms-correlation-request-id": [ - "3a6d47b9-f9f8-4d1e-9670-e7878559bd35" + "f6cd421f-a8d4-4c83-a9b2-8410b3383143" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225237Z:3a6d47b9-f9f8-4d1e-9670-e7878559bd35" + "CENTRALUS:20170209T004830Z:f6cd421f-a8d4-4c83-a9b2-8410b3383143" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -279,13 +285,13 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourcegroups/datalakerg1727?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNzI3P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourcegroups/datalakerg18961?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxODk2MT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7d2001e4-7c3f-4538-bafe-112c709611f8" + "14a800e9-e842-4e42-b0b1-af1f0c75d91a" ], "accept-language": [ "en-US" @@ -295,7 +301,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727\",\r\n \"name\": \"datalakerg1727\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961\",\r\n \"name\": \"datalakerg18961\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -307,7 +313,7 @@ "no-cache" ], "Date": [ - "Thu, 10 Nov 2016 22:52:37 GMT" + "Thu, 09 Feb 2017 00:48:30 GMT" ], "Pragma": [ "no-cache" @@ -316,16 +322,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14927" ], "x-ms-request-id": [ - "9d34fc35-b20e-4829-b031-215f0e3cd2bb" + "3d46ed7e-5575-46b8-bc30-6b442327bdd2" ], "x-ms-correlation-request-id": [ - "9d34fc35-b20e-4829-b031-215f0e3cd2bb" + "3d46ed7e-5575-46b8-bc30-6b442327bdd2" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225238Z:9d34fc35-b20e-4829-b031-215f0e3cd2bb" + "CENTRALUS:20170209T004830Z:3d46ed7e-5575-46b8-bc30-6b442327bdd2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -334,8 +340,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourcegroups/datalakerg1727?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNzI3P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourcegroups/datalakerg18961?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxODk2MT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -346,7 +352,7 @@ "31" ], "x-ms-client-request-id": [ - "86a4cc72-6a08-479c-8a02-c11f0bff652e" + "70127dac-9c92-4c43-91f0-55806b78c74b" ], "accept-language": [ "en-US" @@ -356,10 +362,10 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727\",\r\n \"name\": \"datalakerg1727\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961\",\r\n \"name\": \"datalakerg18961\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "182" + "184" ], "Content-Type": [ "application/json; charset=utf-8" @@ -371,22 +377,22 @@ "no-cache" ], "Date": [ - "Thu, 10 Nov 2016 22:52:37 GMT" + "Thu, 09 Feb 2017 00:48:29 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1177" ], "x-ms-request-id": [ - "a5f6fa19-11d8-4907-bcb3-3e128145908d" + "15414486-2cec-41e0-9b9f-7c8e45e62607" ], "x-ms-correlation-request-id": [ - "a5f6fa19-11d8-4907-bcb3-3e128145908d" + "15414486-2cec-41e0-9b9f-7c8e45e62607" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225238Z:a5f6fa19-11d8-4907-bcb3-3e128145908d" + "CENTRALUS:20170209T004830Z:15414486-2cec-41e0-9b9f-7c8e45e62607" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -395,26 +401,26 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/testadlfs15292?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0YWRsZnMxNTI5Mj9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/testadlfs15683?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTU2ODM/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "06a49a6e-b916-48a8-bdb1-f3f1acf29698" + "0862c62d-1416-4a99-9ff9-a522bdda5806" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs15292' under resource group 'datalakerg1727' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs15683' under resource group 'datalakerg18961' was not found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "165" + "166" ], "Content-Type": [ "application/json; charset=utf-8" @@ -426,7 +432,7 @@ "no-cache" ], "Date": [ - "Thu, 10 Nov 2016 22:52:37 GMT" + "Thu, 09 Feb 2017 00:48:30 GMT" ], "Pragma": [ "no-cache" @@ -435,13 +441,13 @@ "gateway" ], "x-ms-request-id": [ - "a79a6c2e-7cb4-4906-ae7b-3428553352fc" + "16a6ce0c-af9d-460b-bdb0-31c41ef35047" ], "x-ms-correlation-request-id": [ - "a79a6c2e-7cb4-4906-ae7b-3428553352fc" + "16a6ce0c-af9d-460b-bdb0-31c41ef35047" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225238Z:a79a6c2e-7cb4-4906-ae7b-3428553352fc" + "CENTRALUS:20170209T004830Z:16a6ce0c-af9d-460b-bdb0-31c41ef35047" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -450,17 +456,17 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/testadlfs15292?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0YWRsZnMxNTI5Mj9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/testadlfs15683?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTU2ODM/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testadlfs15292.azuredatalakestore.net\",\r\n \"accountId\": \"0cb00466-7e0b-4d6d-aa2e-d371ffa98435\",\r\n \"creationTime\": \"2016-11-10T22:52:44.2438162Z\",\r\n \"lastModifiedTime\": \"2016-11-10T22:52:44.2438162Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/testadlfs15292\",\r\n \"name\": \"testadlfs15292\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testadlfs15683.caboaccountdogfood.net\",\r\n \"accountId\": \"04a2d152-41eb-4e2c-a5b4-386ecbc2bc5a\",\r\n \"creationTime\": \"2017-02-09T00:48:34.4585418Z\",\r\n \"lastModifiedTime\": \"2017-02-09T00:48:34.4585418Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/testadlfs15683\",\r\n \"name\": \"testadlfs15683\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -475,7 +481,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:10 GMT" + "Thu, 09 Feb 2017 00:49:01 GMT" ], "Pragma": [ "no-cache" @@ -487,7 +493,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5fc9fcb6-3d89-4235-a85e-cc676a996195" + "e6802e05-8da3-41d0-92dd-bb48daf7e721" ], "X-Content-Type-Options": [ "nosniff" @@ -499,13 +505,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14731" ], "x-ms-correlation-request-id": [ - "32f92fa4-f994-4bf2-b5c1-2c52942aa2ce" + "9b132531-39ab-49cc-b696-b3c772e296ad" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225310Z:32f92fa4-f994-4bf2-b5c1-2c52942aa2ce" + "CENTRALUS:20170209T004902Z:9b132531-39ab-49cc-b696-b3c772e296ad" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -514,23 +520,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/testadlfs15292?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0YWRsZnMxNTI5Mj9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/testadlfs15683?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTU2ODM/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7f20aee4-f103-418e-a303-50e0e243f735" + "f692e2af-66bc-428c-bd4b-abf868cb6ba1" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testadlfs15292.azuredatalakestore.net\",\r\n \"accountId\": \"0cb00466-7e0b-4d6d-aa2e-d371ffa98435\",\r\n \"creationTime\": \"2016-11-10T22:52:44.2438162Z\",\r\n \"lastModifiedTime\": \"2016-11-10T22:52:44.2438162Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/testadlfs15292\",\r\n \"name\": \"testadlfs15292\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testadlfs15683.caboaccountdogfood.net\",\r\n \"accountId\": \"04a2d152-41eb-4e2c-a5b4-386ecbc2bc5a\",\r\n \"creationTime\": \"2017-02-09T00:48:34.4585418Z\",\r\n \"lastModifiedTime\": \"2017-02-09T00:48:34.4585418Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/testadlfs15683\",\r\n \"name\": \"testadlfs15683\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -545,7 +551,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:11 GMT" + "Thu, 09 Feb 2017 00:49:02 GMT" ], "Pragma": [ "no-cache" @@ -557,7 +563,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a8ada4f0-e170-4480-8e4c-82f422b75486" + "47f47d89-6990-4019-b83a-70c64240e38d" ], "X-Content-Type-Options": [ "nosniff" @@ -569,13 +575,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14690" ], "x-ms-correlation-request-id": [ - "31e68462-575f-457e-8733-32827fba31af" + "7a2da7c8-f71c-4d2a-83af-e626d5271684" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225311Z:31e68462-575f-457e-8733-32827fba31af" + "CENTRALUS:20170209T004902Z:7a2da7c8-f71c-4d2a-83af-e626d5271684" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -584,8 +590,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/testadlfs15292?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0YWRsZnMxNTI5Mj9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/testadlfs15683?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTU2ODM/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -596,20 +602,20 @@ "31" ], "x-ms-client-request-id": [ - "dad6e14f-4bd0-4281-acdf-ff33584d02ae" + "22d0e651-7a71-4116-83e3-35d6090b709d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"0cb00466-7e0b-4d6d-aa2e-d371ffa98435\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/testadlfs15292\",\r\n \"name\": \"testadlfs15292\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"04a2d152-41eb-4e2c-a5b4-386ecbc2bc5a\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/testadlfs15683\",\r\n \"name\": \"testadlfs15683\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "419" + "420" ], "Content-Type": [ "application/json" @@ -624,13 +630,13 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:52:38 GMT" + "Thu, 09 Feb 2017 00:48:31 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourcegroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/testadlfs15292/operationresults/0?api-version=2016-11-01" + "https://api-dogfood.resources.windows-int.net/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourcegroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/testadlfs15683/operationresults/0?api-version=2016-11-01" ], "Retry-After": [ "10" @@ -639,10 +645,10 @@ "Microsoft-IIS/8.5" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/0cb00466-7e0b-4d6d-aa2e-d371ffa984350?api-version=2016-11-01&expanded=true" + "https://api-dogfood.resources.windows-int.net/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/04a2d152-41eb-4e2c-a5b4-386ecbc2bc5a0?api-version=2016-11-01&expanded=true" ], "x-ms-request-id": [ - "a8928074-5c00-4587-9c0a-eea2f37eb991" + "18648907-64c7-4607-b181-9e3d48d7843f" ], "X-Content-Type-Options": [ "nosniff" @@ -654,13 +660,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1091" ], "x-ms-correlation-request-id": [ - "3ca2f3f6-612c-4c27-a2b6-e8b8f9bb76c7" + "f7541246-37c3-496c-9ed3-cde30483eb38" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225239Z:3ca2f3f6-612c-4c27-a2b6-e8b8f9bb76c7" + "CENTRALUS:20170209T004831Z:f7541246-37c3-496c-9ed3-cde30483eb38" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -669,14 +675,14 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/0cb00466-7e0b-4d6d-aa2e-d371ffa984350?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzBjYjAwNDY2LTdlMGItNGQ2ZC1hYTJlLWQzNzFmZmE5ODQzNTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/04a2d152-41eb-4e2c-a5b4-386ecbc2bc5a0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzA0YTJkMTUyLTQxZWItNGUyYy1hNWI0LTM4NmVjYmMyYmM1YTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", @@ -694,7 +700,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:10 GMT" + "Thu, 09 Feb 2017 00:49:01 GMT" ], "Pragma": [ "no-cache" @@ -706,7 +712,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "36cc75ca-f0fd-4a3d-916d-271d5ba62fd3" + "2984de8e-de45-4c12-b916-5057459f1f4c" ], "X-Content-Type-Options": [ "nosniff" @@ -718,13 +724,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14698" ], "x-ms-correlation-request-id": [ - "e8065d0d-eb78-4d0a-84e6-501bcf3dc935" + "f7ffd755-e30f-41d2-9952-7bab00b919ac" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225310Z:e8065d0d-eb78-4d0a-84e6-501bcf3dc935" + "CENTRALUS:20170209T004901Z:f7ffd755-e30f-41d2-9952-7bab00b919ac" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -733,32 +739,32 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9hZGxzYWNjdDk2NDY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule11739\"\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/9ebec75f-d4ca-4005-8ffe-2690817a35a9\"\r\n },\r\n \"name\": \"trustedrule19423\"\r\n }\r\n ]\r\n },\r\n \"location\": \"East US 2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule12867\"\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/2d61d1dd-1ec3-4eb7-aa72-4da87b273bee\"\r\n },\r\n \"name\": \"trustedrule13996\"\r\n }\r\n ]\r\n },\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "547" + "588" ], "x-ms-client-request-id": [ - "5ff74223-5679-4fc3-993a-26a1bfbfb4d3" + "e812337c-b9c2-4285-8b2c-da2473e39d67" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule11739\"\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/9ebec75f-d4ca-4005-8ffe-2690817a35a9\"\r\n },\r\n \"name\": \"trustedrule19423\"\r\n }\r\n ],\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"5180156b-f90b-4849-895f-e52e71ac48ae\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646\",\r\n \"name\": \"adlsacct9646\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule12867\"\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/2d61d1dd-1ec3-4eb7-aa72-4da87b273bee\"\r\n },\r\n \"name\": \"trustedrule13996\"\r\n }\r\n ],\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"c3d38ff7-81f7-4991-83b9-d3ed6d45efcc\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847\",\r\n \"name\": \"adlsacct6847\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "732" + "767" ], "Content-Type": [ "application/json" @@ -773,13 +779,13 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:12 GMT" + "Thu, 09 Feb 2017 00:49:09 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourcegroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/operationresults/0?api-version=2016-11-01" + "https://api-dogfood.resources.windows-int.net/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourcegroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/operationresults/0?api-version=2016-11-01" ], "Retry-After": [ "10" @@ -788,10 +794,10 @@ "Microsoft-IIS/8.5" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/5180156b-f90b-4849-895f-e52e71ac48ae0?api-version=2016-11-01&expanded=true" + "https://api-dogfood.resources.windows-int.net/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/c3d38ff7-81f7-4991-83b9-d3ed6d45efcc0?api-version=2016-11-01&expanded=true" ], "x-ms-request-id": [ - "aec09371-a55e-45db-918b-985e10e4b637" + "53fde7d7-33c4-434e-a5bc-38e437f62b96" ], "X-Content-Type-Options": [ "nosniff" @@ -803,13 +809,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1090" ], "x-ms-correlation-request-id": [ - "b380349f-5359-4d69-910a-46a5aaf8901d" + "568226e9-b748-46ff-ba65-9f70e5b9d77b" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225312Z:b380349f-5359-4d69-910a-46a5aaf8901d" + "CENTRALUS:20170209T004909Z:568226e9-b748-46ff-ba65-9f70e5b9d77b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -818,14 +824,14 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/5180156b-f90b-4849-895f-e52e71ac48ae0?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzUxODAxNTZiLWY5MGItNDg0OS04OTVmLWU1MmU3MWFjNDhhZTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/c3d38ff7-81f7-4991-83b9-d3ed6d45efcc0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2MzZDM4ZmY3LTgxZjctNDk5MS04M2I5LWQzZWQ2ZDQ1ZWZjYzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", @@ -843,7 +849,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:42 GMT" + "Thu, 09 Feb 2017 00:49:38 GMT" ], "Pragma": [ "no-cache" @@ -855,7 +861,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "26eba291-6541-43a8-ad67-58d1c90bd627" + "b4e2ad9f-2b49-4eaf-af1c-ed45ea3168f0" ], "X-Content-Type-Options": [ "nosniff" @@ -867,13 +873,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14724" ], "x-ms-correlation-request-id": [ - "a375f4d3-03f0-4a80-9b6f-b81aa5fc1e3f" + "dd399280-ea0c-4392-b7bc-fb3dfcfd8732" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225342Z:a375f4d3-03f0-4a80-9b6f-b81aa5fc1e3f" + "CENTRALUS:20170209T004939Z:dd399280-ea0c-4392-b7bc-fb3dfcfd8732" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -882,17 +888,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9hZGxzYWNjdDk2NDY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule11739\"\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/9ebec75f-d4ca-4005-8ffe-2690817a35a9\"\r\n },\r\n \"name\": \"trustedrule19423\"\r\n }\r\n ],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"adlsacct9646.azuredatalakestore.net\",\r\n \"accountId\": \"5180156b-f90b-4849-895f-e52e71ac48ae\",\r\n \"creationTime\": \"2016-11-10T22:53:20.2695616Z\",\r\n \"lastModifiedTime\": \"2016-11-10T22:53:20.2695616Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646\",\r\n \"name\": \"adlsacct9646\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule12867\"\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/2d61d1dd-1ec3-4eb7-aa72-4da87b273bee\"\r\n },\r\n \"name\": \"trustedrule13996\"\r\n }\r\n ],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"adlsacct6847.caboaccountdogfood.net\",\r\n \"accountId\": \"c3d38ff7-81f7-4991-83b9-d3ed6d45efcc\",\r\n \"creationTime\": \"2017-02-09T00:49:10.663371Z\",\r\n \"lastModifiedTime\": \"2017-02-09T00:49:10.663371Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847\",\r\n \"name\": \"adlsacct6847\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -907,7 +913,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:43 GMT" + "Thu, 09 Feb 2017 00:49:39 GMT" ], "Pragma": [ "no-cache" @@ -919,7 +925,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3ee4fb70-ebcb-4f47-97b4-b3a1629abab7" + "7ad10c9c-d48c-4b54-88a4-45d6f6c53156" ], "X-Content-Type-Options": [ "nosniff" @@ -931,13 +937,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14697" ], "x-ms-correlation-request-id": [ - "b7ab8961-f262-4fe7-ab67-662a337ce6dc" + "e1b40202-3125-4215-8d6f-c6a58681a623" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225343Z:b7ab8961-f262-4fe7-ab67-662a337ce6dc" + "CENTRALUS:20170209T004939Z:e1b40202-3125-4215-8d6f-c6a58681a623" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -946,23 +952,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9hZGxzYWNjdDk2NDY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d976fab0-8ad4-4821-a9e0-5eb496f83da0" + "fa90192c-ef22-4895-b15f-527ae24d2c14" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule11739\"\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/9ebec75f-d4ca-4005-8ffe-2690817a35a9\"\r\n },\r\n \"name\": \"trustedrule19423\"\r\n }\r\n ],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"adlsacct9646.azuredatalakestore.net\",\r\n \"accountId\": \"5180156b-f90b-4849-895f-e52e71ac48ae\",\r\n \"creationTime\": \"2016-11-10T22:53:20.2695616Z\",\r\n \"lastModifiedTime\": \"2016-11-10T22:53:20.2695616Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646\",\r\n \"name\": \"adlsacct9646\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallRules\": [\r\n {\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"name\": \"firerule12867\"\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/2d61d1dd-1ec3-4eb7-aa72-4da87b273bee\"\r\n },\r\n \"name\": \"trustedrule13996\"\r\n }\r\n ],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"adlsacct6847.caboaccountdogfood.net\",\r\n \"accountId\": \"c3d38ff7-81f7-4991-83b9-d3ed6d45efcc\",\r\n \"creationTime\": \"2017-02-09T00:49:10.663371Z\",\r\n \"lastModifiedTime\": \"2017-02-09T00:49:10.663371Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847\",\r\n \"name\": \"adlsacct6847\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -977,7 +983,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:43 GMT" + "Thu, 09 Feb 2017 00:49:40 GMT" ], "Pragma": [ "no-cache" @@ -989,7 +995,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "2a627f24-29b4-44bb-9c66-94d82f601b45" + "1fa873ff-1ab8-4e3c-a1d3-6f18579b7f7c" ], "X-Content-Type-Options": [ "nosniff" @@ -1001,13 +1007,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14728" ], "x-ms-correlation-request-id": [ - "a56da840-ecc7-41d9-91a2-d2f029807ca9" + "3bd15637-8b2a-4e59-aa4d-80a3fd9ed3bd" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225343Z:a56da840-ecc7-41d9-91a2-d2f029807ca9" + "CENTRALUS:20170209T004940Z:3bd15637-8b2a-4e59-aa4d-80a3fd9ed3bd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1016,23 +1022,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/firewallRules/firerule11739?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9hZGxzYWNjdDk2NDYvZmlyZXdhbGxSdWxlcy9maXJlcnVsZTExNzM5P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/firewallRules/firerule12867?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxMjg2Nz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "506a3524-2c4e-4fda-b536-4c73f3afea1c" + "973f0a20-632d-4a85-b870-9120315f6845" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/firewallRules/firerule11739\",\r\n \"name\": \"firerule11739\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/firewallRules\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/firewallRules/firerule12867\",\r\n \"name\": \"firerule12867\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/firewallRules\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1047,7 +1053,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:44 GMT" + "Thu, 09 Feb 2017 00:49:39 GMT" ], "Pragma": [ "no-cache" @@ -1059,7 +1065,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "80624517-9b2f-456f-a6d4-5a93702f84ba" + "e860b1d8-52ea-41e4-a347-1150aee724e7" ], "X-Content-Type-Options": [ "nosniff" @@ -1071,13 +1077,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14688" ], "x-ms-correlation-request-id": [ - "da58eb3d-8d38-4f34-bb1f-ec9e6f387559" + "2d0a53fd-1e60-4524-bbfb-76d9094453fd" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225344Z:da58eb3d-8d38-4f34-bb1f-ec9e6f387559" + "CENTRALUS:20170209T004940Z:2d0a53fd-1e60-4524-bbfb-76d9094453fd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1086,20 +1092,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/firewallRules/firerule11739?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9hZGxzYWNjdDk2NDYvZmlyZXdhbGxSdWxlcy9maXJlcnVsZTExNzM5P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/firewallRules/firerule12867?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxMjg2Nz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "725e6b9d-b1b0-4451-939f-366655a6004e" + "add7e366-31de-45a9-9a3d-e6ffc7c3dd86" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"Firewall Rule does not exist.\"\r\n }\r\n}", @@ -1120,7 +1126,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:45 GMT" + "Thu, 09 Feb 2017 00:49:42 GMT" ], "Pragma": [ "no-cache" @@ -1129,7 +1135,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "8f9bb9d1-d101-427a-ad7e-c003332295c1" + "94402756-b994-450c-92b5-fb220fc56828" ], "X-Content-Type-Options": [ "nosniff" @@ -1141,13 +1147,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14727" ], "x-ms-correlation-request-id": [ - "7bb142a2-2d3a-462e-b3d2-64be9a91cf35" + "d84db1f6-020a-4534-b891-69e0b053578d" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225346Z:7bb142a2-2d3a-462e-b3d2-64be9a91cf35" + "CENTRALUS:20170209T004943Z:d84db1f6-020a-4534-b891-69e0b053578d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1156,29 +1162,105 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/firewallRules/firerule11739?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9hZGxzYWNjdDk2NDYvZmlyZXdhbGxSdWxlcy9maXJlcnVsZTExNzM5P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/firewallRules/firerule12867?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxMjg2Nz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.0.0\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n },\r\n \"name\": \"firerule11739\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.0.0\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/firewallRules/firerule12867\",\r\n \"name\": \"firerule12867\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/firewallRules\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "369" + ], + "x-ms-client-request-id": [ + "ff29784f-6440-477a-9bc0-4d2946ae694a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.0.0\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/firewallRules/firerule12867\",\r\n \"name\": \"firerule12867\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/firewallRules\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:49:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e4cffe19-9345-4405-9756-d885b95b5724" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1089" + ], + "x-ms-correlation-request-id": [ + "12a3cc7a-91fd-49d8-bd34-6e28499eaddb" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T004941Z:12a3cc7a-91fd-49d8-bd34-6e28499eaddb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/firewallRules/firerule12867?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxMjg2Nz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "129" + "63" ], "x-ms-client-request-id": [ - "97037436-4013-4d98-bd35-afa2ffcf9235" + "1fed6b07-d1a3-44f4-bccf-375f71288eb9" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.0.0\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n },\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/firewallRules/firerule11739\",\r\n \"name\": \"firerule11739\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/firewallRules\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/firewallRules/firerule12867\",\r\n \"name\": \"firerule12867\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/firewallRules\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1193,7 +1275,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:44 GMT" + "Thu, 09 Feb 2017 00:49:42 GMT" ], "Pragma": [ "no-cache" @@ -1205,7 +1287,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8f12a2a1-843d-4ab6-acdb-c7050c1cf0c4" + "6c716fd7-721a-4cc1-8197-a5ec4ed817eb" ], "X-Content-Type-Options": [ "nosniff" @@ -1217,13 +1299,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1118" ], "x-ms-correlation-request-id": [ - "7dbc46d1-d80d-452c-9005-55ad3c453d3f" + "e0110c8d-b784-4d24-a37d-684ae425340b" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225345Z:7dbc46d1-d80d-452c-9005-55ad3c453d3f" + "CENTRALUS:20170209T004942Z:e0110c8d-b784-4d24-a37d-684ae425340b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1232,20 +1314,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/firewallRules/firerule11739?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9hZGxzYWNjdDk2NDYvZmlyZXdhbGxSdWxlcy9maXJlcnVsZTExNzM5P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/firewallRules/firerule12867?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxMjg2Nz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "86898d4b-5369-4355-8c9f-0ea1f38bd409" + "22d027c4-a25f-454e-81a4-9a66871a139b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, "ResponseBody": "", @@ -1263,7 +1345,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:45 GMT" + "Thu, 09 Feb 2017 00:49:42 GMT" ], "Pragma": [ "no-cache" @@ -1272,7 +1354,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "aa993392-2961-4b1c-9c05-4991871f8416" + "3c83623b-e186-45ad-89d3-e507dcf6472c" ], "X-AspNet-Version": [ "4.0.30319" @@ -1281,13 +1363,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1110" ], "x-ms-correlation-request-id": [ - "0770a9be-396b-40fe-a1c0-42e230e1644e" + "e3f35d8c-e481-403f-a189-ed911c6ab2a8" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225345Z:0770a9be-396b-40fe-a1c0-42e230e1644e" + "CENTRALUS:20170209T004942Z:e3f35d8c-e481-403f-a189-ed911c6ab2a8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1296,23 +1378,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/trustedIdProviders/trustedrule19423?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9hZGxzYWNjdDk2NDYvdHJ1c3RlZElkUHJvdmlkZXJzL3RydXN0ZWRydWxlMTk0MjM/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/trustedIdProviders/trustedrule13996?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3L3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTEzOTk2P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bb6fccf8-a074-403b-91cf-74887c9cc3e5" + "c15570b1-db68-4f92-a19a-b39f1d77d9fc" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/9ebec75f-d4ca-4005-8ffe-2690817a35a9\"\r\n },\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/trustedIdProviders/trustedrule19423\",\r\n \"name\": \"trustedrule19423\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/2d61d1dd-1ec3-4eb7-aa72-4da87b273bee\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/trustedIdProviders/trustedrule13996\",\r\n \"name\": \"trustedrule13996\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1327,7 +1409,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:46 GMT" + "Thu, 09 Feb 2017 00:49:43 GMT" ], "Pragma": [ "no-cache" @@ -1339,7 +1421,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ef2f3676-1f04-4b35-9f81-1fa233a0bb35" + "ddd6f901-07a0-4c0d-bf06-21ae9d5f591e" ], "X-Content-Type-Options": [ "nosniff" @@ -1351,13 +1433,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14687" ], "x-ms-correlation-request-id": [ - "143cdc35-1d33-4009-8230-9f34f5e0f89e" + "473ea458-c350-4fce-b707-4e0d9a01f56d" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225346Z:143cdc35-1d33-4009-8230-9f34f5e0f89e" + "CENTRALUS:20170209T004943Z:473ea458-c350-4fce-b707-4e0d9a01f56d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1366,20 +1448,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/trustedIdProviders/trustedrule19423?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9hZGxzYWNjdDk2NDYvdHJ1c3RlZElkUHJvdmlkZXJzL3RydXN0ZWRydWxlMTk0MjM/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/trustedIdProviders/trustedrule13996?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3L3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTEzOTk2P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "45a59550-604e-4178-b819-f7160ab597ea" + "4aa5f4ed-227b-4697-a414-d3f02ae5c159" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"Trusted IdProvider does not exist.\"\r\n }\r\n}", @@ -1400,7 +1482,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:48 GMT" + "Thu, 09 Feb 2017 00:49:45 GMT" ], "Pragma": [ "no-cache" @@ -1409,7 +1491,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "44b17f9c-7d24-4113-8059-4f2d648aa269" + "36595345-6780-434f-adf4-761e9a831460" ], "X-Content-Type-Options": [ "nosniff" @@ -1421,13 +1503,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14696" ], "x-ms-correlation-request-id": [ - "292fa9a0-2d8e-4d25-b34a-69bb14d8a91a" + "7c847bb1-4ec3-484c-af1f-c6e0ebb78fd3" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225348Z:292fa9a0-2d8e-4d25-b34a-69bb14d8a91a" + "CENTRALUS:20170209T004945Z:7c847bb1-4ec3-484c-af1f-c6e0ebb78fd3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1436,29 +1518,105 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/trustedIdProviders/trustedrule19423?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9hZGxzYWNjdDk2NDYvdHJ1c3RlZElkUHJvdmlkZXJzL3RydXN0ZWRydWxlMTk0MjM/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/trustedIdProviders/trustedrule13996?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3L3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTEzOTk2P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/b01f8e00-5842-47b1-9feb-6b8d0fb04baf\"\r\n },\r\n \"name\": \"trustedrule19423\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/b1545bb1-802e-4360-9799-4679ef18401d\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/trustedIdProviders/trustedrule13996\",\r\n \"name\": \"trustedrule13996\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "394" + ], + "x-ms-client-request-id": [ + "7e1b35cf-66eb-4a7f-a9a4-327dbaa3c528" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/b1545bb1-802e-4360-9799-4679ef18401d\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/trustedIdProviders/trustedrule13996\",\r\n \"name\": \"trustedrule13996\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Thu, 09 Feb 2017 00:49:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c74e4164-db4d-4a54-8e3f-3f3301ebc148" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1175" + ], + "x-ms-correlation-request-id": [ + "27972cf8-bcc5-424c-a62e-88d126172173" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20170209T004944Z:27972cf8-bcc5-424c-a62e-88d126172173" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/trustedIdProviders/trustedrule13996?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3L3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTEzOTk2P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/2d61d1dd-1ec3-4eb7-aa72-4da87b273bee\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "141" + "110" ], "x-ms-client-request-id": [ - "274304c7-5523-47cd-9ef4-842a8b64f0f7" + "1cd92196-0e7e-41e6-ab6c-7dba1a0c3fc0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/b01f8e00-5842-47b1-9feb-6b8d0fb04baf\"\r\n },\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/trustedIdProviders/trustedrule19423\",\r\n \"name\": \"trustedrule19423\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/2d61d1dd-1ec3-4eb7-aa72-4da87b273bee\"\r\n },\r\n \"id\": \"/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/trustedIdProviders/trustedrule13996\",\r\n \"name\": \"trustedrule13996\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1473,7 +1631,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:47 GMT" + "Thu, 09 Feb 2017 00:49:44 GMT" ], "Pragma": [ "no-cache" @@ -1485,7 +1643,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "37b0c0ed-25bb-49c2-a393-cb492e868714" + "9a891fbe-12cd-46ae-ba26-283ce837f1de" ], "X-Content-Type-Options": [ "nosniff" @@ -1497,13 +1655,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1088" ], "x-ms-correlation-request-id": [ - "913ded82-6c7f-4b9a-a9f6-64945b457a4e" + "537561cf-4177-4512-af38-95d6345e78e0" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225347Z:913ded82-6c7f-4b9a-a9f6-64945b457a4e" + "CENTRALUS:20170209T004944Z:537561cf-4177-4512-af38-95d6345e78e0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1512,20 +1670,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg1727/providers/Microsoft.DataLakeStore/accounts/adlsacct9646/trustedIdProviders/trustedrule19423?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzI3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9hZGxzYWNjdDk2NDYvdHJ1c3RlZElkUHJvdmlkZXJzL3RydXN0ZWRydWxlMTk0MjM/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/90585f39-ab85-4921-bb37-0468f7efd1dd/resourceGroups/datalakerg18961/providers/Microsoft.DataLakeStore/accounts/adlsacct6847/trustedIdProviders/trustedrule13996?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTA1ODVmMzktYWI4NS00OTIxLWJiMzctMDQ2OGY3ZWZkMWRkL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxODk2MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q2ODQ3L3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTEzOTk2P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "df2f410d-975e-4328-b17e-c3d2737419b9" + "fa30d9c5-b950-4497-882d-e2282c6a289d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/1.0.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" ] }, "ResponseBody": "", @@ -1543,7 +1701,7 @@ "close" ], "Date": [ - "Thu, 10 Nov 2016 22:53:48 GMT" + "Thu, 09 Feb 2017 00:49:45 GMT" ], "Pragma": [ "no-cache" @@ -1552,7 +1710,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "033a396c-4e79-4b30-bee2-804a9c0eb598" + "1cc947c7-e9a5-4025-bb33-73bfa8eda59e" ], "X-AspNet-Version": [ "4.0.30319" @@ -1561,13 +1719,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1117" ], "x-ms-correlation-request-id": [ - "7df2ef1f-ce9d-4ded-8742-ea3604864a55" + "cf291945-11af-4ca6-89de-97169dd0a2df" ], "x-ms-routing-request-id": [ - "NORTHCENTRALUS:20161110T225348Z:7df2ef1f-ce9d-4ded-8742-ea3604864a55" + "CENTRALUS:20170209T004945Z:cf291945-11af-4ca6-89de-97169dd0a2df" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1578,19 +1736,19 @@ ], "Names": { ".ctor": [ - "datalakerg1727", - "testdatalake11945", - "testadlfs15292" + "datalakerg18961", + "testdatalake18673", + "testadlfs15683" ], "FirewallAndTrustedProviderTest": [ - "firerule11739", - "9ebec75f-d4ca-4005-8ffe-2690817a35a9", - "trustedrule19423", - "adlsacct9646", - "b01f8e00-5842-47b1-9feb-6b8d0fb04baf" + "firerule12867", + "2d61d1dd-1ec3-4eb7-aa72-4da87b273bee", + "trustedrule13996", + "adlsacct6847", + "b1545bb1-802e-4360-9799-4679ef18401d" ] }, "Variables": { - "SubscriptionId": "53d9063d-87ae-4ea8-be90-3686c3b8669f" + "SubscriptionId": "90585f39-ab85-4921-bb37-0468f7efd1dd" } } \ No newline at end of file diff --git a/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemGetContentSummaryForFileAndFolder.json b/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemGetContentSummaryForFileAndFolder.json new file mode 100644 index 000000000000..48043e2391da --- /dev/null +++ b/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemGetContentSummaryForFileAndFolder.json @@ -0,0 +1,1094 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/register?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9yZWdpc3Rlcj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d1c9ca67-6497-47ec-a814-358dd75b850e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore\",\r\n \"namespace\": \"Microsoft.DataLakeStore\",\r\n \"authorization\": {\r\n \"applicationId\": \"e9f49c6b-5ce5-44c8-925d-015017e9f7ad\",\r\n \"roleDefinitionId\": \"17eb9cca-f08a-4499-b2d3-852d175f614f\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"accounts\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"accounts/firewallRules\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/capability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 01 Feb 2017 20:02:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "b410959e-c9de-4021-8c4b-d6872b1dcbda" + ], + "x-ms-correlation-request-id": [ + "b410959e-c9de-4021-8c4b-d6872b1dcbda" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200300Z:b410959e-c9de-4021-8c4b-d6872b1dcbda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1429a049-e0b7-47b1-93db-1e44efcefdb7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore\",\r\n \"namespace\": \"Microsoft.DataLakeStore\",\r\n \"authorization\": {\r\n \"applicationId\": \"e9f49c6b-5ce5-44c8-925d-015017e9f7ad\",\r\n \"roleDefinitionId\": \"17eb9cca-f08a-4499-b2d3-852d175f614f\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"accounts\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"accounts/firewallRules\",\r\n \"locations\": [\r\n \"East US 2\",\r\n \"Central US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationresults\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/capability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-11-01\",\r\n \"2015-10-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "9aa353c5-7e4f-45b0-bab7-7d0504c06d40" + ], + "x-ms-correlation-request-id": [ + "9aa353c5-7e4f-45b0-bab7-7d0504c06d40" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200300Z:9aa353c5-7e4f-45b0-bab7-7d0504c06d40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.Storage/register?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9yZWdpc3Rlcj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b326ebd-0d35-4f51-ba99-21e0fbc14cc3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listAccountSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listServiceSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"usages\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/services\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2014-04-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/services/metricDefinitions\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2014-04-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "23a89ad6-46c0-433b-bde6-e6121dd79f6c" + ], + "x-ms-correlation-request-id": [ + "23a89ad6-46c0-433b-bde6-e6121dd79f6c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200301Z:23a89ad6-46c0-433b-bde6-e6121dd79f6c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.Storage?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3c8c3d3c-1d06-4eb8-bf25-972b3be662e7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listAccountSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listServiceSas\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"usages\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/services\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2014-04-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/services/metricDefinitions\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\"\r\n ],\r\n \"apiVersions\": [\r\n \"2014-04-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "9e282e24-a33a-4808-a36e-9c99a9708dc7" + ], + "x-ms-correlation-request-id": [ + "9e282e24-a33a-4808-a36e-9c99a9708dc7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200301Z:9e282e24-a33a-4808-a36e-9c99a9708dc7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourcegroups/datalakerg16710?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNjcxMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "aa3b850c-dc2f-4c52-a081-d32bbf3a7644" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg16710' could not be found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "424f25d2-5ea5-443f-b290-c32b932654fe" + ], + "x-ms-correlation-request-id": [ + "424f25d2-5ea5-443f-b290-c32b932654fe" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200301Z:424f25d2-5ea5-443f-b290-c32b932654fe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourcegroups/datalakerg16710?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNjcxMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e33bcf2a-43eb-4c8e-870d-c7eb6045f76f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg16710\",\r\n \"name\": \"datalakerg16710\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "9a09f829-cef6-48e8-8faa-adfe321b2c55" + ], + "x-ms-correlation-request-id": [ + "9a09f829-cef6-48e8-8faa-adfe321b2c55" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200302Z:9a09f829-cef6-48e8-8faa-adfe321b2c55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourcegroups/datalakerg16710?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNjcxMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "31" + ], + "x-ms-client-request-id": [ + "a0627341-f7df-4743-9e22-4de4fd32378a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg16710\",\r\n \"name\": \"datalakerg16710\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "6d2c5286-a302-48a8-83a4-c9741a9adb69" + ], + "x-ms-correlation-request-id": [ + "6d2c5286-a302-48a8-83a4-c9741a9adb69" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200302Z:6d2c5286-a302-48a8-83a4-c9741a9adb69" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg16710/providers/Microsoft.DataLakeStore/accounts/testadlfs19728?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjcxMC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTk3Mjg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "70963978-c391-415e-b6e4-0809b5858bf2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs19728' under resource group 'datalakerg16710' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "166" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "65d0e450-ed04-41c7-b91e-e77082fc9fed" + ], + "x-ms-correlation-request-id": [ + "65d0e450-ed04-41c7-b91e-e77082fc9fed" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200303Z:65d0e450-ed04-41c7-b91e-e77082fc9fed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg16710/providers/Microsoft.DataLakeStore/accounts/testadlfs19728?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjcxMC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTk3Mjg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testadlfs19728.azuredatalakestore.net\",\r\n \"accountId\": \"2a9b123d-758c-4e0c-ba8d-e91f5438aed3\",\r\n \"creationTime\": \"2017-02-01T20:03:07.5468668Z\",\r\n \"lastModifiedTime\": \"2017-02-01T20:03:07.5468668Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg16710/providers/Microsoft.DataLakeStore/accounts/testadlfs19728\",\r\n \"name\": \"testadlfs19728\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "48b473ba-8954-4742-a503-0e96c966ef62" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "45c8cd06-0a04-4bf6-bbda-8296f13277f8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200336Z:45c8cd06-0a04-4bf6-bbda-8296f13277f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg16710/providers/Microsoft.DataLakeStore/accounts/testadlfs19728?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjcxMC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTk3Mjg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "db437170-50f6-49f1-843f-f7648af15833" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testadlfs19728.azuredatalakestore.net\",\r\n \"accountId\": \"2a9b123d-758c-4e0c-ba8d-e91f5438aed3\",\r\n \"creationTime\": \"2017-02-01T20:03:07.5468668Z\",\r\n \"lastModifiedTime\": \"2017-02-01T20:03:07.5468668Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg16710/providers/Microsoft.DataLakeStore/accounts/testadlfs19728\",\r\n \"name\": \"testadlfs19728\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3da32320-531b-4a3f-8bc2-c229864be043" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "bc86963d-c731-4d76-a747-d48ec22e50b4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200337Z:bc86963d-c731-4d76-a747-d48ec22e50b4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg16710/providers/Microsoft.DataLakeStore/accounts/testadlfs19728?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjcxMC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTk3Mjg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "31" + ], + "x-ms-client-request-id": [ + "5255fff3-9fb0-4238-bf1f-428b06a3dd2a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"2a9b123d-758c-4e0c-ba8d-e91f5438aed3\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/datalakerg16710/providers/Microsoft.DataLakeStore/accounts/testadlfs19728\",\r\n \"name\": \"testadlfs19728\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "420" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourcegroups/datalakerg16710/providers/Microsoft.DataLakeStore/accounts/testadlfs19728/operationresults/0?api-version=2016-11-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/2a9b123d-758c-4e0c-ba8d-e91f5438aed30?api-version=2016-11-01&expanded=true" + ], + "x-ms-request-id": [ + "9566dd4b-fddf-40f5-b666-6eab083ea968" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "08fa3bfb-3a0a-40a4-b2ef-8b62ca6ac9d3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200305Z:08fa3bfb-3a0a-40a4-b2ef-8b62ca6ac9d3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/2a9b123d-758c-4e0c-ba8d-e91f5438aed30?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTNkOTA2M2QtODdhZS00ZWE4LWJlOTAtMzY4NmMzYjg2NjlmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzJhOWIxMjNkLTc1OGMtNGUwYy1iYThkLWU5MWY1NDM4YWVkMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e09054a9-caea-4edf-ae6b-8a2fa8438723" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "eff0d1f0-1526-48c8-bf54-a29fc7bdd4a9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170201T200336Z:eff0d1f0-1526-48c8-bf54-a29fc7bdd4a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/webhdfs/v1/SDKTestFolder01%2FSDKTestFile01.txt3311?op=CREATE&write=true&api-version=2016-11-01", + "EncodedRequestUri": "L3dlYmhkZnMvdjEvU0RLVGVzdEZvbGRlcjAxJTJGU0RLVGVzdEZpbGUwMS50eHQzMzExP29wPUNSRUFURSZ3cml0ZT10cnVlJmFwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "These are some random test contents 1234!@", + "RequestHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Content-Length": [ + "42" + ], + "x-ms-client-request-id": [ + "a5f7235a-834e-48eb-9077-2e76a5d63493" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-store, no-cache, max-age=0" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://testadlfs19728.azuredatalakestore.net/webhdfs/v1/SDKTestFolder01/SDKTestFile01.txt3311?op=CREATE&write=true&api-version=2016-11-01" + ], + "x-ms-request-id": [ + "b2576a2c-d571-41f9-978c-e3082fa19742" + ], + "ContentLength": [ + "0" + ], + "x-ms-webhdfs-version": [ + "16.07.18.01" + ], + "Status": [ + "0x0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/webhdfs/v1/SDKTestFolder01%2FSDKTestFile01.txt3311?op=MSGETFILESTATUS&api-version=2016-11-01", + "EncodedRequestUri": "L3dlYmhkZnMvdjEvU0RLVGVzdEZvbGRlcjAxJTJGU0RLVGVzdEZpbGUwMS50eHQzMzExP29wPU1TR0VURklMRVNUQVRVUyZhcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3d0a8292-771b-4dbe-93ff-5e107fb93a4f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"FileStatus\": {\r\n \"length\": 42,\r\n \"pathSuffix\": \"\",\r\n \"type\": \"FILE\",\r\n \"blockSize\": 268435456,\r\n \"accessTime\": 1485979419262,\r\n \"modificationTime\": 1485979419317,\r\n \"replication\": 1,\r\n \"permission\": \"770\",\r\n \"owner\": \"2e6c02d2-a364-4530-9137-d17403996cbf\",\r\n \"group\": \"2e6c02d2-a364-4530-9137-d17403996cbf\",\r\n \"expirationTime\": 0,\r\n \"msExpirationTime\": 0,\r\n \"aclBit\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "324" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-store, no-cache, max-age=0" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7cff46bf-f661-4c48-afc7-e9a70c10964e" + ], + "x-ms-webhdfs-version": [ + "16.07.18.01" + ], + "Status": [ + "0x0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/webhdfs/v1/SDKTestFolder01%2FSDKTestFile01.txt3311?op=OPEN&read=true&api-version=2016-11-01", + "EncodedRequestUri": "L3dlYmhkZnMvdjEvU0RLVGVzdEZvbGRlcjAxJTJGU0RLVGVzdEZpbGUwMS50eHQzMzExP29wPU9QRU4mcmVhZD10cnVlJmFwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d1fa1092-9394-45a3-9801-9b05d5747bce" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "These are some random test contents 1234!@", + "ResponseHeaders": { + "Content-Type": [ + "application/octet-stream" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-store, no-cache, max-age=0" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-ms-request-id": [ + "1f41aff7-0b07-4008-a5be-ad43f951a486" + ], + "x-ms-webhdfs-version": [ + "16.07.18.01" + ], + "Status": [ + "0x0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/webhdfs/v1/%2F?op=GETCONTENTSUMMARY&api-version=2016-11-01", + "EncodedRequestUri": "L3dlYmhkZnMvdjEvJTJGP29wPUdFVENPTlRFTlRTVU1NQVJZJmFwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c99390dd-4539-4403-8b8f-bfc7680ae34d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"ContentSummary\": {\r\n \"directoryCount\": 2,\r\n \"fileCount\": 1,\r\n \"length\": 42,\r\n \"quota\": -1,\r\n \"spaceConsumed\": 42,\r\n \"spaceQuota\": -1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "111" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-store, no-cache, max-age=0" + ], + "Date": [ + "Wed, 01 Feb 2017 20:03:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2689ce5f-65a7-479a-b7d1-6e27302f9c79" + ], + "x-ms-webhdfs-version": [ + "16.07.18.01" + ], + "Status": [ + "0x0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/webhdfs/v1/SDKTestFolder01?op=GETCONTENTSUMMARY&api-version=2016-11-01", + "EncodedRequestUri": "L3dlYmhkZnMvdjEvU0RLVGVzdEZvbGRlcjAxP29wPUdFVENPTlRFTlRTVU1NQVJZJmFwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "82be800e-0895-4b22-9c13-542ad7355834" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"ContentSummary\": {\r\n \"directoryCount\": 1,\r\n \"fileCount\": 1,\r\n \"length\": 42,\r\n \"quota\": -1,\r\n \"spaceConsumed\": 42,\r\n \"spaceQuota\": -1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "111" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-store, no-cache, max-age=0" + ], + "Date": [ + "Wed, 01 Feb 2017 20:04:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9d2b0701-3b32-482c-b9f9-71cc33ab3c42" + ], + "x-ms-webhdfs-version": [ + "16.07.18.01" + ], + "Status": [ + "0x0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/webhdfs/v1/SDKTestFolder01%2FSDKTestFile01.txt3311?op=GETCONTENTSUMMARY&api-version=2016-11-01", + "EncodedRequestUri": "L3dlYmhkZnMvdjEvU0RLVGVzdEZvbGRlcjAxJTJGU0RLVGVzdEZpbGUwMS50eHQzMzExP29wPUdFVENPTlRFTlRTVU1NQVJZJmFwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2778042b-63b7-45ed-99cd-9db8a71487b4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.0.0-preview" + ] + }, + "ResponseBody": "{\r\n \"ContentSummary\": {\r\n \"directoryCount\": 0,\r\n \"fileCount\": 1,\r\n \"length\": 42,\r\n \"quota\": -1,\r\n \"spaceConsumed\": 42,\r\n \"spaceQuota\": -1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "111" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-store, no-cache, max-age=0" + ], + "Date": [ + "Wed, 01 Feb 2017 20:04:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "fb0374b3-c4d5-4f38-9e3e-7c3f5a4e623e" + ], + "x-ms-webhdfs-version": [ + "16.07.18.01" + ], + "Status": [ + "0x0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=15724800; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + ".ctor": [ + "datalakerg16710", + "testdatalake16255", + "testadlfs19728" + ], + "CreateFile": [ + "SDKTestFolder01/SDKTestFile01.txt3311" + ] + }, + "Variables": { + "SubscriptionId": "53d9063d-87ae-4ea8-be90-3686c3b8669f" + } +} \ No newline at end of file diff --git a/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/project.json b/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/project.json index ca24d0626988..42b80c217648 100644 --- a/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/project.json +++ b/src/ResourceManagement/DataLake.Store/DataLakeStore.Tests/project.json @@ -38,7 +38,7 @@ "Microsoft.Rest.ClientRuntime.Azure": "[3.3.2,4.0.0)", "Microsoft.Rest.ClientRuntime": "[2.3.2,3.0)" , "Microsoft.Azure.ResourceManager": "1.0.0-preview", - "Microsoft.Azure.Management.DataLake.Store": "2.0.0-preview", + "Microsoft.Azure.Management.DataLake.Store": "[2.0.1-preview, 3.0.0-preview)", "xunit": "2.2.0-beta2-build3300", "dotnet-test-xunit": "2.2.0-preview2-build1029" } diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Customizations/DataLakeStoreCustomizationHelper.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Customizations/DataLakeStoreCustomizationHelper.cs index e2cceffdd973..5d649e78b2ec 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Customizations/DataLakeStoreCustomizationHelper.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Customizations/DataLakeStoreCustomizationHelper.cs @@ -14,7 +14,7 @@ internal static class DataLakeStoreCustomizationHelper /// This constant is used as the default package version to place in the user agent. /// It should mirror the package version in the project.json file. /// - internal const string PackageVersion = "2.0.0-preview"; + internal const string PackageVersion = "2.0.1-preview"; internal const string DefaultAdlsFileSystemDnsSuffix = "azuredatalakestore.net"; diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FileSystemOperations.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FileSystemOperations.cs index d0a530414dad..e10935541c16 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FileSystemOperations.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FileSystemOperations.cs @@ -1063,7 +1063,8 @@ internal FileSystemOperations(DataLakeStoreFileSystemManagementClient client) /// /// /// A list of Data Lake Store paths (starting with '/') of the source files. - /// Must be in the format: sources=<comma separated list> + /// Must be a comma-separated path list in the format: + /// sources=/file/path/1.txt,/file/path/2.txt,/file/path/lastfile.csv /// /// /// Indicates that as an optimization instead of deleting each individual @@ -1548,7 +1549,7 @@ internal FileSystemOperations(DataLakeStoreFileSystemManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri; - var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "webhdfs/va/{getContentSummaryFilePath}"; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "webhdfs/v1/{getContentSummaryFilePath}"; _url = _url.Replace("{accountName}", accountName); _url = _url.Replace("{adlsFileSystemDnsSuffix}", Client.AdlsFileSystemDnsSuffix); _url = _url.Replace("{getContentSummaryFilePath}", System.Uri.EscapeDataString(getContentSummaryFilePath)); diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FileSystemOperationsExtensions.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FileSystemOperationsExtensions.cs index b820d878b80e..4914c8837628 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FileSystemOperationsExtensions.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FileSystemOperationsExtensions.cs @@ -331,7 +331,8 @@ public static void Concat(this IFileSystemOperations operations, string accountN /// /// /// A list of Data Lake Store paths (starting with '/') of the source files. - /// Must be in the format: sources=<comma separated list> + /// Must be a comma-separated path list in the format: + /// sources=/file/path/1.txt,/file/path/2.txt,/file/path/lastfile.csv /// /// /// Indicates that as an optimization instead of deleting each individual @@ -365,7 +366,8 @@ public static void Concat(this IFileSystemOperations operations, string accountN /// /// /// A list of Data Lake Store paths (starting with '/') of the source files. - /// Must be in the format: sources=<comma separated list> + /// Must be a comma-separated path list in the format: + /// sources=/file/path/1.txt,/file/path/2.txt,/file/path/lastfile.csv /// /// /// Indicates that as an optimization instead of deleting each individual diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FirewallRulesOperations.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FirewallRulesOperations.cs index 227f46467119..87c380600a12 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FirewallRulesOperations.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FirewallRulesOperations.cs @@ -63,7 +63,8 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) /// account. /// /// - /// The name of the Data Lake Store account to which to add the firewall rule. + /// The name of the Data Lake Store account to add or replace the firewall + /// rule. /// /// /// The name of the firewall rule to create or update. @@ -277,6 +278,221 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) return _result; } + /// + /// Updates the specified firewall rule. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Store + /// account. + /// + /// + /// The name of the Data Lake Store account to which to update the firewall + /// rule. + /// + /// + /// The name of the firewall rule to update. + /// + /// + /// Parameters supplied to update the firewall rule. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, UpdateFirewallRuleParameters parameters = default(UpdateFirewallRuleParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (firewallRuleName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "firewallRuleName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("firewallRuleName", firewallRuleName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/firewallRules/{firewallRuleName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{firewallRuleName}", System.Uri.EscapeDataString(firewallRuleName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Deletes the specified firewall rule from the specified Data Lake Store /// account diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FirewallRulesOperationsExtensions.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FirewallRulesOperationsExtensions.cs index 7ab3e91073ff..1c6a89668694 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FirewallRulesOperationsExtensions.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/FirewallRulesOperationsExtensions.cs @@ -37,7 +37,8 @@ public static partial class FirewallRulesOperationsExtensions /// account. /// /// - /// The name of the Data Lake Store account to which to add the firewall rule. + /// The name of the Data Lake Store account to add or replace the firewall + /// rule. /// /// /// The name of the firewall rule to create or update. @@ -62,7 +63,8 @@ public static FirewallRule CreateOrUpdate(this IFirewallRulesOperations operatio /// account. /// /// - /// The name of the Data Lake Store account to which to add the firewall rule. + /// The name of the Data Lake Store account to add or replace the firewall + /// rule. /// /// /// The name of the firewall rule to create or update. @@ -81,6 +83,62 @@ public static FirewallRule CreateOrUpdate(this IFirewallRulesOperations operatio } } + /// + /// Updates the specified firewall rule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Store + /// account. + /// + /// + /// The name of the Data Lake Store account to which to update the firewall + /// rule. + /// + /// + /// The name of the firewall rule to update. + /// + /// + /// Parameters supplied to update the firewall rule. + /// + public static FirewallRule Update(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, UpdateFirewallRuleParameters parameters = default(UpdateFirewallRuleParameters)) + { + return operations.UpdateAsync(resourceGroupName, accountName, firewallRuleName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates the specified firewall rule. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Store + /// account. + /// + /// + /// The name of the Data Lake Store account to which to update the firewall + /// rule. + /// + /// + /// The name of the firewall rule to update. + /// + /// + /// Parameters supplied to update the firewall rule. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, UpdateFirewallRuleParameters parameters = default(UpdateFirewallRuleParameters), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Deletes the specified firewall rule from the specified Data Lake Store /// account diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/IFileSystemOperations.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/IFileSystemOperations.cs index a1aeaca98826..e1ac99e86c48 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/IFileSystemOperations.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/IFileSystemOperations.cs @@ -217,7 +217,8 @@ public partial interface IFileSystemOperations /// /// /// A list of Data Lake Store paths (starting with '/') of the source - /// files. Must be in the format: sources=<comma separated list> + /// files. Must be a comma-separated path list in the format: + /// sources=/file/path/1.txt,/file/path/2.txt,/file/path/lastfile.csv /// /// /// Indicates that as an optimization instead of deleting each diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/IFirewallRulesOperations.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/IFirewallRulesOperations.cs index a98f83e02290..0c9929d5cdbc 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/IFirewallRulesOperations.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/IFirewallRulesOperations.cs @@ -37,7 +37,7 @@ public partial interface IFirewallRulesOperations /// Store account. /// /// - /// The name of the Data Lake Store account to which to add the + /// The name of the Data Lake Store account to add or replace the /// firewall rule. /// /// @@ -63,6 +63,39 @@ public partial interface IFirewallRulesOperations /// Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, FirewallRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Updates the specified firewall rule. + /// + /// + /// The name of the Azure resource group that contains the Data Lake + /// Store account. + /// + /// + /// The name of the Data Lake Store account to which to update the + /// firewall rule. + /// + /// + /// The name of the firewall rule to update. + /// + /// + /// Parameters supplied to update the firewall rule. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, UpdateFirewallRuleParameters parameters = default(UpdateFirewallRuleParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Deletes the specified firewall rule from the specified Data Lake /// Store account /// diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/ITrustedIdProvidersOperations.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/ITrustedIdProvidersOperations.cs index 96b2dad1e8e5..e83dd273db92 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/ITrustedIdProvidersOperations.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/ITrustedIdProvidersOperations.cs @@ -37,15 +37,15 @@ public partial interface ITrustedIdProvidersOperations /// Store account. /// /// - /// The name of the Data Lake Store account to which to add the trusted - /// identity provider. + /// The name of the Data Lake Store account to add or replace the + /// trusted identity provider. /// /// /// The name of the trusted identity provider. This is used for /// differentiation of providers in the account. /// /// - /// Parameters supplied to create the create the trusted identity + /// Parameters supplied to create or replace the trusted identity /// provider. /// /// @@ -65,6 +65,40 @@ public partial interface ITrustedIdProvidersOperations /// Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, TrustedIdProvider parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Updates the specified trusted identity provider. + /// + /// + /// The name of the Azure resource group that contains the Data Lake + /// Store account. + /// + /// + /// The name of the Data Lake Store account to which to update the + /// trusted identity provider. + /// + /// + /// The name of the trusted identity provider. This is used for + /// differentiation of providers in the account. + /// + /// + /// Parameters supplied to update the trusted identity provider. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, UpdateTrustedIdProviderParameters parameters = default(UpdateTrustedIdProviderParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Deletes the specified trusted identity provider from the specified /// Data Lake Store account /// diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/DataLakeStoreAccount.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/DataLakeStoreAccount.cs index 02b4b7a79e4b..7d54f9eeb77a 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/DataLakeStoreAccount.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/DataLakeStoreAccount.cs @@ -85,7 +85,11 @@ public DataLakeStoreAccount() /// current month. Possible values include: 'Consumption', /// 'Commitment_1TB', 'Commitment_10TB', 'Commitment_100TB', /// 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - public DataLakeStoreAccount(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), EncryptionIdentity identity = default(EncryptionIdentity), DataLakeStoreAccountStatus? provisioningState = default(DataLakeStoreAccountStatus?), DataLakeStoreAccountState? state = default(DataLakeStoreAccountState?), System.DateTime? creationTime = default(System.DateTime?), EncryptionState? encryptionState = default(EncryptionState?), EncryptionProvisioningState? encryptionProvisioningState = default(EncryptionProvisioningState?), EncryptionConfig encryptionConfig = default(EncryptionConfig), FirewallState? firewallState = default(FirewallState?), IList firewallRules = default(IList), TrustedIdProviderState? trustedIdProviderState = default(TrustedIdProviderState?), IList trustedIdProviders = default(IList), System.DateTime? lastModifiedTime = default(System.DateTime?), string endpoint = default(string), string defaultGroup = default(string), TierType? newTier = default(TierType?), TierType? currentTier = default(TierType?)) + /// The current state of allowing + /// or disallowing IPs originating within Azure through the firewall. + /// If the firewall is disabled, this is not enforced. Possible values + /// include: 'Enabled', 'Disabled' + public DataLakeStoreAccount(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), EncryptionIdentity identity = default(EncryptionIdentity), DataLakeStoreAccountStatus? provisioningState = default(DataLakeStoreAccountStatus?), DataLakeStoreAccountState? state = default(DataLakeStoreAccountState?), System.DateTime? creationTime = default(System.DateTime?), EncryptionState? encryptionState = default(EncryptionState?), EncryptionProvisioningState? encryptionProvisioningState = default(EncryptionProvisioningState?), EncryptionConfig encryptionConfig = default(EncryptionConfig), FirewallState? firewallState = default(FirewallState?), IList firewallRules = default(IList), TrustedIdProviderState? trustedIdProviderState = default(TrustedIdProviderState?), IList trustedIdProviders = default(IList), System.DateTime? lastModifiedTime = default(System.DateTime?), string endpoint = default(string), string defaultGroup = default(string), TierType? newTier = default(TierType?), TierType? currentTier = default(TierType?), FirewallAllowAzureIpsState? firewallAllowAzureIps = default(FirewallAllowAzureIpsState?)) : base(location, id, name, type, tags) { Identity = identity; @@ -104,6 +108,7 @@ public DataLakeStoreAccount() DefaultGroup = defaultGroup; NewTier = newTier; CurrentTier = currentTier; + FirewallAllowAzureIps = firewallAllowAzureIps; } /// @@ -222,6 +227,15 @@ public DataLakeStoreAccount() [JsonProperty(PropertyName = "properties.currentTier")] public TierType? CurrentTier { get; protected set; } + /// + /// Gets or sets the current state of allowing or disallowing IPs + /// originating within Azure through the firewall. If the firewall is + /// disabled, this is not enforced. Possible values include: 'Enabled', + /// 'Disabled' + /// + [JsonProperty(PropertyName = "properties.firewallAllowAzureIps")] + public FirewallAllowAzureIpsState? FirewallAllowAzureIps { get; set; } + /// /// Validate the object. /// diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/DataLakeStoreAccountUpdateParameters.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/DataLakeStoreAccountUpdateParameters.cs index 71023b1fcc94..9fbaf04e384b 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/DataLakeStoreAccountUpdateParameters.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/DataLakeStoreAccountUpdateParameters.cs @@ -56,13 +56,18 @@ public DataLakeStoreAccountUpdateParameters() { } /// Possible values include: 'Consumption', 'Commitment_1TB', /// 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', /// 'Commitment_1PB', 'Commitment_5PB' - public DataLakeStoreAccountUpdateParameters(IDictionary tags = default(IDictionary), FirewallState? firewallState = default(FirewallState?), TrustedIdProviderState? trustedIdProviderState = default(TrustedIdProviderState?), string defaultGroup = default(string), TierType? newTier = default(TierType?)) + /// The current state of allowing + /// or disallowing IPs originating within Azure through the firewall. + /// If the firewall is disabled, this is not enforced. Possible values + /// include: 'Enabled', 'Disabled' + public DataLakeStoreAccountUpdateParameters(IDictionary tags = default(IDictionary), FirewallState? firewallState = default(FirewallState?), TrustedIdProviderState? trustedIdProviderState = default(TrustedIdProviderState?), string defaultGroup = default(string), TierType? newTier = default(TierType?), FirewallAllowAzureIpsState? firewallAllowAzureIps = default(FirewallAllowAzureIpsState?)) { Tags = tags; FirewallState = firewallState; TrustedIdProviderState = trustedIdProviderState; DefaultGroup = defaultGroup; NewTier = newTier; + FirewallAllowAzureIps = firewallAllowAzureIps; } /// @@ -106,6 +111,15 @@ public DataLakeStoreAccountUpdateParameters() { } [JsonProperty(PropertyName = "properties.newTier")] public TierType? NewTier { get; set; } + /// + /// Gets or sets the current state of allowing or disallowing IPs + /// originating within Azure through the firewall. If the firewall is + /// disabled, this is not enforced. Possible values include: 'Enabled', + /// 'Disabled' + /// + [JsonProperty(PropertyName = "properties.firewallAllowAzureIps")] + public FirewallAllowAzureIpsState? FirewallAllowAzureIps { get; set; } + } } diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/FirewallAllowAzureIpsState.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/FirewallAllowAzureIpsState.cs new file mode 100644 index 000000000000..0fbe18473e8e --- /dev/null +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/FirewallAllowAzureIpsState.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.DataLake.Store.Models +{ + using Azure; + using DataLake; + using Management; + using Azure; + using Management; + using DataLake; + using Store; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using Store; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for FirewallAllowAzureIpsState. + /// + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + public enum FirewallAllowAzureIpsState + { + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled + } +} + + diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/FirewallRule.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/FirewallRule.cs index 243bcd422958..34b33eceab31 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/FirewallRule.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/FirewallRule.cs @@ -36,9 +36,11 @@ public FirewallRule() { } /// Initializes a new instance of the FirewallRule class. /// /// the start IP address for the firewall - /// rule. + /// rule. This can be either ipv4 or ipv6. Start and End should be in + /// the same protocol. /// the end IP address for the firewall - /// rule. + /// rule. This can be either ipv4 or ipv6. Start and End should be in + /// the same protocol. /// Resource Id /// Resource name /// Resource type @@ -50,13 +52,16 @@ public FirewallRule() { } } /// - /// Gets or sets the start IP address for the firewall rule. + /// Gets or sets the start IP address for the firewall rule. This can + /// be either ipv4 or ipv6. Start and End should be in the same + /// protocol. /// [JsonProperty(PropertyName = "properties.startIpAddress")] public string StartIpAddress { get; set; } /// - /// Gets or sets the end IP address for the firewall rule. + /// Gets or sets the end IP address for the firewall rule. This can be + /// either ipv4 or ipv6. Start and End should be in the same protocol. /// [JsonProperty(PropertyName = "properties.endIpAddress")] public string EndIpAddress { get; set; } diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/TrustedIdProvider.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/TrustedIdProvider.cs index 3bcae84dc261..af4d2ff72ccd 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/TrustedIdProvider.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/TrustedIdProvider.cs @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// Data Lake Store firewall rule information + /// Data Lake Store Trusted Identity Provider information /// [JsonTransformation] public partial class TrustedIdProvider : SubResource diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/UpdateFirewallRuleParameters.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/UpdateFirewallRuleParameters.cs new file mode 100644 index 000000000000..d19be0aae0f8 --- /dev/null +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/UpdateFirewallRuleParameters.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.DataLake.Store.Models +{ + using Azure; + using DataLake; + using Management; + using Azure; + using Management; + using DataLake; + using Store; + using Newtonsoft.Json; + using Rest; + using Rest.Serialization; + using Store; + using System.Linq; + + /// + /// Data Lake Analytics firewall rule update parameters + /// + [JsonTransformation] + public partial class UpdateFirewallRuleParameters + { + /// + /// Initializes a new instance of the UpdateFirewallRuleParameters + /// class. + /// + public UpdateFirewallRuleParameters() { } + + /// + /// Initializes a new instance of the UpdateFirewallRuleParameters + /// class. + /// + /// the start IP address for the firewall + /// rule. This can be either ipv4 or ipv6. Start and End should be in + /// the same protocol. + /// the end IP address for the firewall + /// rule. This can be either ipv4 or ipv6. Start and End should be in + /// the same protocol. + public UpdateFirewallRuleParameters(string startIpAddress = default(string), string endIpAddress = default(string)) + { + StartIpAddress = startIpAddress; + EndIpAddress = endIpAddress; + } + + /// + /// Gets or sets the start IP address for the firewall rule. This can + /// be either ipv4 or ipv6. Start and End should be in the same + /// protocol. + /// + [JsonProperty(PropertyName = "properties.startIpAddress")] + public string StartIpAddress { get; set; } + + /// + /// Gets or sets the end IP address for the firewall rule. This can be + /// either ipv4 or ipv6. Start and End should be in the same protocol. + /// + [JsonProperty(PropertyName = "properties.endIpAddress")] + public string EndIpAddress { get; set; } + + } +} + + diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/UpdateTrustedIdProviderParameters.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/UpdateTrustedIdProviderParameters.cs new file mode 100644 index 000000000000..b042b9748e1a --- /dev/null +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/Models/UpdateTrustedIdProviderParameters.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.DataLake.Store.Models +{ + using Azure; + using DataLake; + using Management; + using Azure; + using Management; + using DataLake; + using Store; + using Newtonsoft.Json; + using Rest; + using Rest.Serialization; + using Store; + using System.Linq; + + /// + /// Data Lake Store Trusted Identity Provider update parameters + /// + [JsonTransformation] + public partial class UpdateTrustedIdProviderParameters + { + /// + /// Initializes a new instance of the UpdateTrustedIdProviderParameters + /// class. + /// + public UpdateTrustedIdProviderParameters() { } + + /// + /// Initializes a new instance of the UpdateTrustedIdProviderParameters + /// class. + /// + /// The URL of this trusted identity + /// provider + public UpdateTrustedIdProviderParameters(string idProvider = default(string)) + { + IdProvider = idProvider; + } + + /// + /// Gets or sets the URL of this trusted identity provider + /// + [JsonProperty(PropertyName = "properties.idProvider")] + public string IdProvider { get; set; } + + } +} + + diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/TrustedIdProvidersOperations.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/TrustedIdProvidersOperations.cs index 1ec49a0ae3d2..51025d2bde72 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/TrustedIdProvidersOperations.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/TrustedIdProvidersOperations.cs @@ -64,7 +64,7 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien /// account. /// /// - /// The name of the Data Lake Store account to which to add the trusted + /// The name of the Data Lake Store account to add or replace the trusted /// identity provider. /// /// @@ -72,7 +72,7 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien /// of providers in the account. /// /// - /// Parameters supplied to create the create the trusted identity provider. + /// Parameters supplied to create or replace the trusted identity provider. /// /// /// Headers that will be added to request. @@ -280,6 +280,222 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien return _result; } + /// + /// Updates the specified trusted identity provider. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Store + /// account. + /// + /// + /// The name of the Data Lake Store account to which to update the trusted + /// identity provider. + /// + /// + /// The name of the trusted identity provider. This is used for differentiation + /// of providers in the account. + /// + /// + /// Parameters supplied to update the trusted identity provider. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, UpdateTrustedIdProviderParameters parameters = default(UpdateTrustedIdProviderParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (trustedIdProviderName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "trustedIdProviderName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("trustedIdProviderName", trustedIdProviderName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/trustedIdProviders/{trustedIdProviderName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{trustedIdProviderName}", System.Uri.EscapeDataString(trustedIdProviderName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Deletes the specified trusted identity provider from the specified Data /// Lake Store account diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/TrustedIdProvidersOperationsExtensions.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/TrustedIdProvidersOperationsExtensions.cs index 46b379927c82..fc2f1bf19ca0 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/TrustedIdProvidersOperationsExtensions.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Generated/TrustedIdProvidersOperationsExtensions.cs @@ -38,7 +38,7 @@ public static partial class TrustedIdProvidersOperationsExtensions /// account. /// /// - /// The name of the Data Lake Store account to which to add the trusted + /// The name of the Data Lake Store account to add or replace the trusted /// identity provider. /// /// @@ -46,7 +46,7 @@ public static partial class TrustedIdProvidersOperationsExtensions /// of providers in the account. /// /// - /// Parameters supplied to create the create the trusted identity provider. + /// Parameters supplied to create or replace the trusted identity provider. /// public static TrustedIdProvider CreateOrUpdate(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, TrustedIdProvider parameters) { @@ -66,7 +66,7 @@ public static TrustedIdProvider CreateOrUpdate(this ITrustedIdProvidersOperation /// account. /// /// - /// The name of the Data Lake Store account to which to add the trusted + /// The name of the Data Lake Store account to add or replace the trusted /// identity provider. /// /// @@ -74,7 +74,7 @@ public static TrustedIdProvider CreateOrUpdate(this ITrustedIdProvidersOperation /// of providers in the account. /// /// - /// Parameters supplied to create the create the trusted identity provider. + /// Parameters supplied to create or replace the trusted identity provider. /// /// /// The cancellation token. @@ -87,6 +87,64 @@ public static TrustedIdProvider CreateOrUpdate(this ITrustedIdProvidersOperation } } + /// + /// Updates the specified trusted identity provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Store + /// account. + /// + /// + /// The name of the Data Lake Store account to which to update the trusted + /// identity provider. + /// + /// + /// The name of the trusted identity provider. This is used for differentiation + /// of providers in the account. + /// + /// + /// Parameters supplied to update the trusted identity provider. + /// + public static TrustedIdProvider Update(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, UpdateTrustedIdProviderParameters parameters = default(UpdateTrustedIdProviderParameters)) + { + return operations.UpdateAsync(resourceGroupName, accountName, trustedIdProviderName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates the specified trusted identity provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the Azure resource group that contains the Data Lake Store + /// account. + /// + /// + /// The name of the Data Lake Store account to which to update the trusted + /// identity provider. + /// + /// + /// The name of the trusted identity provider. This is used for differentiation + /// of providers in the account. + /// + /// + /// Parameters supplied to update the trusted identity provider. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, UpdateTrustedIdProviderParameters parameters = default(UpdateTrustedIdProviderParameters), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, trustedIdProviderName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Deletes the specified trusted identity provider from the specified Data /// Lake Store account diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Properties/AssemblyInfo.cs b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Properties/AssemblyInfo.cs index f1252673257b..bedac3e33068 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Properties/AssemblyInfo.cs +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/Properties/AssemblyInfo.cs @@ -9,7 +9,7 @@ [assembly: AssemblyDescription("Provides Microsoft Azure Data Lake Store management operations including account and filesystem management.")] [assembly: AssemblyVersion("2.0.0.0")] -[assembly: AssemblyFileVersion("2.0.0.0")] +[assembly: AssemblyFileVersion("2.0.1.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Azure .NET SDK")] diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/generate.cmd b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/generate.cmd index 841480544eec..8af6195104f6 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/generate.cmd +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/generate.cmd @@ -8,8 +8,8 @@ setlocal set autoRestVersion=1.0.0-Nightly20170104 set source=-Source https://www.myget.org/F/autorest/api/v2 -set accountSpecFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/fdf8f01a22cac0cdab2e4ef20549e86b2f8820f8/arm-datalake-store/account/2016-11-01/swagger/account.json" -set filesystemSpecFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/fdf8f01a22cac0cdab2e4ef20549e86b2f8820f8/arm-datalake-store/filesystem/2016-11-01/swagger/filesystem.json" +set accountSpecFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0ae749b979d3a333de9eb76f726dad06223f455f/arm-datalake-store/account/2016-11-01/swagger/account.json" +set filesystemSpecFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0ae749b979d3a333de9eb76f726dad06223f455f/arm-datalake-store/filesystem/2016-11-01/swagger/filesystem.json" set repoRoot=%~dp0..\..\..\.. set generateFolder=%~dp0Generated diff --git a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/project.json b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/project.json index ade01f073a98..3507c03d2972 100644 --- a/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/project.json +++ b/src/ResourceManagement/DataLake.Store/Microsoft.Azure.Management.DataLake.Store/project.json @@ -1,5 +1,5 @@ { - "version": "2.0.0-preview", + "version": "2.0.1-preview", "description": "Provides Data Lake Store account and filesystem management capabilities for Microsoft Azure.", "authors": [ "Microsoft" ],