diff --git a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureBatchLinkedService.cs b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureBatchLinkedService.cs index f50d7be0dde3..db57fa81a2a3 100644 --- a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureBatchLinkedService.cs +++ b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureBatchLinkedService.cs @@ -53,7 +53,7 @@ public AzureBatchLinkedService() /// authentication. Credentials are encrypted using the integration /// runtime credential manager. Type: string (or Expression with /// resultType string). - public AzureBatchLinkedService(object accountName, object batchUri, object poolName, LinkedServiceReference linkedServiceName, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), SecureString accessKey = default(SecureString), object encryptedCredential = default(object)) + public AzureBatchLinkedService(object accountName, object batchUri, object poolName, LinkedServiceReference linkedServiceName, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), SecretBase accessKey = default(SecretBase), object encryptedCredential = default(object)) : base(additionalProperties, connectVia, description) { AccountName = accountName; @@ -81,7 +81,7 @@ public AzureBatchLinkedService() /// Gets or sets the Azure Batch account access key. /// [JsonProperty(PropertyName = "typeProperties.accessKey")] - public SecureString AccessKey { get; set; } + public SecretBase AccessKey { get; set; } /// /// Gets or sets the Azure Batch URI. Type: string (or Expression with @@ -136,10 +136,6 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "LinkedServiceName"); } - if (AccessKey != null) - { - AccessKey.Validate(); - } if (LinkedServiceName != null) { LinkedServiceName.Validate(); diff --git a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureDataLakeAnalyticsLinkedService.cs b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureDataLakeAnalyticsLinkedService.cs index 7277a5d65814..3121002b52b9 100644 --- a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureDataLakeAnalyticsLinkedService.cs +++ b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureDataLakeAnalyticsLinkedService.cs @@ -64,7 +64,7 @@ public AzureDataLakeAnalyticsLinkedService() /// authentication. Credentials are encrypted using the integration /// runtime credential manager. Type: string (or Expression with /// resultType string). - public AzureDataLakeAnalyticsLinkedService(object accountName, object tenant, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), object servicePrincipalId = default(object), SecureString servicePrincipalKey = default(SecureString), object subscriptionId = default(object), object resourceGroupName = default(object), object dataLakeAnalyticsUri = default(object), object encryptedCredential = default(object)) + public AzureDataLakeAnalyticsLinkedService(object accountName, object tenant, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), object servicePrincipalId = default(object), SecretBase servicePrincipalKey = default(SecretBase), object subscriptionId = default(object), object resourceGroupName = default(object), object dataLakeAnalyticsUri = default(object), object encryptedCredential = default(object)) : base(additionalProperties, connectVia, description) { AccountName = accountName; @@ -103,7 +103,7 @@ public AzureDataLakeAnalyticsLinkedService() /// against the Azure Data Lake Analytics account. /// [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecureString ServicePrincipalKey { get; set; } + public SecretBase ServicePrincipalKey { get; set; } /// /// Gets or sets the name or ID of the tenant to which the service @@ -161,10 +161,6 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Tenant"); } - if (ServicePrincipalKey != null) - { - ServicePrincipalKey.Validate(); - } } } } diff --git a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureMLLinkedService.cs b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureMLLinkedService.cs index 2744b247ff2c..32f347861dc9 100644 --- a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureMLLinkedService.cs +++ b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/AzureMLLinkedService.cs @@ -61,7 +61,7 @@ public AzureMLLinkedService() /// authentication. Credentials are encrypted using the integration /// runtime credential manager. Type: string (or Expression with /// resultType string). - public AzureMLLinkedService(object mlEndpoint, SecureString apiKey, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), object updateResourceEndpoint = default(object), object servicePrincipalId = default(object), SecureString servicePrincipalKey = default(SecureString), object tenant = default(object), object encryptedCredential = default(object)) + public AzureMLLinkedService(object mlEndpoint, SecretBase apiKey, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), object updateResourceEndpoint = default(object), object servicePrincipalId = default(object), SecretBase servicePrincipalKey = default(SecretBase), object tenant = default(object), object encryptedCredential = default(object)) : base(additionalProperties, connectVia, description) { MlEndpoint = mlEndpoint; @@ -91,7 +91,7 @@ public AzureMLLinkedService() /// Gets or sets the API key for accessing the Azure ML model endpoint. /// [JsonProperty(PropertyName = "typeProperties.apiKey")] - public SecureString ApiKey { get; set; } + public SecretBase ApiKey { get; set; } /// /// Gets or sets the Update Resource REST URL for an Azure ML Web @@ -115,7 +115,7 @@ public AzureMLLinkedService() /// service. /// [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecureString ServicePrincipalKey { get; set; } + public SecretBase ServicePrincipalKey { get; set; } /// /// Gets or sets the name or ID of the tenant to which the service @@ -150,14 +150,6 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "ApiKey"); } - if (ApiKey != null) - { - ApiKey.Validate(); - } - if (ServicePrincipalKey != null) - { - ServicePrincipalKey.Validate(); - } } } } diff --git a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HDInsightLinkedService.cs b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HDInsightLinkedService.cs index e4aca83d5a14..f4bb3b29a615 100644 --- a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HDInsightLinkedService.cs +++ b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HDInsightLinkedService.cs @@ -52,7 +52,7 @@ public HDInsightLinkedService() /// authentication. Credentials are encrypted using the integration /// runtime credential manager. Type: string (or Expression with /// resultType string). - public HDInsightLinkedService(object clusterUri, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), object userName = default(object), SecureString password = default(SecureString), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), LinkedServiceReference hcatalogLinkedServiceName = default(LinkedServiceReference), object encryptedCredential = default(object)) + public HDInsightLinkedService(object clusterUri, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), object userName = default(object), SecretBase password = default(SecretBase), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), LinkedServiceReference hcatalogLinkedServiceName = default(LinkedServiceReference), object encryptedCredential = default(object)) : base(additionalProperties, connectVia, description) { ClusterUri = clusterUri; @@ -87,7 +87,7 @@ public HDInsightLinkedService() /// Gets or sets hDInsight cluster password. /// [JsonProperty(PropertyName = "typeProperties.password")] - public SecureString Password { get; set; } + public SecretBase Password { get; set; } /// /// Gets or sets the Azure Storage linked service reference. @@ -123,10 +123,6 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "ClusterUri"); } - if (Password != null) - { - Password.Validate(); - } if (LinkedServiceName != null) { LinkedServiceName.Validate(); diff --git a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HDInsightOnDemandLinkedService.cs b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HDInsightOnDemandLinkedService.cs index 00f9c5f40ba0..d677bfb07d50 100644 --- a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HDInsightOnDemandLinkedService.cs +++ b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HDInsightOnDemandLinkedService.cs @@ -115,7 +115,7 @@ public HDInsightOnDemandLinkedService() /// authentication. Credentials are encrypted using the integration /// runtime credential manager. Type: string (or Expression with /// resultType string). - public HDInsightOnDemandLinkedService(object clusterSize, object timeToLive, object version, LinkedServiceReference linkedServiceName, object hostSubscriptionId, object tenant, object clusterResourceGroup, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), object servicePrincipalId = default(object), SecureString servicePrincipalKey = default(SecureString), object clusterNamePrefix = default(object), object clusterUserName = default(object), SecureString clusterPassword = default(SecureString), object clusterSshUserName = default(object), SecureString clusterSshPassword = default(SecureString), IList additionalLinkedServiceNames = default(IList), LinkedServiceReference hcatalogLinkedServiceName = default(LinkedServiceReference), object clusterType = default(object), object sparkVersion = default(object), object coreConfiguration = default(object), object hBaseConfiguration = default(object), object hdfsConfiguration = default(object), object hiveConfiguration = default(object), object mapReduceConfiguration = default(object), object oozieConfiguration = default(object), object stormConfiguration = default(object), object yarnConfiguration = default(object), object encryptedCredential = default(object)) + public HDInsightOnDemandLinkedService(object clusterSize, object timeToLive, object version, LinkedServiceReference linkedServiceName, object hostSubscriptionId, object tenant, object clusterResourceGroup, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), object servicePrincipalId = default(object), SecretBase servicePrincipalKey = default(SecretBase), object clusterNamePrefix = default(object), object clusterUserName = default(object), SecretBase clusterPassword = default(SecretBase), object clusterSshUserName = default(object), SecretBase clusterSshPassword = default(SecretBase), IList additionalLinkedServiceNames = default(IList), LinkedServiceReference hcatalogLinkedServiceName = default(LinkedServiceReference), object clusterType = default(object), object sparkVersion = default(object), object coreConfiguration = default(object), object hBaseConfiguration = default(object), object hdfsConfiguration = default(object), object hiveConfiguration = default(object), object mapReduceConfiguration = default(object), object oozieConfiguration = default(object), object stormConfiguration = default(object), object yarnConfiguration = default(object), object encryptedCredential = default(object)) : base(additionalProperties, connectVia, description) { ClusterSize = clusterSize; @@ -202,7 +202,7 @@ public HDInsightOnDemandLinkedService() /// Gets or sets the key for the service principal id. /// [JsonProperty(PropertyName = "typeProperties.servicePrincipalKey")] - public SecureString ServicePrincipalKey { get; set; } + public SecretBase ServicePrincipalKey { get; set; } /// /// Gets or sets the Tenant id/name to which the service principal @@ -237,7 +237,7 @@ public HDInsightOnDemandLinkedService() /// Gets or sets the password to access the cluster. /// [JsonProperty(PropertyName = "typeProperties.clusterPassword")] - public SecureString ClusterPassword { get; set; } + public SecretBase ClusterPassword { get; set; } /// /// Gets or sets the username to SSH remotely connect to cluster’s node @@ -251,7 +251,7 @@ public HDInsightOnDemandLinkedService() /// (for Linux). /// [JsonProperty(PropertyName = "typeProperties.clusterSshPassword")] - public SecureString ClusterSshPassword { get; set; } + public SecretBase ClusterSshPassword { get; set; } /// /// Gets or sets specifies additional storage accounts for the @@ -388,18 +388,6 @@ public override void Validate() { LinkedServiceName.Validate(); } - if (ServicePrincipalKey != null) - { - ServicePrincipalKey.Validate(); - } - if (ClusterPassword != null) - { - ClusterPassword.Validate(); - } - if (ClusterSshPassword != null) - { - ClusterSshPassword.Validate(); - } if (AdditionalLinkedServiceNames != null) { foreach (var element in AdditionalLinkedServiceNames) diff --git a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HiveLinkedService.cs b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HiveLinkedService.cs index a8aae4e47a03..c22945beb375 100644 --- a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HiveLinkedService.cs +++ b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/HiveLinkedService.cs @@ -87,7 +87,7 @@ public HiveLinkedService() /// authentication. Credentials are encrypted using the integration /// runtime credential manager. Type: string (or Expression with /// resultType string). - public HiveLinkedService(object host, string authenticationType, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), object port = default(object), string serverType = default(string), string thriftTransportProtocol = default(string), object serviceDiscoveryMode = default(object), object zooKeeperNameSpace = default(object), object useNativeQuery = default(object), object username = default(object), SecureString password = default(SecureString), object httpPath = default(object), object enableSsl = default(object), object trustedCertPath = default(object), object useSystemTrustStore = default(object), object allowHostNameCNMismatch = default(object), object allowSelfSignedServerCert = default(object), object encryptedCredential = default(object)) + public HiveLinkedService(object host, string authenticationType, IDictionary additionalProperties = default(IDictionary), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), object port = default(object), string serverType = default(string), string thriftTransportProtocol = default(string), object serviceDiscoveryMode = default(object), object zooKeeperNameSpace = default(object), object useNativeQuery = default(object), object username = default(object), SecretBase password = default(SecretBase), object httpPath = default(object), object enableSsl = default(object), object trustedCertPath = default(object), object useSystemTrustStore = default(object), object allowHostNameCNMismatch = default(object), object allowSelfSignedServerCert = default(object), object encryptedCredential = default(object)) : base(additionalProperties, connectVia, description) { Host = host; @@ -184,7 +184,7 @@ public HiveLinkedService() /// provided in the Username field /// [JsonProperty(PropertyName = "typeProperties.password")] - public SecureString Password { get; set; } + public SecretBase Password { get; set; } /// /// Gets or sets the partial URL corresponding to the Hive server. @@ -256,10 +256,6 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "AuthenticationType"); } - if (Password != null) - { - Password.Validate(); - } } } } diff --git a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/LinkedIntegrationRuntime.cs b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/LinkedIntegrationRuntime.cs index 94b29dbfc00c..4ec7da81daf2 100644 --- a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/LinkedIntegrationRuntime.cs +++ b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/LinkedIntegrationRuntime.cs @@ -31,14 +31,20 @@ public LinkedIntegrationRuntime() /// /// The name of the linked integration /// runtime. - /// The data factory name for which the + /// The subscription ID for which the /// linked integration runtime belong to. + /// The name of the data factory for + /// which the linked integration runtime belong to. + /// The location of the data factory + /// for which the linked integration runtime belong to. /// The creating time of the linked /// integration runtime. - public LinkedIntegrationRuntime(string name = default(string), string dataFactoryName = default(string), System.DateTime? createTime = default(System.DateTime?)) + public LinkedIntegrationRuntime(string name = default(string), string subscriptionId = default(string), string dataFactoryName = default(string), string dataFactoryLocation = default(string), System.DateTime? createTime = default(System.DateTime?)) { Name = name; + SubscriptionId = subscriptionId; DataFactoryName = dataFactoryName; + DataFactoryLocation = dataFactoryLocation; CreateTime = createTime; CustomInit(); } @@ -55,12 +61,26 @@ public LinkedIntegrationRuntime() public string Name { get; private set; } /// - /// Gets the data factory name for which the linked integration runtime + /// Gets the subscription ID for which the linked integration runtime /// belong to. /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; private set; } + + /// + /// Gets the name of the data factory for which the linked integration + /// runtime belong to. + /// [JsonProperty(PropertyName = "dataFactoryName")] public string DataFactoryName { get; private set; } + /// + /// Gets the location of the data factory for which the linked + /// integration runtime belong to. + /// + [JsonProperty(PropertyName = "dataFactoryLocation")] + public string DataFactoryLocation { get; private set; } + /// /// Gets the creating time of the linked integration runtime. /// diff --git a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/WebBasicAuthentication.cs b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/WebBasicAuthentication.cs index 60bec93f71e2..739807b64a7d 100644 --- a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/WebBasicAuthentication.cs +++ b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/WebBasicAuthentication.cs @@ -39,7 +39,7 @@ public WebBasicAuthentication() /// string (or Expression with resultType string). /// The password for Basic /// authentication. - public WebBasicAuthentication(object url, object username, SecureString password) + public WebBasicAuthentication(object url, object username, SecretBase password) : base(url) { Username = username; @@ -63,7 +63,7 @@ public WebBasicAuthentication(object url, object username, SecureString password /// Gets or sets the password for Basic authentication. /// [JsonProperty(PropertyName = "password")] - public SecureString Password { get; set; } + public SecretBase Password { get; set; } /// /// Validate the object. @@ -82,10 +82,6 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Password"); } - if (Password != null) - { - Password.Validate(); - } } } } diff --git a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/WebClientCertificateAuthentication.cs b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/WebClientCertificateAuthentication.cs index 056d93e1f667..47dd5ab229d4 100644 --- a/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/WebClientCertificateAuthentication.cs +++ b/src/SDKs/DataFactory/Management.DataFactory/Generated/Models/WebClientCertificateAuthentication.cs @@ -41,7 +41,7 @@ public WebClientCertificateAuthentication() /// resultType string). /// Base64-encoded contents of a PFX file. /// Password for the PFX file. - public WebClientCertificateAuthentication(object url, SecureString pfx, SecureString password) + public WebClientCertificateAuthentication(object url, SecretBase pfx, SecretBase password) : base(url) { Pfx = pfx; @@ -58,13 +58,13 @@ public WebClientCertificateAuthentication(object url, SecureString pfx, SecureSt /// Gets or sets base64-encoded contents of a PFX file. /// [JsonProperty(PropertyName = "pfx")] - public SecureString Pfx { get; set; } + public SecretBase Pfx { get; set; } /// /// Gets or sets password for the PFX file. /// [JsonProperty(PropertyName = "password")] - public SecureString Password { get; set; } + public SecretBase Password { get; set; } /// /// Validate the object. @@ -83,14 +83,6 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Password"); } - if (Pfx != null) - { - Pfx.Validate(); - } - if (Password != null) - { - Password.Validate(); - } } } } diff --git a/src/SDKs/DataFactory/Management.DataFactory/changelog.md b/src/SDKs/DataFactory/Management.DataFactory/changelog.md index 2ecb5b3e9b9a..2ca96fefc79e 100644 --- a/src/SDKs/DataFactory/Management.DataFactory/changelog.md +++ b/src/SDKs/DataFactory/Management.DataFactory/changelog.md @@ -4,6 +4,8 @@ ### Feature Additions * Enable AAD auth via service principal and management service identity for Azure SQL DB/DW linked service types + * Support integration runtime sharing across subscription and data factory + * Enable Azure Key Vault for all compute linked service ## Version 0.4.0-preview diff --git a/src/SDKs/DataLake.Store/DataLakeStore.Tests/ScenarioTests/AccountOperationTests.cs b/src/SDKs/DataLake.Store/DataLakeStore.Tests/ScenarioTests/AccountOperationTests.cs index 715142713aa9..d183ce248949 100644 --- a/src/SDKs/DataLake.Store/DataLakeStore.Tests/ScenarioTests/AccountOperationTests.cs +++ b/src/SDKs/DataLake.Store/DataLakeStore.Tests/ScenarioTests/AccountOperationTests.cs @@ -18,7 +18,7 @@ public class AccountOperationTests : TestBase private CommonTestFixture commonData; [Fact] - public void CreateGetUpdateDeleteTest() + public void AccountCRUDTest() { using (var context = MockContext.Start(this.GetType().FullName)) { @@ -31,14 +31,20 @@ public void CreateGetUpdateDeleteTest() Name = commonData.DataLakeStoreAccountName }; - var responseNameCheck = clientToUse.Account.CheckNameAvailability("EastUS2", checkNameParam); + var responseNameCheck = + clientToUse.Accounts.CheckNameAvailability( + commonData.Location.Replace(" ", ""), + checkNameParam + ); Assert.True(responseNameCheck.NameAvailable); // Create a test account var responseCreate = - clientToUse.Account.Create(resourceGroupName: commonData.ResourceGroupName, name: commonData.DataLakeStoreAccountName, - parameters: new DataLakeStoreAccount + clientToUse.Accounts.Create( + resourceGroupName : commonData.ResourceGroupName, + accountName : commonData.DataLakeStoreAccountName, + parameters : new CreateDataLakeStoreAccountParameters { Location = commonData.Location, Tags = new Dictionary @@ -52,17 +58,26 @@ public void CreateGetUpdateDeleteTest() }, EncryptionState = EncryptionState.Enabled, NewTier = TierType.Commitment1TB - }); + } + ); Assert.Equal(DataLakeStoreAccountStatus.Succeeded, responseCreate.ProvisioningState); // Verify that the account name is no longer available - responseNameCheck = clientToUse.Account.CheckNameAvailability("EastUS2", checkNameParam); + responseNameCheck = + clientToUse.Accounts.CheckNameAvailability( + commonData.Location.Replace(" ", ""), + checkNameParam + ); Assert.False(responseNameCheck.NameAvailable); // Get the account and ensure that all the values are properly set. - var responseGet = clientToUse.Account.Get(commonData.ResourceGroupName, commonData.DataLakeStoreAccountName); + var responseGet = + clientToUse.Accounts.Get( + commonData.ResourceGroupName, + commonData.DataLakeStoreAccountName + ); // Validate the account creation process Assert.Equal(DataLakeStoreAccountStatus.Succeeded, responseGet.ProvisioningState); @@ -80,11 +95,17 @@ public void CreateGetUpdateDeleteTest() // We will wait a maximum of 15 minutes for this to happen and then report failures int timeToWaitInMinutes = 15; int minutesWaited = 0; - while (responseGet.ProvisioningState != DataLakeStoreAccountStatus.Succeeded && responseGet.ProvisioningState != DataLakeStoreAccountStatus.Failed && minutesWaited <= timeToWaitInMinutes) + while (responseGet.ProvisioningState != DataLakeStoreAccountStatus.Succeeded && + responseGet.ProvisioningState != DataLakeStoreAccountStatus.Failed && + minutesWaited <= timeToWaitInMinutes) { TestUtilities.Wait(60000); // Wait for one minute and then go again. minutesWaited++; - responseGet = clientToUse.Account.Get(commonData.ResourceGroupName, commonData.DataLakeStoreAccountName); + responseGet = + clientToUse.Accounts.Get( + commonData.ResourceGroupName, + commonData.DataLakeStoreAccountName + ); } // Confirm that the account creation did succeed @@ -97,62 +118,78 @@ public void CreateGetUpdateDeleteTest() Assert.Equal(EncryptionConfigType.ServiceManaged, responseGet.EncryptionConfig.Type); // Update the account and confirm the updates make it in. - var newAccount = responseGet; - newAccount.Tags = new Dictionary - { - { "updatedKey", "updatedValue" } - }; - - var updateResponse = clientToUse.Account.Update(commonData.ResourceGroupName, commonData.DataLakeStoreAccountName, - new DataLakeStoreAccountUpdateParameters - { - Tags = new Dictionary - { - { "updatedKey", "updatedValue" } - }, - NewTier = TierType.Consumption - }); + var responseUpdate = + clientToUse.Accounts.Update( + commonData.ResourceGroupName, + commonData.DataLakeStoreAccountName, + new UpdateDataLakeStoreAccountParameters + { + Tags = new Dictionary + { + { "updatedKey", "updatedValue" } + }, + NewTier = TierType.Consumption + } + ); - Assert.Equal(DataLakeStoreAccountStatus.Succeeded, updateResponse.ProvisioningState); + Assert.Equal(DataLakeStoreAccountStatus.Succeeded, responseUpdate.ProvisioningState); - var updateResponseGet = clientToUse.Account.Get(commonData.ResourceGroupName, commonData.DataLakeStoreAccountName); + var responseUpdateGet = + clientToUse.Accounts.Get( + commonData.ResourceGroupName, + commonData.DataLakeStoreAccountName + ); - Assert.NotNull(updateResponse.Id); - Assert.Contains(responseGet.Id, updateResponseGet.Id); - Assert.Equal(responseGet.Location, updateResponseGet.Location); - Assert.Equal(newAccount.Name, updateResponseGet.Name); - Assert.Equal(responseGet.Type, updateResponseGet.Type); + Assert.NotNull(responseUpdate.Id); + Assert.Contains(responseGet.Id, responseUpdateGet.Id); + Assert.Equal(responseGet.Location, responseUpdateGet.Location); + Assert.Equal(responseGet.Name, responseUpdateGet.Name); + Assert.Equal(responseGet.Type, responseUpdateGet.Type); // Verify the new tags. NOTE: sequence equal is not ideal if we have more than 1 tag, since the ordering can change. - Assert.True(updateResponseGet.Tags.SequenceEqual(newAccount.Tags)); - - Assert.Equal(TierType.Commitment1TB, updateResponseGet.CurrentTier); - Assert.Equal(TierType.Consumption, updateResponseGet.NewTier); + Assert.True(responseUpdateGet.Tags.Count == 1); + Assert.True(responseUpdateGet.Tags.ContainsKey("updatedKey")); + Assert.True(responseUpdateGet.Tags.Values.Contains("updatedValue")); + Assert.Equal(TierType.Commitment1TB, responseUpdateGet.CurrentTier); + Assert.Equal(TierType.Consumption, responseUpdateGet.NewTier); // Create another account and ensure that list account returns both - var accountToChange = updateResponseGet; - var newAcctName = accountToChange.Name + "acct2"; - clientToUse.Account.Create(commonData.ResourceGroupName, newAcctName, new DataLakeStoreAccount - { - Location = accountToChange.Location - }); + clientToUse.Accounts.Create( + commonData.ResourceGroupName, + commonData.DataLakeStoreAccountName + "acct2", + new CreateDataLakeStoreAccountParameters + { + Location = commonData.Location + } + ); - var listResponse = clientToUse.Account.List(); + var listResponse = clientToUse.Accounts.List(); // Assert that there are at least two accounts in the list Assert.True(listResponse.Count() > 1); // Now list by resource group: - listResponse = clientToUse.Account.ListByResourceGroup(commonData.ResourceGroupName); + listResponse = + clientToUse.Accounts.ListByResourceGroup( + commonData.ResourceGroupName + ); // Assert that there are at least two accounts in the list Assert.True(listResponse.Count() > 1); // Test that the account exists - Assert.True(clientToUse.Account.Exists(commonData.ResourceGroupName, newAccount.Name)); + Assert.True( + clientToUse.Accounts.Exists( + commonData.ResourceGroupName, + commonData.DataLakeStoreAccountName + "acct2" + ) + ); // Check that Locations_GetCapability and Operations_List are functional - var responseGetCapability = clientToUse.Locations.GetCapability("EastUS2"); + var responseGetCapability = + clientToUse.Locations.GetCapability( + commonData.Location.Replace(" ", "") + ); Assert.NotNull(responseGetCapability); @@ -161,20 +198,35 @@ public void CreateGetUpdateDeleteTest() Assert.NotNull(responseListOps); // Delete the account and confirm that it is deleted. - clientToUse.Account.Delete(commonData.ResourceGroupName, newAccount.Name); + clientToUse.Accounts.Delete( + commonData.ResourceGroupName, + commonData.DataLakeStoreAccountName + "acct2" + ); // Delete the account again and make sure it continues to result in a succesful code. - clientToUse.Account.Delete(commonData.ResourceGroupName, newAccount.Name); + clientToUse.Accounts.Delete( + commonData.ResourceGroupName, + commonData.DataLakeStoreAccountName + "acct2" + ); // Delete the account with its old name, which should also succeed. - clientToUse.Account.Delete(commonData.ResourceGroupName, commonData.DataLakeStoreAccountName); + clientToUse.Accounts.Delete( + commonData.ResourceGroupName, + commonData.DataLakeStoreAccountName + ); // Test that the account is gone - Assert.False(clientToUse.Account.Exists(commonData.ResourceGroupName, newAccount.Name)); + Assert.False( + clientToUse.Accounts.Exists( + commonData.ResourceGroupName, + commonData.DataLakeStoreAccountName + "acct2" + ) + ); } } + [Fact] - public void FirewallAndTrustedProviderTest() + public void FirewallAndTrustedProviderCRUDTest() { using (var context = MockContext.Start(this.GetType().FullName)) { @@ -183,38 +235,55 @@ public void FirewallAndTrustedProviderTest() // Create a an account with trusted ID provider and firewall rules. var adlsAccountName = TestUtilities.GenerateName("adlsacct"); - + var firewallRuleName1 = TestUtilities.GenerateName("firerule1"); var firewallStart = "127.0.0.1"; var firewallEnd = "127.0.0.2"; - var firewallRuleName1 = TestUtilities.GenerateName("firerule1"); - var trustedId = TestUtilities.GenerateGuid(); - var trustedUrl = string.Format("https://sts.windows.net/{0}", trustedId.ToString()); var trustedIdName = TestUtilities.GenerateName("trustedrule1"); + var trustedUrl = + string.Format( + "https://sts.windows.net/{0}", + trustedId.ToString() + ); var responseCreate = - clientToUse.Account.Create(resourceGroupName: commonData.ResourceGroupName, name: adlsAccountName, - parameters: new DataLakeStoreAccount + clientToUse.Accounts.Create( + resourceGroupName : commonData.ResourceGroupName, + accountName : adlsAccountName, + parameters : new CreateDataLakeStoreAccountParameters { Location = commonData.Location, - FirewallRules = new List + FirewallRules = new List { - new FirewallRule(firewallStart, firewallEnd, name: firewallRuleName1) + new CreateFirewallRuleWithAccountParameters + { + Name = firewallRuleName1, + StartIpAddress = firewallStart, + EndIpAddress = firewallEnd + } }, - TrustedIdProviders = new List + FirewallState = FirewallState.Enabled, + FirewallAllowAzureIps = FirewallAllowAzureIpsState.Enabled, + TrustedIdProviders = new List { - new TrustedIdProvider(trustedUrl, name: trustedIdName) + new CreateTrustedIdProviderWithAccountParameters + { + Name = trustedIdName, + IdProvider = trustedUrl + } }, - FirewallState = FirewallState.Enabled, - TrustedIdProviderState = TrustedIdProviderState.Enabled, - FirewallAllowAzureIps = FirewallAllowAzureIpsState.Enabled - - }); + TrustedIdProviderState = TrustedIdProviderState.Enabled + } + ); Assert.Equal(DataLakeStoreAccountStatus.Succeeded, responseCreate.ProvisioningState); // Get the account and ensure that all the values are properly set. - var responseGet = clientToUse.Account.Get(commonData.ResourceGroupName, adlsAccountName); + var responseGet = + clientToUse.Accounts.Get( + commonData.ResourceGroupName, + adlsAccountName + ); // Validate the account creation process Assert.Equal(DataLakeStoreAccountStatus.Succeeded, responseGet.ProvisioningState); @@ -228,7 +297,7 @@ public void FirewallAndTrustedProviderTest() // Validate firewall state Assert.Equal(FirewallState.Enabled, responseGet.FirewallState); - Assert.Equal(1, responseGet.FirewallRules.Count()); + Assert.True(responseGet.FirewallRules.Count() == 1); Assert.Equal(firewallStart, responseGet.FirewallRules[0].StartIpAddress); Assert.Equal(firewallEnd, responseGet.FirewallRules[0].EndIpAddress); Assert.Equal(firewallRuleName1, responseGet.FirewallRules[0].Name); @@ -236,12 +305,17 @@ public void FirewallAndTrustedProviderTest() // Validate trusted identity provider state Assert.Equal(TrustedIdProviderState.Enabled, responseGet.TrustedIdProviderState); - Assert.Equal(1, responseGet.TrustedIdProviders.Count()); + Assert.True(responseGet.TrustedIdProviders.Count() == 1); Assert.Equal(trustedUrl, responseGet.TrustedIdProviders[0].IdProvider); Assert.Equal(trustedIdName, responseGet.TrustedIdProviders[0].Name); // Test getting the specific firewall rules - var firewallRule = clientToUse.FirewallRules.Get(commonData.ResourceGroupName, adlsAccountName, firewallRuleName1); + var firewallRule = + clientToUse.FirewallRules.Get( + commonData.ResourceGroupName, + adlsAccountName, + firewallRuleName1 + ); Assert.Equal(firewallStart, firewallRule.StartIpAddress); Assert.Equal(firewallEnd, firewallRule.EndIpAddress); @@ -249,11 +323,19 @@ public void FirewallAndTrustedProviderTest() 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, adlsAccountName,firewallRuleName1, firewallRule); + firewallRule = + clientToUse.FirewallRules.CreateOrUpdate( + commonData.ResourceGroupName, + adlsAccountName, + firewallRuleName1, + new CreateOrUpdateFirewallRuleParameters + { + StartIpAddress = updatedFirewallStart, + EndIpAddress = updatedFirewallEnd + } + ); Assert.Equal(updatedFirewallStart, firewallRule.StartIpAddress); Assert.Equal(updatedFirewallEnd, firewallRule.EndIpAddress); @@ -267,18 +349,29 @@ public void FirewallAndTrustedProviderTest() 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); + clientToUse.FirewallRules.Delete( + commonData.ResourceGroupName, + adlsAccountName, + firewallRuleName1 + ); try { - firewallRule = clientToUse.FirewallRules.Get(commonData.ResourceGroupName, adlsAccountName, firewallRuleName1); + firewallRule = + clientToUse.FirewallRules.Get( + commonData.ResourceGroupName, + adlsAccountName, + firewallRuleName1 + ); + Assert.True(false, "Attempting to retrieve a deleted firewall rule did not throw."); } catch (CloudException e) @@ -287,16 +380,33 @@ public void FirewallAndTrustedProviderTest() } // Test getting the specific trusted identity provider - var trustedIdProvider = clientToUse.TrustedIdProviders.Get(commonData.ResourceGroupName, adlsAccountName, trustedIdName); + var trustedIdProvider = + clientToUse.TrustedIdProviders.Get( + commonData.ResourceGroupName, + adlsAccountName, + trustedIdName + ); Assert.Equal(trustedUrl, trustedIdProvider.IdProvider); Assert.Equal(trustedIdName, trustedIdProvider.Name); - var updatedIdUrl = string.Format("https://sts.windows.net/{0}", TestUtilities.GenerateGuid().ToString()); - trustedIdProvider.IdProvider = updatedIdUrl; + var updatedIdUrl = + string.Format( + "https://sts.windows.net/{0}", + TestUtilities.GenerateGuid().ToString() + ); // Update the trusted id provider - trustedIdProvider = clientToUse.TrustedIdProviders.CreateOrUpdate(commonData.ResourceGroupName, adlsAccountName, trustedIdName, trustedIdProvider); + trustedIdProvider = + clientToUse.TrustedIdProviders.CreateOrUpdate( + commonData.ResourceGroupName, + adlsAccountName, + trustedIdName, + new CreateOrUpdateTrustedIdProviderParameters + { + IdProvider = updatedIdUrl + } + ); Assert.Equal(updatedIdUrl, trustedIdProvider.IdProvider); Assert.Equal(trustedIdName, trustedIdProvider.Name); @@ -309,17 +419,28 @@ public void FirewallAndTrustedProviderTest() 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); + clientToUse.TrustedIdProviders.Delete( + commonData.ResourceGroupName, + adlsAccountName, + trustedIdName + ); try { - trustedIdProvider = clientToUse.TrustedIdProviders.Get(commonData.ResourceGroupName, adlsAccountName, trustedIdName); + trustedIdProvider = + clientToUse.TrustedIdProviders.Get( + commonData.ResourceGroupName, + adlsAccountName, + trustedIdName + ); + Assert.True(false, "Attempting to retrieve a deleted trusted identity provider did not throw."); } catch (CloudException e) diff --git a/src/SDKs/DataLake.Store/DataLakeStore.Tests/ScenarioTests/FileSystemOperationTests.cs b/src/SDKs/DataLake.Store/DataLakeStore.Tests/ScenarioTests/FileSystemOperationTests.cs index f3a21769048d..86f79aad4474 100644 --- a/src/SDKs/DataLake.Store/DataLakeStore.Tests/ScenarioTests/FileSystemOperationTests.cs +++ b/src/SDKs/DataLake.Store/DataLakeStore.Tests/ScenarioTests/FileSystemOperationTests.cs @@ -1079,9 +1079,9 @@ public void DataLakeStoreDownloadUploadFileAndFolder() #region helpers internal AclStatusResult GetFullAcl(AclStatusResult acl) { - if(acl.AclStatus.Entries != null && acl.AclStatus.Permission.HasValue && acl.AclStatus.Permission.Value.ToString().Length >= 3) + if (acl.AclStatus.Entries != null && !string.IsNullOrEmpty(acl.AclStatus.Permission) && acl.AclStatus.Permission.Length >= 3) { - var permissionString = acl.AclStatus.Permission.Value.ToString(); + var permissionString = acl.AclStatus.Permission; var permissionLength = permissionString.Length; var ownerOctal = permissionString.ElementAt(permissionLength - 3).ToString(); var groupOctal = permissionString.ElementAt(permissionLength - 2).ToString(); diff --git a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/CreateGetUpdateDeleteTest.json b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/AccountCRUDTest.json similarity index 78% rename from src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/CreateGetUpdateDeleteTest.json rename to src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/AccountCRUDTest.json index de9d15c9c062..b7e344074403 100644 --- a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/CreateGetUpdateDeleteTest.json +++ b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/AccountCRUDTest.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6e2f0deb-3589-4e24-87de-2116959e2359" + "8c696fff-59a5-4460-85a6-ddc7bc858846" ], "accept-language": [ "en-US" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:18:48 GMT" + "Mon, 05 Feb 2018 19:52:47 GMT" ], "Pragma": [ "no-cache" @@ -41,16 +41,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1195" ], "x-ms-request-id": [ - "86dd3b42-24b3-4998-9ea3-a9077f8c2e5e" + "c901cd83-db99-4a5f-8f81-cff347483e16" ], "x-ms-correlation-request-id": [ - "86dd3b42-24b3-4998-9ea3-a9077f8c2e5e" + "c901cd83-db99-4a5f-8f81-cff347483e16" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201848Z:86dd3b42-24b3-4998-9ea3-a9077f8c2e5e" + "WESTUS2:20180205T195248Z:c901cd83-db99-4a5f-8f81-cff347483e16" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,7 +65,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "09740152-b169-42c3-8d3b-884018708920" + "c70b9ce6-06f2-458b-8f0a-025cf4918185" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:18:48 GMT" + "Mon, 05 Feb 2018 19:52:47 GMT" ], "Pragma": [ "no-cache" @@ -96,16 +96,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14993" ], "x-ms-request-id": [ - "406a896e-3fd0-4271-9594-e5b645ce77ed" + "66a34a85-934d-46a1-85df-41621bbdc2f5" ], "x-ms-correlation-request-id": [ - "406a896e-3fd0-4271-9594-e5b645ce77ed" + "66a34a85-934d-46a1-85df-41621bbdc2f5" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201848Z:406a896e-3fd0-4271-9594-e5b645ce77ed" + "WESTUS2:20180205T195248Z:66a34a85-934d-46a1-85df-41621bbdc2f5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -120,7 +120,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "01585efb-1562-499f-84cb-67c729c25679" + "f3cfd2f3-f0d0-42c3-9bf6-e9d6c2e32b9c" ], "accept-language": [ "en-US" @@ -142,7 +142,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:18:48 GMT" + "Mon, 05 Feb 2018 19:52:47 GMT" ], "Pragma": [ "no-cache" @@ -154,16 +154,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1194" ], "x-ms-request-id": [ - "3feea8f7-c9c4-4520-b009-15ec486b0466" + "3b7d7d48-44ff-47b3-80cb-c23cc76e61d5" ], "x-ms-correlation-request-id": [ - "3feea8f7-c9c4-4520-b009-15ec486b0466" + "3b7d7d48-44ff-47b3-80cb-c23cc76e61d5" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201849Z:3feea8f7-c9c4-4520-b009-15ec486b0466" + "WESTUS2:20180205T195248Z:3b7d7d48-44ff-47b3-80cb-c23cc76e61d5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -178,7 +178,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ebca33fa-2aa8-4a20-a271-1a1f92376226" + "5d4e2341-7ecb-4b79-8f59-61a0b29bac77" ], "accept-language": [ "en-US" @@ -200,7 +200,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:18:48 GMT" + "Mon, 05 Feb 2018 19:52:47 GMT" ], "Pragma": [ "no-cache" @@ -209,16 +209,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14992" ], "x-ms-request-id": [ - "38dbdd61-1c07-4bcf-9537-3746da0dc14a" + "38fca389-30f5-48bd-b469-ed2044c100c9" ], "x-ms-correlation-request-id": [ - "38dbdd61-1c07-4bcf-9537-3746da0dc14a" + "38fca389-30f5-48bd-b469-ed2044c100c9" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201849Z:38dbdd61-1c07-4bcf-9537-3746da0dc14a" + "WESTUS2:20180205T195248Z:38fca389-30f5-48bd-b469-ed2044c100c9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -227,13 +227,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12781?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjc4MT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg1912?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxOTEyP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3f367cf9-758b-480d-b522-2c26a7ea2a9d" + "d3d89511-5480-437b-841d-4a491ea4b0e2" ], "accept-language": [ "en-US" @@ -243,10 +243,10 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg12781' could not be found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg1912' could not be found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "107" + "106" ], "Content-Type": [ "application/json; charset=utf-8" @@ -258,7 +258,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:18:49 GMT" + "Mon, 05 Feb 2018 19:52:48 GMT" ], "Pragma": [ "no-cache" @@ -267,16 +267,16 @@ "gateway" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14991" ], "x-ms-request-id": [ - "853db33b-7a44-4504-b654-d3be2006249e" + "4c628f5f-f334-4a81-96e9-4077b48ec92e" ], "x-ms-correlation-request-id": [ - "853db33b-7a44-4504-b654-d3be2006249e" + "4c628f5f-f334-4a81-96e9-4077b48ec92e" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201849Z:853db33b-7a44-4504-b654-d3be2006249e" + "WESTUS2:20180205T195248Z:4c628f5f-f334-4a81-96e9-4077b48ec92e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -285,13 +285,13 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12781?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjc4MT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg1912?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxOTEyP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d0137b40-202b-49a2-a5f6-17c08997b93f" + "3615dd6d-3495-446e-9e2f-9c5db813bbc5" ], "accept-language": [ "en-US" @@ -301,7 +301,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781\",\r\n \"name\": \"datalakerg12781\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912\",\r\n \"name\": \"datalakerg1912\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -313,7 +313,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:18:50 GMT" + "Mon, 05 Feb 2018 19:52:48 GMT" ], "Pragma": [ "no-cache" @@ -322,16 +322,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14990" ], "x-ms-request-id": [ - "af9ecd97-8d59-4a3f-874a-829d83184f06" + "5fa4bf84-8f8b-42fd-b6db-e87695c6d1b3" ], "x-ms-correlation-request-id": [ - "af9ecd97-8d59-4a3f-874a-829d83184f06" + "5fa4bf84-8f8b-42fd-b6db-e87695c6d1b3" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201850Z:af9ecd97-8d59-4a3f-874a-829d83184f06" + "WESTUS2:20180205T195249Z:5fa4bf84-8f8b-42fd-b6db-e87695c6d1b3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -340,8 +340,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12781?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjc4MT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg1912?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxOTEyP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -352,7 +352,7 @@ "31" ], "x-ms-client-request-id": [ - "9c6b6293-29c3-46fe-b466-6fc5df5ada84" + "8f274e66-f35c-41cf-b929-004b47fa313a" ], "accept-language": [ "en-US" @@ -362,10 +362,10 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781\",\r\n \"name\": \"datalakerg12781\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912\",\r\n \"name\": \"datalakerg1912\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "184" + "182" ], "Content-Type": [ "application/json; charset=utf-8" @@ -377,22 +377,22 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:18:50 GMT" + "Mon, 05 Feb 2018 19:52:48 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1193" ], "x-ms-request-id": [ - "2cea2ec4-41ae-440a-bf25-ad8407c72284" + "1af764aa-7a82-4c69-abed-9eddc356c452" ], "x-ms-correlation-request-id": [ - "2cea2ec4-41ae-440a-bf25-ad8407c72284" + "1af764aa-7a82-4c69-abed-9eddc356c452" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201850Z:2cea2ec4-41ae-440a-bf25-ad8407c72284" + "WESTUS2:20180205T195249Z:1af764aa-7a82-4c69-abed-9eddc356c452" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -401,13 +401,13 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testadlfs13848?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTM4NDg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testadlfs18944?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0YWRsZnMxODk0ND9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2d7e6b24-c762-4c41-a91b-2f250d8e0384" + "0ae49142-8517-488c-a886-ebd2428b5f21" ], "accept-language": [ "en-US" @@ -417,10 +417,10 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs13848' under resource group 'datalakerg12781' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs18944' under resource group 'datalakerg1912' was not found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "166" + "165" ], "Content-Type": [ "application/json; charset=utf-8" @@ -432,7 +432,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:18:51 GMT" + "Mon, 05 Feb 2018 19:52:49 GMT" ], "Pragma": [ "no-cache" @@ -441,13 +441,13 @@ "gateway" ], "x-ms-request-id": [ - "da898b2e-60a8-4d31-ae67-272967fe4e63" + "262c372e-05e8-453c-b99d-c91c7294ecf5" ], "x-ms-correlation-request-id": [ - "da898b2e-60a8-4d31-ae67-272967fe4e63" + "262c372e-05e8-453c-b99d-c91c7294ecf5" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201852Z:da898b2e-60a8-4d31-ae67-272967fe4e63" + "WESTUS2:20180205T195249Z:262c372e-05e8-453c-b99d-c91c7294ecf5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -456,8 +456,8 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testadlfs13848?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTM4NDg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testadlfs18944?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0YWRsZnMxODk0ND9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -466,7 +466,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs13848.azuredatalakestore.net\",\r\n \"accountId\": \"482cc764-f1c9-4250-bd6c-147877eb0691\",\r\n \"creationTime\": \"2017-12-22T20:18:55.5213364Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:18:55.5213364Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testadlfs13848\",\r\n \"name\": \"testadlfs13848\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs18944.azuredatalakestore.net\",\r\n \"accountId\": \"765d12fd-9718-4120-94ea-0bef008ec49c\",\r\n \"creationTime\": \"2018-02-05T19:52:52.8679685Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:52:52.8679685Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testadlfs18944\",\r\n \"name\": \"testadlfs18944\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -481,7 +481,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:19:27 GMT" + "Mon, 05 Feb 2018 19:53:23 GMT" ], "Pragma": [ "no-cache" @@ -493,7 +493,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1fd1bdc6-9301-4cea-9ede-b7b5efdc6714" + "4785dc06-dade-4e19-b3c3-dd2e2f66d7a2" ], "X-Content-Type-Options": [ "nosniff" @@ -505,13 +505,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14998" ], "x-ms-correlation-request-id": [ - "dcf78436-979f-4b44-a7b6-47c85cba87dd" + "03c9c239-0ad5-4097-ba42-4e9d4e60f984" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201927Z:dcf78436-979f-4b44-a7b6-47c85cba87dd" + "WESTUS2:20180205T195324Z:03c9c239-0ad5-4097-ba42-4e9d4e60f984" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -520,13 +520,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testadlfs13848?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTM4NDg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testadlfs18944?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0YWRsZnMxODk0ND9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dfc2f4f7-2324-4e76-ae44-ae6dd05bffed" + "3482be66-b99e-4fcd-be5a-bc86e7ae9030" ], "accept-language": [ "en-US" @@ -536,7 +536,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs13848.azuredatalakestore.net\",\r\n \"accountId\": \"482cc764-f1c9-4250-bd6c-147877eb0691\",\r\n \"creationTime\": \"2017-12-22T20:18:55.5213364Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:18:55.5213364Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testadlfs13848\",\r\n \"name\": \"testadlfs13848\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs18944.azuredatalakestore.net\",\r\n \"accountId\": \"765d12fd-9718-4120-94ea-0bef008ec49c\",\r\n \"creationTime\": \"2018-02-05T19:52:52.8679685Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:52:52.8679685Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testadlfs18944\",\r\n \"name\": \"testadlfs18944\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -551,7 +551,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:19:32 GMT" + "Mon, 05 Feb 2018 19:53:24 GMT" ], "Pragma": [ "no-cache" @@ -563,7 +563,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5452d28d-3ca5-45d0-9cc3-95b73b17d366" + "0b1a9b51-a0f4-416f-a1ed-9af5db8eb81e" ], "X-Content-Type-Options": [ "nosniff" @@ -575,13 +575,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14993" ], "x-ms-correlation-request-id": [ - "dba376ae-7dfe-4dda-9702-a12cb4e3bd51" + "0a66e91c-0203-48bd-9de0-6d1521996125" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201933Z:dba376ae-7dfe-4dda-9702-a12cb4e3bd51" + "WESTUS2:20180205T195324Z:0a66e91c-0203-48bd-9de0-6d1521996125" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -590,8 +590,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testadlfs13848?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTM4NDg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testadlfs18944?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0YWRsZnMxODk0ND9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -602,7 +602,7 @@ "31" ], "x-ms-client-request-id": [ - "c11def36-36a0-4bd9-bece-13882ec48f58" + "b2c49ab0-c265-4c60-a084-d2e886793dcc" ], "accept-language": [ "en-US" @@ -612,10 +612,10 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"482cc764-f1c9-4250-bd6c-147877eb0691\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testadlfs13848\",\r\n \"name\": \"testadlfs13848\",\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\": \"765d12fd-9718-4120-94ea-0bef008ec49c\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testadlfs18944\",\r\n \"name\": \"testadlfs18944\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "364" + "363" ], "Content-Type": [ "application/json" @@ -630,13 +630,13 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:18:53 GMT" + "Mon, 05 Feb 2018 19:52:51 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testadlfs13848/operationresults/0?api-version=2016-11-01" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testadlfs18944/operationresults/0?api-version=2016-11-01" ], "Retry-After": [ "10" @@ -645,10 +645,10 @@ "Microsoft-IIS/8.5" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/482cc764-f1c9-4250-bd6c-147877eb06910?api-version=2016-11-01&expanded=true" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/765d12fd-9718-4120-94ea-0bef008ec49c0?api-version=2016-11-01&expanded=true" ], "x-ms-request-id": [ - "91a0f4c6-b6ab-4d7c-8a34-c2f0b2f4adc6" + "95ea6b5f-16d6-46b1-9877-1f5fe70465fe" ], "X-Content-Type-Options": [ "nosniff" @@ -660,13 +660,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1192" ], "x-ms-correlation-request-id": [ - "094ef637-c1cc-4c7b-a3e0-c0db60460458" + "01272697-026d-4d08-aca1-fbcf92c5eedd" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201854Z:094ef637-c1cc-4c7b-a3e0-c0db60460458" + "WESTUS2:20180205T195251Z:01272697-026d-4d08-aca1-fbcf92c5eedd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -675,8 +675,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/482cc764-f1c9-4250-bd6c-147877eb06910?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzQ4MmNjNzY0LWYxYzktNDI1MC1iZDZjLTE0Nzg3N2ViMDY5MTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/765d12fd-9718-4120-94ea-0bef008ec49c0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzc2NWQxMmZkLTk3MTgtNDEyMC05NGVhLTBiZWYwMDhlYzQ5YzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -700,7 +700,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:19:05 GMT" + "Mon, 05 Feb 2018 19:53:02 GMT" ], "Pragma": [ "no-cache" @@ -712,7 +712,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "77104ec1-e926-4a41-b87e-1487959b06bc" + "164a26a5-fb80-4051-bcc8-67d6ebae4b95" ], "X-Content-Type-Options": [ "nosniff" @@ -724,13 +724,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14995" ], "x-ms-correlation-request-id": [ - "e69b3d42-152d-42ce-86d9-a3550952081b" + "bc6a756e-3b5c-44ec-aa20-ca7f5d64f4e4" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201905Z:e69b3d42-152d-42ce-86d9-a3550952081b" + "WESTUS2:20180205T195302Z:bc6a756e-3b5c-44ec-aa20-ca7f5d64f4e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -739,8 +739,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/482cc764-f1c9-4250-bd6c-147877eb06910?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzQ4MmNjNzY0LWYxYzktNDI1MC1iZDZjLTE0Nzg3N2ViMDY5MTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/765d12fd-9718-4120-94ea-0bef008ec49c0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzc2NWQxMmZkLTk3MTgtNDEyMC05NGVhLTBiZWYwMDhlYzQ5YzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -764,7 +764,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:19:15 GMT" + "Mon, 05 Feb 2018 19:53:12 GMT" ], "Pragma": [ "no-cache" @@ -776,7 +776,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e3aa1b8a-0087-472d-96de-7737ffee8304" + "08d65030-0cda-407d-8374-3621a3b97b19" ], "X-Content-Type-Options": [ "nosniff" @@ -788,13 +788,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14998" ], "x-ms-correlation-request-id": [ - "c48ed30a-79bf-4e0d-bcba-ed9c50f3c953" + "a9d91291-ab52-4cca-8d72-47d32d41ee1b" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201916Z:c48ed30a-79bf-4e0d-bcba-ed9c50f3c953" + "WESTUS2:20180205T195312Z:a9d91291-ab52-4cca-8d72-47d32d41ee1b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -803,8 +803,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/482cc764-f1c9-4250-bd6c-147877eb06910?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzQ4MmNjNzY0LWYxYzktNDI1MC1iZDZjLTE0Nzg3N2ViMDY5MTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/765d12fd-9718-4120-94ea-0bef008ec49c0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzc2NWQxMmZkLTk3MTgtNDEyMC05NGVhLTBiZWYwMDhlYzQ5YzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -828,7 +828,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:19:26 GMT" + "Mon, 05 Feb 2018 19:53:22 GMT" ], "Pragma": [ "no-cache" @@ -840,7 +840,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4b4c30a5-875a-4952-b833-d3f9ee235e47" + "51626652-23b4-44b3-ba95-00b5461429fe" ], "X-Content-Type-Options": [ "nosniff" @@ -852,13 +852,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14995" ], "x-ms-correlation-request-id": [ - "e70e267d-5a0b-4dd6-a6e0-0092be644b65" + "9b963cb3-f35b-4042-8ea1-c3165bc4a55f" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201926Z:e70e267d-5a0b-4dd6-a6e0-0092be644b65" + "WESTUS2:20180205T195323Z:9b963cb3-f35b-4042-8ea1-c3165bc4a55f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -870,7 +870,7 @@ "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/checkNameAvailability?api-version=2016-11-01", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"testdatalake12396\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "RequestBody": "{\r\n \"name\": \"testdatalake17524\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -879,7 +879,7 @@ "82" ], "x-ms-client-request-id": [ - "5b892ae0-55c7-4bc5-853c-0ad02ef23194" + "58aea222-65b4-4a6d-80f6-c0ae64c7ebb7" ], "accept-language": [ "en-US" @@ -904,7 +904,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:19:36 GMT" + "Mon, 05 Feb 2018 19:53:26 GMT" ], "Pragma": [ "no-cache" @@ -916,7 +916,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f2c91af4-56dc-4698-9165-fe3791c2ab20" + "a8d4ed36-4120-45b3-8f71-9086ea7de67f" ], "X-Content-Type-Options": [ "nosniff" @@ -928,13 +928,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1196" ], "x-ms-correlation-request-id": [ - "4896915d-3b1c-4140-b8db-db7fc35deb68" + "8395ff1a-3207-464f-a33a-07b8f71bb5a5" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201936Z:4896915d-3b1c-4140-b8db-db7fc35deb68" + "WESTUS2:20180205T195327Z:8395ff1a-3207-464f-a33a-07b8f71bb5a5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -946,7 +946,7 @@ "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/checkNameAvailability?api-version=2016-11-01", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"testdatalake12396\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "RequestBody": "{\r\n \"name\": \"testdatalake17524\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -955,7 +955,7 @@ "82" ], "x-ms-client-request-id": [ - "9d714ce5-a6d0-46eb-ac27-acafccd9409a" + "4d5a6961-2439-4f2c-84a4-a6862039f6af" ], "accept-language": [ "en-US" @@ -965,7 +965,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"AlreadyExists\",\r\n \"message\": \"An account named 'testdatalake12396' already exists.\"\r\n}", + "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"AlreadyExists\",\r\n \"message\": \"An account named 'testdatalake17524' already exists.\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -980,7 +980,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:16 GMT" + "Mon, 05 Feb 2018 19:54:04 GMT" ], "Pragma": [ "no-cache" @@ -992,7 +992,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8d0efd25-0975-43cd-b608-7cf1b94150cc" + "acf82ce5-8215-4be4-a927-992920789b02" ], "X-Content-Type-Options": [ "nosniff" @@ -1004,13 +1004,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1199" ], "x-ms-correlation-request-id": [ - "d9b58f21-6c86-4d41-a147-44ff13289826" + "f3935fef-7d5f-4c48-a185-7a406d313601" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202016Z:d9b58f21-6c86-4d41-a147-44ff13289826" + "WESTUS2:20180205T195405Z:f3935fef-7d5f-4c48-a185-7a406d313601" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1019,10 +1019,10 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyND9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"newTier\": \"Commitment_1TB\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"testkey\": \"testvalue\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"testkey\": \"testvalue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"encryptionState\": \"Enabled\",\r\n \"newTier\": \"Commitment_1TB\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1031,7 +1031,7 @@ "291" ], "x-ms-client-request-id": [ - "00e11e82-c06b-412d-86fd-07b6c510757e" + "96f58e70-023b-4a91-8ab9-f2c21c259a4b" ], "accept-language": [ "en-US" @@ -1041,10 +1041,10 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"newTier\": \"Commitment_1TB\",\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"21257753-6dfc-4f0e-b3ce-96c88c61d4b3\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"testkey\": \"testvalue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"tenantId\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396\",\r\n \"name\": \"testdatalake12396\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"newTier\": \"Commitment_1TB\",\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"d7d14dc9-0adf-4e12-8986-fe1ca9ef5773\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"testkey\": \"testvalue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"tenantId\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524\",\r\n \"name\": \"testdatalake17524\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "641" + "640" ], "Content-Type": [ "application/json" @@ -1059,13 +1059,13 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:19:41 GMT" + "Mon, 05 Feb 2018 19:53:32 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396/operationresults/0?api-version=2016-11-01" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524/operationresults/0?api-version=2016-11-01" ], "Retry-After": [ "10" @@ -1074,10 +1074,10 @@ "Microsoft-IIS/8.5" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/21257753-6dfc-4f0e-b3ce-96c88c61d4b30?api-version=2016-11-01&expanded=true" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/d7d14dc9-0adf-4e12-8986-fe1ca9ef57730?api-version=2016-11-01&expanded=true" ], "x-ms-request-id": [ - "18419f4a-1a01-4636-8ba0-7ecc91738efa" + "7a961f9e-e001-4b82-a2ef-84550dfa87a9" ], "X-Content-Type-Options": [ "nosniff" @@ -1089,13 +1089,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1195" ], "x-ms-correlation-request-id": [ - "f131de29-88e3-40ca-87e6-a63af19b6e7d" + "6ce0c140-caa8-4164-93f2-9d018302f8c9" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201942Z:f131de29-88e3-40ca-87e6-a63af19b6e7d" + "WESTUS2:20180205T195332Z:6ce0c140-caa8-4164-93f2-9d018302f8c9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1104,8 +1104,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/21257753-6dfc-4f0e-b3ce-96c88c61d4b30?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzIxMjU3NzUzLTZkZmMtNGYwZS1iM2NlLTk2Yzg4YzYxZDRiMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/d7d14dc9-0adf-4e12-8986-fe1ca9ef57730?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2Q3ZDE0ZGM5LTBhZGYtNGUxMi04OTg2LWZlMWNhOWVmNTc3MzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1129,7 +1129,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:19:52 GMT" + "Mon, 05 Feb 2018 19:53:42 GMT" ], "Pragma": [ "no-cache" @@ -1141,7 +1141,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "131a0d52-4906-40a0-9d26-ab17c3b60b9f" + "9920b861-db0c-4b17-95ff-0137eb9db78d" ], "X-Content-Type-Options": [ "nosniff" @@ -1153,13 +1153,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14997" ], "x-ms-correlation-request-id": [ - "b013af47-2790-459a-8b4f-c473da072f98" + "aed439ac-a7cb-438f-8551-87078dc48151" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T201953Z:b013af47-2790-459a-8b4f-c473da072f98" + "WESTUS2:20180205T195343Z:aed439ac-a7cb-438f-8551-87078dc48151" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1168,8 +1168,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/21257753-6dfc-4f0e-b3ce-96c88c61d4b30?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzIxMjU3NzUzLTZkZmMtNGYwZS1iM2NlLTk2Yzg4YzYxZDRiMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/d7d14dc9-0adf-4e12-8986-fe1ca9ef57730?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2Q3ZDE0ZGM5LTBhZGYtNGUxMi04OTg2LWZlMWNhOWVmNTc3MzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1193,7 +1193,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:03 GMT" + "Mon, 05 Feb 2018 19:53:53 GMT" ], "Pragma": [ "no-cache" @@ -1205,7 +1205,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "db212c94-6b4d-4db4-9164-c7731156c1b9" + "ae477c26-e784-4785-ade8-6f8571301e07" ], "X-Content-Type-Options": [ "nosniff" @@ -1220,10 +1220,10 @@ "14996" ], "x-ms-correlation-request-id": [ - "769290c0-a2ee-4575-8955-193264bd28b8" + "075535d0-9181-43f4-8a8d-a32179177593" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202004Z:769290c0-a2ee-4575-8955-193264bd28b8" + "WESTUS2:20180205T195353Z:075535d0-9181-43f4-8a8d-a32179177593" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1232,8 +1232,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/21257753-6dfc-4f0e-b3ce-96c88c61d4b30?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzIxMjU3NzUzLTZkZmMtNGYwZS1iM2NlLTk2Yzg4YzYxZDRiMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/d7d14dc9-0adf-4e12-8986-fe1ca9ef57730?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2Q3ZDE0ZGM5LTBhZGYtNGUxMi04OTg2LWZlMWNhOWVmNTc3MzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1257,7 +1257,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:14 GMT" + "Mon, 05 Feb 2018 19:54:03 GMT" ], "Pragma": [ "no-cache" @@ -1269,7 +1269,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "33812f5c-1253-4a35-bece-8c7caa7ccee3" + "267e6aa7-9622-46e3-88ad-5207ebafdc62" ], "X-Content-Type-Options": [ "nosniff" @@ -1281,13 +1281,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14996" ], "x-ms-correlation-request-id": [ - "2c520a7c-67ac-43e1-85c6-f553a0b179e0" + "efdf2c0a-0240-4e33-a14f-98d904ba1325" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202014Z:2c520a7c-67ac-43e1-85c6-f553a0b179e0" + "WESTUS2:20180205T195404Z:efdf2c0a-0240-4e33-a14f-98d904ba1325" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1296,8 +1296,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyND9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1306,7 +1306,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Commitment_1TB\",\r\n \"newTier\": \"Commitment_1TB\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake12396.azuredatalakestore.net\",\r\n \"accountId\": \"21257753-6dfc-4f0e-b3ce-96c88c61d4b3\",\r\n \"creationTime\": \"2017-12-22T20:19:42.6707084Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:19:42.6707084Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"testkey\": \"testvalue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"f4a67b53-d2f7-4903-95ae-e42b5dc5da99\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396\",\r\n \"name\": \"testdatalake12396\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Commitment_1TB\",\r\n \"newTier\": \"Commitment_1TB\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake17524.azuredatalakestore.net\",\r\n \"accountId\": \"d7d14dc9-0adf-4e12-8986-fe1ca9ef5773\",\r\n \"creationTime\": \"2018-02-05T19:53:33.636756Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:53:33.636756Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"testkey\": \"testvalue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"fee1bd87-e7b4-458b-8b8d-b1f7684fd9b4\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524\",\r\n \"name\": \"testdatalake17524\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1321,7 +1321,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:15 GMT" + "Mon, 05 Feb 2018 19:54:03 GMT" ], "Pragma": [ "no-cache" @@ -1333,7 +1333,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ac549dc5-fdee-4d23-8a63-b2a519841112" + "1a38cd2a-30ca-4ef2-89be-fe73cb0f9b43" ], "X-Content-Type-Options": [ "nosniff" @@ -1345,13 +1345,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14994" ], "x-ms-correlation-request-id": [ - "053c9e2f-5c27-444b-ac1a-fc7b1bc47b1c" + "9291f1c2-4916-4feb-8496-002d59de6bb8" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202015Z:053c9e2f-5c27-444b-ac1a-fc7b1bc47b1c" + "WESTUS2:20180205T195404Z:9291f1c2-4916-4feb-8496-002d59de6bb8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1360,13 +1360,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyND9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b6c01136-7f3b-4d31-a76f-f366e7e313e6" + "7812296f-f7dc-45fb-bf97-0bfcc140e777" ], "accept-language": [ "en-US" @@ -1376,7 +1376,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Commitment_1TB\",\r\n \"newTier\": \"Commitment_1TB\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake12396.azuredatalakestore.net\",\r\n \"accountId\": \"21257753-6dfc-4f0e-b3ce-96c88c61d4b3\",\r\n \"creationTime\": \"2017-12-22T20:19:42.6707084Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:19:42.6707084Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"testkey\": \"testvalue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"f4a67b53-d2f7-4903-95ae-e42b5dc5da99\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396\",\r\n \"name\": \"testdatalake12396\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Commitment_1TB\",\r\n \"newTier\": \"Commitment_1TB\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake17524.azuredatalakestore.net\",\r\n \"accountId\": \"d7d14dc9-0adf-4e12-8986-fe1ca9ef5773\",\r\n \"creationTime\": \"2018-02-05T19:53:33.636756Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:53:33.636756Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"testkey\": \"testvalue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"fee1bd87-e7b4-458b-8b8d-b1f7684fd9b4\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524\",\r\n \"name\": \"testdatalake17524\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1391,7 +1391,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:17 GMT" + "Mon, 05 Feb 2018 19:54:05 GMT" ], "Pragma": [ "no-cache" @@ -1403,7 +1403,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bba7a7e5-b055-453f-bef5-2cb396d8a326" + "6ac3e4af-15b0-4f60-bd8b-8b7b4b3af72b" ], "X-Content-Type-Options": [ "nosniff" @@ -1415,13 +1415,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14992" ], "x-ms-correlation-request-id": [ - "ff8f3a69-fa5f-40c1-98e8-0bb83002d7d2" + "c30e2442-c33f-4d76-9a11-baa60c6cd7ce" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202017Z:ff8f3a69-fa5f-40c1-98e8-0bb83002d7d2" + "WESTUS2:20180205T195405Z:c30e2442-c33f-4d76-9a11-baa60c6cd7ce" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1430,13 +1430,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyND9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9938a5e6-722a-4b31-8f25-0b24aa812fbe" + "691cfd69-717d-4d3d-b4f1-e164da64fb48" ], "accept-language": [ "en-US" @@ -1446,7 +1446,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Commitment_1TB\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake12396.azuredatalakestore.net\",\r\n \"accountId\": \"21257753-6dfc-4f0e-b3ce-96c88c61d4b3\",\r\n \"creationTime\": \"2017-12-22T20:19:42.6707084Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:20:18.3052612Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"updatedKey\": \"updatedValue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"f4a67b53-d2f7-4903-95ae-e42b5dc5da99\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396\",\r\n \"name\": \"testdatalake12396\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Commitment_1TB\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake17524.azuredatalakestore.net\",\r\n \"accountId\": \"d7d14dc9-0adf-4e12-8986-fe1ca9ef5773\",\r\n \"creationTime\": \"2018-02-05T19:53:33.636756Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:54:08.1471701Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"updatedKey\": \"updatedValue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"fee1bd87-e7b4-458b-8b8d-b1f7684fd9b4\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524\",\r\n \"name\": \"testdatalake17524\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1461,7 +1461,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:20 GMT" + "Mon, 05 Feb 2018 19:54:07 GMT" ], "Pragma": [ "no-cache" @@ -1473,7 +1473,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b3d5b3c5-7522-49f7-8a0e-1fc5aac65b15" + "50718693-118b-4cfc-aaa1-0bf5e09e67bc" ], "X-Content-Type-Options": [ "nosniff" @@ -1485,13 +1485,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14991" ], "x-ms-correlation-request-id": [ - "a3e43b84-cf69-45d4-848f-6858dd08c474" + "c7b7d2e4-1ea0-42f0-8d0b-f5f02063c01b" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202021Z:a3e43b84-cf69-45d4-848f-6858dd08c474" + "WESTUS2:20180205T195408Z:c7b7d2e4-1ea0-42f0-8d0b-f5f02063c01b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1500,13 +1500,19 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyND9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"updatedKey\": \"updatedValue\"\r\n },\r\n \"properties\": {\r\n \"newTier\": \"Consumption\"\r\n }\r\n}", "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "111" + ], "x-ms-client-request-id": [ - "849dbc25-fea7-4271-9021-722f90412a2a" + "4ba52b34-8406-4877-9fb1-023859f063cd" ], "accept-language": [ "en-US" @@ -1516,7 +1522,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Commitment_1TB\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake12396.azuredatalakestore.net\",\r\n \"accountId\": \"21257753-6dfc-4f0e-b3ce-96c88c61d4b3\",\r\n \"creationTime\": \"2017-12-22T20:19:42.6707084Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:20:18.3052612Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"updatedKey\": \"updatedValue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"f4a67b53-d2f7-4903-95ae-e42b5dc5da99\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396\",\r\n \"name\": \"testdatalake12396\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Commitment_1TB\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake17524.azuredatalakestore.net\",\r\n \"accountId\": \"d7d14dc9-0adf-4e12-8986-fe1ca9ef5773\",\r\n \"creationTime\": \"2018-02-05T19:53:33.636756Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:54:08.1471701Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"updatedKey\": \"updatedValue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"fee1bd87-e7b4-458b-8b8d-b1f7684fd9b4\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524\",\r\n \"name\": \"testdatalake17524\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1531,7 +1537,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:59 GMT" + "Mon, 05 Feb 2018 19:54:07 GMT" ], "Pragma": [ "no-cache" @@ -1543,7 +1549,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9b6c39f7-d866-43a8-a3e1-5bf797b969f0" + "788ee503-b6a3-4969-bad1-4a8a9eaa6676" ], "X-Content-Type-Options": [ "nosniff" @@ -1554,14 +1560,14 @@ "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" ], "x-ms-correlation-request-id": [ - "20642982-5f9f-4784-b545-027eb30dc69c" + "87bad19f-8182-4ea5-a8d4-c58829cd1c6b" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202100Z:20642982-5f9f-4784-b545-027eb30dc69c" + "WESTUS2:20180205T195407Z:87bad19f-8182-4ea5-a8d4-c58829cd1c6b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1570,13 +1576,19 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyNGFjY3QyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "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": [ - "78aa991b-fffd-40e6-b885-9b58bc786155" + "23b9fe39-9baa-42ca-be6e-34d9864c1874" ], "accept-language": [ "en-US" @@ -1586,13 +1598,13 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testdatalake12396' under resource group 'datalakerg12781' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"be919084-2517-41bc-9c98-1c46432ca34f\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2\",\r\n \"name\": \"testdatalake17524acct2\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "169" + "379" ], "Content-Type": [ - "application/json; charset=utf-8" + "application/json" ], "Expires": [ "-1" @@ -1600,54 +1612,66 @@ "Cache-Control": [ "no-cache" ], + "Connection": [ + "close" + ], "Date": [ - "Fri, 22 Dec 2017 20:21:05 GMT" + "Mon, 05 Feb 2018 19:54:10 GMT" ], "Pragma": [ "no-cache" ], - "x-ms-failure-cause": [ - "gateway" + "Location": [ + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2/operationresults/0?api-version=2016-11-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/be919084-2517-41bc-9c98-1c46432ca34f0?api-version=2016-11-01&expanded=true" ], "x-ms-request-id": [ - "dc04a72d-973c-4335-82b1-e1df13001308" + "ad60c0e1-fac9-4d90-84ca-1b0e9bd78928" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" ], "x-ms-correlation-request-id": [ - "dc04a72d-973c-4335-82b1-e1df13001308" + "7a6e9dc9-f22e-44a5-943d-655491677623" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202105Z:dc04a72d-973c-4335-82b1-e1df13001308" + "WESTUS2:20180205T195410Z:7a6e9dc9-f22e-44a5-943d-655491677623" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ] }, - "StatusCode": 404 + "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"tags\": {\r\n \"updatedKey\": \"updatedValue\"\r\n },\r\n \"properties\": {\r\n \"newTier\": \"Consumption\"\r\n }\r\n}", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/be919084-2517-41bc-9c98-1c46432ca34f0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2JlOTE5MDg0LTI1MTctNDFiYy05Yzk4LTFjNDY0MzJjYTM0ZjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "111" - ], - "x-ms-client-request-id": [ - "e23ade33-9cd5-4286-8cb3-d33a0513b36c" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ "FxVersion/4.6.25211.01", "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Commitment_1TB\",\r\n \"newTier\": \"Consumption\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake12396.azuredatalakestore.net\",\r\n \"accountId\": \"21257753-6dfc-4f0e-b3ce-96c88c61d4b3\",\r\n \"creationTime\": \"2017-12-22T20:19:42.6707084Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:20:18.3052612Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"updatedKey\": \"updatedValue\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"f4a67b53-d2f7-4903-95ae-e42b5dc5da99\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396\",\r\n \"name\": \"testdatalake12396\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1662,7 +1686,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:19 GMT" + "Mon, 05 Feb 2018 19:54:20 GMT" ], "Pragma": [ "no-cache" @@ -1674,7 +1698,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5b7a0661-c4e0-45c5-88b2-fe97b05b92b6" + "6515504a-a016-462a-865e-37ff7d1ca0eb" ], "X-Content-Type-Options": [ "nosniff" @@ -1685,14 +1709,14 @@ "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" ], "x-ms-correlation-request-id": [ - "fbe0f60b-7d98-4cce-aef4-681e2d6c7fb1" + "db5c144f-f783-4799-b935-d86a4ee2c6e8" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202020Z:fbe0f60b-7d98-4cce-aef4-681e2d6c7fb1" + "WESTUS2:20180205T195420Z:db5c144f-f783-4799-b935-d86a4ee2c6e8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1701,33 +1725,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396acct2?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTZhY2N0Mj9hcGktdmVyc2lvbj0yMDE2LTExLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/be919084-2517-41bc-9c98-1c46432ca34f0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2JlOTE5MDg0LTI1MTctNDFiYy05Yzk4LTFjNDY0MzJjYTM0ZjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "31" - ], - "x-ms-client-request-id": [ - "26c43122-e7e6-4577-92c0-01ad548e155a" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ "FxVersion/4.6.25211.01", "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"cbe34b39-81ef-4058-b846-523c8342decb\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396acct2\",\r\n \"name\": \"testdatalake12396acct2\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "380" - ], "Content-Type": [ "application/json" ], @@ -1741,25 +1750,19 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:23 GMT" + "Mon, 05 Feb 2018 19:54:30 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396acct2/operationresults/0?api-version=2016-11-01" - ], - "Retry-After": [ - "10" - ], "Server": [ "Microsoft-IIS/8.5" ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/cbe34b39-81ef-4058-b846-523c8342decb0?api-version=2016-11-01&expanded=true" + "Vary": [ + "Accept-Encoding" ], "x-ms-request-id": [ - "d5c884ff-de1a-4f98-8040-49daab6afb0a" + "47c5dd27-8cd1-43b7-b7ad-16797d75c803" ], "X-Content-Type-Options": [ "nosniff" @@ -1770,24 +1773,24 @@ "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" ], "x-ms-correlation-request-id": [ - "323955cb-b94f-413a-90ba-0bb9a22d8873" + "7312e2ee-78da-44bb-8309-f8cd528a39dc" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202023Z:323955cb-b94f-413a-90ba-0bb9a22d8873" + "WESTUS2:20180205T195431Z:7312e2ee-78da-44bb-8309-f8cd528a39dc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ] }, - "StatusCode": 201 + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/cbe34b39-81ef-4058-b846-523c8342decb0?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2NiZTM0YjM5LTgxZWYtNDA1OC1iODQ2LTUyM2M4MzQyZGVjYjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/be919084-2517-41bc-9c98-1c46432ca34f0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2JlOTE5MDg0LTI1MTctNDFiYy05Yzk4LTFjNDY0MzJjYTM0ZjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1811,7 +1814,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:33 GMT" + "Mon, 05 Feb 2018 19:54:41 GMT" ], "Pragma": [ "no-cache" @@ -1823,7 +1826,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "18649f44-6245-462d-bab8-2b82e67d5e06" + "5cd97983-a2e6-4dd4-95b4-6d65bfefc604" ], "X-Content-Type-Options": [ "nosniff" @@ -1835,13 +1838,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14996" ], "x-ms-correlation-request-id": [ - "bc01540e-b46e-4fe5-a8e6-1309c5972aaa" + "34ec2590-53a6-429b-8e32-4b470468bfca" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202034Z:bc01540e-b46e-4fe5-a8e6-1309c5972aaa" + "WESTUS2:20180205T195441Z:34ec2590-53a6-429b-8e32-4b470468bfca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1850,8 +1853,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/cbe34b39-81ef-4058-b846-523c8342decb0?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2NiZTM0YjM5LTgxZWYtNDA1OC1iODQ2LTUyM2M4MzQyZGVjYjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/be919084-2517-41bc-9c98-1c46432ca34f0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2JlOTE5MDg0LTI1MTctNDFiYy05Yzk4LTFjNDY0MzJjYTM0ZjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1860,7 +1863,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1875,7 +1878,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:46 GMT" + "Mon, 05 Feb 2018 19:54:51 GMT" ], "Pragma": [ "no-cache" @@ -1887,7 +1890,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "2c66381c-213e-42c3-931b-cca12254dccc" + "8308880e-6b68-4a1f-996f-26cab1772a28" ], "X-Content-Type-Options": [ "nosniff" @@ -1899,13 +1902,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14992" ], "x-ms-correlation-request-id": [ - "44289c2b-f1fb-494a-b0a9-a7b6312e019f" + "be390c4e-41f7-4e07-aed2-03742028d4bd" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202046Z:44289c2b-f1fb-494a-b0a9-a7b6312e019f" + "WESTUS2:20180205T195452Z:be390c4e-41f7-4e07-aed2-03742028d4bd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1914,8 +1917,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/cbe34b39-81ef-4058-b846-523c8342decb0?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2NiZTM0YjM5LTgxZWYtNDA1OC1iODQ2LTUyM2M4MzQyZGVjYjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyNGFjY3QyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1924,7 +1927,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testdatalake17524acct2.azuredatalakestore.net\",\r\n \"accountId\": \"be919084-2517-41bc-9c98-1c46432ca34f\",\r\n \"creationTime\": \"2018-02-05T19:54:15.7932303Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:54:15.7932303Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2\",\r\n \"name\": \"testdatalake17524acct2\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1939,7 +1942,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:56 GMT" + "Mon, 05 Feb 2018 19:54:52 GMT" ], "Pragma": [ "no-cache" @@ -1951,7 +1954,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "da4783e0-1107-45ca-9039-c4c341467046" + "32cab062-e77b-4c27-8328-26acb549e13f" ], "X-Content-Type-Options": [ "nosniff" @@ -1966,10 +1969,10 @@ "14992" ], "x-ms-correlation-request-id": [ - "5d6e5d40-8903-4e25-aa2d-fe78df45f267" + "c515605d-49fa-4e97-86e4-9f47e3861f24" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202057Z:5d6e5d40-8903-4e25-aa2d-fe78df45f267" + "WESTUS2:20180205T195453Z:c515605d-49fa-4e97-86e4-9f47e3861f24" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1978,17 +1981,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396acct2?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTZhY2N0Mj9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyNGFjY3QyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "e3dd0024-7011-4b60-871e-0a4b73a01d2f" + ], + "accept-language": [ + "en-US" + ], "User-Agent": [ "FxVersion/4.6.25211.01", "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testdatalake12396acct2.azuredatalakestore.net\",\r\n \"accountId\": \"cbe34b39-81ef-4058-b846-523c8342decb\",\r\n \"creationTime\": \"2017-12-22T20:20:25.5515495Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:20:25.5515495Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396acct2\",\r\n \"name\": \"testdatalake12396acct2\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testdatalake17524acct2.azuredatalakestore.net\",\r\n \"accountId\": \"be919084-2517-41bc-9c98-1c46432ca34f\",\r\n \"creationTime\": \"2018-02-05T19:54:15.7932303Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:54:15.7932303Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2\",\r\n \"name\": \"testdatalake17524acct2\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -2003,7 +2012,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:57 GMT" + "Mon, 05 Feb 2018 19:54:54 GMT" ], "Pragma": [ "no-cache" @@ -2015,7 +2024,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b5f2577e-c6d6-4678-9227-55fc71e5c574" + "6ff9989f-efde-4e44-b08f-e5034abd85ec" ], "X-Content-Type-Options": [ "nosniff" @@ -2027,13 +2036,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14995" ], "x-ms-correlation-request-id": [ - "2eac5847-6b80-4545-81f5-2366bc8ddd57" + "4296eb87-e412-42ac-8d57-727b3be2082d" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202057Z:2eac5847-6b80-4545-81f5-2366bc8ddd57" + "WESTUS2:20180205T195454Z:4296eb87-e412-42ac-8d57-727b3be2082d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2041,6 +2050,61 @@ }, "StatusCode": 200 }, + { + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyNGFjY3QyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d981516e-4da4-43fb-a00c-5dcf45fdafa3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testdatalake17524acct2' under resource group 'datalakerg1912' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 05 Feb 2018 19:55:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "8c08f890-d208-41d4-a0ac-09d40542a2aa" + ], + "x-ms-correlation-request-id": [ + "8c08f890-d208-41d4-a0ac-09d40542a2aa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180205T195503Z:8c08f890-d208-41d4-a0ac-09d40542a2aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, { "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/accounts?api-version=2016-11-01", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", @@ -2048,7 +2112,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dedc45d1-fb4c-4612-b9c9-b7cb5d8e9d6b" + "48b75ebf-4a01-47f4-815c-dce27318d880" ], "accept-language": [ "en-US" @@ -2058,7 +2122,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"begoldsmadls01.azuredatalakestore.net\",\r\n \"accountId\": \"94f4bf5d-78a9-4c31-8aa7-b34d07bad898\",\r\n \"creationTime\": \"2017-03-29T21:49:35.189795Z\",\r\n \"lastModifiedTime\": \"2017-03-29T21:49:35.189795Z\"\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/begoldsmadlsrg01/providers/Microsoft.DataLakeStore/accounts/begoldsmadls01\",\r\n \"name\": \"begoldsmadls01\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testadlfs13848.azuredatalakestore.net\",\r\n \"accountId\": \"482cc764-f1c9-4250-bd6c-147877eb0691\",\r\n \"creationTime\": \"2017-12-22T20:18:55.5213364Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:18:55.5213364Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testadlfs13848\",\r\n \"name\": \"testadlfs13848\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake12396.azuredatalakestore.net\",\r\n \"accountId\": \"21257753-6dfc-4f0e-b3ce-96c88c61d4b3\",\r\n \"creationTime\": \"2017-12-22T20:19:42.6707084Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:20:18.3052612Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"updatedKey\": \"updatedValue\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396\",\r\n \"name\": \"testdatalake12396\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake12396acct2.azuredatalakestore.net\",\r\n \"accountId\": \"cbe34b39-81ef-4058-b846-523c8342decb\",\r\n \"creationTime\": \"2017-12-22T20:20:25.5515495Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:20:25.5515495Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396acct2\",\r\n \"name\": \"testdatalake12396acct2\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testadlfs18982.azuredatalakestore.net\",\r\n \"accountId\": \"694d156e-3afa-4e63-b4f7-11e29e8ec40e\",\r\n \"creationTime\": \"2017-12-22T20:15:40.1850371Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:15:40.1850371Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg19371/providers/Microsoft.DataLakeStore/accounts/testadlfs18982\",\r\n \"name\": \"testadlfs18982\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testadlfs18944.azuredatalakestore.net\",\r\n \"accountId\": \"765d12fd-9718-4120-94ea-0bef008ec49c\",\r\n \"creationTime\": \"2018-02-05T19:52:52.8679685Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:52:52.8679685Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testadlfs18944\",\r\n \"name\": \"testadlfs18944\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake17524.azuredatalakestore.net\",\r\n \"accountId\": \"d7d14dc9-0adf-4e12-8986-fe1ca9ef5773\",\r\n \"creationTime\": \"2018-02-05T19:53:33.636756Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:54:08.1471701Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"updatedKey\": \"updatedValue\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524\",\r\n \"name\": \"testdatalake17524\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake17524acct2.azuredatalakestore.net\",\r\n \"accountId\": \"be919084-2517-41bc-9c98-1c46432ca34f\",\r\n \"creationTime\": \"2018-02-05T19:54:15.7932303Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:54:15.7932303Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2\",\r\n \"name\": \"testdatalake17524acct2\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -2073,7 +2137,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:58 GMT" + "Mon, 05 Feb 2018 19:54:52 GMT" ], "Pragma": [ "no-cache" @@ -2085,7 +2149,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5b09b39c-1520-401c-9238-689204e1c5a1" + "2eae5f6d-423d-4587-b76f-1996d9b2c638" ], "X-Content-Type-Options": [ "nosniff" @@ -2097,13 +2161,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14995" ], "x-ms-correlation-request-id": [ - "ac851edb-410d-4144-a606-7ff8d7741970" + "189ca48d-e762-41d3-98b9-48bec7e4ea66" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202058Z:ac851edb-410d-4144-a606-7ff8d7741970" + "WESTUS2:20180205T195453Z:189ca48d-e762-41d3-98b9-48bec7e4ea66" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2112,13 +2176,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHM/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a4a68240-658f-4006-84e6-796a27c58c3d" + "928e5654-2ddd-4127-a0cc-1f3741de58ef" ], "accept-language": [ "en-US" @@ -2128,7 +2192,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testadlfs13848.azuredatalakestore.net\",\r\n \"accountId\": \"482cc764-f1c9-4250-bd6c-147877eb0691\",\r\n \"creationTime\": \"2017-12-22T20:18:55.5213364Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:18:55.5213364Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testadlfs13848\",\r\n \"name\": \"testadlfs13848\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake12396.azuredatalakestore.net\",\r\n \"accountId\": \"21257753-6dfc-4f0e-b3ce-96c88c61d4b3\",\r\n \"creationTime\": \"2017-12-22T20:19:42.6707084Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:20:18.3052612Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"updatedKey\": \"updatedValue\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396\",\r\n \"name\": \"testdatalake12396\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake12396acct2.azuredatalakestore.net\",\r\n \"accountId\": \"cbe34b39-81ef-4058-b846-523c8342decb\",\r\n \"creationTime\": \"2017-12-22T20:20:25.5515495Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:20:25.5515495Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396acct2\",\r\n \"name\": \"testdatalake12396acct2\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testadlfs18944.azuredatalakestore.net\",\r\n \"accountId\": \"765d12fd-9718-4120-94ea-0bef008ec49c\",\r\n \"creationTime\": \"2018-02-05T19:52:52.8679685Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:52:52.8679685Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testadlfs18944\",\r\n \"name\": \"testadlfs18944\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake17524.azuredatalakestore.net\",\r\n \"accountId\": \"d7d14dc9-0adf-4e12-8986-fe1ca9ef5773\",\r\n \"creationTime\": \"2018-02-05T19:53:33.636756Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:54:08.1471701Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": {\r\n \"updatedKey\": \"updatedValue\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524\",\r\n \"name\": \"testdatalake17524\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"testdatalake17524acct2.azuredatalakestore.net\",\r\n \"accountId\": \"be919084-2517-41bc-9c98-1c46432ca34f\",\r\n \"creationTime\": \"2018-02-05T19:54:15.7932303Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:54:15.7932303Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2\",\r\n \"name\": \"testdatalake17524acct2\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -2143,7 +2207,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:20:59 GMT" + "Mon, 05 Feb 2018 19:54:53 GMT" ], "Pragma": [ "no-cache" @@ -2155,7 +2219,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d5e259d9-9f3a-418d-8b1b-fb95f28dd8b8" + "69e60961-1787-4345-bbd6-1304d8c7c715" ], "X-Content-Type-Options": [ "nosniff" @@ -2167,13 +2231,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14994" ], "x-ms-correlation-request-id": [ - "946e1ec2-c911-460a-b498-19dcf6d0eb82" + "81b5d483-5bf3-4b42-8d78-a47f29521d64" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202059Z:946e1ec2-c911-460a-b498-19dcf6d0eb82" + "WESTUS2:20180205T195454Z:81b5d483-5bf3-4b42-8d78-a47f29521d64" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2188,7 +2252,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f3c8c8d1-565c-4535-8743-64b7d33f936d" + "8f7fcf34-df25-4e1c-82ed-3d4b6d3f9d45" ], "accept-language": [ "en-US" @@ -2198,7 +2262,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"subscriptionId\": \"04319d6d-4a66-4701-bb2f-e7dbbd9ae4db\",\r\n \"state\": \"Registered\",\r\n \"maxAccountCount\": 10,\r\n \"accountCount\": 5,\r\n \"migrationState\": false\r\n}", + "ResponseBody": "{\r\n \"subscriptionId\": \"04319d6d-4a66-4701-bb2f-e7dbbd9ae4db\",\r\n \"state\": \"Registered\",\r\n \"maxAccountCount\": 10,\r\n \"accountCount\": 3,\r\n \"migrationState\": false\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -2213,7 +2277,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:21:01 GMT" + "Mon, 05 Feb 2018 19:54:55 GMT" ], "Pragma": [ "no-cache" @@ -2225,7 +2289,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "61bfbe69-39d7-43da-ae41-489486774c91" + "d2f9a755-0434-4037-ada8-a074824f2c3c" ], "X-Content-Type-Options": [ "nosniff" @@ -2237,13 +2301,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14999" ], "x-ms-correlation-request-id": [ - "3a4a0af1-735e-439d-b6bf-2d3a46b5086f" + "f096ec4e-b541-4ba5-98b0-fa40daa8d7b1" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202101Z:3a4a0af1-735e-439d-b6bf-2d3a46b5086f" + "WESTUS2:20180205T195455Z:f096ec4e-b541-4ba5-98b0-fa40daa8d7b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2258,7 +2322,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7f786069-d43c-4b22-a771-768b9df1ebf1" + "b9f2ab83-337f-43ac-8516-2138b69345bf" ], "accept-language": [ "en-US" @@ -2283,7 +2347,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:21:01 GMT" + "Mon, 05 Feb 2018 19:54:55 GMT" ], "Pragma": [ "no-cache" @@ -2295,7 +2359,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c5ee5ae3-cf0a-4930-8334-dae3ee3ac2fa" + "bb806eed-5dc9-4bdc-ac61-0c5616b8ef1c" ], "X-Content-Type-Options": [ "nosniff" @@ -2307,13 +2371,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-tenant-reads": [ - "14998" + "14997" ], "x-ms-correlation-request-id": [ - "6d4c66aa-920a-4c4a-950f-f695c1187cf1" + "05a00a24-a227-4ef3-84b3-971b469c2163" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202102Z:6d4c66aa-920a-4c4a-950f-f695c1187cf1" + "WESTUS2:20180205T195456Z:05a00a24-a227-4ef3-84b3-971b469c2163" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2322,13 +2386,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyNGFjY3QyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b3c926be-f560-45ab-8562-b639bc035491" + "4a797194-826d-4b2a-8f2e-eedd7af182f7" ], "accept-language": [ "en-US" @@ -2353,7 +2417,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:21:04 GMT" + "Mon, 05 Feb 2018 19:54:58 GMT" ], "Pragma": [ "no-cache" @@ -2362,7 +2426,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "98bb53a0-531f-48f9-9574-ab0cd7265e53" + "f2f5ccbf-ec80-4f27-8c73-8ede2d4a64e3" ], "X-AspNet-Version": [ "4.0.30319" @@ -2371,13 +2435,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1198" ], "x-ms-correlation-request-id": [ - "38c6612e-1056-475e-886b-fe597db7a02a" + "216c47da-99b1-4176-8082-643a8bd55aa7" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202105Z:38c6612e-1056-475e-886b-fe597db7a02a" + "WESTUS2:20180205T195459Z:216c47da-99b1-4176-8082-643a8bd55aa7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2386,13 +2450,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524acct2?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyNGFjY3QyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bbf1c628-2145-4558-9e8a-56ec3a3ae70e" + "45e8d146-364c-49d4-b825-0ad6cfa5ae1f" ], "accept-language": [ "en-US" @@ -2411,22 +2475,22 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:21:05 GMT" + "Mon, 05 Feb 2018 19:54:59 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1195" ], "x-ms-request-id": [ - "24a677f9-a029-49fd-9c43-8def2d73124b" + "a0a040aa-3964-4216-883b-b834a4f1658a" ], "x-ms-correlation-request-id": [ - "24a677f9-a029-49fd-9c43-8def2d73124b" + "a0a040aa-3964-4216-883b-b834a4f1658a" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202105Z:24a677f9-a029-49fd-9c43-8def2d73124b" + "WESTUS2:20180205T195459Z:a0a040aa-3964-4216-883b-b834a4f1658a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2435,13 +2499,13 @@ "StatusCode": 204 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12781/providers/Microsoft.DataLakeStore/accounts/testdatalake12396?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjc4MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGRhdGFsYWtlMTIzOTY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg1912/providers/Microsoft.DataLakeStore/accounts/testdatalake17524?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxOTEyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy90ZXN0ZGF0YWxha2UxNzUyND9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "47de0b1a-ca0c-4890-aeb2-5ce52b258c7c" + "9cc844a2-585f-461c-869c-8e3e8534e1dc" ], "accept-language": [ "en-US" @@ -2453,42 +2517,57 @@ }, "ResponseBody": "", "ResponseHeaders": { + "Content-Length": [ + "0" + ], "Expires": [ "-1" ], "Cache-Control": [ "no-cache" ], + "Connection": [ + "close" + ], "Date": [ - "Fri, 22 Dec 2017 20:21:05 GMT" + "Mon, 05 Feb 2018 19:55:02 GMT" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "Server": [ + "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "fbd7f930-a008-448e-a0c2-4ed5c7de223c" + "f6ebbf2b-5f64-4fc5-bb05-b4ad1b09c5ad" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" ], "x-ms-correlation-request-id": [ - "fbd7f930-a008-448e-a0c2-4ed5c7de223c" + "c2c662ef-4119-4686-aee9-c9f609ea9dfb" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202105Z:fbd7f930-a008-448e-a0c2-4ed5c7de223c" + "WESTUS2:20180205T195503Z:c2c662ef-4119-4686-aee9-c9f609ea9dfb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ] }, - "StatusCode": 204 + "StatusCode": 200 } ], "Names": { ".ctor": [ - "datalakerg12781", - "testdatalake12396", - "testadlfs13848" + "datalakerg1912", + "testdatalake17524", + "testadlfs18944" ] }, "Variables": { diff --git a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/FirewallAndTrustedProviderTest.json b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/FirewallAndTrustedProviderCRUDTest.json similarity index 80% rename from src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/FirewallAndTrustedProviderTest.json rename to src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/FirewallAndTrustedProviderCRUDTest.json index 31f52f4c7b60..d73de326fea2 100644 --- a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/FirewallAndTrustedProviderTest.json +++ b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.AccountOperationTests/FirewallAndTrustedProviderCRUDTest.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "db4c0a35-fedd-4a4d-ae5c-a362d9725390" + "b1f12324-40e5-4a4c-8cb2-c347610568c6" ], "accept-language": [ "en-US" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:21:25 GMT" + "Mon, 05 Feb 2018 19:51:11 GMT" ], "Pragma": [ "no-cache" @@ -41,16 +41,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1199" ], "x-ms-request-id": [ - "6487011b-0573-4176-ac43-5fe5aa4d0aa3" + "d739fafc-db4c-431c-8852-0ce6e6e55c0d" ], "x-ms-correlation-request-id": [ - "6487011b-0573-4176-ac43-5fe5aa4d0aa3" + "d739fafc-db4c-431c-8852-0ce6e6e55c0d" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202125Z:6487011b-0573-4176-ac43-5fe5aa4d0aa3" + "WESTUS2:20180205T195111Z:d739fafc-db4c-431c-8852-0ce6e6e55c0d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,7 +65,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "221a0c66-b376-4166-a6dc-f200fce9d3be" + "69bbfc70-b469-411b-92d2-e0ff66d968b0" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:21:25 GMT" + "Mon, 05 Feb 2018 19:51:11 GMT" ], "Pragma": [ "no-cache" @@ -96,16 +96,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14997" ], "x-ms-request-id": [ - "f4e4ec6a-dfe5-4543-9ac1-ce3c1689c5ca" + "005ca9b5-1912-406b-8d0e-26cfc6a4ffd8" ], "x-ms-correlation-request-id": [ - "f4e4ec6a-dfe5-4543-9ac1-ce3c1689c5ca" + "005ca9b5-1912-406b-8d0e-26cfc6a4ffd8" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202125Z:f4e4ec6a-dfe5-4543-9ac1-ce3c1689c5ca" + "WESTUS2:20180205T195112Z:005ca9b5-1912-406b-8d0e-26cfc6a4ffd8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -120,7 +120,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d80f6542-ee29-4377-839d-5efef4097eaf" + "e138c84d-8903-4d47-8bb4-d875746f0189" ], "accept-language": [ "en-US" @@ -142,7 +142,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:21:26 GMT" + "Mon, 05 Feb 2018 19:51:12 GMT" ], "Pragma": [ "no-cache" @@ -154,16 +154,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1198" ], "x-ms-request-id": [ - "109b8435-c9ff-4b70-9b5e-1eaa5c289081" + "387bd629-fc3e-46a2-b88a-9411ea6e677e" ], "x-ms-correlation-request-id": [ - "109b8435-c9ff-4b70-9b5e-1eaa5c289081" + "387bd629-fc3e-46a2-b88a-9411ea6e677e" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202127Z:109b8435-c9ff-4b70-9b5e-1eaa5c289081" + "WESTUS2:20180205T195112Z:387bd629-fc3e-46a2-b88a-9411ea6e677e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -178,7 +178,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8fc1b576-f3a2-4851-a9cc-6ad92f33dd31" + "17c72f79-ffcd-4cea-8fd8-d4133afe19b6" ], "accept-language": [ "en-US" @@ -200,7 +200,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:21:26 GMT" + "Mon, 05 Feb 2018 19:51:12 GMT" ], "Pragma": [ "no-cache" @@ -209,16 +209,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14996" ], "x-ms-request-id": [ - "7d509181-f7bd-40dd-a986-a37b1fb75e6d" + "8754dd63-cc23-4934-aae4-e7302a7386af" ], "x-ms-correlation-request-id": [ - "7d509181-f7bd-40dd-a986-a37b1fb75e6d" + "8754dd63-cc23-4934-aae4-e7302a7386af" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202127Z:7d509181-f7bd-40dd-a986-a37b1fb75e6d" + "WESTUS2:20180205T195112Z:8754dd63-cc23-4934-aae4-e7302a7386af" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -227,13 +227,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12902?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjkwMj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg16837?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNjgzNz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1c62b1e7-8d1a-4ce4-9408-31805cb1ccc8" + "852019b2-2a27-4c31-adf5-ec9dea17128a" ], "accept-language": [ "en-US" @@ -243,7 +243,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg12902' could not be found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg16837' could not be found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "107" @@ -258,7 +258,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:21:26 GMT" + "Mon, 05 Feb 2018 19:51:12 GMT" ], "Pragma": [ "no-cache" @@ -267,16 +267,16 @@ "gateway" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14995" ], "x-ms-request-id": [ - "4e7bb81e-aae2-4f08-839d-85202247e19b" + "b8d7c70b-e82a-4872-906d-2a1c5069be3a" ], "x-ms-correlation-request-id": [ - "4e7bb81e-aae2-4f08-839d-85202247e19b" + "b8d7c70b-e82a-4872-906d-2a1c5069be3a" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202127Z:4e7bb81e-aae2-4f08-839d-85202247e19b" + "WESTUS2:20180205T195112Z:b8d7c70b-e82a-4872-906d-2a1c5069be3a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -285,13 +285,13 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12902?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjkwMj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg16837?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNjgzNz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dca6c4b2-e341-47a7-a4bd-8173a9da947b" + "509d341f-79b0-4d33-b27f-bdf71c20baf0" ], "accept-language": [ "en-US" @@ -301,7 +301,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902\",\r\n \"name\": \"datalakerg12902\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837\",\r\n \"name\": \"datalakerg16837\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -313,7 +313,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:21:27 GMT" + "Mon, 05 Feb 2018 19:51:13 GMT" ], "Pragma": [ "no-cache" @@ -322,16 +322,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14994" ], "x-ms-request-id": [ - "6122f29b-33d4-4adf-8d37-c1e92251c1a6" + "7c1ef462-b3da-4230-ae02-d7218b452b4f" ], "x-ms-correlation-request-id": [ - "6122f29b-33d4-4adf-8d37-c1e92251c1a6" + "7c1ef462-b3da-4230-ae02-d7218b452b4f" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202128Z:6122f29b-33d4-4adf-8d37-c1e92251c1a6" + "WESTUS2:20180205T195114Z:7c1ef462-b3da-4230-ae02-d7218b452b4f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -340,8 +340,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12902?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjkwMj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg16837?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNjgzNz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -352,7 +352,7 @@ "31" ], "x-ms-client-request-id": [ - "3c45a67d-d110-446c-8ba2-0f3999f1bf65" + "cd139dd6-49ec-4484-8fa7-543fbceb31b5" ], "accept-language": [ "en-US" @@ -362,7 +362,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902\",\r\n \"name\": \"datalakerg12902\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837\",\r\n \"name\": \"datalakerg16837\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "184" @@ -377,22 +377,22 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:21:27 GMT" + "Mon, 05 Feb 2018 19:51:13 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1197" ], "x-ms-request-id": [ - "8b1960d8-82a5-4bcf-beb8-11142dc78f6b" + "6155d279-13c0-4321-a78f-5eea8a42607f" ], "x-ms-correlation-request-id": [ - "8b1960d8-82a5-4bcf-beb8-11142dc78f6b" + "6155d279-13c0-4321-a78f-5eea8a42607f" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202128Z:8b1960d8-82a5-4bcf-beb8-11142dc78f6b" + "WESTUS2:20180205T195114Z:6155d279-13c0-4321-a78f-5eea8a42607f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -401,13 +401,13 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/testadlfs14850?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTQ4NTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/testadlfs13980?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTM5ODA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8d5a76ef-40f5-4b49-9285-2be19990ebb9" + "10654c80-385f-4909-a1bd-05f7518e8ed3" ], "accept-language": [ "en-US" @@ -417,7 +417,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs14850' under resource group 'datalakerg12902' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs13980' under resource group 'datalakerg16837' was not found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "166" @@ -432,7 +432,7 @@ "no-cache" ], "Date": [ - "Fri, 22 Dec 2017 20:21:28 GMT" + "Mon, 05 Feb 2018 19:51:14 GMT" ], "Pragma": [ "no-cache" @@ -441,13 +441,13 @@ "gateway" ], "x-ms-request-id": [ - "db1cfd46-2937-4eb3-8353-bc4902764ae1" + "338e442b-0db1-44a3-b4ed-44e7d0fef9ca" ], "x-ms-correlation-request-id": [ - "db1cfd46-2937-4eb3-8353-bc4902764ae1" + "338e442b-0db1-44a3-b4ed-44e7d0fef9ca" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202129Z:db1cfd46-2937-4eb3-8353-bc4902764ae1" + "WESTUS2:20180205T195114Z:338e442b-0db1-44a3-b4ed-44e7d0fef9ca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -456,8 +456,8 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/testadlfs14850?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTQ4NTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/testadlfs13980?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTM5ODA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -466,7 +466,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs14850.azuredatalakestore.net\",\r\n \"accountId\": \"9908847f-30dd-4338-98e9-c27ac03a1237\",\r\n \"creationTime\": \"2017-12-22T20:21:33.2200565Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:21:33.2200565Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/testadlfs14850\",\r\n \"name\": \"testadlfs14850\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs13980.azuredatalakestore.net\",\r\n \"accountId\": \"da43d65b-5a9e-4e73-96b7-d89a64378b4d\",\r\n \"creationTime\": \"2018-02-05T19:51:19.3527024Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:51:19.3527024Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/testadlfs13980\",\r\n \"name\": \"testadlfs13980\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -481,7 +481,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:04 GMT" + "Mon, 05 Feb 2018 19:51:48 GMT" ], "Pragma": [ "no-cache" @@ -493,7 +493,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f2ccfbac-d130-4de6-8cf3-e823fb44f451" + "35dc4972-ff26-4b90-999b-cdac22abd3f3" ], "X-Content-Type-Options": [ "nosniff" @@ -505,13 +505,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14996" ], "x-ms-correlation-request-id": [ - "d66e69db-eb43-4fdb-8df4-3ba23496f433" + "96105980-90ca-438f-8ebc-021135648789" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202204Z:d66e69db-eb43-4fdb-8df4-3ba23496f433" + "WESTUS2:20180205T195148Z:96105980-90ca-438f-8ebc-021135648789" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -520,13 +520,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/testadlfs14850?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTQ4NTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/testadlfs13980?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTM5ODA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a9cb2676-8a13-424f-8b25-7b767172f9c3" + "b79936d0-37a3-4b33-8df7-754675cf02fd" ], "accept-language": [ "en-US" @@ -536,7 +536,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs14850.azuredatalakestore.net\",\r\n \"accountId\": \"9908847f-30dd-4338-98e9-c27ac03a1237\",\r\n \"creationTime\": \"2017-12-22T20:21:33.2200565Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:21:33.2200565Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/testadlfs14850\",\r\n \"name\": \"testadlfs14850\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs13980.azuredatalakestore.net\",\r\n \"accountId\": \"da43d65b-5a9e-4e73-96b7-d89a64378b4d\",\r\n \"creationTime\": \"2018-02-05T19:51:19.3527024Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:51:19.3527024Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/testadlfs13980\",\r\n \"name\": \"testadlfs13980\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -551,7 +551,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:04 GMT" + "Mon, 05 Feb 2018 19:51:48 GMT" ], "Pragma": [ "no-cache" @@ -563,7 +563,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "eea6957b-5303-4d41-8260-9341cf26f2dc" + "5ac011de-bdad-411d-9bfb-451923b36f1b" ], "X-Content-Type-Options": [ "nosniff" @@ -575,13 +575,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14993" ], "x-ms-correlation-request-id": [ - "9be52580-f4be-484c-8a07-def09dbe5721" + "5a653346-877c-41c4-b137-3b75b55fb9af" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202205Z:9be52580-f4be-484c-8a07-def09dbe5721" + "WESTUS2:20180205T195149Z:5a653346-877c-41c4-b137-3b75b55fb9af" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -590,8 +590,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/testadlfs14850?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTQ4NTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/testadlfs13980?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTM5ODA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -602,7 +602,7 @@ "31" ], "x-ms-client-request-id": [ - "96b3c624-aa7b-40e4-89ee-b0fd352964de" + "910f7bf1-6c21-43e3-90cf-da8ad7fc7ff3" ], "accept-language": [ "en-US" @@ -612,7 +612,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"9908847f-30dd-4338-98e9-c27ac03a1237\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/testadlfs14850\",\r\n \"name\": \"testadlfs14850\",\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\": \"da43d65b-5a9e-4e73-96b7-d89a64378b4d\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/testadlfs13980\",\r\n \"name\": \"testadlfs13980\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Length": [ "364" @@ -630,13 +630,13 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:21:31 GMT" + "Mon, 05 Feb 2018 19:51:16 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/testadlfs14850/operationresults/0?api-version=2016-11-01" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/testadlfs13980/operationresults/0?api-version=2016-11-01" ], "Retry-After": [ "10" @@ -645,10 +645,10 @@ "Microsoft-IIS/8.5" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/9908847f-30dd-4338-98e9-c27ac03a12370?api-version=2016-11-01&expanded=true" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/da43d65b-5a9e-4e73-96b7-d89a64378b4d0?api-version=2016-11-01&expanded=true" ], "x-ms-request-id": [ - "f074ef09-be9c-4c91-914f-2b56f7c52b6c" + "fadd8bd2-2392-4831-b25d-a1a1752c6017" ], "X-Content-Type-Options": [ "nosniff" @@ -660,13 +660,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1196" ], "x-ms-correlation-request-id": [ - "af992c20-c7dc-4e45-be19-15beada91587" + "ac15803b-b7b2-4320-9b8b-45be12192938" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202131Z:af992c20-c7dc-4e45-be19-15beada91587" + "WESTUS2:20180205T195116Z:ac15803b-b7b2-4320-9b8b-45be12192938" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -675,8 +675,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/9908847f-30dd-4338-98e9-c27ac03a12370?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzk5MDg4NDdmLTMwZGQtNDMzOC05OGU5LWMyN2FjMDNhMTIzNzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/da43d65b-5a9e-4e73-96b7-d89a64378b4d0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2RhNDNkNjViLTVhOWUtNGU3My05NmI3LWQ4OWE2NDM3OGI0ZDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -700,7 +700,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:21:41 GMT" + "Mon, 05 Feb 2018 19:51:26 GMT" ], "Pragma": [ "no-cache" @@ -712,7 +712,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9e0c1a99-33a7-4ef5-8659-c239daa491df" + "7c2814f7-afed-4c3e-a86c-c8c77e155ca2" ], "X-Content-Type-Options": [ "nosniff" @@ -724,13 +724,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14989" ], "x-ms-correlation-request-id": [ - "a654e4d3-ed98-41fb-bb05-d98c86a40b56" + "4af2718e-3171-4c2d-821c-3ac34d767752" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202142Z:a654e4d3-ed98-41fb-bb05-d98c86a40b56" + "WESTUS2:20180205T195126Z:4af2718e-3171-4c2d-821c-3ac34d767752" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -739,8 +739,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/9908847f-30dd-4338-98e9-c27ac03a12370?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzk5MDg4NDdmLTMwZGQtNDMzOC05OGU5LWMyN2FjMDNhMTIzNzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/da43d65b-5a9e-4e73-96b7-d89a64378b4d0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2RhNDNkNjViLTVhOWUtNGU3My05NmI3LWQ4OWE2NDM3OGI0ZDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -764,7 +764,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:21:52 GMT" + "Mon, 05 Feb 2018 19:51:37 GMT" ], "Pragma": [ "no-cache" @@ -776,7 +776,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b12bbb51-0f24-429e-acbe-ff8b227bfd7f" + "aa6cd719-1326-4dd1-8399-91d8be5524e2" ], "X-Content-Type-Options": [ "nosniff" @@ -788,13 +788,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14996" ], "x-ms-correlation-request-id": [ - "2e85655e-220c-4be3-bac3-5f6b85f9cc85" + "5395132e-7d14-4ecd-bdcf-18e570e40b8c" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202153Z:2e85655e-220c-4be3-bac3-5f6b85f9cc85" + "WESTUS2:20180205T195137Z:5395132e-7d14-4ecd-bdcf-18e570e40b8c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -803,8 +803,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/9908847f-30dd-4338-98e9-c27ac03a12370?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzk5MDg4NDdmLTMwZGQtNDMzOC05OGU5LWMyN2FjMDNhMTIzNzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/da43d65b-5a9e-4e73-96b7-d89a64378b4d0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2RhNDNkNjViLTVhOWUtNGU3My05NmI3LWQ4OWE2NDM3OGI0ZDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -828,7 +828,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:03 GMT" + "Mon, 05 Feb 2018 19:51:47 GMT" ], "Pragma": [ "no-cache" @@ -840,7 +840,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b0412c84-8c91-4e53-9a74-837f03e55a30" + "9ec037b5-ada2-4bd2-a090-27009e7ac155" ], "X-Content-Type-Options": [ "nosniff" @@ -852,13 +852,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14995" ], "x-ms-correlation-request-id": [ - "840ad181-8b2b-4084-8f6b-ec1b6d6c7e01" + "b3ea738d-f51b-4874-95a5-4605a4a8c57e" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202203Z:840ad181-8b2b-4084-8f6b-ec1b6d6c7e01" + "WESTUS2:20180205T195147Z:b3ea738d-f51b-4874-95a5-4605a4a8c57e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -867,10 +867,10 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "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\": \"firerule16993\"\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/87530192-c647-42e3-a982-31d05bb1d984\"\r\n },\r\n \"name\": \"trustedrule13546\"\r\n }\r\n ],\r\n \"firewallAllowAzureIps\": \"Enabled\"\r\n },\r\n \"location\": \"East US 2\"\r\n}", + "RequestBody": "{\r\n \"location\": \"East US 2\",\r\n \"properties\": {\r\n \"firewallRules\": [\r\n {\r\n \"name\": \"firerule13070\",\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n }\r\n }\r\n ],\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"name\": \"trustedrule16495\",\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/db299afa-8122-4f82-87fb-7caf520c37c3\"\r\n }\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -879,7 +879,7 @@ "588" ], "x-ms-client-request-id": [ - "d2a93c61-9997-4faa-b438-2601d3d439fb" + "17af5146-d55b-452a-b4be-28b7cde32ec1" ], "accept-language": [ "en-US" @@ -889,7 +889,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"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\": \"firerule16993\"\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/87530192-c647-42e3-a982-31d05bb1d984\"\r\n },\r\n \"name\": \"trustedrule13546\"\r\n }\r\n ],\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"ad5d59cc-ea99-459f-8ace-42566948134a\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607\",\r\n \"name\": \"adlsacct9607\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"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\": \"firerule13070\"\r\n }\r\n ],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/db299afa-8122-4f82-87fb-7caf520c37c3\"\r\n },\r\n \"name\": \"trustedrule16495\"\r\n }\r\n ],\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"423d0368-4b1b-420a-b56d-3eff277bba94\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382\",\r\n \"name\": \"adlsacct8382\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Length": [ "754" @@ -907,13 +907,13 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:09 GMT" + "Mon, 05 Feb 2018 19:51:54 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/operationresults/0?api-version=2016-11-01" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/operationresults/0?api-version=2016-11-01" ], "Retry-After": [ "10" @@ -922,10 +922,10 @@ "Microsoft-IIS/8.5" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/ad5d59cc-ea99-459f-8ace-42566948134a0?api-version=2016-11-01&expanded=true" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/423d0368-4b1b-420a-b56d-3eff277bba940?api-version=2016-11-01&expanded=true" ], "x-ms-request-id": [ - "ceb578a8-3791-4bea-b74b-3b9879b50a22" + "8c9a5eea-31ba-4d9c-ba76-c735d16e5f34" ], "X-Content-Type-Options": [ "nosniff" @@ -937,13 +937,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1194" ], "x-ms-correlation-request-id": [ - "8daa849d-807a-4a76-9a03-d9fc256863b9" + "67982204-0e11-4a38-ac18-72fd91c39299" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202210Z:8daa849d-807a-4a76-9a03-d9fc256863b9" + "WESTUS2:20180205T195154Z:67982204-0e11-4a38-ac18-72fd91c39299" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -952,8 +952,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/ad5d59cc-ea99-459f-8ace-42566948134a0?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2FkNWQ1OWNjLWVhOTktNDU5Zi04YWNlLTQyNTY2OTQ4MTM0YTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/423d0368-4b1b-420a-b56d-3eff277bba940?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzQyM2QwMzY4LTRiMWItNDIwYS1iNTZkLTNlZmYyNzdiYmE5NDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -977,7 +977,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:21 GMT" + "Mon, 05 Feb 2018 19:52:04 GMT" ], "Pragma": [ "no-cache" @@ -989,7 +989,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "fe558a46-0b9f-4b82-a42b-59fa9376b3f4" + "37562b3f-c2ee-4329-8b64-07b817a6234a" ], "X-Content-Type-Options": [ "nosniff" @@ -1001,13 +1001,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14990" ], "x-ms-correlation-request-id": [ - "b448c6e1-b488-4865-a149-ec735c8d80ae" + "10d2c7ed-6bef-48dc-917e-5f3d8aa2d3b9" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202221Z:b448c6e1-b488-4865-a149-ec735c8d80ae" + "WESTUS2:20180205T195205Z:10d2c7ed-6bef-48dc-917e-5f3d8aa2d3b9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1016,8 +1016,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/ad5d59cc-ea99-459f-8ace-42566948134a0?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2FkNWQ1OWNjLWVhOTktNDU5Zi04YWNlLTQyNTY2OTQ4MTM0YTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/423d0368-4b1b-420a-b56d-3eff277bba940?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzQyM2QwMzY4LTRiMWItNDIwYS1iNTZkLTNlZmYyNzdiYmE5NDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1041,7 +1041,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:32 GMT" + "Mon, 05 Feb 2018 19:52:15 GMT" ], "Pragma": [ "no-cache" @@ -1053,7 +1053,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "adb03ad8-d3c7-4062-a28c-efad27c9a879" + "2acc6b5b-2e9a-4ffd-b672-53c4a70fd605" ], "X-Content-Type-Options": [ "nosniff" @@ -1065,13 +1065,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14997" ], "x-ms-correlation-request-id": [ - "88bca0f0-a76b-447c-8337-c52dbd9e942f" + "c6d9e734-f65b-49c0-af9d-d17887aa32dc" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202232Z:88bca0f0-a76b-447c-8337-c52dbd9e942f" + "WESTUS2:20180205T195215Z:c6d9e734-f65b-49c0-af9d-d17887aa32dc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1080,8 +1080,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/ad5d59cc-ea99-459f-8ace-42566948134a0?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2FkNWQ1OWNjLWVhOTktNDU5Zi04YWNlLTQyNTY2OTQ4MTM0YTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/423d0368-4b1b-420a-b56d-3eff277bba940?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzQyM2QwMzY4LTRiMWItNDIwYS1iNTZkLTNlZmYyNzdiYmE5NDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1105,7 +1105,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:43 GMT" + "Mon, 05 Feb 2018 19:52:25 GMT" ], "Pragma": [ "no-cache" @@ -1117,7 +1117,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "28b62bf8-b39c-47e7-a7c9-539b13b4d00b" + "c144356d-8280-47bd-a13f-17634eaa81dc" ], "X-Content-Type-Options": [ "nosniff" @@ -1129,13 +1129,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14996" ], "x-ms-correlation-request-id": [ - "fc35e4f6-6d10-4129-90e6-05dbb29d9833" + "d23b0124-6786-4af4-a7d9-01074718d90f" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202243Z:fc35e4f6-6d10-4129-90e6-05dbb29d9833" + "WESTUS2:20180205T195226Z:d23b0124-6786-4af4-a7d9-01074718d90f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1144,8 +1144,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1154,7 +1154,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"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\": \"firerule16993\"\r\n }\r\n ],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/87530192-c647-42e3-a982-31d05bb1d984\"\r\n },\r\n \"name\": \"trustedrule13546\"\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\": \"adlsacct9607.azuredatalakestore.net\",\r\n \"accountId\": \"ad5d59cc-ea99-459f-8ace-42566948134a\",\r\n \"creationTime\": \"2017-12-22T20:22:11.8494873Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:22:11.8494873Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607\",\r\n \"name\": \"adlsacct9607\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"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\": \"firerule13070\"\r\n }\r\n ],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/db299afa-8122-4f82-87fb-7caf520c37c3\"\r\n },\r\n \"name\": \"trustedrule16495\"\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\": \"adlsacct8382.azuredatalakestore.net\",\r\n \"accountId\": \"423d0368-4b1b-420a-b56d-3eff277bba94\",\r\n \"creationTime\": \"2018-02-05T19:51:56.6687351Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:51:56.6687351Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382\",\r\n \"name\": \"adlsacct8382\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1169,7 +1169,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:43 GMT" + "Mon, 05 Feb 2018 19:52:26 GMT" ], "Pragma": [ "no-cache" @@ -1181,7 +1181,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3c5ae61b-535d-4181-b7a9-08f6569340fe" + "b65821fc-167f-4b6a-91e6-4cd91b9c9eb1" ], "X-Content-Type-Options": [ "nosniff" @@ -1193,13 +1193,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14989" ], "x-ms-correlation-request-id": [ - "da6386b0-0947-4b12-bed2-6cd26c0e1d9e" + "478295f0-3f78-42e3-9770-7127e1024583" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202244Z:da6386b0-0947-4b12-bed2-6cd26c0e1d9e" + "WESTUS2:20180205T195226Z:478295f0-3f78-42e3-9770-7127e1024583" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1208,13 +1208,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dd8a5daf-597b-4d68-9803-7fb93bbb71d8" + "43494fff-a809-447d-a1ca-6952f3fdd86b" ], "accept-language": [ "en-US" @@ -1224,7 +1224,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"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\": \"firerule16993\"\r\n }\r\n ],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/87530192-c647-42e3-a982-31d05bb1d984\"\r\n },\r\n \"name\": \"trustedrule13546\"\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\": \"adlsacct9607.azuredatalakestore.net\",\r\n \"accountId\": \"ad5d59cc-ea99-459f-8ace-42566948134a\",\r\n \"creationTime\": \"2017-12-22T20:22:11.8494873Z\",\r\n \"lastModifiedTime\": \"2017-12-22T20:22:11.8494873Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607\",\r\n \"name\": \"adlsacct9607\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Enabled\",\r\n \"firewallAllowAzureIps\": \"Enabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"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\": \"firerule13070\"\r\n }\r\n ],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Enabled\",\r\n \"trustedIdProviders\": [\r\n {\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/db299afa-8122-4f82-87fb-7caf520c37c3\"\r\n },\r\n \"name\": \"trustedrule16495\"\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\": \"adlsacct8382.azuredatalakestore.net\",\r\n \"accountId\": \"423d0368-4b1b-420a-b56d-3eff277bba94\",\r\n \"creationTime\": \"2018-02-05T19:51:56.6687351Z\",\r\n \"lastModifiedTime\": \"2018-02-05T19:51:56.6687351Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382\",\r\n \"name\": \"adlsacct8382\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1239,7 +1239,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:44 GMT" + "Mon, 05 Feb 2018 19:52:27 GMT" ], "Pragma": [ "no-cache" @@ -1251,7 +1251,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "47956a0e-e776-45e0-acfd-c7d74c6fdb50" + "d0e1bada-b3cf-4ead-bfc7-4354bc6eee02" ], "X-Content-Type-Options": [ "nosniff" @@ -1263,13 +1263,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14993" ], "x-ms-correlation-request-id": [ - "91fef8ef-8bdc-41a9-87b7-2a7e419f238c" + "845039b9-ab45-4304-9e93-0e4f25f7d8a2" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202244Z:91fef8ef-8bdc-41a9-87b7-2a7e419f238c" + "WESTUS2:20180205T195227Z:845039b9-ab45-4304-9e93-0e4f25f7d8a2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1278,13 +1278,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/firewallRules/firerule16993?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxNjk5Mz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/firewallRules/firerule13070?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyL2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxMzA3MD9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6034ac84-35b4-43a6-82c4-b6eb1791c819" + "ca266077-3815-46e6-b430-44d04aa3d2db" ], "accept-language": [ "en-US" @@ -1294,7 +1294,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"127.0.0.2\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/firewallRules/firerule16993\",\r\n \"name\": \"firerule16993\",\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/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/firewallRules/firerule13070\",\r\n \"name\": \"firerule13070\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/firewallRules\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1309,7 +1309,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:45 GMT" + "Mon, 05 Feb 2018 19:52:27 GMT" ], "Pragma": [ "no-cache" @@ -1321,7 +1321,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a737d0f6-bea9-4b28-8a84-5a9ff3e2899b" + "d97844a7-8da4-44c8-94e7-5dd6b60a0cba" ], "X-Content-Type-Options": [ "nosniff" @@ -1333,13 +1333,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14985" ], "x-ms-correlation-request-id": [ - "32d5a713-14df-4b11-9232-187ebec4f7bd" + "1fd9ba81-9c71-4c6c-bfea-9bff71926743" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202245Z:32d5a713-14df-4b11-9232-187ebec4f7bd" + "WESTUS2:20180205T195228Z:1fd9ba81-9c71-4c6c-bfea-9bff71926743" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1348,13 +1348,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/firewallRules/firerule16993?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxNjk5Mz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/firewallRules/firerule13070?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyL2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxMzA3MD9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "31941a8b-6eb3-4d70-b19a-9b89deeccd40" + "be4c8c16-7e13-44b3-a972-f9608d2460a5" ], "accept-language": [ "en-US" @@ -1382,7 +1382,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:48 GMT" + "Mon, 05 Feb 2018 19:52:30 GMT" ], "Pragma": [ "no-cache" @@ -1391,7 +1391,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "7899951e-377b-4219-bac4-858478eb085e" + "1276b734-b2b3-4b2a-943d-449127b43c68" ], "X-Content-Type-Options": [ "nosniff" @@ -1403,13 +1403,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14988" ], "x-ms-correlation-request-id": [ - "1dec3a10-7ac4-4ca0-be7f-47338d918d71" + "80f5d035-f9e5-45da-8432-338de2d95e27" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202249Z:1dec3a10-7ac4-4ca0-be7f-47338d918d71" + "WESTUS2:20180205T195231Z:80f5d035-f9e5-45da-8432-338de2d95e27" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1418,19 +1418,19 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/firewallRules/firerule16993?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxNjk5Mz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/firewallRules/firerule13070?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyL2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxMzA3MD9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "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\": \"firerule16993\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.0.0\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "129" + "101" ], "x-ms-client-request-id": [ - "1a38bdc9-fd89-4706-9eee-c1c452b04baa" + "7d861fcd-b2e4-4886-b5c6-0970c7a74f8e" ], "accept-language": [ "en-US" @@ -1440,7 +1440,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.0.0\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/firewallRules/firerule16993\",\r\n \"name\": \"firerule16993\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/firewallRules\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"192.168.0.0\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/firewallRules/firerule13070\",\r\n \"name\": \"firerule13070\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/firewallRules\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1455,7 +1455,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:46 GMT" + "Mon, 05 Feb 2018 19:52:28 GMT" ], "Pragma": [ "no-cache" @@ -1467,7 +1467,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8da326cf-07fd-4032-964f-1240dcb4ed97" + "3f9e6be1-eab2-4b0d-bbd9-92305124ffb5" ], "X-Content-Type-Options": [ "nosniff" @@ -1482,10 +1482,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "b90aebee-c59c-4b06-93c4-1e33208e78dc" + "f6dc94f2-cb77-454a-aefd-04907cd9e9da" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202246Z:b90aebee-c59c-4b06-93c4-1e33208e78dc" + "WESTUS2:20180205T195228Z:f6dc94f2-cb77-454a-aefd-04907cd9e9da" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1494,8 +1494,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/firewallRules/firerule16993?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxNjk5Mz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/firewallRules/firerule13070?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyL2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxMzA3MD9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\"\r\n }\r\n}", "RequestHeaders": { @@ -1506,7 +1506,7 @@ "63" ], "x-ms-client-request-id": [ - "0c52fb0c-b8b6-4fed-bffd-41ec5a178ec6" + "cfb91d2a-fedd-4c1e-9a3f-08df2eb76b87" ], "accept-language": [ "en-US" @@ -1516,7 +1516,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"127.0.0.1\",\r\n \"endIpAddress\": \"192.168.0.1\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/firewallRules/firerule16993\",\r\n \"name\": \"firerule16993\",\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/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/firewallRules/firerule13070\",\r\n \"name\": \"firerule13070\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/firewallRules\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1531,7 +1531,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:46 GMT" + "Mon, 05 Feb 2018 19:52:28 GMT" ], "Pragma": [ "no-cache" @@ -1543,7 +1543,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "87c6123d-c02e-44b7-928a-618bf51803b4" + "355dc5ab-e144-4da7-8a52-8b5168cb60bc" ], "X-Content-Type-Options": [ "nosniff" @@ -1555,13 +1555,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1198" ], "x-ms-correlation-request-id": [ - "9a0be2ef-6571-4e41-8090-06eefa915701" + "4f631689-b5bb-46d2-899c-7f340b1e0abf" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202247Z:9a0be2ef-6571-4e41-8090-06eefa915701" + "WESTUS2:20180205T195229Z:4f631689-b5bb-46d2-899c-7f340b1e0abf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1570,13 +1570,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/firewallRules/firerule16993?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3L2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxNjk5Mz9hcGktdmVyc2lvbj0yMDE2LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/firewallRules/firerule13070?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyL2ZpcmV3YWxsUnVsZXMvZmlyZXJ1bGUxMzA3MD9hcGktdmVyc2lvbj0yMDE2LTExLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0717b27e-c746-4b8d-83bb-bad74ce66ab9" + "5ac2532b-3d3e-4152-88a5-267cbba62b06" ], "accept-language": [ "en-US" @@ -1601,7 +1601,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:48 GMT" + "Mon, 05 Feb 2018 19:52:29 GMT" ], "Pragma": [ "no-cache" @@ -1610,7 +1610,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "09818a50-3e0b-4ad9-b4ac-8bdbd732ee0a" + "f1879b52-0f25-47a5-9e48-e007568e9a78" ], "X-AspNet-Version": [ "4.0.30319" @@ -1619,13 +1619,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1198" ], "x-ms-correlation-request-id": [ - "a398c1f3-ce37-4ef3-8ff9-633dc6c83be3" + "923a839f-68cd-427e-aaa8-1b604b520bf3" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202248Z:a398c1f3-ce37-4ef3-8ff9-633dc6c83be3" + "WESTUS2:20180205T195230Z:923a839f-68cd-427e-aaa8-1b604b520bf3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1634,13 +1634,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/trustedIdProviders/trustedrule13546?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3L3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTEzNTQ2P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/trustedIdProviders/trustedrule16495?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyL3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTE2NDk1P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dbff4376-4350-4b56-be24-db1a566c1717" + "3ce58e06-060a-43c6-9adb-8b633aefd2f6" ], "accept-language": [ "en-US" @@ -1650,7 +1650,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/87530192-c647-42e3-a982-31d05bb1d984\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/trustedIdProviders/trustedrule13546\",\r\n \"name\": \"trustedrule13546\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/db299afa-8122-4f82-87fb-7caf520c37c3\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/trustedIdProviders/trustedrule16495\",\r\n \"name\": \"trustedrule16495\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1665,7 +1665,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:49 GMT" + "Mon, 05 Feb 2018 19:52:31 GMT" ], "Pragma": [ "no-cache" @@ -1677,7 +1677,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "829de9f3-57bf-4a78-b6da-87e0e46a1a63" + "105c4475-ba0c-4b92-b7c3-9b31296dccb7" ], "X-Content-Type-Options": [ "nosniff" @@ -1689,13 +1689,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14995" ], "x-ms-correlation-request-id": [ - "07d3fdaf-fee4-42ac-802a-069d39ee7aa7" + "b80f47e9-6b23-43b9-8912-489530f98eda" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202250Z:07d3fdaf-fee4-42ac-802a-069d39ee7aa7" + "WESTUS2:20180205T195231Z:b80f47e9-6b23-43b9-8912-489530f98eda" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1704,13 +1704,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/trustedIdProviders/trustedrule13546?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3L3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTEzNTQ2P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/trustedIdProviders/trustedrule16495?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyL3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTE2NDk1P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "55c65538-1a21-4728-9e27-df9088512b68" + "87742960-f9c9-4752-a900-1e4a4873a9c5" ], "accept-language": [ "en-US" @@ -1738,7 +1738,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:52 GMT" + "Mon, 05 Feb 2018 19:52:34 GMT" ], "Pragma": [ "no-cache" @@ -1747,7 +1747,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "46940970-40b4-437e-9497-9d3da2cdea2c" + "99e40e84-6dd3-43b8-9fe2-35385558e789" ], "X-Content-Type-Options": [ "nosniff" @@ -1759,13 +1759,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14992" ], "x-ms-correlation-request-id": [ - "018f8a42-1268-4fd3-ba05-05d762c111dc" + "26629633-688c-4631-89e6-d4d64795695f" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202253Z:018f8a42-1268-4fd3-ba05-05d762c111dc" + "WESTUS2:20180205T195234Z:26629633-688c-4631-89e6-d4d64795695f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1774,19 +1774,19 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/trustedIdProviders/trustedrule13546?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3L3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTEzNTQ2P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/trustedIdProviders/trustedrule16495?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyL3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTE2NDk1P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/795bc718-e029-43d2-8ddf-58cbed89bf3e\"\r\n },\r\n \"name\": \"trustedrule13546\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/9f83c642-89d7-4cc2-914f-5e202008eb37\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "141" + "110" ], "x-ms-client-request-id": [ - "c78184d7-6669-403d-85f8-fa2d20d7c3a7" + "ed4438e7-c0c0-4fe7-88c5-1000b914b2cf" ], "accept-language": [ "en-US" @@ -1796,7 +1796,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/795bc718-e029-43d2-8ddf-58cbed89bf3e\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/trustedIdProviders/trustedrule13546\",\r\n \"name\": \"trustedrule13546\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/9f83c642-89d7-4cc2-914f-5e202008eb37\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/trustedIdProviders/trustedrule16495\",\r\n \"name\": \"trustedrule16495\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1811,7 +1811,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:51 GMT" + "Mon, 05 Feb 2018 19:52:32 GMT" ], "Pragma": [ "no-cache" @@ -1823,7 +1823,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c573f09a-f85d-4175-b28a-dcaaa4fb5c98" + "be2cf0ea-b00f-48db-831b-4a3b63d7b289" ], "X-Content-Type-Options": [ "nosniff" @@ -1835,13 +1835,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1198" ], "x-ms-correlation-request-id": [ - "dc0f7412-d01d-4234-8d82-35128565ef50" + "c8d6d68e-91de-4d85-8056-02ee63cdf753" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202251Z:dc0f7412-d01d-4234-8d82-35128565ef50" + "WESTUS2:20180205T195232Z:c8d6d68e-91de-4d85-8056-02ee63cdf753" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1850,10 +1850,10 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/trustedIdProviders/trustedrule13546?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3L3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTEzNTQ2P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/trustedIdProviders/trustedrule16495?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyL3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTE2NDk1P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/87530192-c647-42e3-a982-31d05bb1d984\"\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/db299afa-8122-4f82-87fb-7caf520c37c3\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1862,7 +1862,7 @@ "110" ], "x-ms-client-request-id": [ - "7a05b1f1-da34-4906-85c7-c81c3356451e" + "391d2436-31b2-471a-aa39-ec199b2704ea" ], "accept-language": [ "en-US" @@ -1872,7 +1872,7 @@ "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/87530192-c647-42e3-a982-31d05bb1d984\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/trustedIdProviders/trustedrule13546\",\r\n \"name\": \"trustedrule13546\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"idProvider\": \"https://sts.windows.net/db299afa-8122-4f82-87fb-7caf520c37c3\"\r\n },\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/trustedIdProviders/trustedrule16495\",\r\n \"name\": \"trustedrule16495\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts/trustedIdProviders\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -1887,7 +1887,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:51 GMT" + "Mon, 05 Feb 2018 19:52:33 GMT" ], "Pragma": [ "no-cache" @@ -1899,7 +1899,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e092e645-dcc8-46b8-aa11-890b6220da14" + "4f9a054b-572f-49fa-b651-a7ca789609e6" ], "X-Content-Type-Options": [ "nosniff" @@ -1911,13 +1911,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1199" ], "x-ms-correlation-request-id": [ - "2ada42a7-4b22-4088-a079-a85521b3dc84" + "396223ea-59ae-49b0-aea2-01c7db52d3da" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202251Z:2ada42a7-4b22-4088-a079-a85521b3dc84" + "WESTUS2:20180205T195233Z:396223ea-59ae-49b0-aea2-01c7db52d3da" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1926,13 +1926,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12902/providers/Microsoft.DataLakeStore/accounts/adlsacct9607/trustedIdProviders/trustedrule13546?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjkwMi9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q5NjA3L3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTEzNTQ2P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16837/providers/Microsoft.DataLakeStore/accounts/adlsacct8382/trustedIdProviders/trustedrule16495?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjgzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvYWRsc2FjY3Q4MzgyL3RydXN0ZWRJZFByb3ZpZGVycy90cnVzdGVkcnVsZTE2NDk1P2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "67ef957c-1531-45ab-a09e-b50f48970909" + "2e5aa26d-163d-4382-8a5d-bb813dd55c25" ], "accept-language": [ "en-US" @@ -1957,7 +1957,7 @@ "close" ], "Date": [ - "Fri, 22 Dec 2017 20:22:52 GMT" + "Mon, 05 Feb 2018 19:52:33 GMT" ], "Pragma": [ "no-cache" @@ -1966,7 +1966,7 @@ "Microsoft-IIS/8.5" ], "x-ms-request-id": [ - "ac7efcd8-67dc-486f-b8ac-62203550f3bd" + "d1f15d08-a72d-4443-98a7-f648dbeb43d6" ], "X-AspNet-Version": [ "4.0.30319" @@ -1975,13 +1975,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1198" ], "x-ms-correlation-request-id": [ - "73e3e4f5-f582-4b20-9c60-c25c00d6081d" + "f6b7767a-0a59-44ed-84e2-40f5b77d73ac" ], "x-ms-routing-request-id": [ - "WESTUS2:20171222T202253Z:73e3e4f5-f582-4b20-9c60-c25c00d6081d" + "WESTUS2:20180205T195234Z:f6b7767a-0a59-44ed-84e2-40f5b77d73ac" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1992,16 +1992,16 @@ ], "Names": { ".ctor": [ - "datalakerg12902", - "testdatalake17536", - "testadlfs14850" + "datalakerg16837", + "testdatalake13688", + "testadlfs13980" ], - "FirewallAndTrustedProviderTest": [ - "adlsacct9607", - "firerule16993", - "87530192-c647-42e3-a982-31d05bb1d984", - "trustedrule13546", - "795bc718-e029-43d2-8ddf-58cbed89bf3e" + "FirewallAndTrustedProviderCRUDTest": [ + "adlsacct8382", + "firerule13070", + "db299afa-8122-4f82-87fb-7caf520c37c3", + "trustedrule16495", + "9f83c642-89d7-4cc2-914f-5e202008eb37" ] }, "Variables": { diff --git a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemGetAcl.json b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemGetAcl.json index 818db489cadf..b9b3af11f344 100644 --- a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemGetAcl.json +++ b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemGetAcl.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7ebe82ca-a9cf-47cf-bf8a-132d41866015" + "bc41efe4-0879-4fbd-8715-c201b556e7ae" ], "accept-language": [ "en-US" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:52:30 GMT" + "Mon, 05 Feb 2018 20:34:25 GMT" ], "Pragma": [ "no-cache" @@ -41,16 +41,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1198" ], "x-ms-request-id": [ - "8bc21858-8a8c-4789-8e4e-29d58cffe236" + "0d1fb5d8-9c15-4821-83c6-e8f2b0b2cd51" ], "x-ms-correlation-request-id": [ - "8bc21858-8a8c-4789-8e4e-29d58cffe236" + "0d1fb5d8-9c15-4821-83c6-e8f2b0b2cd51" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225231Z:8bc21858-8a8c-4789-8e4e-29d58cffe236" + "WESTUS2:20180205T203425Z:0d1fb5d8-9c15-4821-83c6-e8f2b0b2cd51" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,7 +65,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b1d7e4f3-d0af-4ad3-a504-218d25e785c0" + "8d06c574-dc72-4b64-847b-952729145df0" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:52:30 GMT" + "Mon, 05 Feb 2018 20:34:25 GMT" ], "Pragma": [ "no-cache" @@ -96,16 +96,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14997" ], "x-ms-request-id": [ - "4ed6193f-bdef-4331-a533-a52b13282d28" + "6f811695-47ee-4d28-8d57-97ab329dd890" ], "x-ms-correlation-request-id": [ - "4ed6193f-bdef-4331-a533-a52b13282d28" + "6f811695-47ee-4d28-8d57-97ab329dd890" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225231Z:4ed6193f-bdef-4331-a533-a52b13282d28" + "WESTUS2:20180205T203425Z:6f811695-47ee-4d28-8d57-97ab329dd890" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -120,7 +120,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "67f99a93-658a-4293-ab93-1ea392297896" + "56d27e26-1e45-48cf-a9b8-43d18d30cc31" ], "accept-language": [ "en-US" @@ -130,7 +130,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n {\r\n \"applicationId\": \"e406a681-f3d4-42a8-90b6-c2b029497af1\"\r\n }\r\n ],\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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\": \"locations/asyncoperations\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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" @@ -142,7 +142,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:52:32 GMT" + "Mon, 05 Feb 2018 20:34:26 GMT" ], "Pragma": [ "no-cache" @@ -154,16 +154,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1197" ], "x-ms-request-id": [ - "7d50bcf6-3557-4aac-b0eb-c60bd25c2ba1" + "d1a05072-19cd-4600-bcd6-960b8a0255e3" ], "x-ms-correlation-request-id": [ - "7d50bcf6-3557-4aac-b0eb-c60bd25c2ba1" + "d1a05072-19cd-4600-bcd6-960b8a0255e3" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225232Z:7d50bcf6-3557-4aac-b0eb-c60bd25c2ba1" + "WESTUS2:20180205T203426Z:d1a05072-19cd-4600-bcd6-960b8a0255e3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -178,7 +178,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b185ff8d-5ba2-45a1-b773-dda2479fe100" + "3205adc4-f6b2-45cf-be03-58cd0fc39b34" ], "accept-language": [ "en-US" @@ -188,7 +188,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n {\r\n \"applicationId\": \"e406a681-f3d4-42a8-90b6-c2b029497af1\"\r\n }\r\n ],\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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\": \"locations/asyncoperations\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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" @@ -200,7 +200,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:52:32 GMT" + "Mon, 05 Feb 2018 20:34:26 GMT" ], "Pragma": [ "no-cache" @@ -209,16 +209,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "14992" ], "x-ms-request-id": [ - "c894bab9-a526-49a6-aec1-ffe3b7fb6b05" + "f0aac0b8-eb5a-4f69-b107-d00e0e6f71c6" ], "x-ms-correlation-request-id": [ - "c894bab9-a526-49a6-aec1-ffe3b7fb6b05" + "f0aac0b8-eb5a-4f69-b107-d00e0e6f71c6" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225232Z:c894bab9-a526-49a6-aec1-ffe3b7fb6b05" + "WESTUS2:20180205T203426Z:f0aac0b8-eb5a-4f69-b107-d00e0e6f71c6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -227,13 +227,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12096?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjA5Nj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12055?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjA1NT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8a609db4-6ddb-48c4-bec9-ab2179bfd259" + "467746f8-1b16-4516-b843-1d3f0c5fdb38" ], "accept-language": [ "en-US" @@ -243,7 +243,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg12096' could not be found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg12055' could not be found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "107" @@ -258,7 +258,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:52:32 GMT" + "Mon, 05 Feb 2018 20:34:26 GMT" ], "Pragma": [ "no-cache" @@ -267,16 +267,16 @@ "gateway" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "14991" ], "x-ms-request-id": [ - "6ca25777-dc37-4e94-99cc-abdc0b96ee95" + "1a3a4e07-3e19-48c2-90c9-442cd4757270" ], "x-ms-correlation-request-id": [ - "6ca25777-dc37-4e94-99cc-abdc0b96ee95" + "1a3a4e07-3e19-48c2-90c9-442cd4757270" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225232Z:6ca25777-dc37-4e94-99cc-abdc0b96ee95" + "WESTUS2:20180205T203426Z:1a3a4e07-3e19-48c2-90c9-442cd4757270" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -285,13 +285,13 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12096?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjA5Nj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12055?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjA1NT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c592ae4d-6478-4cb7-acf5-0c04b458d5c8" + "5e52e0f7-8a3c-4a63-be99-ad105de25279" ], "accept-language": [ "en-US" @@ -301,7 +301,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12096\",\r\n \"name\": \"datalakerg12096\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12055\",\r\n \"name\": \"datalakerg12055\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -313,7 +313,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:52:33 GMT" + "Mon, 05 Feb 2018 20:34:27 GMT" ], "Pragma": [ "no-cache" @@ -322,16 +322,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" + "14990" ], "x-ms-request-id": [ - "4f1977cc-cb13-4fc2-8a14-826eced3cc7f" + "04448b1b-f526-415f-bc57-99b5be92f7ae" ], "x-ms-correlation-request-id": [ - "4f1977cc-cb13-4fc2-8a14-826eced3cc7f" + "04448b1b-f526-415f-bc57-99b5be92f7ae" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225233Z:4f1977cc-cb13-4fc2-8a14-826eced3cc7f" + "WESTUS2:20180205T203428Z:04448b1b-f526-415f-bc57-99b5be92f7ae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -340,8 +340,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12096?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjA5Nj9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12055?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjA1NT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -352,7 +352,7 @@ "31" ], "x-ms-client-request-id": [ - "134019bc-92e3-4aa8-8415-9430444af989" + "088fadf8-3a0c-46b9-a2de-5b7f11de0916" ], "accept-language": [ "en-US" @@ -362,7 +362,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12096\",\r\n \"name\": \"datalakerg12096\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12055\",\r\n \"name\": \"datalakerg12055\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "184" @@ -377,22 +377,22 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:52:33 GMT" + "Mon, 05 Feb 2018 20:34:27 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1195" ], "x-ms-request-id": [ - "62993b72-7ac0-4212-a264-7ca16ddc52ad" + "ebc81d54-63b5-4c3f-9df4-ecb82c0754ed" ], "x-ms-correlation-request-id": [ - "62993b72-7ac0-4212-a264-7ca16ddc52ad" + "ebc81d54-63b5-4c3f-9df4-ecb82c0754ed" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225233Z:62993b72-7ac0-4212-a264-7ca16ddc52ad" + "WESTUS2:20180205T203428Z:ebc81d54-63b5-4c3f-9df4-ecb82c0754ed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -401,23 +401,23 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12096/providers/Microsoft.DataLakeStore/accounts/testadlfs11846?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjA5Ni9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE4NDY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12055/providers/Microsoft.DataLakeStore/accounts/testadlfs11589?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjA1NS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE1ODk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "fc1b7e0b-0073-49a1-9673-2578996ff05d" + "c70050aa-75b4-4e22-8412-4b9ad911c4ce" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs11846' under resource group 'datalakerg12096' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs11589' under resource group 'datalakerg12055' was not found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "166" @@ -432,7 +432,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:52:33 GMT" + "Mon, 05 Feb 2018 20:34:28 GMT" ], "Pragma": [ "no-cache" @@ -441,13 +441,13 @@ "gateway" ], "x-ms-request-id": [ - "2f37f669-c43f-4170-a107-b3c65b6c81d0" + "0b53130a-b495-4310-b288-d4c8279e37a9" ], "x-ms-correlation-request-id": [ - "2f37f669-c43f-4170-a107-b3c65b6c81d0" + "0b53130a-b495-4310-b288-d4c8279e37a9" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225234Z:2f37f669-c43f-4170-a107-b3c65b6c81d0" + "WESTUS2:20180205T203428Z:0b53130a-b495-4310-b288-d4c8279e37a9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -456,17 +456,17 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12096/providers/Microsoft.DataLakeStore/accounts/testadlfs11846?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjA5Ni9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE4NDY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12055/providers/Microsoft.DataLakeStore/accounts/testadlfs11589?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjA1NS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE1ODk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "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\": \"testadlfs11846.azuredatalakestore.net\",\r\n \"accountId\": \"170495b4-cea1-489b-8caa-7d32eae29c6a\",\r\n \"creationTime\": \"2017-07-24T22:52:37.4822029Z\",\r\n \"lastModifiedTime\": \"2017-07-24T22:52:37.4822029Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12096/providers/Microsoft.DataLakeStore/accounts/testadlfs11846\",\r\n \"name\": \"testadlfs11846\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs11589.azuredatalakestore.net\",\r\n \"accountId\": \"bc972611-bb6c-49e4-ba9c-24bec74176f9\",\r\n \"creationTime\": \"2018-02-05T20:34:32.9723968Z\",\r\n \"lastModifiedTime\": \"2018-02-05T20:34:32.9723968Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12055/providers/Microsoft.DataLakeStore/accounts/testadlfs11589\",\r\n \"name\": \"testadlfs11589\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -481,7 +481,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:53:07 GMT" + "Mon, 05 Feb 2018 20:35:02 GMT" ], "Pragma": [ "no-cache" @@ -493,7 +493,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "fc54c710-f8b1-4664-a0b6-826faf856265" + "6a279b94-357b-46d8-9b5d-321c8fbb47de" ], "X-Content-Type-Options": [ "nosniff" @@ -505,13 +505,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14894" + "14987" ], "x-ms-correlation-request-id": [ - "9d194ddc-938a-491f-9eb9-3c8de1772126" + "e40d01b5-4136-4055-a853-b4686d1531bf" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225307Z:9d194ddc-938a-491f-9eb9-3c8de1772126" + "WESTUS2:20180205T203503Z:e40d01b5-4136-4055-a853-b4686d1531bf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -520,23 +520,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12096/providers/Microsoft.DataLakeStore/accounts/testadlfs11846?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjA5Ni9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE4NDY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12055/providers/Microsoft.DataLakeStore/accounts/testadlfs11589?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjA1NS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE1ODk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cb1681b0-b825-4e19-88a1-c5f4c4d6d879" + "d394c1f2-1398-445a-92b9-4484de50feed" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "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\": \"testadlfs11846.azuredatalakestore.net\",\r\n \"accountId\": \"170495b4-cea1-489b-8caa-7d32eae29c6a\",\r\n \"creationTime\": \"2017-07-24T22:52:37.4822029Z\",\r\n \"lastModifiedTime\": \"2017-07-24T22:52:37.4822029Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12096/providers/Microsoft.DataLakeStore/accounts/testadlfs11846\",\r\n \"name\": \"testadlfs11846\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs11589.azuredatalakestore.net\",\r\n \"accountId\": \"bc972611-bb6c-49e4-ba9c-24bec74176f9\",\r\n \"creationTime\": \"2018-02-05T20:34:32.9723968Z\",\r\n \"lastModifiedTime\": \"2018-02-05T20:34:32.9723968Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12055/providers/Microsoft.DataLakeStore/accounts/testadlfs11589\",\r\n \"name\": \"testadlfs11589\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -551,7 +551,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:53:08 GMT" + "Mon, 05 Feb 2018 20:35:03 GMT" ], "Pragma": [ "no-cache" @@ -563,7 +563,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "fccf932a-2fc0-4029-b906-a717f5295c47" + "c0825e58-c593-4091-a759-925dae7d33c9" ], "X-Content-Type-Options": [ "nosniff" @@ -575,13 +575,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14987" ], "x-ms-correlation-request-id": [ - "8494efa4-39a9-4e34-9978-e38f2f8c5031" + "c2d75c14-883a-4722-8c92-5257a59f2688" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225308Z:8494efa4-39a9-4e34-9978-e38f2f8c5031" + "WESTUS2:20180205T203503Z:c2d75c14-883a-4722-8c92-5257a59f2688" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -590,8 +590,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12096/providers/Microsoft.DataLakeStore/accounts/testadlfs11846?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjA5Ni9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE4NDY/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12055/providers/Microsoft.DataLakeStore/accounts/testadlfs11589?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjA1NS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE1ODk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -602,20 +602,20 @@ "31" ], "x-ms-client-request-id": [ - "aff678ca-0dcd-4011-a0af-8f43bb0206b2" + "2ad1511e-46de-4ba3-af60-8271d15114ac" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"170495b4-cea1-489b-8caa-7d32eae29c6a\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12096/providers/Microsoft.DataLakeStore/accounts/testadlfs11846\",\r\n \"name\": \"testadlfs11846\",\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\": \"bc972611-bb6c-49e4-ba9c-24bec74176f9\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12055/providers/Microsoft.DataLakeStore/accounts/testadlfs11589\",\r\n \"name\": \"testadlfs11589\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "420" + "364" ], "Content-Type": [ "application/json" @@ -630,13 +630,13 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:52:35 GMT" + "Mon, 05 Feb 2018 20:34:30 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12096/providers/Microsoft.DataLakeStore/accounts/testadlfs11846/operationresults/0?api-version=2016-11-01" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12055/providers/Microsoft.DataLakeStore/accounts/testadlfs11589/operationresults/0?api-version=2016-11-01" ], "Retry-After": [ "10" @@ -645,10 +645,10 @@ "Microsoft-IIS/8.5" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/170495b4-cea1-489b-8caa-7d32eae29c6a0?api-version=2016-11-01&expanded=true" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/bc972611-bb6c-49e4-ba9c-24bec74176f90?api-version=2016-11-01&expanded=true" ], "x-ms-request-id": [ - "4b261fba-1648-4c3d-a7f5-e92175a68112" + "6ee7ee76-225d-4ac4-bc84-0ecc001cd361" ], "X-Content-Type-Options": [ "nosniff" @@ -660,13 +660,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1199" ], "x-ms-correlation-request-id": [ - "0a94cc7d-6297-4cfa-a234-6aa260446062" + "aa852dad-87ba-44c5-995e-15a6a259e97a" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225236Z:0a94cc7d-6297-4cfa-a234-6aa260446062" + "WESTUS2:20180205T203430Z:aa852dad-87ba-44c5-995e-15a6a259e97a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -675,14 +675,142 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/170495b4-cea1-489b-8caa-7d32eae29c6a0?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzE3MDQ5NWI0LWNlYTEtNDg5Yi04Y2FhLTdkMzJlYWUyOWM2YTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/bc972611-bb6c-49e4-ba9c-24bec74176f90?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2JjOTcyNjExLWJiNmMtNDllNC1iYTljLTI0YmVjNzQxNzZmOTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Mon, 05 Feb 2018 20:34:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a88db7df-02ca-49db-8c77-9b1046619a7b" + ], + "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": [ + "6bb04e9c-5470-4f4b-adcd-1640f817ef70" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180205T203441Z:6bb04e9c-5470-4f4b-adcd-1640f817ef70" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/bc972611-bb6c-49e4-ba9c-24bec74176f90?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2JjOTcyNjExLWJiNmMtNDllNC1iYTljLTI0YmVjNzQxNzZmOTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Mon, 05 Feb 2018 20:34:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4c3969bf-e606-409b-8b78-09f656cdea27" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "5e37c173-adb4-4df3-9c30-4fc9b637988a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180205T203451Z:5e37c173-adb4-4df3-9c30-4fc9b637988a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/bc972611-bb6c-49e4-ba9c-24bec74176f90?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2JjOTcyNjExLWJiNmMtNDllNC1iYTljLTI0YmVjNzQxNzZmOTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", @@ -700,7 +828,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:53:06 GMT" + "Mon, 05 Feb 2018 20:35:02 GMT" ], "Pragma": [ "no-cache" @@ -712,7 +840,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ea864baf-4068-4989-8b6c-53bdbe685203" + "97ab6ca3-79ac-4f6f-ad86-26126d60a44b" ], "X-Content-Type-Options": [ "nosniff" @@ -724,13 +852,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14996" ], "x-ms-correlation-request-id": [ - "fead7536-f89d-4dc0-bbea-e2e8ea0adae4" + "1cf126e7-7c89-4827-9c76-29cd253485f8" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225307Z:fead7536-f89d-4dc0-bbea-e2e8ea0adae4" + "WESTUS2:20180205T203502Z:1cf126e7-7c89-4827-9c76-29cd253485f8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -745,14 +873,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "460a2130-2240-488c-ae34-052d11a6f758" + "d0ca49e8-c6c2-4626-956d-bc8b27138b58" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"AclStatus\": {\r\n \"entries\": [\r\n \"group::rwx\"\r\n ],\r\n \"owner\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"group\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"permission\": \"770\",\r\n \"stickyBit\": false\r\n }\r\n}", @@ -770,16 +898,16 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:53:11 GMT" + "Mon, 05 Feb 2018 20:35:11 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "ff4e966c-4815-40c5-a036-13f7a88f6d97" + "2b1880d2-9e9e-46a1-bf04-350e1cd8f82f" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -796,9 +924,9 @@ ], "Names": { ".ctor": [ - "datalakerg12096", - "testdatalake14282", - "testadlfs11846" + "datalakerg12055", + "testdatalake13947", + "testadlfs11589" ] }, "Variables": { diff --git a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemGetAndSetAcl.json b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemGetAndSetAcl.json index 2f1c3cfc7b83..3f67c884cb73 100644 --- a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemGetAndSetAcl.json +++ b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemGetAndSetAcl.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3c0555d1-3632-4e2e-b7f5-6157656ccd3a" + "337d90fd-3e9d-430e-ba95-09ae3988d71e" ], "accept-language": [ "en-US" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:53:35 GMT" + "Mon, 05 Feb 2018 20:32:20 GMT" ], "Pragma": [ "no-cache" @@ -41,16 +41,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1197" ], "x-ms-request-id": [ - "c627a3ed-5668-4484-b277-b1fc3affe10d" + "e16e15c3-218c-41c6-b5f7-cb3ca9cdfe3a" ], "x-ms-correlation-request-id": [ - "c627a3ed-5668-4484-b277-b1fc3affe10d" + "e16e15c3-218c-41c6-b5f7-cb3ca9cdfe3a" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225335Z:c627a3ed-5668-4484-b277-b1fc3affe10d" + "WESTUS2:20180205T203221Z:e16e15c3-218c-41c6-b5f7-cb3ca9cdfe3a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,7 +65,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "77171b35-550d-4b08-87bc-2b460c0f7ff6" + "6ad3e033-05a8-474c-8d2f-7415ada0d50c" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:53:35 GMT" + "Mon, 05 Feb 2018 20:32:20 GMT" ], "Pragma": [ "no-cache" @@ -96,16 +96,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "14995" ], "x-ms-request-id": [ - "1cd2b4f8-a3ae-44ec-a599-9d8e8b70d871" + "ef12926b-aaac-4811-b5c7-bc48cba2bde3" ], "x-ms-correlation-request-id": [ - "1cd2b4f8-a3ae-44ec-a599-9d8e8b70d871" + "ef12926b-aaac-4811-b5c7-bc48cba2bde3" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225336Z:1cd2b4f8-a3ae-44ec-a599-9d8e8b70d871" + "WESTUS2:20180205T203221Z:ef12926b-aaac-4811-b5c7-bc48cba2bde3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -120,7 +120,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ea47eef6-fb12-4589-9342-9dc9c2d97d53" + "6a933512-1866-4e57-86ec-73bafa139729" ], "accept-language": [ "en-US" @@ -130,7 +130,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n {\r\n \"applicationId\": \"e406a681-f3d4-42a8-90b6-c2b029497af1\"\r\n }\r\n ],\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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\": \"locations/asyncoperations\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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" @@ -142,7 +142,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:53:36 GMT" + "Mon, 05 Feb 2018 20:32:21 GMT" ], "Pragma": [ "no-cache" @@ -154,16 +154,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1196" ], "x-ms-request-id": [ - "357e8208-d0f8-4811-9d8f-8c10153fb657" + "f5beca05-9cc2-4a12-8049-00dae0827794" ], "x-ms-correlation-request-id": [ - "357e8208-d0f8-4811-9d8f-8c10153fb657" + "f5beca05-9cc2-4a12-8049-00dae0827794" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225337Z:357e8208-d0f8-4811-9d8f-8c10153fb657" + "WESTUS2:20180205T203222Z:f5beca05-9cc2-4a12-8049-00dae0827794" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -178,7 +178,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cfe13613-85ce-4cc5-84c2-ec4f1b97863d" + "9c0da723-a45d-4360-8a61-6aa954977a08" ], "accept-language": [ "en-US" @@ -188,7 +188,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n {\r\n \"applicationId\": \"e406a681-f3d4-42a8-90b6-c2b029497af1\"\r\n }\r\n ],\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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\": \"locations/asyncoperations\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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" @@ -200,7 +200,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:53:37 GMT" + "Mon, 05 Feb 2018 20:32:21 GMT" ], "Pragma": [ "no-cache" @@ -209,16 +209,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "14994" ], "x-ms-request-id": [ - "acf419fe-b5b2-4c4b-a394-c25500ee309b" + "bf20b1ef-78d0-480b-93de-3d883e70d602" ], "x-ms-correlation-request-id": [ - "acf419fe-b5b2-4c4b-a394-c25500ee309b" + "bf20b1ef-78d0-480b-93de-3d883e70d602" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225337Z:acf419fe-b5b2-4c4b-a394-c25500ee309b" + "WESTUS2:20180205T203222Z:bf20b1ef-78d0-480b-93de-3d883e70d602" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -227,13 +227,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg11347?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMTM0Nz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg15683?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNTY4Mz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5d052bd0-6ba6-471f-8023-d61a923fb550" + "f58b1032-9ce1-47e4-904a-5020729c9a91" ], "accept-language": [ "en-US" @@ -243,7 +243,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg11347' could not be found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg15683' could not be found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "107" @@ -258,7 +258,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:53:37 GMT" + "Mon, 05 Feb 2018 20:32:21 GMT" ], "Pragma": [ "no-cache" @@ -267,16 +267,16 @@ "gateway" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" + "14993" ], "x-ms-request-id": [ - "7fba38ee-44a3-4085-9e10-24557a9049b1" + "597514f9-7953-4e22-b80b-f788244cbe6e" ], "x-ms-correlation-request-id": [ - "7fba38ee-44a3-4085-9e10-24557a9049b1" + "597514f9-7953-4e22-b80b-f788244cbe6e" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225337Z:7fba38ee-44a3-4085-9e10-24557a9049b1" + "WESTUS2:20180205T203222Z:597514f9-7953-4e22-b80b-f788244cbe6e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -285,13 +285,13 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg11347?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMTM0Nz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg15683?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNTY4Mz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e14926b6-a0c9-416e-a83d-d9d0a0e6e3e0" + "ad14dadd-54e7-4d2c-862c-c627a3180a01" ], "accept-language": [ "en-US" @@ -301,7 +301,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg11347\",\r\n \"name\": \"datalakerg11347\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg15683\",\r\n \"name\": \"datalakerg15683\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -313,7 +313,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:53:38 GMT" + "Mon, 05 Feb 2018 20:32:22 GMT" ], "Pragma": [ "no-cache" @@ -322,16 +322,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" + "14992" ], "x-ms-request-id": [ - "e722a418-91da-4e98-a760-4be1218b5594" + "ec8f7b3a-1284-4acd-8441-db3ee7eeab34" ], "x-ms-correlation-request-id": [ - "e722a418-91da-4e98-a760-4be1218b5594" + "ec8f7b3a-1284-4acd-8441-db3ee7eeab34" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225338Z:e722a418-91da-4e98-a760-4be1218b5594" + "WESTUS2:20180205T203223Z:ec8f7b3a-1284-4acd-8441-db3ee7eeab34" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -340,8 +340,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg11347?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMTM0Nz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg15683?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNTY4Mz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -352,7 +352,7 @@ "31" ], "x-ms-client-request-id": [ - "7f019a6e-1483-40a6-928b-abc758f48d63" + "bf9a0bd7-ee6c-4eaa-a9be-ea74aaa07b37" ], "accept-language": [ "en-US" @@ -362,7 +362,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg11347\",\r\n \"name\": \"datalakerg11347\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg15683\",\r\n \"name\": \"datalakerg15683\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "184" @@ -377,22 +377,22 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:53:38 GMT" + "Mon, 05 Feb 2018 20:32:22 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1195" ], "x-ms-request-id": [ - "639bc36a-1b4a-476b-b7fd-5d9bf1a23098" + "f19e6d2a-e8cc-468b-9ed6-a1ced5ad289e" ], "x-ms-correlation-request-id": [ - "639bc36a-1b4a-476b-b7fd-5d9bf1a23098" + "f19e6d2a-e8cc-468b-9ed6-a1ced5ad289e" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225338Z:639bc36a-1b4a-476b-b7fd-5d9bf1a23098" + "WESTUS2:20180205T203223Z:f19e6d2a-e8cc-468b-9ed6-a1ced5ad289e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -401,23 +401,23 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg11347/providers/Microsoft.DataLakeStore/accounts/testadlfs12337?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMTM0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTIzMzc/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg15683/providers/Microsoft.DataLakeStore/accounts/testadlfs12718?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNTY4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTI3MTg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ccbda714-0270-4def-bfa6-61a8fc6b0c24" + "2bbf2303-31aa-4bff-a812-d700315872c7" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs12337' under resource group 'datalakerg11347' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs12718' under resource group 'datalakerg15683' was not found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "166" @@ -432,7 +432,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:53:38 GMT" + "Mon, 05 Feb 2018 20:32:22 GMT" ], "Pragma": [ "no-cache" @@ -441,13 +441,13 @@ "gateway" ], "x-ms-request-id": [ - "2bc594f5-260c-48d4-bb1c-32810dd9bc96" + "6a523236-a707-47fb-9ff8-933a307ef2ea" ], "x-ms-correlation-request-id": [ - "2bc594f5-260c-48d4-bb1c-32810dd9bc96" + "6a523236-a707-47fb-9ff8-933a307ef2ea" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225339Z:2bc594f5-260c-48d4-bb1c-32810dd9bc96" + "WESTUS2:20180205T203223Z:6a523236-a707-47fb-9ff8-933a307ef2ea" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -456,17 +456,17 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg11347/providers/Microsoft.DataLakeStore/accounts/testadlfs12337?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMTM0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTIzMzc/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg15683/providers/Microsoft.DataLakeStore/accounts/testadlfs12718?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNTY4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTI3MTg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "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\": \"testadlfs12337.azuredatalakestore.net\",\r\n \"accountId\": \"4944ad1c-c97e-43c7-bc34-26557e1ac9ad\",\r\n \"creationTime\": \"2017-07-24T22:53:41.6916495Z\",\r\n \"lastModifiedTime\": \"2017-07-24T22:53:41.6916495Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg11347/providers/Microsoft.DataLakeStore/accounts/testadlfs12337\",\r\n \"name\": \"testadlfs12337\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs12718.azuredatalakestore.net\",\r\n \"accountId\": \"84636913-2af9-4e8f-b7dc-e039e55786a2\",\r\n \"creationTime\": \"2018-02-05T20:32:24.9663505Z\",\r\n \"lastModifiedTime\": \"2018-02-05T20:32:24.9663505Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg15683/providers/Microsoft.DataLakeStore/accounts/testadlfs12718\",\r\n \"name\": \"testadlfs12718\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -481,7 +481,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:54:12 GMT" + "Mon, 05 Feb 2018 20:32:58 GMT" ], "Pragma": [ "no-cache" @@ -493,7 +493,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a235a624-ee47-423f-a21b-a191adab9d34" + "292455f9-efbd-4c05-8013-fedf23b095eb" ], "X-Content-Type-Options": [ "nosniff" @@ -505,13 +505,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14990" ], "x-ms-correlation-request-id": [ - "76c8771c-4cee-411f-916a-775833bd0577" + "98ae0326-7259-4c6a-90bc-332ab7461277" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225413Z:76c8771c-4cee-411f-916a-775833bd0577" + "WESTUS2:20180205T203258Z:98ae0326-7259-4c6a-90bc-332ab7461277" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -520,23 +520,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg11347/providers/Microsoft.DataLakeStore/accounts/testadlfs12337?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMTM0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTIzMzc/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg15683/providers/Microsoft.DataLakeStore/accounts/testadlfs12718?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNTY4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTI3MTg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "19ee91f3-045f-4f94-bdd7-b805f222a220" + "4430f721-3d6f-4281-9c51-1a84245ca64a" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "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\": \"testadlfs12337.azuredatalakestore.net\",\r\n \"accountId\": \"4944ad1c-c97e-43c7-bc34-26557e1ac9ad\",\r\n \"creationTime\": \"2017-07-24T22:53:41.6916495Z\",\r\n \"lastModifiedTime\": \"2017-07-24T22:53:41.6916495Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg11347/providers/Microsoft.DataLakeStore/accounts/testadlfs12337\",\r\n \"name\": \"testadlfs12337\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs12718.azuredatalakestore.net\",\r\n \"accountId\": \"84636913-2af9-4e8f-b7dc-e039e55786a2\",\r\n \"creationTime\": \"2018-02-05T20:32:24.9663505Z\",\r\n \"lastModifiedTime\": \"2018-02-05T20:32:24.9663505Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg15683/providers/Microsoft.DataLakeStore/accounts/testadlfs12718\",\r\n \"name\": \"testadlfs12718\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -551,7 +551,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:54:13 GMT" + "Mon, 05 Feb 2018 20:32:57 GMT" ], "Pragma": [ "no-cache" @@ -563,7 +563,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7ea047a3-e723-4737-b008-6bd06b5a9ab9" + "4d607d75-2a2e-4d1e-8e5a-bb949b657f34" ], "X-Content-Type-Options": [ "nosniff" @@ -575,13 +575,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "14995" ], "x-ms-correlation-request-id": [ - "d006fd12-e9ee-4813-8a44-b2deb4a62105" + "3066a69e-2a20-40a4-ac55-76fdcde37efe" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225413Z:d006fd12-e9ee-4813-8a44-b2deb4a62105" + "WESTUS2:20180205T203258Z:3066a69e-2a20-40a4-ac55-76fdcde37efe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -590,8 +590,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg11347/providers/Microsoft.DataLakeStore/accounts/testadlfs12337?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMTM0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTIzMzc/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg15683/providers/Microsoft.DataLakeStore/accounts/testadlfs12718?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNTY4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTI3MTg/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -602,20 +602,20 @@ "31" ], "x-ms-client-request-id": [ - "b34e3bf4-6615-4d6e-9901-7dec8d0c7284" + "5296b80f-d981-4191-a4d5-417e4f2f7104" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"4944ad1c-c97e-43c7-bc34-26557e1ac9ad\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg11347/providers/Microsoft.DataLakeStore/accounts/testadlfs12337\",\r\n \"name\": \"testadlfs12337\",\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\": \"84636913-2af9-4e8f-b7dc-e039e55786a2\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg15683/providers/Microsoft.DataLakeStore/accounts/testadlfs12718\",\r\n \"name\": \"testadlfs12718\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "420" + "364" ], "Content-Type": [ "application/json" @@ -630,13 +630,13 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:53:40 GMT" + "Mon, 05 Feb 2018 20:32:24 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg11347/providers/Microsoft.DataLakeStore/accounts/testadlfs12337/operationresults/0?api-version=2016-11-01" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg15683/providers/Microsoft.DataLakeStore/accounts/testadlfs12718/operationresults/0?api-version=2016-11-01" ], "Retry-After": [ "10" @@ -645,10 +645,10 @@ "Microsoft-IIS/8.5" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/4944ad1c-c97e-43c7-bc34-26557e1ac9ad0?api-version=2016-11-01&expanded=true" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/84636913-2af9-4e8f-b7dc-e039e55786a20?api-version=2016-11-01&expanded=true" ], "x-ms-request-id": [ - "7ea408f9-52a2-4fe1-8b14-fa3820791cd9" + "eec85512-350f-4ef3-8cf2-4ed98383b18a" ], "X-Content-Type-Options": [ "nosniff" @@ -660,13 +660,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1198" ], "x-ms-correlation-request-id": [ - "48ea40fc-eadd-4dfe-8bac-2fff6bc6e376" + "597ed8c9-b5b8-4663-8840-673a82eb6a56" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225341Z:48ea40fc-eadd-4dfe-8bac-2fff6bc6e376" + "WESTUS2:20180205T203225Z:597ed8c9-b5b8-4663-8840-673a82eb6a56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -675,14 +675,142 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/4944ad1c-c97e-43c7-bc34-26557e1ac9ad0?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzQ5NDRhZDFjLWM5N2UtNDNjNy1iYzM0LTI2NTU3ZTFhYzlhZDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/84636913-2af9-4e8f-b7dc-e039e55786a20?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzg0NjM2OTEzLTJhZjktNGU4Zi1iN2RjLWUwMzllNTU3ODZhMjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Mon, 05 Feb 2018 20:32:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "004567a5-53d7-4ea0-84bb-0a3d02ec6199" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "a9de6449-37f7-438e-a8fd-936620458ae1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180205T203236Z:a9de6449-37f7-438e-a8fd-936620458ae1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/84636913-2af9-4e8f-b7dc-e039e55786a20?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzg0NjM2OTEzLTJhZjktNGU4Zi1iN2RjLWUwMzllNTU3ODZhMjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Mon, 05 Feb 2018 20:32:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1b8f75c8-bc13-4ce9-9bbf-dbbe3e8f38bf" + ], + "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": [ + "7706a1e5-52aa-4efa-950c-2c237dd925cb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180205T203246Z:7706a1e5-52aa-4efa-950c-2c237dd925cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/84636913-2af9-4e8f-b7dc-e039e55786a20?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzg0NjM2OTEzLTJhZjktNGU4Zi1iN2RjLWUwMzllNTU3ODZhMjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", @@ -700,7 +828,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:54:10 GMT" + "Mon, 05 Feb 2018 20:32:57 GMT" ], "Pragma": [ "no-cache" @@ -712,7 +840,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3b9cbe08-61b5-42a1-a6f8-84096009be41" + "efd81367-25bd-4846-bfbd-d766ae9c6386" ], "X-Content-Type-Options": [ "nosniff" @@ -724,13 +852,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14971" + "14996" ], "x-ms-correlation-request-id": [ - "c4bda938-ff28-4488-b861-e8ad9c4f0570" + "4896ba40-b79f-4d77-9826-693f12fdafa9" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225411Z:c4bda938-ff28-4488-b861-e8ad9c4f0570" + "WESTUS2:20180205T203257Z:4896ba40-b79f-4d77-9826-693f12fdafa9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -745,14 +873,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2de744ee-3403-4ba4-b030-c316b6eee822" + "3486e00d-4b1f-4c78-8b1c-4405d968e425" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"AclStatus\": {\r\n \"entries\": [\r\n \"group::rwx\"\r\n ],\r\n \"owner\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"group\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"permission\": \"770\",\r\n \"stickyBit\": false\r\n }\r\n}", @@ -770,16 +898,16 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:54:16 GMT" + "Mon, 05 Feb 2018 20:33:06 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "88464808-d29f-43d8-9ebd-d6d6965b48a1" + "b5e613cf-4e68-4d10-bb26-a90a1014ef66" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -800,14 +928,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8c82568a-4eb0-4e20-9d6d-611c30e64f27" + "b696150e-dcce-4426-930c-8acde3b1a7d0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"AclStatus\": {\r\n \"entries\": [\r\n \"group::rwx\"\r\n ],\r\n \"owner\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"group\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"permission\": \"777\",\r\n \"stickyBit\": false\r\n }\r\n}", @@ -825,16 +953,16 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:54:16 GMT" + "Mon, 05 Feb 2018 20:33:06 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "0c5879a6-4785-484c-979b-6275fddfaf20" + "57a44e95-c970-4a03-b863-d231fda75878" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -855,14 +983,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9f471642-ad66-444d-a240-a92375a38486" + "39fa0c57-1362-44ad-91b7-41679b073f65" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"AclStatus\": {\r\n \"entries\": [\r\n \"group::rwx\"\r\n ],\r\n \"owner\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"group\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"permission\": \"770\",\r\n \"stickyBit\": false\r\n }\r\n}", @@ -880,16 +1008,16 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:54:17 GMT" + "Mon, 05 Feb 2018 20:33:06 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "dda53e70-7ed5-4e2a-98f0-64d4ba5191ad" + "8613420a-81c0-40b0-be51-c429ce6ce17e" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -910,14 +1038,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7620df0a-f574-4f24-a859-4d852aab1d22" + "fedc575d-ae7f-4065-ae17-f3b8410599c0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "", @@ -932,19 +1060,19 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:54:16 GMT" + "Mon, 05 Feb 2018 20:33:06 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "9ca6a877-8efe-4666-9c3b-e990f6d46ffa" + "f8cb8a2c-44b3-4000-a3f2-0d7378c5f372" ], "ContentLength": [ "0" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -965,14 +1093,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d276342e-113e-4bf5-8630-947afb7e1192" + "3b0d5b0e-37fe-419a-b698-e4458fc410d7" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "", @@ -987,16 +1115,16 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:54:16 GMT" + "Mon, 05 Feb 2018 20:33:06 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "1dc3fc15-9092-40d0-b393-1805293e6cce" + "d10d13db-caa0-4f27-8f35-9c403d0691bf" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -1017,14 +1145,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4fca4ba0-2a01-467a-a9b2-658f690eb945" + "c13f73de-dea8-483b-81ff-a97c7f8d80fa" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "", @@ -1039,19 +1167,19 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:54:16 GMT" + "Mon, 05 Feb 2018 20:33:06 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "14e6cf91-c42b-4ef6-b04a-ae83a4d6b332" + "0264c7f1-9733-4c6b-a217-4db9935325fb" ], "ContentLength": [ "0" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -1068,9 +1196,9 @@ ], "Names": { ".ctor": [ - "datalakerg11347", - "testdatalake12502", - "testadlfs12337" + "datalakerg15683", + "testdatalake11350", + "testadlfs12718" ] }, "Variables": { diff --git a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemSetAcl.json b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemSetAcl.json index 8c2bc6b39c41..a80f24bb9c7c 100644 --- a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemSetAcl.json +++ b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemSetAcl.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3208df0e-5220-4c5a-b25c-1b4e5678eee4" + "56d44189-653c-4371-a640-6cf16b87fb2d" ], "accept-language": [ "en-US" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:56:04 GMT" + "Mon, 05 Feb 2018 20:31:23 GMT" ], "Pragma": [ "no-cache" @@ -41,16 +41,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1198" ], "x-ms-request-id": [ - "107897c2-f4f8-4ce7-894c-0ba4ef1ba512" + "aa1c9fa5-566e-447f-8c0c-504965bdf321" ], "x-ms-correlation-request-id": [ - "107897c2-f4f8-4ce7-894c-0ba4ef1ba512" + "aa1c9fa5-566e-447f-8c0c-504965bdf321" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225605Z:107897c2-f4f8-4ce7-894c-0ba4ef1ba512" + "WESTUS2:20180205T203124Z:aa1c9fa5-566e-447f-8c0c-504965bdf321" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,7 +65,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b34b1ef5-5384-4184-b46f-ae96e8de664e" + "07224d1c-3568-48e8-b016-adcd812d4f19" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:56:04 GMT" + "Mon, 05 Feb 2018 20:31:23 GMT" ], "Pragma": [ "no-cache" @@ -96,16 +96,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14999" ], "x-ms-request-id": [ - "8ad5898e-89d4-47e3-8b09-ea3075a41dd3" + "8fad75e7-036b-441f-a767-8fc97de3b1aa" ], "x-ms-correlation-request-id": [ - "8ad5898e-89d4-47e3-8b09-ea3075a41dd3" + "8fad75e7-036b-441f-a767-8fc97de3b1aa" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225605Z:8ad5898e-89d4-47e3-8b09-ea3075a41dd3" + "WESTUS2:20180205T203124Z:8fad75e7-036b-441f-a767-8fc97de3b1aa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -120,7 +120,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5933b15f-1120-4411-918e-ec346c760805" + "61134066-4d51-45c0-9429-8d68f26970fd" ], "accept-language": [ "en-US" @@ -130,7 +130,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n {\r\n \"applicationId\": \"e406a681-f3d4-42a8-90b6-c2b029497af1\"\r\n }\r\n ],\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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\": \"locations/asyncoperations\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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" @@ -142,7 +142,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:56:08 GMT" + "Mon, 05 Feb 2018 20:31:24 GMT" ], "Pragma": [ "no-cache" @@ -154,16 +154,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1197" ], "x-ms-request-id": [ - "3627cecc-edd7-4678-ba73-8687df8323c5" + "00cd5649-61d6-457a-bf46-0f22bab9da7c" ], "x-ms-correlation-request-id": [ - "3627cecc-edd7-4678-ba73-8687df8323c5" + "00cd5649-61d6-457a-bf46-0f22bab9da7c" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225609Z:3627cecc-edd7-4678-ba73-8687df8323c5" + "WESTUS2:20180205T203125Z:00cd5649-61d6-457a-bf46-0f22bab9da7c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -178,7 +178,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "225e918d-d23a-494c-a6e2-82713b3276c2" + "78b19292-9175-4a29-b483-e6522ee4f392" ], "accept-language": [ "en-US" @@ -188,7 +188,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n {\r\n \"applicationId\": \"e406a681-f3d4-42a8-90b6-c2b029497af1\"\r\n }\r\n ],\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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\": \"locations/asyncoperations\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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" @@ -200,7 +200,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:56:08 GMT" + "Mon, 05 Feb 2018 20:31:24 GMT" ], "Pragma": [ "no-cache" @@ -209,16 +209,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14998" ], "x-ms-request-id": [ - "0f4a4ee7-38c3-4ba2-9704-a79a14396b84" + "29f7f0b9-7be3-4428-9dd4-bf63dba946df" ], "x-ms-correlation-request-id": [ - "0f4a4ee7-38c3-4ba2-9704-a79a14396b84" + "29f7f0b9-7be3-4428-9dd4-bf63dba946df" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225609Z:0f4a4ee7-38c3-4ba2-9704-a79a14396b84" + "WESTUS2:20180205T203125Z:29f7f0b9-7be3-4428-9dd4-bf63dba946df" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -227,13 +227,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg16083?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNjA4Mz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg17064?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNzA2ND9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6e894129-c088-4fc4-a854-97a664645604" + "3d01bc1a-25ab-4910-8919-f2e6901f41c2" ], "accept-language": [ "en-US" @@ -243,7 +243,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg16083' could not be found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg17064' could not be found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "107" @@ -258,7 +258,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:56:08 GMT" + "Mon, 05 Feb 2018 20:31:24 GMT" ], "Pragma": [ "no-cache" @@ -267,16 +267,16 @@ "gateway" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14997" ], "x-ms-request-id": [ - "157493c8-2c7c-4a77-a925-e6e79c453e1f" + "b47b825e-6c2a-4df1-b4c7-1c484a88a635" ], "x-ms-correlation-request-id": [ - "157493c8-2c7c-4a77-a925-e6e79c453e1f" + "b47b825e-6c2a-4df1-b4c7-1c484a88a635" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225609Z:157493c8-2c7c-4a77-a925-e6e79c453e1f" + "WESTUS2:20180205T203125Z:b47b825e-6c2a-4df1-b4c7-1c484a88a635" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -285,13 +285,13 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg16083?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNjA4Mz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg17064?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNzA2ND9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a7b4a840-9275-4aaa-a543-846b1f66e887" + "8c583bb7-436e-476f-bc2d-d9d74899d6a9" ], "accept-language": [ "en-US" @@ -301,7 +301,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16083\",\r\n \"name\": \"datalakerg16083\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17064\",\r\n \"name\": \"datalakerg17064\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -313,7 +313,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:56:09 GMT" + "Mon, 05 Feb 2018 20:31:25 GMT" ], "Pragma": [ "no-cache" @@ -322,16 +322,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14996" ], "x-ms-request-id": [ - "1a91a34c-d4bc-4931-a149-3c0019ea5c10" + "f79ffd47-baf8-4b0e-a786-757a6e5311c3" ], "x-ms-correlation-request-id": [ - "1a91a34c-d4bc-4931-a149-3c0019ea5c10" + "f79ffd47-baf8-4b0e-a786-757a6e5311c3" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225610Z:1a91a34c-d4bc-4931-a149-3c0019ea5c10" + "WESTUS2:20180205T203126Z:f79ffd47-baf8-4b0e-a786-757a6e5311c3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -340,8 +340,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg16083?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNjA4Mz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg17064?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNzA2ND9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -352,7 +352,7 @@ "31" ], "x-ms-client-request-id": [ - "154f0ad7-2a25-4c7c-8b30-c6ad8940d6f9" + "89b78398-49b2-446a-9c1c-24484d90b382" ], "accept-language": [ "en-US" @@ -362,7 +362,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16083\",\r\n \"name\": \"datalakerg16083\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17064\",\r\n \"name\": \"datalakerg17064\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "184" @@ -377,22 +377,22 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:56:09 GMT" + "Mon, 05 Feb 2018 20:31:25 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1196" ], "x-ms-request-id": [ - "067cbbab-2636-4ca7-900d-7b62e8d067e1" + "d9b953ea-f278-444b-80b6-6c0c5b285f00" ], "x-ms-correlation-request-id": [ - "067cbbab-2636-4ca7-900d-7b62e8d067e1" + "d9b953ea-f278-444b-80b6-6c0c5b285f00" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225610Z:067cbbab-2636-4ca7-900d-7b62e8d067e1" + "WESTUS2:20180205T203126Z:d9b953ea-f278-444b-80b6-6c0c5b285f00" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -401,23 +401,23 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16083/providers/Microsoft.DataLakeStore/accounts/testadlfs11101?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjA4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTExMDE/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17064/providers/Microsoft.DataLakeStore/accounts/testadlfs11869?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzA2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE4Njk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "902b9dc8-ea98-4080-a203-d458729ab1cf" + "578f8d76-efc8-41f2-9196-826a05cb7661" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs11101' under resource group 'datalakerg16083' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs11869' under resource group 'datalakerg17064' was not found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "166" @@ -432,7 +432,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:56:11 GMT" + "Mon, 05 Feb 2018 20:31:26 GMT" ], "Pragma": [ "no-cache" @@ -441,13 +441,13 @@ "gateway" ], "x-ms-request-id": [ - "7ff90cd8-2e2c-452e-a398-19de701a1940" + "827d36cb-836c-40fe-a66a-b9e2f051d072" ], "x-ms-correlation-request-id": [ - "7ff90cd8-2e2c-452e-a398-19de701a1940" + "827d36cb-836c-40fe-a66a-b9e2f051d072" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225611Z:7ff90cd8-2e2c-452e-a398-19de701a1940" + "WESTUS2:20180205T203126Z:827d36cb-836c-40fe-a66a-b9e2f051d072" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -456,17 +456,17 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16083/providers/Microsoft.DataLakeStore/accounts/testadlfs11101?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjA4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTExMDE/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17064/providers/Microsoft.DataLakeStore/accounts/testadlfs11869?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzA2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE4Njk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "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\": \"testadlfs11101.azuredatalakestore.net\",\r\n \"accountId\": \"bd040dfc-2595-41b1-9d65-3805af6694b7\",\r\n \"creationTime\": \"2017-07-24T22:56:15.9066011Z\",\r\n \"lastModifiedTime\": \"2017-07-24T22:56:15.9066011Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16083/providers/Microsoft.DataLakeStore/accounts/testadlfs11101\",\r\n \"name\": \"testadlfs11101\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs11869.azuredatalakestore.net\",\r\n \"accountId\": \"21b62dbc-9c88-40dd-9ab4-ca8fa4964e4f\",\r\n \"creationTime\": \"2018-02-05T20:31:29.7512238Z\",\r\n \"lastModifiedTime\": \"2018-02-05T20:31:29.7512238Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17064/providers/Microsoft.DataLakeStore/accounts/testadlfs11869\",\r\n \"name\": \"testadlfs11869\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -481,7 +481,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:56:44 GMT" + "Mon, 05 Feb 2018 20:32:00 GMT" ], "Pragma": [ "no-cache" @@ -493,7 +493,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "22a715a5-5e8a-41c5-a615-4e1c9c538932" + "4b615cfc-8119-4ad3-ac74-e3878a228303" ], "X-Content-Type-Options": [ "nosniff" @@ -505,13 +505,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14992" ], "x-ms-correlation-request-id": [ - "ebdb8c59-b695-400c-93e0-4af84661002c" + "dfc8217d-ceff-4e6f-82de-55516c3ba789" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225644Z:ebdb8c59-b695-400c-93e0-4af84661002c" + "WESTUS2:20180205T203201Z:dfc8217d-ceff-4e6f-82de-55516c3ba789" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -520,23 +520,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16083/providers/Microsoft.DataLakeStore/accounts/testadlfs11101?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjA4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTExMDE/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17064/providers/Microsoft.DataLakeStore/accounts/testadlfs11869?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzA2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE4Njk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "26871c40-7724-4e89-a6e0-93b870ddd21b" + "e622d506-c477-4811-84f6-2550c0f738db" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "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\": \"testadlfs11101.azuredatalakestore.net\",\r\n \"accountId\": \"bd040dfc-2595-41b1-9d65-3805af6694b7\",\r\n \"creationTime\": \"2017-07-24T22:56:15.9066011Z\",\r\n \"lastModifiedTime\": \"2017-07-24T22:56:15.9066011Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16083/providers/Microsoft.DataLakeStore/accounts/testadlfs11101\",\r\n \"name\": \"testadlfs11101\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs11869.azuredatalakestore.net\",\r\n \"accountId\": \"21b62dbc-9c88-40dd-9ab4-ca8fa4964e4f\",\r\n \"creationTime\": \"2018-02-05T20:31:29.7512238Z\",\r\n \"lastModifiedTime\": \"2018-02-05T20:31:29.7512238Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17064/providers/Microsoft.DataLakeStore/accounts/testadlfs11869\",\r\n \"name\": \"testadlfs11869\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -551,7 +551,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:56:45 GMT" + "Mon, 05 Feb 2018 20:32:01 GMT" ], "Pragma": [ "no-cache" @@ -563,7 +563,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6f6f703c-4451-4b79-bdbd-c765affe0ee0" + "b7a911b8-d520-4b04-a9cf-c5f59663afc4" ], "X-Content-Type-Options": [ "nosniff" @@ -575,13 +575,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14996" ], "x-ms-correlation-request-id": [ - "94c6071e-b9ed-4b58-9a34-9656fe7e5221" + "8cc90218-d906-45e0-ac22-58be61bd39f9" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225645Z:94c6071e-b9ed-4b58-9a34-9656fe7e5221" + "WESTUS2:20180205T203201Z:8cc90218-d906-45e0-ac22-58be61bd39f9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -590,8 +590,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16083/providers/Microsoft.DataLakeStore/accounts/testadlfs11101?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNjA4My9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTExMDE/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17064/providers/Microsoft.DataLakeStore/accounts/testadlfs11869?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzA2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTE4Njk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -602,20 +602,20 @@ "31" ], "x-ms-client-request-id": [ - "db290bf2-cd21-4088-9b72-d01ddae49a84" + "9545e891-37d1-41e9-afe3-74c48d754657" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"bd040dfc-2595-41b1-9d65-3805af6694b7\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg16083/providers/Microsoft.DataLakeStore/accounts/testadlfs11101\",\r\n \"name\": \"testadlfs11101\",\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\": \"21b62dbc-9c88-40dd-9ab4-ca8fa4964e4f\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17064/providers/Microsoft.DataLakeStore/accounts/testadlfs11869\",\r\n \"name\": \"testadlfs11869\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "420" + "364" ], "Content-Type": [ "application/json" @@ -630,13 +630,13 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:56:13 GMT" + "Mon, 05 Feb 2018 20:31:28 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg16083/providers/Microsoft.DataLakeStore/accounts/testadlfs11101/operationresults/0?api-version=2016-11-01" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg17064/providers/Microsoft.DataLakeStore/accounts/testadlfs11869/operationresults/0?api-version=2016-11-01" ], "Retry-After": [ "10" @@ -645,10 +645,10 @@ "Microsoft-IIS/8.5" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/bd040dfc-2595-41b1-9d65-3805af6694b70?api-version=2016-11-01&expanded=true" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/21b62dbc-9c88-40dd-9ab4-ca8fa4964e4f0?api-version=2016-11-01&expanded=true" ], "x-ms-request-id": [ - "b9c379df-b08d-4945-905a-b04b16aaf509" + "e497d074-4969-4e1e-a212-5f88d89513a0" ], "X-Content-Type-Options": [ "nosniff" @@ -660,13 +660,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1195" ], "x-ms-correlation-request-id": [ - "bc5970b8-5c90-4a2d-900a-68a73e7999ec" + "011630b9-2b8d-4ed5-b76a-eccf60b6371c" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225613Z:bc5970b8-5c90-4a2d-900a-68a73e7999ec" + "WESTUS2:20180205T203128Z:011630b9-2b8d-4ed5-b76a-eccf60b6371c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -675,14 +675,142 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/bd040dfc-2595-41b1-9d65-3805af6694b70?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzL2JkMDQwZGZjLTI1OTUtNDFiMS05ZDY1LTM4MDVhZjY2OTRiNzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/21b62dbc-9c88-40dd-9ab4-ca8fa4964e4f0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzIxYjYyZGJjLTljODgtNDBkZC05YWI0LWNhOGZhNDk2NGU0ZjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Mon, 05 Feb 2018 20:31:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "41b1be2e-d3c6-41cf-9ecd-1a57ed2c5fcd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "7690a915-5dfa-45bb-b566-9207ef17c799" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180205T203139Z:7690a915-5dfa-45bb-b566-9207ef17c799" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/21b62dbc-9c88-40dd-9ab4-ca8fa4964e4f0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzIxYjYyZGJjLTljODgtNDBkZC05YWI0LWNhOGZhNDk2NGU0ZjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Mon, 05 Feb 2018 20:31:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f12329f2-263e-4577-8672-b02e94d8958a" + ], + "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": [ + "74593486-e0ca-45d7-ae6d-a7a619ddbe96" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180205T203150Z:74593486-e0ca-45d7-ae6d-a7a619ddbe96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/21b62dbc-9c88-40dd-9ab4-ca8fa4964e4f0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzIxYjYyZGJjLTljODgtNDBkZC05YWI0LWNhOGZhNDk2NGU0ZjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", @@ -700,7 +828,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:56:43 GMT" + "Mon, 05 Feb 2018 20:32:00 GMT" ], "Pragma": [ "no-cache" @@ -712,7 +840,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7e278c63-31a4-4e35-805c-a7619d048512" + "d9692395-978d-4416-ad56-0b13717bca06" ], "X-Content-Type-Options": [ "nosniff" @@ -724,13 +852,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14998" ], "x-ms-correlation-request-id": [ - "c403b68b-65db-4113-ba47-685ef05024d6" + "2d82fa5c-8768-400c-96d4-dab2aea44a34" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T225644Z:c403b68b-65db-4113-ba47-685ef05024d6" + "WESTUS2:20180205T203200Z:2d82fa5c-8768-400c-96d4-dab2aea44a34" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -745,14 +873,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6ae89b0f-f5fb-44c9-a1f8-35d332a7004f" + "fdbb22d1-a483-44cc-80c7-c17be5bc65ee" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"AclStatus\": {\r\n \"entries\": [\r\n \"group::rwx\"\r\n ],\r\n \"owner\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"group\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"permission\": \"770\",\r\n \"stickyBit\": false\r\n }\r\n}", @@ -770,16 +898,16 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:56:47 GMT" + "Mon, 05 Feb 2018 20:32:10 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "237443c8-6b92-4319-8eea-b767191fb3d7" + "db31dc51-9eea-46ca-a9bc-1acc1d7563f8" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -800,14 +928,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dd678a21-07ed-4b7c-acdf-0b96fb4abdd4" + "6278888e-5de4-4ab6-9b16-ed1bfc1e8d7e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"AclStatus\": {\r\n \"entries\": [\r\n \"user:027c28d5-c91d-49f0-98c5-d10134b169b3:rwx\",\r\n \"group::rwx\"\r\n ],\r\n \"owner\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"group\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"permission\": \"770\",\r\n \"stickyBit\": false\r\n }\r\n}", @@ -825,16 +953,16 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:56:47 GMT" + "Mon, 05 Feb 2018 20:32:10 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "00a08c7f-590f-4414-b786-3c120fee3701" + "695f7307-192b-408b-948c-405da11aefd9" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -855,14 +983,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1301fd19-eee1-4278-bb92-4efd9f3e96ff" + "b2593769-8123-4e00-86a0-05c4cab8cb8e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "", @@ -877,19 +1005,19 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:56:47 GMT" + "Mon, 05 Feb 2018 20:32:10 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "54e59d74-27d1-4586-84f6-d3f57946c7af" + "44dd9779-86ba-40a8-b7a9-aed6d6b142bf" ], "ContentLength": [ "0" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -906,9 +1034,9 @@ ], "Names": { ".ctor": [ - "datalakerg16083", - "testdatalake1209", - "testadlfs11101" + "datalakerg17064", + "testdatalake17284", + "testadlfs11869" ] }, "Variables": { diff --git a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemSetDeleteAclEntry.json b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemSetDeleteAclEntry.json index a8c96ff444c1..2a904530401b 100644 --- a/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemSetDeleteAclEntry.json +++ b/src/SDKs/DataLake.Store/DataLakeStore.Tests/SessionRecords/DataLakeStore.Tests.FileSystemOperationTests/DataLakeStoreFileSystemSetDeleteAclEntry.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "598285bc-a20d-4462-8148-eb49d88a70a5" + "66c11ca9-8f4d-45ae-bf4c-c3f63ea36844" ], "accept-language": [ "en-US" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:47:18 GMT" + "Mon, 05 Feb 2018 20:35:39 GMT" ], "Pragma": [ "no-cache" @@ -41,16 +41,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1199" ], "x-ms-request-id": [ - "3765ee3c-dbd7-47af-8a80-74ffd0f7361a" + "b7d7b02c-c827-4c3a-926c-02ab763db2d5" ], "x-ms-correlation-request-id": [ - "3765ee3c-dbd7-47af-8a80-74ffd0f7361a" + "b7d7b02c-c827-4c3a-926c-02ab763db2d5" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224718Z:3765ee3c-dbd7-47af-8a80-74ffd0f7361a" + "WESTUS2:20180205T203540Z:b7d7b02c-c827-4c3a-926c-02ab763db2d5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,7 +65,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a0ee68e8-4733-4215-b9df-978a35e2dcc8" + "c8af5f5b-8230-4fff-b24a-9582ca401973" ], "accept-language": [ "en-US" @@ -87,7 +87,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:47:18 GMT" + "Mon, 05 Feb 2018 20:35:40 GMT" ], "Pragma": [ "no-cache" @@ -96,16 +96,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14997" ], "x-ms-request-id": [ - "edbe880f-c54c-4c38-9b93-9cd96a2573bd" + "0dad6cde-9abc-452d-a226-960ca7a68150" ], "x-ms-correlation-request-id": [ - "edbe880f-c54c-4c38-9b93-9cd96a2573bd" + "0dad6cde-9abc-452d-a226-960ca7a68150" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224718Z:edbe880f-c54c-4c38-9b93-9cd96a2573bd" + "WESTUS2:20180205T203540Z:0dad6cde-9abc-452d-a226-960ca7a68150" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -120,7 +120,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "514d7a4a-ee26-40b4-a0f2-8529e53a546d" + "3832edf4-c8f9-4a6f-bdba-d2f493c66d16" ], "accept-language": [ "en-US" @@ -130,7 +130,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n {\r\n \"applicationId\": \"e406a681-f3d4-42a8-90b6-c2b029497af1\"\r\n }\r\n ],\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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\": \"locations/asyncoperations\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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" @@ -142,7 +142,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:47:19 GMT" + "Mon, 05 Feb 2018 20:35:40 GMT" ], "Pragma": [ "no-cache" @@ -154,16 +154,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1198" ], "x-ms-request-id": [ - "999502c3-d561-4088-affb-2e16776d2613" + "e70612ce-3812-4f03-87a2-635cde6b1e7b" ], "x-ms-correlation-request-id": [ - "999502c3-d561-4088-affb-2e16776d2613" + "e70612ce-3812-4f03-87a2-635cde6b1e7b" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224719Z:999502c3-d561-4088-affb-2e16776d2613" + "WESTUS2:20180205T203541Z:e70612ce-3812-4f03-87a2-635cde6b1e7b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -178,7 +178,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e8e78b8d-89f9-4110-b39f-c9c2233eee0f" + "85df599d-313a-403b-a5df-3bc6fdef278c" ], "accept-language": [ "en-US" @@ -188,7 +188,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorization\": {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-06-01\",\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 \"2017-06-01\",\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 \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n {\r\n \"applicationId\": \"e406a681-f3d4-42a8-90b6-c2b029497af1\"\r\n }\r\n ],\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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\": \"locations/asyncoperations\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"2017-10-01\",\r\n \"2017-06-01\",\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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 \"East US 2 (Stage)\",\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 \"South India\",\r\n \"Central India\",\r\n \"West India\",\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 \"Korea Central\",\r\n \"Korea South\"\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" @@ -200,7 +200,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:47:19 GMT" + "Mon, 05 Feb 2018 20:35:40 GMT" ], "Pragma": [ "no-cache" @@ -209,16 +209,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14996" ], "x-ms-request-id": [ - "23a203e8-5b5d-41a4-8e36-444e42a8581c" + "87a7caac-a773-47a9-b7f4-a55a4ec792a5" ], "x-ms-correlation-request-id": [ - "23a203e8-5b5d-41a4-8e36-444e42a8581c" + "87a7caac-a773-47a9-b7f4-a55a4ec792a5" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224719Z:23a203e8-5b5d-41a4-8e36-444e42a8581c" + "WESTUS2:20180205T203541Z:87a7caac-a773-47a9-b7f4-a55a4ec792a5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -227,13 +227,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg17727?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNzcyNz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12338?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjMzOD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "da29b394-b53d-44af-a7f6-10ffbef5fddb" + "8f085cfd-6c84-42a6-b931-1d7d0d2ffc12" ], "accept-language": [ "en-US" @@ -243,7 +243,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg17727' could not be found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'datalakerg12338' could not be found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "107" @@ -258,7 +258,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:47:19 GMT" + "Mon, 05 Feb 2018 20:35:40 GMT" ], "Pragma": [ "no-cache" @@ -267,16 +267,16 @@ "gateway" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14995" ], "x-ms-request-id": [ - "c52b3f87-0892-42ca-b3d2-e8cc63437d65" + "805afaa7-f20a-4ec2-9408-96baabb86cec" ], "x-ms-correlation-request-id": [ - "c52b3f87-0892-42ca-b3d2-e8cc63437d65" + "805afaa7-f20a-4ec2-9408-96baabb86cec" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224719Z:c52b3f87-0892-42ca-b3d2-e8cc63437d65" + "WESTUS2:20180205T203541Z:805afaa7-f20a-4ec2-9408-96baabb86cec" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -285,13 +285,13 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg17727?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNzcyNz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12338?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjMzOD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3f9a7d77-e3c5-4c9d-8bf0-895b722969d3" + "c66f22a8-68b5-4ba3-b579-741b085bf5c1" ], "accept-language": [ "en-US" @@ -301,7 +301,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17727\",\r\n \"name\": \"datalakerg17727\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12338\",\r\n \"name\": \"datalakerg12338\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -313,7 +313,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:47:20 GMT" + "Mon, 05 Feb 2018 20:35:42 GMT" ], "Pragma": [ "no-cache" @@ -322,16 +322,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "14994" ], "x-ms-request-id": [ - "9ef7408f-310a-47f2-a64e-98946e9bd226" + "f7bd80f2-baf1-41f3-bd14-e6f0065c0534" ], "x-ms-correlation-request-id": [ - "9ef7408f-310a-47f2-a64e-98946e9bd226" + "f7bd80f2-baf1-41f3-bd14-e6f0065c0534" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224721Z:9ef7408f-310a-47f2-a64e-98946e9bd226" + "WESTUS2:20180205T203542Z:f7bd80f2-baf1-41f3-bd14-e6f0065c0534" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -340,8 +340,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg17727?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxNzcyNz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12338?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlZ3JvdXBzL2RhdGFsYWtlcmcxMjMzOD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -352,7 +352,7 @@ "31" ], "x-ms-client-request-id": [ - "fa799699-b087-4af2-ae63-ed73475bfc9e" + "b741d83f-c484-4c8b-bcd8-5c69235212d0" ], "accept-language": [ "en-US" @@ -362,7 +362,7 @@ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17727\",\r\n \"name\": \"datalakerg17727\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12338\",\r\n \"name\": \"datalakerg12338\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "184" @@ -377,22 +377,22 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:47:20 GMT" + "Mon, 05 Feb 2018 20:35:42 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1197" ], "x-ms-request-id": [ - "cae4ea3d-45f0-4e5c-8dac-6994dff4294e" + "8bdfc704-5053-4eba-bf6c-bf6cc4feeba4" ], "x-ms-correlation-request-id": [ - "cae4ea3d-45f0-4e5c-8dac-6994dff4294e" + "8bdfc704-5053-4eba-bf6c-bf6cc4feeba4" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224721Z:cae4ea3d-45f0-4e5c-8dac-6994dff4294e" + "WESTUS2:20180205T203542Z:8bdfc704-5053-4eba-bf6c-bf6cc4feeba4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -401,23 +401,23 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17727/providers/Microsoft.DataLakeStore/accounts/testadlfs18929?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzcyNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTg5Mjk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12338/providers/Microsoft.DataLakeStore/accounts/testadlfs14240?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjMzOC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTQyNDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a4e36aeb-c1ae-4345-a94f-b56b0d8423a3" + "c4325c68-713f-445f-ba59-2e92ccdc9a7b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs18929' under resource group 'datalakerg17727' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/testadlfs14240' under resource group 'datalakerg12338' was not found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "166" @@ -432,7 +432,7 @@ "no-cache" ], "Date": [ - "Mon, 24 Jul 2017 22:47:20 GMT" + "Mon, 05 Feb 2018 20:35:42 GMT" ], "Pragma": [ "no-cache" @@ -441,13 +441,13 @@ "gateway" ], "x-ms-request-id": [ - "9ac485bb-d688-4ed7-bb47-0c5e90ae1ca9" + "11ce87f0-a7e1-43db-87a3-0aef9023207e" ], "x-ms-correlation-request-id": [ - "9ac485bb-d688-4ed7-bb47-0c5e90ae1ca9" + "11ce87f0-a7e1-43db-87a3-0aef9023207e" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224721Z:9ac485bb-d688-4ed7-bb47-0c5e90ae1ca9" + "WESTUS2:20180205T203542Z:11ce87f0-a7e1-43db-87a3-0aef9023207e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -456,17 +456,17 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17727/providers/Microsoft.DataLakeStore/accounts/testadlfs18929?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzcyNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTg5Mjk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12338/providers/Microsoft.DataLakeStore/accounts/testadlfs14240?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjMzOC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTQyNDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "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\": \"testadlfs18929.azuredatalakestore.net\",\r\n \"accountId\": \"4b0356c8-3d7f-423f-ac99-bc9dc674adf4\",\r\n \"creationTime\": \"2017-07-24T22:47:26.7801986Z\",\r\n \"lastModifiedTime\": \"2017-07-24T22:47:26.7801986Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17727/providers/Microsoft.DataLakeStore/accounts/testadlfs18929\",\r\n \"name\": \"testadlfs18929\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs14240.azuredatalakestore.net\",\r\n \"accountId\": \"28d8a2c1-1b47-464e-a407-c0e58c07a108\",\r\n \"creationTime\": \"2018-02-05T20:35:47.6575678Z\",\r\n \"lastModifiedTime\": \"2018-02-05T20:35:47.6575678Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12338/providers/Microsoft.DataLakeStore/accounts/testadlfs14240\",\r\n \"name\": \"testadlfs14240\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -481,7 +481,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:47:54 GMT" + "Mon, 05 Feb 2018 20:36:16 GMT" ], "Pragma": [ "no-cache" @@ -493,7 +493,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f170b51a-2138-481c-97a7-cac28f4dc64c" + "cfd4f202-77f7-4ff5-881e-1e7076b15d21" ], "X-Content-Type-Options": [ "nosniff" @@ -505,13 +505,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14994" ], "x-ms-correlation-request-id": [ - "89c1f7ff-42a0-4a32-8cd5-75af0b87a587" + "f5f516a8-7977-455d-b33e-e5abdd475403" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224755Z:89c1f7ff-42a0-4a32-8cd5-75af0b87a587" + "WESTUS2:20180205T203616Z:f5f516a8-7977-455d-b33e-e5abdd475403" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -520,23 +520,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17727/providers/Microsoft.DataLakeStore/accounts/testadlfs18929?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzcyNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTg5Mjk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12338/providers/Microsoft.DataLakeStore/accounts/testadlfs14240?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjMzOC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTQyNDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "88c180df-14e0-4ac7-9b3f-84ecb2d3a827" + "cbec039e-e82f-43d1-b66e-6fa6524d5443" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "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\": \"testadlfs18929.azuredatalakestore.net\",\r\n \"accountId\": \"4b0356c8-3d7f-423f-ac99-bc9dc674adf4\",\r\n \"creationTime\": \"2017-07-24T22:47:26.7801986Z\",\r\n \"lastModifiedTime\": \"2017-07-24T22:47:26.7801986Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17727/providers/Microsoft.DataLakeStore/accounts/testadlfs18929\",\r\n \"name\": \"testadlfs18929\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\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\": \"testadlfs14240.azuredatalakestore.net\",\r\n \"accountId\": \"28d8a2c1-1b47-464e-a407-c0e58c07a108\",\r\n \"creationTime\": \"2018-02-05T20:35:47.6575678Z\",\r\n \"lastModifiedTime\": \"2018-02-05T20:35:47.6575678Z\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12338/providers/Microsoft.DataLakeStore/accounts/testadlfs14240\",\r\n \"name\": \"testadlfs14240\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json" @@ -551,7 +551,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:47:55 GMT" + "Mon, 05 Feb 2018 20:36:16 GMT" ], "Pragma": [ "no-cache" @@ -563,7 +563,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6f4b437c-52c8-483f-b069-fbe9739961fe" + "16f6b2e1-c65d-40a0-9972-274546e1a4c7" ], "X-Content-Type-Options": [ "nosniff" @@ -575,13 +575,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14994" ], "x-ms-correlation-request-id": [ - "084fa49b-6cdd-49ad-b8e9-4be56582dde3" + "697ac2e6-9a32-46b8-8195-fdd6eca9783d" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224756Z:084fa49b-6cdd-49ad-b8e9-4be56582dde3" + "WESTUS2:20180205T203617Z:697ac2e6-9a32-46b8-8195-fdd6eca9783d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -590,8 +590,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17727/providers/Microsoft.DataLakeStore/accounts/testadlfs18929?api-version=2016-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxNzcyNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTg5Mjk/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12338/providers/Microsoft.DataLakeStore/accounts/testadlfs14240?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Jlc291cmNlR3JvdXBzL2RhdGFsYWtlcmcxMjMzOC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvdGVzdGFkbGZzMTQyNDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US 2\"\r\n}", "RequestHeaders": { @@ -602,20 +602,20 @@ "31" ], "x-ms-client-request-id": [ - "bb5f40e1-caf7-4e64-9a76-200cc8af132b" + "277e237d-3e19-4510-96b8-9b6fea2d71df" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"4b0356c8-3d7f-423f-ac99-bc9dc674adf4\",\r\n \"creationTime\": null,\r\n \"lastModifiedTime\": null\r\n },\r\n \"location\": \"East US 2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg17727/providers/Microsoft.DataLakeStore/accounts/testadlfs18929\",\r\n \"name\": \"testadlfs18929\",\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\": \"28d8a2c1-1b47-464e-a407-c0e58c07a108\"\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/datalakerg12338/providers/Microsoft.DataLakeStore/accounts/testadlfs14240\",\r\n \"name\": \"testadlfs14240\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "420" + "364" ], "Content-Type": [ "application/json" @@ -630,13 +630,13 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:47:23 GMT" + "Mon, 05 Feb 2018 20:35:43 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg17727/providers/Microsoft.DataLakeStore/accounts/testadlfs18929/operationresults/0?api-version=2016-11-01" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/datalakerg12338/providers/Microsoft.DataLakeStore/accounts/testadlfs14240/operationresults/0?api-version=2016-11-01" ], "Retry-After": [ "10" @@ -645,10 +645,10 @@ "Microsoft-IIS/8.5" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/4b0356c8-3d7f-423f-ac99-bc9dc674adf40?api-version=2016-11-01&expanded=true" + "https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/28d8a2c1-1b47-464e-a407-c0e58c07a1080?api-version=2016-11-01&expanded=true" ], "x-ms-request-id": [ - "04eab81d-e4ff-4c49-b71d-7ee9f5ce165b" + "5b5639f9-3ae1-40ff-949b-ce4615afadd9" ], "X-Content-Type-Options": [ "nosniff" @@ -660,13 +660,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1197" ], "x-ms-correlation-request-id": [ - "3dd43e89-b37a-4b4b-916f-b02daca0944b" + "e534f3b2-ea76-49c0-8cd9-8835834d0104" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224723Z:3dd43e89-b37a-4b4b-916f-b02daca0944b" + "WESTUS2:20180205T203544Z:e534f3b2-ea76-49c0-8cd9-8835834d0104" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -675,14 +675,142 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/4b0356c8-3d7f-423f-ac99-bc9dc674adf40?api-version=2016-11-01&expanded=true", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzRiMDM1NmM4LTNkN2YtNDIzZi1hYzk5LWJjOWRjNjc0YWRmNDA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/28d8a2c1-1b47-464e-a407-c0e58c07a1080?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzI4ZDhhMmMxLTFiNDctNDY0ZS1hNDA3LWMwZTU4YzA3YTEwODA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Mon, 05 Feb 2018 20:35:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7f89c027-2772-429e-8de4-fa3ac8d42431" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "36aab363-4e0a-41ae-8b14-53aa10d0ecbb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180205T203554Z:36aab363-4e0a-41ae-8b14-53aa10d0ecbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/28d8a2c1-1b47-464e-a407-c0e58c07a1080?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzI4ZDhhMmMxLTFiNDctNDY0ZS1hNDA3LWMwZTU4YzA3YTEwODA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Connection": [ + "close" + ], + "Date": [ + "Mon, 05 Feb 2018 20:36:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2742bf70-6d32-4736-8f26-351847c74303" + ], + "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": [ + "61865153-3055-4a6b-800e-b7a5c08975f8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180205T203605Z:61865153-3055-4a6b-800e-b7a5c08975f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/EastUS2/operationResults/28d8a2c1-1b47-464e-a407-c0e58c07a1080?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDQzMTlkNmQtNGE2Ni00NzAxLWJiMmYtZTdkYmJkOWFlNGRiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvRWFzdFVTMi9vcGVyYXRpb25SZXN1bHRzLzI4ZDhhMmMxLTFiNDctNDY0ZS1hNDA3LWMwZTU4YzA3YTEwODA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", @@ -700,7 +828,7 @@ "close" ], "Date": [ - "Mon, 24 Jul 2017 22:47:54 GMT" + "Mon, 05 Feb 2018 20:36:15 GMT" ], "Pragma": [ "no-cache" @@ -712,7 +840,7 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d4f743ec-b571-4f86-9af5-30261bcc7509" + "29883cce-8cb8-4129-ad60-9df1d5001133" ], "X-Content-Type-Options": [ "nosniff" @@ -724,13 +852,13 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "14997" ], "x-ms-correlation-request-id": [ - "febf5752-963b-4729-b48c-53afdfe018eb" + "86ec65ac-546a-4adf-9850-8a2d819ba065" ], "x-ms-routing-request-id": [ - "WESTUS2:20170724T224754Z:febf5752-963b-4729-b48c-53afdfe018eb" + "WESTUS2:20180205T203615Z:86ec65ac-546a-4adf-9850-8a2d819ba065" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -745,14 +873,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "065669a8-3d5c-460f-bc74-93e5efcbbc0c" + "30f663af-ea8c-48e6-a370-9d5b4a68ade0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"AclStatus\": {\r\n \"entries\": [\r\n \"group::rwx\"\r\n ],\r\n \"owner\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"group\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"permission\": \"770\",\r\n \"stickyBit\": false\r\n }\r\n}", @@ -770,16 +898,16 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:47:58 GMT" + "Mon, 05 Feb 2018 20:36:21 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "c8465767-4e1c-479d-9b4a-63c9450604d8" + "e8bb6fe5-a0a6-4e19-bc2c-46abbd80db93" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -800,14 +928,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0706e8cb-e254-44ea-8441-12df747060ba" + "e7e56ebc-68aa-44f9-afaf-ebf5c14dcaff" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"AclStatus\": {\r\n \"entries\": [\r\n \"user:027c28d5-c91d-49f0-98c5-d10134b169b3:rwx\",\r\n \"group::rwx\"\r\n ],\r\n \"owner\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"group\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"permission\": \"770\",\r\n \"stickyBit\": false\r\n }\r\n}", @@ -825,16 +953,16 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:47:58 GMT" + "Mon, 05 Feb 2018 20:36:21 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "fdcb66b1-16bb-463c-93d8-12af8edaf5e3" + "6caf8da4-aaba-4097-a292-c7adf3ca551f" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -855,14 +983,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3a3941cc-8335-4af9-98fe-f583d59563d6" + "4d429cc6-1bc0-46ec-8f64-b597232ca6e8" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "{\r\n \"AclStatus\": {\r\n \"entries\": [\r\n \"group::rwx\"\r\n ],\r\n \"owner\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"group\": \"e994d55d-2464-4c73-b5e1-40e3c9894434\",\r\n \"permission\": \"770\",\r\n \"stickyBit\": false\r\n }\r\n}", @@ -880,16 +1008,16 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:47:58 GMT" + "Mon, 05 Feb 2018 20:36:22 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "d6f0a620-56ba-4e8d-bcc0-356f29e6af82" + "7428c017-4ed6-4538-8c0b-304c2f1d3637" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -910,14 +1038,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1030e815-4d23-43e7-8577-8263586dc9fe" + "63e0ed8c-1c54-48ab-be6d-b79c9808cabe" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "", @@ -932,19 +1060,19 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:47:58 GMT" + "Mon, 05 Feb 2018 20:36:21 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "4cc5af76-875e-4466-bfbc-d58184d93cd3" + "4e955237-982d-42e1-a38e-63d70c531d7d" ], "ContentLength": [ "0" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -965,14 +1093,14 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a272befd-e19b-4535-8552-a5b612a32b52" + "c11b188c-0098-4339-bb3d-1a67d2498c74" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.2.1.0" + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreFileSystemManagementClient/2.3.3.0" ] }, "ResponseBody": "", @@ -987,19 +1115,19 @@ "no-store, no-cache, max-age=0" ], "Date": [ - "Mon, 24 Jul 2017 22:47:58 GMT" + "Mon, 05 Feb 2018 20:36:22 GMT" ], "Pragma": [ "no-cache" ], "x-ms-request-id": [ - "94bdaa32-81d4-4716-afd7-66de750d0eb7" + "6ab0b101-f706-4ea0-a7e0-1b2e176dd59d" ], "ContentLength": [ "0" ], "x-ms-webhdfs-version": [ - "17.04.22.00" + "17.04.24.00" ], "Status": [ "0x0" @@ -1016,9 +1144,9 @@ ], "Names": { ".ctor": [ - "datalakerg17727", - "testdatalake18952", - "testadlfs18929" + "datalakerg12338", + "testdatalake13676", + "testadlfs14240" ] }, "Variables": { diff --git a/src/SDKs/DataLake.Store/DataLakeStore.Tests/TestHelpers/DataLakeStoreAndFileSystemManagementHelper.cs b/src/SDKs/DataLake.Store/DataLakeStore.Tests/TestHelpers/DataLakeStoreAndFileSystemManagementHelper.cs index 3da11c91aa80..98ec56ba965c 100644 --- a/src/SDKs/DataLake.Store/DataLakeStore.Tests/TestHelpers/DataLakeStoreAndFileSystemManagementHelper.cs +++ b/src/SDKs/DataLake.Store/DataLakeStore.Tests/TestHelpers/DataLakeStoreAndFileSystemManagementHelper.cs @@ -34,15 +34,42 @@ public DataLakeStoreAndFileSystemManagementHelper(TestBase testBase, MockContext public void TryRegisterSubscriptionForResource(string providerName = "Microsoft.DataLakeStore") { var reg = resourceManagementClient.Providers.Register(providerName); - ThrowIfTrue(reg == null, "resourceManagementClient.Providers.Register returned null."); + ThrowIfTrue( + reg == null, + "resourceManagementClient.Providers.Register returned null." + ); + var resultAfterRegister = resourceManagementClient.Providers.Get(providerName); - ThrowIfTrue(resultAfterRegister == null, "resourceManagementClient.Providers.Get returned null."); - ThrowIfTrue(string.IsNullOrEmpty(resultAfterRegister.Id), "Provider.Id is null or empty."); - ThrowIfTrue(!providerName.Equals(resultAfterRegister.NamespaceProperty), string.Format("Provider name: {0} is not equal to {1}.", resultAfterRegister.NamespaceProperty, providerName)); - ThrowIfTrue(!resultAfterRegister.RegistrationState.Equals("Registered") && - !resultAfterRegister.RegistrationState.Equals("Registering"), - string.Format("Provider registration state was not 'Registered' or 'Registering', instead it was '{0}'", resultAfterRegister.RegistrationState)); - ThrowIfTrue(resultAfterRegister.ResourceTypes == null || resultAfterRegister.ResourceTypes.Count == 0, "Provider.ResourceTypes is empty."); + + ThrowIfTrue( + resultAfterRegister == null, + "resourceManagementClient.Providers.Get returned null." + ); + ThrowIfTrue( + string.IsNullOrEmpty(resultAfterRegister.Id), + "Provider.Id is null or empty." + ); + ThrowIfTrue( + !providerName.Equals(resultAfterRegister.NamespaceProperty), + string.Format( + "Provider name: {0} is not equal to {1}.", + resultAfterRegister.NamespaceProperty, + providerName + ) + ); + ThrowIfTrue( + !resultAfterRegister.RegistrationState.Equals("Registered") && + !resultAfterRegister.RegistrationState.Equals("Registering"), + string.Format( + "Provider registration state was not 'Registered' or 'Registering', instead it was '{0}'", + resultAfterRegister.RegistrationState + ) + ); + ThrowIfTrue( + resultAfterRegister.ResourceTypes == null || + resultAfterRegister.ResourceTypes.Count == 0, + "Provider.ResourceTypes is empty." + ); } public void TryCreateResourceGroup(string resourceGroupName, string location) @@ -52,7 +79,10 @@ public void TryCreateResourceGroup(string resourceGroupName, string location) ResourceGroup newlyCreatedGroup = null; try { - newlyCreatedGroup = resourceManagementClient.ResourceGroups.Get(resourceGroupName); + newlyCreatedGroup = + resourceManagementClient.ResourceGroups.Get( + resourceGroupName + ); exists = true; } catch @@ -63,14 +93,31 @@ public void TryCreateResourceGroup(string resourceGroupName, string location) if (!exists) { var result = - resourceManagementClient.ResourceGroups.CreateOrUpdate(resourceGroupName, - new ResourceGroup {Location = location}); - newlyCreatedGroup = resourceManagementClient.ResourceGroups.Get(resourceGroupName); + resourceManagementClient.ResourceGroups.CreateOrUpdate( + resourceGroupName, + new ResourceGroup + { + Location = location + } + ); + + newlyCreatedGroup = + resourceManagementClient.ResourceGroups.Get( + resourceGroupName + ); } - ThrowIfTrue(newlyCreatedGroup == null, "resourceManagementClient.ResourceGroups.Get returned null."); - ThrowIfTrue(!resourceGroupName.Equals(newlyCreatedGroup.Name), - string.Format("resourceGroupName is not equal to {0}", resourceGroupName)); + ThrowIfTrue( + newlyCreatedGroup == null, + "resourceManagementClient.ResourceGroups.Get returned null." + ); + ThrowIfTrue( + !resourceGroupName.Equals(newlyCreatedGroup.Name), + string.Format( + "resourceGroupName is not equal to {0}", + resourceGroupName + ) + ); } public string TryCreateDataLakeStoreAccount(string resourceGroupName, string location, string accountName) @@ -79,7 +126,12 @@ public string TryCreateDataLakeStoreAccount(string resourceGroupName, string loc DataLakeStoreAccount accountGetResponse = null; try { - accountGetResponse = dataLakeStoreManagementClient.Account.Get(resourceGroupName, accountName); + accountGetResponse = + dataLakeStoreManagementClient.Accounts.Get( + resourceGroupName, + accountName + ); + exists = true; } catch @@ -90,11 +142,20 @@ public string TryCreateDataLakeStoreAccount(string resourceGroupName, string loc if (!exists) { - dataLakeStoreManagementClient.Account.Create(resourceGroupName, accountName, - new DataLakeStoreAccount {Location = location}); + dataLakeStoreManagementClient.Accounts.Create( + resourceGroupName, + accountName, + new CreateDataLakeStoreAccountParameters + { + Location = location + } + ); - accountGetResponse = dataLakeStoreManagementClient.Account.Get(resourceGroupName, - accountName); + accountGetResponse = + dataLakeStoreManagementClient.Accounts.Get( + resourceGroupName, + accountName + ); // wait for provisioning state to be Succeeded // we will wait a maximum of 15 minutes for this to happen and then report failures @@ -107,17 +168,20 @@ public string TryCreateDataLakeStoreAccount(string resourceGroupName, string loc { TestUtilities.Wait(60000); // Wait for one minute and then go again. minutesWaited++; - accountGetResponse = dataLakeStoreManagementClient.Account.Get(resourceGroupName, - accountName); + accountGetResponse = + dataLakeStoreManagementClient.Accounts.Get( + resourceGroupName, + accountName + ); } } // Confirm that the account creation did succeed ThrowIfTrue( - accountGetResponse.ProvisioningState != - DataLakeStoreAccountStatus.Succeeded, + accountGetResponse.ProvisioningState != DataLakeStoreAccountStatus.Succeeded, "Account failed to be provisioned into the success state. Actual State: " + - accountGetResponse.ProvisioningState); + accountGetResponse.ProvisioningState + ); return accountGetResponse.Endpoint; } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountOperations.Customizations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountsOperations.Customizations.cs similarity index 99% rename from src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountOperations.Customizations.cs rename to src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountsOperations.Customizations.cs index 7c7964050cd1..af4a97f3f9b8 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountOperations.Customizations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountsOperations.Customizations.cs @@ -22,9 +22,9 @@ namespace Microsoft.Azure.Management.DataLake.Store using Models; /// - /// AccountOperations operations. + /// AccountsOperations operations. /// - internal partial class AccountOperations : IServiceOperations, IAccountOperations + internal partial class AccountsOperations : IServiceOperations, IAccountsOperations { /// /// Tests the existence of the specified Data Lake Store firewall rule. diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountOperationsExtensions.Customizations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountsOperationsExtensions.Customizations.cs similarity index 76% rename from src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountOperationsExtensions.Customizations.cs rename to src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountsOperationsExtensions.Customizations.cs index 0b9c9c7ea05b..441deea9a759 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountOperationsExtensions.Customizations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/AccountsOperationsExtensions.Customizations.cs @@ -15,9 +15,9 @@ namespace Microsoft.Azure.Management.DataLake.Store using Models; /// - /// Extension methods for AccountOperations. + /// Extension methods for AccountsOperations. /// - public static partial class AccountOperationsExtensions + public static partial class AccountsOperationsExtensions { /// /// Gets the specified Data Lake Store firewall rule. @@ -36,9 +36,9 @@ public static partial class AccountOperationsExtensions /// /// The name of the firewall rule to retrieve. /// - public static bool FirewallRuleExists(this IAccountOperations operations, string resourceGroupName, string accountName, string firewallRuleName) + public static bool FirewallRuleExists(this IAccountsOperations operations, string resourceGroupName, string accountName, string firewallRuleName) { - return Task.Factory.StartNew(s => ((IAccountOperations)s).FirewallRuleExistsAsync(resourceGroupName, accountName, firewallRuleName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IAccountsOperations)s).FirewallRuleExistsAsync(resourceGroupName, accountName, firewallRuleName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -61,7 +61,7 @@ public static bool FirewallRuleExists(this IAccountOperations operations, string /// /// The cancellation token. /// - public static async Task FirewallRuleExistsAsync(this IAccountOperations operations, string resourceGroupName, string accountName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FirewallRuleExistsAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.FirewallRuleExistsWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, null, cancellationToken).ConfigureAwait(false)) { @@ -82,9 +82,9 @@ public static bool FirewallRuleExists(this IAccountOperations operations, string /// /// The name of the Data Lake Store account to retrieve. /// - public static bool Exists(this IAccountOperations operations, string resourceGroupName, string accountName) + public static bool Exists(this IAccountsOperations operations, string resourceGroupName, string accountName) { - return Task.Factory.StartNew(s => ((IAccountOperations)s).ExistsAsync(resourceGroupName, accountName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IAccountsOperations)s).ExistsAsync(resourceGroupName, accountName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -103,7 +103,7 @@ public static bool Exists(this IAccountOperations operations, string resourceGro /// /// The cancellation token. /// - public static async Task ExistsAsync(this IAccountOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ExistsAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ExistsWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/DataLakeStoreCustomizationHelper.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/DataLakeStoreCustomizationHelper.cs index b2947a579333..ed3b562723f5 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/DataLakeStoreCustomizationHelper.cs +++ b/src/SDKs/DataLake.Store/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.3.3-preview"; + internal const string PackageVersion = "2.4.0-preview"; internal const string DefaultAdlsFileSystemDnsSuffix = "azuredatalakestore.net"; diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/IAccountOperations.Customizations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/IAccountsOperations.Customizations.cs similarity index 98% rename from src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/IAccountOperations.Customizations.cs rename to src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/IAccountsOperations.Customizations.cs index 1e153e8984cd..a0c7936ee5e2 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/IAccountOperations.Customizations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Customizations/IAccountsOperations.Customizations.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.Management.DataLake.Store /// /// AccountOperations operations. /// - public partial interface IAccountOperations + public partial interface IAccountsOperations { /// /// Tests the existence of the specified Data Lake Store firewall rule. diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountOperations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountsOperations.cs similarity index 95% rename from src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountOperations.cs rename to src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountsOperations.cs index 062a5ba0c43a..7cb9fd4a58ec 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountOperations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountsOperations.cs @@ -24,12 +24,12 @@ namespace Microsoft.Azure.Management.DataLake.Store using System.Threading.Tasks; /// - /// AccountOperations operations. + /// AccountsOperations operations. /// - internal partial class AccountOperations : IServiceOperations, IAccountOperations + internal partial class AccountsOperations : IServiceOperations, IAccountsOperations { /// - /// Initializes a new instance of the AccountOperations class. + /// Initializes a new instance of the AccountsOperations class. /// /// /// Reference to the service client. @@ -37,7 +37,7 @@ internal partial class AccountOperations : IServiceOperations /// Thrown when a required parameter is null /// - internal AccountOperations(DataLakeStoreAccountManagementClient client) + internal AccountsOperations(DataLakeStoreAccountManagementClient client) { if (client == null) { @@ -52,89 +52,20 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) public DataLakeStoreAccountManagementClient Client { get; private set; } /// - /// Creates the specified Data Lake Store account. - /// - /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. - /// - /// - /// The name of the Data Lake Store account to create. - /// - /// - /// Parameters supplied to create the Data Lake Store account. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string name, DataLakeStoreAccount parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, name, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Updates the specified Data Lake Store account information. - /// - /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. - /// - /// - /// The name of the Data Lake Store account to update. - /// - /// - /// Parameters supplied to update the Data Lake Store account. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string name, DataLakeStoreAccountUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, name, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes the specified Data Lake Store account. + /// Lists the Data Lake Store accounts within the subscription. The response + /// includes a link to the next page of results, if any. /// - /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. - /// - /// - /// The name of the Data Lake Store account to delete. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. + /// + /// OData parameters to apply to the operation. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, name, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the specified Data Lake Store account. - /// - /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// + /// OData Select statement. Limits the properties on each entry to just those + /// requested, e.g. Categories?$select=CategoryName,Description. Optional. /// - /// - /// The name of the Data Lake Store account to retrieve. + /// + /// The Boolean value of true or false to request a count of the matching + /// resources included with the resources in the response, e.g. + /// Categories?$count=true. Optional. /// /// /// Headers that will be added to request. @@ -157,24 +88,16 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (name == null) + if (Client.SubscriptionId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } 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; @@ -182,18 +105,33 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("name", name); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("select", select); + tracingParameters.Add("count", count); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{name}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataLakeStore/accounts").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (select != null) + { + _queryParameters.Add(string.Format("$select={0}", System.Uri.EscapeDataString(select))); + } + if (count != null) + { + _queryParameters.Add(string.Format("$count={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(count, Client.SerializationSettings).Trim('"')))); + } if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); @@ -291,7 +229,7 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -304,7 +242,7 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -324,16 +262,23 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) } /// - /// Attempts to enable a user managed Key Vault for encryption of the specified - /// Data Lake Store account. + /// Lists the Data Lake Store accounts within a specific resource group. The + /// response includes a link to the next page of results, if any. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// - /// - /// The name of the Data Lake Store account to attempt to enable the Key Vault - /// for. + /// + /// OData parameters to apply to the operation. + /// + /// + /// OData Select statement. Limits the properties on each entry to just those + /// requested, e.g. Categories?$select=CategoryName,Description. Optional. + /// + /// + /// A Boolean value of true or false to request a count of the matching + /// resources included with the resources in the response, e.g. + /// Categories?$count=true. Optional. /// /// /// Headers that will be added to request. @@ -344,6 +289,9 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -353,24 +301,20 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task EnableKeyVaultWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.SubscriptionId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (accountName == null) + if (resourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -378,18 +322,35 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("accountName", accountName); + tracingParameters.Add("select", select); + tracingParameters.Add("count", count); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "EnableKeyVault", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/enableKeyVault").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (select != null) + { + _queryParameters.Add(string.Format("$select={0}", System.Uri.EscapeDataString(select))); + } + if (count != null) + { + _queryParameters.Add(string.Format("$count={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(count, Client.SerializationSettings).Trim('"')))); + } if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); @@ -401,7 +362,7 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -487,13 +448,31 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -502,24 +481,38 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) } /// - /// Lists the Data Lake Store accounts within a specific resource group. The - /// response includes a link to the next page of results, if any. + /// Creates the specified Data Lake Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account(s). + /// The name of the Azure resource group. /// - /// - /// OData parameters to apply to the operation. + /// + /// The name of the Data Lake Store account. /// - /// - /// OData Select statement. Limits the properties on each entry to just those - /// requested, e.g. Categories?$select=CategoryName,Description. Optional. + /// + /// Parameters supplied to create the Data Lake Store account. /// - /// - /// A Boolean value of true or false to request a count of the matching - /// resources included with the resources in the response, e.g. - /// Categories?$count=true. Optional. + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, CreateDataLakeStoreAccountParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specified Data Lake Store account. + /// + /// + /// The name of the Azure resource group. + /// + /// + /// The name of the Data Lake Store account. /// /// /// Headers that will be added to request. @@ -542,19 +535,23 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (Client.ApiVersion == null) + if (accountName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } - if (Client.SubscriptionId == null) + if (Client.ApiVersion == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -563,35 +560,18 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("odataQuery", odataQuery); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("select", select); - tracingParameters.Add("count", count); + tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + 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.DataLakeStore/accounts").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); List _queryParameters = new List(); - if (odataQuery != null) - { - var _odataFilter = odataQuery.ToString(); - if (!string.IsNullOrEmpty(_odataFilter)) - { - _queryParameters.Add(_odataFilter); - } - } - if (select != null) - { - _queryParameters.Add(string.Format("$select={0}", System.Uri.EscapeDataString(select))); - } - if (count != null) - { - _queryParameters.Add(string.Format("$count={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(count, Client.SerializationSettings).Trim('"')))); - } if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); @@ -689,7 +669,7 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -702,7 +682,7 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -722,20 +702,61 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) } /// - /// Lists the Data Lake Store accounts within the subscription. The response - /// includes a link to the next page of results, if any. + /// Updates the specified Data Lake Store account information. /// - /// - /// OData parameters to apply to the operation. + /// + /// The name of the Azure resource group. /// - /// - /// OData Select statement. Limits the properties on each entry to just those - /// requested, e.g. Categories?$select=CategoryName,Description. Optional. + /// + /// The name of the Data Lake Store account. /// - /// - /// The Boolean value of true or false to request a count of the matching - /// resources included with the resources in the response, e.g. - /// Categories?$count=true. Optional. + /// + /// Parameters supplied to update the Data Lake Store account. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, UpdateDataLakeStoreAccountParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified Data Lake Store account. + /// + /// + /// The name of the Azure resource group. + /// + /// + /// The name of the Data Lake Store account. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Attempts to enable a user managed Key Vault for encryption of the specified + /// Data Lake Store account. + /// + /// + /// The name of the Azure resource group. + /// + /// + /// The name of the Data Lake Store account. /// /// /// Headers that will be added to request. @@ -746,9 +767,6 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -758,16 +776,24 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task EnableKeyVaultWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); - } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + 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"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -775,33 +801,18 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("odataQuery", odataQuery); - tracingParameters.Add("select", select); - tracingParameters.Add("count", count); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "EnableKeyVault", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataLakeStore/accounts").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/enableKeyVault").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); List _queryParameters = new List(); - if (odataQuery != null) - { - var _odataFilter = odataQuery.ToString(); - if (!string.IsNullOrEmpty(_odataFilter)) - { - _queryParameters.Add(_odataFilter); - } - } - if (select != null) - { - _queryParameters.Add(string.Format("$select={0}", System.Uri.EscapeDataString(select))); - } - if (count != null) - { - _queryParameters.Add(string.Format("$count={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(count, Client.SerializationSettings).Trim('"')))); - } if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); @@ -813,7 +824,7 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -899,31 +910,13 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -935,7 +928,7 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// Checks whether the specified account name is available or taken. /// /// - /// The Resource location without whitespace. + /// The resource location without whitespace. /// /// /// Parameters supplied to check the Data Lake Store account name availability. @@ -963,6 +956,10 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// public async Task> CheckNameAvailabilityWithHttpMessagesAsync(string location, CheckNameAvailabilityParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (location == null) { throw new ValidationException(ValidationRules.CannotBeNull, "location"); @@ -979,10 +976,6 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) { 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; @@ -998,8 +991,8 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataLakeStore/locations/{location}/checkNameAvailability").ToString(); - _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -1140,11 +1133,10 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// Creates the specified Data Lake Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// - /// - /// The name of the Data Lake Store account to create. + /// + /// The name of the Data Lake Store account. /// /// /// Parameters supplied to create the Data Lake Store account. @@ -1170,15 +1162,19 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string name, DataLakeStoreAccount parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string accountName, CreateDataLakeStoreAccountParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (name == null) + if (accountName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } if (parameters == null) { @@ -1192,10 +1188,6 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) { 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; @@ -1204,17 +1196,17 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("name", name); + tracingParameters.Add("accountName", accountName); tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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/{name}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -1373,11 +1365,10 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// Updates the specified Data Lake Store account information. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// - /// - /// The name of the Data Lake Store account to update. + /// + /// The name of the Data Lake Store account. /// /// /// Parameters supplied to update the Data Lake Store account. @@ -1403,15 +1394,19 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string name, DataLakeStoreAccountUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, UpdateDataLakeStoreAccountParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (name == null) + if (accountName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } if (parameters == null) { @@ -1421,10 +1416,6 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) { 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; @@ -1433,17 +1424,17 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("name", name); + tracingParameters.Add("accountName", accountName); tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{name}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -1620,11 +1611,10 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// Deletes the specified Data Lake Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// - /// - /// The name of the Data Lake Store account to delete. + /// + /// The name of the Data Lake Store account. /// /// /// Headers that will be added to request. @@ -1644,24 +1634,24 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (name == null) + if (accountName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); + 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; @@ -1670,16 +1660,16 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("name", name); + tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{name}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -1793,8 +1783,8 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) } /// - /// Lists the Data Lake Store accounts within a specific resource group. The - /// response includes a link to the next page of results, if any. + /// Lists the Data Lake Store accounts within the subscription. The response + /// includes a link to the next page of results, if any. /// /// /// The NextLink from the previous successful call to List operation. @@ -1820,7 +1810,7 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1835,7 +1825,7 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1967,8 +1957,8 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) } /// - /// Lists the Data Lake Store accounts within the subscription. The response - /// includes a link to the next page of results, if any. + /// Lists the Data Lake Store accounts within a specific resource group. The + /// response includes a link to the next page of results, if any. /// /// /// The NextLink from the previous successful call to List operation. @@ -1994,7 +1984,7 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -2009,7 +1999,7 @@ internal AccountOperations(DataLakeStoreAccountManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountOperationsExtensions.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountsOperationsExtensions.cs similarity index 70% rename from src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountOperationsExtensions.cs rename to src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountsOperationsExtensions.cs index 35a43eb597fc..4002e6f40880 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountOperationsExtensions.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/AccountsOperationsExtensions.cs @@ -18,143 +18,168 @@ namespace Microsoft.Azure.Management.DataLake.Store using System.Threading.Tasks; /// - /// Extension methods for AccountOperations. + /// Extension methods for AccountsOperations. /// - public static partial class AccountOperationsExtensions + public static partial class AccountsOperationsExtensions { /// - /// Creates the specified Data Lake Store account. + /// Lists the Data Lake Store accounts within the subscription. The response + /// includes a link to the next page of results, if any. /// /// /// The operations group for this extension method. /// - /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// + /// OData parameters to apply to the operation. /// - /// - /// The name of the Data Lake Store account to create. + /// + /// OData Select statement. Limits the properties on each entry to just those + /// requested, e.g. Categories?$select=CategoryName,Description. Optional. /// - /// - /// Parameters supplied to create the Data Lake Store account. + /// + /// The Boolean value of true or false to request a count of the matching + /// resources included with the resources in the response, e.g. + /// Categories?$count=true. Optional. /// - public static DataLakeStoreAccount Create(this IAccountOperations operations, string resourceGroupName, string name, DataLakeStoreAccount parameters) + public static IPage List(this IAccountsOperations operations, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?)) { - return operations.CreateAsync(resourceGroupName, name, parameters).GetAwaiter().GetResult(); + return operations.ListAsync(odataQuery, select, count).GetAwaiter().GetResult(); } /// - /// Creates the specified Data Lake Store account. + /// Lists the Data Lake Store accounts within the subscription. The response + /// includes a link to the next page of results, if any. /// /// /// The operations group for this extension method. /// - /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// + /// OData parameters to apply to the operation. /// - /// - /// The name of the Data Lake Store account to create. + /// + /// OData Select statement. Limits the properties on each entry to just those + /// requested, e.g. Categories?$select=CategoryName,Description. Optional. /// - /// - /// Parameters supplied to create the Data Lake Store account. + /// + /// The Boolean value of true or false to request a count of the matching + /// resources included with the resources in the response, e.g. + /// Categories?$count=true. Optional. /// /// /// The cancellation token. /// - public static async Task CreateAsync(this IAccountOperations operations, string resourceGroupName, string name, DataLakeStoreAccount parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IAccountsOperations operations, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, name, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, select, count, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the specified Data Lake Store account information. + /// Lists the Data Lake Store accounts within a specific resource group. The + /// response includes a link to the next page of results, if any. /// /// /// 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 Azure resource group. /// - /// - /// The name of the Data Lake Store account to update. + /// + /// OData parameters to apply to the operation. /// - /// - /// Parameters supplied to update the Data Lake Store account. + /// + /// OData Select statement. Limits the properties on each entry to just those + /// requested, e.g. Categories?$select=CategoryName,Description. Optional. + /// + /// + /// A Boolean value of true or false to request a count of the matching + /// resources included with the resources in the response, e.g. + /// Categories?$count=true. Optional. /// - public static DataLakeStoreAccount Update(this IAccountOperations operations, string resourceGroupName, string name, DataLakeStoreAccountUpdateParameters parameters) + public static IPage ListByResourceGroup(this IAccountsOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?)) { - return operations.UpdateAsync(resourceGroupName, name, parameters).GetAwaiter().GetResult(); + return operations.ListByResourceGroupAsync(resourceGroupName, odataQuery, select, count).GetAwaiter().GetResult(); } /// - /// Updates the specified Data Lake Store account information. + /// Lists the Data Lake Store accounts within a specific resource group. The + /// response includes a link to the next page of results, if any. /// /// /// 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 Azure resource group. /// - /// - /// The name of the Data Lake Store account to update. + /// + /// OData parameters to apply to the operation. /// - /// - /// Parameters supplied to update the Data Lake Store account. + /// + /// OData Select statement. Limits the properties on each entry to just those + /// requested, e.g. Categories?$select=CategoryName,Description. Optional. + /// + /// + /// A Boolean value of true or false to request a count of the matching + /// resources included with the resources in the response, e.g. + /// Categories?$count=true. Optional. /// /// /// The cancellation token. /// - public static async Task UpdateAsync(this IAccountOperations operations, string resourceGroupName, string name, DataLakeStoreAccountUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupAsync(this IAccountsOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, name, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, odataQuery, select, count, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes the specified Data Lake Store account. + /// Creates the specified Data Lake Store account. /// /// /// 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 Azure resource group. + /// + /// + /// The name of the Data Lake Store account. /// - /// - /// The name of the Data Lake Store account to delete. + /// + /// Parameters supplied to create the Data Lake Store account. /// - public static void Delete(this IAccountOperations operations, string resourceGroupName, string name) + public static DataLakeStoreAccount Create(this IAccountsOperations operations, string resourceGroupName, string accountName, CreateDataLakeStoreAccountParameters parameters) { - operations.DeleteAsync(resourceGroupName, name).GetAwaiter().GetResult(); + return operations.CreateAsync(resourceGroupName, accountName, parameters).GetAwaiter().GetResult(); } /// - /// Deletes the specified Data Lake Store account. + /// Creates the specified Data Lake Store account. /// /// /// 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 Azure resource group. + /// + /// + /// The name of the Data Lake Store account. /// - /// - /// The name of the Data Lake Store account to delete. + /// + /// Parameters supplied to create the Data Lake Store account. /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this IAccountOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, CreateDataLakeStoreAccountParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// @@ -164,15 +189,14 @@ public static void Delete(this IAccountOperations operations, string resourceGro /// 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 Azure resource group. /// - /// - /// The name of the Data Lake Store account to retrieve. + /// + /// The name of the Data Lake Store account. /// - public static DataLakeStoreAccount Get(this IAccountOperations operations, string resourceGroupName, string name) + public static DataLakeStoreAccount Get(this IAccountsOperations operations, string resourceGroupName, string accountName) { - return operations.GetAsync(resourceGroupName, name).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); } /// @@ -182,180 +206,142 @@ public static DataLakeStoreAccount Get(this IAccountOperations operations, strin /// 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 Azure resource group. /// - /// - /// The name of the Data Lake Store account to retrieve. + /// + /// The name of the Data Lake Store account. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IAccountOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Attempts to enable a user managed Key Vault for encryption of the specified - /// Data Lake Store account. + /// Updates the specified Data Lake Store account information. /// /// /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account to attempt to enable the Key Vault - /// for. + /// The name of the Data Lake Store account. + /// + /// + /// Parameters supplied to update the Data Lake Store account. /// - public static void EnableKeyVault(this IAccountOperations operations, string resourceGroupName, string accountName) + public static DataLakeStoreAccount Update(this IAccountsOperations operations, string resourceGroupName, string accountName, UpdateDataLakeStoreAccountParameters parameters) { - operations.EnableKeyVaultAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); + return operations.UpdateAsync(resourceGroupName, accountName, parameters).GetAwaiter().GetResult(); } /// - /// Attempts to enable a user managed Key Vault for encryption of the specified - /// Data Lake Store account. + /// Updates the specified Data Lake Store account information. /// /// /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account to attempt to enable the Key Vault - /// for. + /// The name of the Data Lake Store account. + /// + /// + /// Parameters supplied to update the Data Lake Store account. /// /// /// The cancellation token. /// - public static async Task EnableKeyVaultAsync(this IAccountOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, UpdateDataLakeStoreAccountParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.EnableKeyVaultWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Lists the Data Lake Store accounts within a specific resource group. The - /// response includes a link to the next page of results, if any. + /// Deletes the specified Data Lake Store account. /// /// /// The operations group for this extension method. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account(s). + /// The name of the Azure resource group. /// - /// - /// OData parameters to apply to the operation. - /// - /// - /// OData Select statement. Limits the properties on each entry to just those - /// requested, e.g. Categories?$select=CategoryName,Description. Optional. - /// - /// - /// A Boolean value of true or false to request a count of the matching - /// resources included with the resources in the response, e.g. - /// Categories?$count=true. Optional. + /// + /// The name of the Data Lake Store account. /// - public static IPage ListByResourceGroup(this IAccountOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?)) + public static void Delete(this IAccountsOperations operations, string resourceGroupName, string accountName) { - return operations.ListByResourceGroupAsync(resourceGroupName, odataQuery, select, count).GetAwaiter().GetResult(); + operations.DeleteAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); } /// - /// Lists the Data Lake Store accounts within a specific resource group. The - /// response includes a link to the next page of results, if any. + /// Deletes the specified Data Lake Store account. /// /// /// The operations group for this extension method. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account(s). + /// The name of the Azure resource group. /// - /// - /// OData parameters to apply to the operation. - /// - /// - /// OData Select statement. Limits the properties on each entry to just those - /// requested, e.g. Categories?$select=CategoryName,Description. Optional. - /// - /// - /// A Boolean value of true or false to request a count of the matching - /// resources included with the resources in the response, e.g. - /// Categories?$count=true. Optional. + /// + /// The name of the Data Lake Store account. /// /// /// The cancellation token. /// - public static async Task> ListByResourceGroupAsync(this IAccountOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, odataQuery, select, count, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Lists the Data Lake Store accounts within the subscription. The response - /// includes a link to the next page of results, if any. + /// Attempts to enable a user managed Key Vault for encryption of the specified + /// Data Lake Store account. /// /// /// The operations group for this extension method. /// - /// - /// OData parameters to apply to the operation. - /// - /// - /// OData Select statement. Limits the properties on each entry to just those - /// requested, e.g. Categories?$select=CategoryName,Description. Optional. + /// + /// The name of the Azure resource group. /// - /// - /// The Boolean value of true or false to request a count of the matching - /// resources included with the resources in the response, e.g. - /// Categories?$count=true. Optional. + /// + /// The name of the Data Lake Store account. /// - public static IPage List(this IAccountOperations operations, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?)) + public static void EnableKeyVault(this IAccountsOperations operations, string resourceGroupName, string accountName) { - return operations.ListAsync(odataQuery, select, count).GetAwaiter().GetResult(); + operations.EnableKeyVaultAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); } /// - /// Lists the Data Lake Store accounts within the subscription. The response - /// includes a link to the next page of results, if any. + /// Attempts to enable a user managed Key Vault for encryption of the specified + /// Data Lake Store account. /// /// /// The operations group for this extension method. /// - /// - /// OData parameters to apply to the operation. - /// - /// - /// OData Select statement. Limits the properties on each entry to just those - /// requested, e.g. Categories?$select=CategoryName,Description. Optional. + /// + /// The name of the Azure resource group. /// - /// - /// The Boolean value of true or false to request a count of the matching - /// resources included with the resources in the response, e.g. - /// Categories?$count=true. Optional. + /// + /// The name of the Data Lake Store account. /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IAccountOperations operations, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task EnableKeyVaultAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, select, count, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.EnableKeyVaultWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -365,12 +351,12 @@ public static void EnableKeyVault(this IAccountOperations operations, string res /// The operations group for this extension method. /// /// - /// The Resource location without whitespace. + /// The resource location without whitespace. /// /// /// Parameters supplied to check the Data Lake Store account name availability. /// - public static NameAvailabilityInformation CheckNameAvailability(this IAccountOperations operations, string location, CheckNameAvailabilityParameters parameters) + public static NameAvailabilityInformation CheckNameAvailability(this IAccountsOperations operations, string location, CheckNameAvailabilityParameters parameters) { return operations.CheckNameAvailabilityAsync(location, parameters).GetAwaiter().GetResult(); } @@ -382,7 +368,7 @@ public static NameAvailabilityInformation CheckNameAvailability(this IAccountOpe /// The operations group for this extension method. /// /// - /// The Resource location without whitespace. + /// The resource location without whitespace. /// /// /// Parameters supplied to check the Data Lake Store account name availability. @@ -390,7 +376,7 @@ public static NameAvailabilityInformation CheckNameAvailability(this IAccountOpe /// /// The cancellation token. /// - public static async Task CheckNameAvailabilityAsync(this IAccountOperations operations, string location, CheckNameAvailabilityParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CheckNameAvailabilityAsync(this IAccountsOperations operations, string location, CheckNameAvailabilityParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(location, parameters, null, cancellationToken).ConfigureAwait(false)) { @@ -405,18 +391,17 @@ public static NameAvailabilityInformation CheckNameAvailability(this IAccountOpe /// 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 Azure resource group. /// - /// - /// The name of the Data Lake Store account to create. + /// + /// The name of the Data Lake Store account. /// /// /// Parameters supplied to create the Data Lake Store account. /// - public static DataLakeStoreAccount BeginCreate(this IAccountOperations operations, string resourceGroupName, string name, DataLakeStoreAccount parameters) + public static DataLakeStoreAccount BeginCreate(this IAccountsOperations operations, string resourceGroupName, string accountName, CreateDataLakeStoreAccountParameters parameters) { - return operations.BeginCreateAsync(resourceGroupName, name, parameters).GetAwaiter().GetResult(); + return operations.BeginCreateAsync(resourceGroupName, accountName, parameters).GetAwaiter().GetResult(); } /// @@ -426,11 +411,10 @@ public static DataLakeStoreAccount BeginCreate(this IAccountOperations operation /// 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 Azure resource group. /// - /// - /// The name of the Data Lake Store account to create. + /// + /// The name of the Data Lake Store account. /// /// /// Parameters supplied to create the Data Lake Store account. @@ -438,9 +422,9 @@ public static DataLakeStoreAccount BeginCreate(this IAccountOperations operation /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IAccountOperations operations, string resourceGroupName, string name, DataLakeStoreAccount parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, CreateDataLakeStoreAccountParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, name, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -453,18 +437,17 @@ public static DataLakeStoreAccount BeginCreate(this IAccountOperations operation /// 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 Azure resource group. /// - /// - /// The name of the Data Lake Store account to update. + /// + /// The name of the Data Lake Store account. /// /// /// Parameters supplied to update the Data Lake Store account. /// - public static DataLakeStoreAccount BeginUpdate(this IAccountOperations operations, string resourceGroupName, string name, DataLakeStoreAccountUpdateParameters parameters) + public static DataLakeStoreAccount BeginUpdate(this IAccountsOperations operations, string resourceGroupName, string accountName, UpdateDataLakeStoreAccountParameters parameters) { - return operations.BeginUpdateAsync(resourceGroupName, name, parameters).GetAwaiter().GetResult(); + return operations.BeginUpdateAsync(resourceGroupName, accountName, parameters).GetAwaiter().GetResult(); } /// @@ -474,11 +457,10 @@ public static DataLakeStoreAccount BeginUpdate(this IAccountOperations operation /// 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 Azure resource group. /// - /// - /// The name of the Data Lake Store account to update. + /// + /// The name of the Data Lake Store account. /// /// /// Parameters supplied to update the Data Lake Store account. @@ -486,9 +468,9 @@ public static DataLakeStoreAccount BeginUpdate(this IAccountOperations operation /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this IAccountOperations operations, string resourceGroupName, string name, DataLakeStoreAccountUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUpdateAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, UpdateDataLakeStoreAccountParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, name, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -501,15 +483,14 @@ public static DataLakeStoreAccount BeginUpdate(this IAccountOperations operation /// 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 Azure resource group. /// - /// - /// The name of the Data Lake Store account to delete. + /// + /// The name of the Data Lake Store account. /// - public static void BeginDelete(this IAccountOperations operations, string resourceGroupName, string name) + public static void BeginDelete(this IAccountsOperations operations, string resourceGroupName, string accountName) { - operations.BeginDeleteAsync(resourceGroupName, name).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); } /// @@ -519,23 +500,22 @@ public static void BeginDelete(this IAccountOperations operations, string resour /// 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 Azure resource group. /// - /// - /// The name of the Data Lake Store account to delete. + /// + /// The name of the Data Lake Store account. /// /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IAccountOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Lists the Data Lake Store accounts within a specific resource group. The - /// response includes a link to the next page of results, if any. + /// Lists the Data Lake Store accounts within the subscription. The response + /// includes a link to the next page of results, if any. /// /// /// The operations group for this extension method. @@ -543,14 +523,14 @@ public static void BeginDelete(this IAccountOperations operations, string resour /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByResourceGroupNext(this IAccountOperations operations, string nextPageLink) + public static IPage ListNext(this IAccountsOperations operations, string nextPageLink) { - return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Lists the Data Lake Store accounts within a specific resource group. The - /// response includes a link to the next page of results, if any. + /// Lists the Data Lake Store accounts within the subscription. The response + /// includes a link to the next page of results, if any. /// /// /// The operations group for this extension method. @@ -561,17 +541,17 @@ public static IPage ListByResourceGroupNext(this IAcc /// /// The cancellation token. /// - public static async Task> ListByResourceGroupNextAsync(this IAccountOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListNextAsync(this IAccountsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Lists the Data Lake Store accounts within the subscription. The response - /// includes a link to the next page of results, if any. + /// Lists the Data Lake Store accounts within a specific resource group. The + /// response includes a link to the next page of results, if any. /// /// /// The operations group for this extension method. @@ -579,14 +559,14 @@ public static IPage ListByResourceGroupNext(this IAcc /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListNext(this IAccountOperations operations, string nextPageLink) + public static IPage ListByResourceGroupNext(this IAccountsOperations operations, string nextPageLink) { - return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Lists the Data Lake Store accounts within the subscription. The response - /// includes a link to the next page of results, if any. + /// Lists the Data Lake Store accounts within a specific resource group. The + /// response includes a link to the next page of results, if any. /// /// /// The operations group for this extension method. @@ -597,9 +577,9 @@ public static IPage ListNext(this IAccountOperations /// /// The cancellation token. /// - public static async Task> ListNextAsync(this IAccountOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupNextAsync(this IAccountsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/DataLakeStoreAccountManagementClient.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/DataLakeStoreAccountManagementClient.cs index ab3eba518d19..d5e38af523e2 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/DataLakeStoreAccountManagementClient.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/DataLakeStoreAccountManagementClient.cs @@ -75,6 +75,11 @@ public partial class DataLakeStoreAccountManagementClient : ServiceClient public bool? GenerateClientRequestId { get; set; } + /// + /// Gets the IAccountsOperations. + /// + public virtual IAccountsOperations Accounts { get; private set; } + /// /// Gets the IFirewallRulesOperations. /// @@ -86,20 +91,15 @@ public partial class DataLakeStoreAccountManagementClient : ServiceClient - /// Gets the IAccountOperations. + /// Gets the IOperations. /// - public virtual IAccountOperations Account { get; private set; } + public virtual IOperations Operations { get; private set; } /// /// Gets the ILocationsOperations. /// public virtual ILocationsOperations Locations { get; private set; } - /// - /// Gets the IOperations. - /// - public virtual IOperations Operations { get; private set; } - /// /// Initializes a new instance of the DataLakeStoreAccountManagementClient class. /// @@ -301,11 +301,11 @@ internal DataLakeStoreAccountManagementClient(System.Uri baseUri, ServiceClientC /// private void Initialize() { + Accounts = new AccountsOperations(this); FirewallRules = new FirewallRulesOperations(this); TrustedIdProviders = new TrustedIdProvidersOperations(this); - Account = new AccountOperations(this); - Locations = new LocationsOperations(this); Operations = new Operations(this); + Locations = new LocationsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2016-11-01"; AcceptLanguage = "en-US"; diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FileSystemOperations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FileSystemOperations.cs index 0073f3d59d47..c7320a313eb7 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FileSystemOperations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FileSystemOperations.cs @@ -420,8 +420,8 @@ internal FileSystemOperations(DataLakeStoreFileSystemManagementClient client) } if (streamContents != null && streamContents != Stream.Null) { - _httpRequest.Content = new StreamContent(streamContents); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/octet-stream"); + _httpRequest.Content = new StreamContent(streamContents); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/octet-stream"); } // Set Credentials if (Client.Credentials != null) @@ -1219,8 +1219,8 @@ internal FileSystemOperations(DataLakeStoreFileSystemManagementClient client) } if (streamContents != null && streamContents != Stream.Null) { - _httpRequest.Content = new StreamContent(streamContents); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/octet-stream"); + _httpRequest.Content = new StreamContent(streamContents); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/octet-stream"); } // Set Credentials if (Client.Credentials != null) @@ -2333,8 +2333,8 @@ internal FileSystemOperations(DataLakeStoreFileSystemManagementClient client) } if (streamContents != null && streamContents != Stream.Null) { - _httpRequest.Content = new StreamContent(streamContents); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/octet-stream"); + _httpRequest.Content = new StreamContent(streamContents); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/octet-stream"); } // Set Credentials if (Client.Credentials != null) @@ -2570,8 +2570,8 @@ internal FileSystemOperations(DataLakeStoreFileSystemManagementClient client) string _requestContent = null; if (streamContents != null && streamContents != Stream.Null) { - _httpRequest.Content = new StreamContent(streamContents); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/octet-stream"); + _httpRequest.Content = new StreamContent(streamContents); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/octet-stream"); } // Set Credentials if (Client.Credentials != null) diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FirewallRulesOperations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FirewallRulesOperations.cs index 6c879d143cee..0b79213064ad 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FirewallRulesOperations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FirewallRulesOperations.cs @@ -51,22 +51,14 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) public DataLakeStoreAccountManagementClient 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. + /// Lists the Data Lake Store firewall rules within the specified Data Lake + /// Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// /// - /// 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. - /// - /// - /// Parameters supplied to create or update the firewall rule. + /// The name of the Data Lake Store account. /// /// /// Headers that will be added to request. @@ -89,8 +81,12 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) /// /// 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)) + public async Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -99,26 +95,10 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) { 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; @@ -128,18 +108,15 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) 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); + 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.DataLakeStore/accounts/{accountName}/firewallRules/{firewallRuleName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/firewallRules").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _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) { @@ -152,7 +129,7 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -183,12 +160,6 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -244,7 +215,7 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -257,7 +228,7 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -277,21 +248,20 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) } /// - /// Updates the specified firewall rule. + /// 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 Store - /// account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account to which to update the firewall - /// rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to update. + /// The name of the firewall rule to create or update. /// /// - /// Parameters supplied to update the firewall rule. + /// Parameters supplied to create or update the firewall rule. /// /// /// Headers that will be added to request. @@ -314,8 +284,12 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) /// /// 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)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, CreateOrUpdateFirewallRuleParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -328,13 +302,17 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "firewallRuleName"); } - if (Client.ApiVersion == null) + if (parameters == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - if (Client.SubscriptionId == null) + if (parameters != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -348,15 +326,15 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) tracingParameters.Add("firewallRuleName", firewallRuleName); tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + 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.DataLakeStore/accounts/{accountName}/firewallRules/{firewallRuleName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _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) { @@ -369,7 +347,7 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -494,19 +472,16 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) } /// - /// Deletes the specified firewall rule from the specified Data Lake Store - /// account + /// Gets the specified Data Lake Store firewall rule. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to delete the firewall - /// rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to delete. + /// The name of the firewall rule to retrieve. /// /// /// Headers that will be added to request. @@ -517,6 +492,9 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -526,8 +504,12 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) /// /// 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)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -544,10 +526,6 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) { 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; @@ -559,15 +537,15 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) tracingParameters.Add("accountName", accountName); tracingParameters.Add("firewallRuleName", firewallRuleName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + 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.DataLakeStore/accounts/{accountName}/firewallRules/{firewallRuleName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _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) { @@ -580,7 +558,7 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -631,7 +609,7 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 204) + if ((int)_statusCode != 200) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -666,13 +644,31 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -681,18 +677,19 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) } /// - /// Gets the specified Data Lake Store firewall rule. + /// Updates the specified firewall rule. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the firewall - /// rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to retrieve. + /// The name of the firewall rule to update. + /// + /// + /// Parameters supplied to update the firewall rule. /// /// /// Headers that will be added to request. @@ -715,8 +712,12 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) /// /// 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)) + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, UpdateFirewallRuleParameters parameters = default(UpdateFirewallRuleParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -733,10 +734,6 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) { 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; @@ -747,16 +744,17 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("firewallRuleName", firewallRuleName); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + 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("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _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) { @@ -769,7 +767,7 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -800,6 +798,12 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials if (Client.Credentials != null) { @@ -888,16 +892,17 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) } /// - /// Lists the Data Lake Store firewall rules within the specified Data Lake - /// Store account. + /// Deletes the specified firewall rule from the specified Data Lake Store + /// account /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the firewall - /// rules. + /// The name of the Data Lake Store account. + /// + /// + /// The name of the firewall rule to delete. /// /// /// Headers that will be added to request. @@ -908,9 +913,6 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -920,8 +922,12 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) /// /// 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)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -930,13 +936,13 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } - if (Client.ApiVersion == null) + if (firewallRuleName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "firewallRuleName"); } - if (Client.SubscriptionId == null) + if (Client.ApiVersion == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -947,15 +953,17 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); + tracingParameters.Add("firewallRuleName", firewallRuleName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByAccount", tracingParameters); + 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.DataLakeStore/accounts/{accountName}/firewallRules").ToString(); + 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("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _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)); + _url = _url.Replace("{firewallRuleName}", System.Uri.EscapeDataString(firewallRuleName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -968,7 +976,7 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1019,7 +1027,7 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1054,31 +1062,13 @@ internal FirewallRulesOperations(DataLakeStoreAccountManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FirewallRulesOperationsExtensions.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FirewallRulesOperationsExtensions.cs index a54ef4e834e8..3478a5c238c3 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FirewallRulesOperationsExtensions.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/FirewallRulesOperationsExtensions.cs @@ -22,262 +22,242 @@ namespace Microsoft.Azure.Management.DataLake.Store 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. + /// Lists the Data Lake Store firewall rules within the specified Data Lake + /// Store account. /// /// /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account to add or replace the firewall - /// rule. + /// The name of the Data Lake Store account. /// - /// - /// 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) + public static IPage ListByAccount(this IFirewallRulesOperations operations, string resourceGroupName, string accountName) { - return operations.CreateOrUpdateAsync(resourceGroupName, accountName, firewallRuleName, parameters).GetAwaiter().GetResult(); + return operations.ListByAccountAsync(resourceGroupName, accountName).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. + /// Lists the Data Lake Store firewall rules within the specified Data Lake + /// Store account. /// /// /// 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 Azure resource group. /// /// - /// 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. - /// - /// - /// Parameters supplied to create or update the firewall rule. + /// The name of the Data Lake Store account. /// /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, FirewallRule parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAccountAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the specified firewall rule. + /// 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 Store - /// account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account to which to update the firewall - /// rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to update. + /// The name of the firewall rule to create or update. /// /// - /// Parameters supplied to update the firewall rule. + /// Parameters supplied to create or update the firewall rule. /// - public static FirewallRule Update(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, UpdateFirewallRuleParameters parameters = default(UpdateFirewallRuleParameters)) + public static FirewallRule CreateOrUpdate(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, CreateOrUpdateFirewallRuleParameters parameters) { - return operations.UpdateAsync(resourceGroupName, accountName, firewallRuleName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(resourceGroupName, accountName, firewallRuleName, parameters).GetAwaiter().GetResult(); } /// - /// Updates the specified firewall rule. + /// 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 Store - /// account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account to which to update the firewall - /// rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to update. + /// The name of the firewall rule to create or update. /// /// - /// Parameters supplied to update the firewall rule. + /// Parameters supplied to create or 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)) + public static async Task CreateOrUpdateAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, CreateOrUpdateFirewallRuleParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes the specified firewall rule from the specified Data Lake Store - /// account + /// Gets the specified Data Lake Store 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to delete the firewall - /// rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to delete. + /// The name of the firewall rule to retrieve. /// - public static void Delete(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName) + public static FirewallRule Get(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName) { - operations.DeleteAsync(resourceGroupName, accountName, firewallRuleName).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, accountName, firewallRuleName).GetAwaiter().GetResult(); } /// - /// Deletes the specified firewall rule from the specified Data Lake Store - /// account + /// Gets the specified Data Lake Store 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to delete the firewall - /// rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to delete. + /// The name of the firewall rule to retrieve. /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Gets the specified Data Lake Store firewall rule. + /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the firewall - /// rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to retrieve. + /// The name of the firewall rule to update. /// - public static FirewallRule Get(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName) + /// + /// 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.GetAsync(resourceGroupName, accountName, firewallRuleName).GetAwaiter().GetResult(); + return operations.UpdateAsync(resourceGroupName, accountName, firewallRuleName, parameters).GetAwaiter().GetResult(); } /// - /// Gets the specified Data Lake Store firewall rule. + /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the firewall - /// rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to retrieve. + /// The name of the firewall rule to update. + /// + /// + /// Parameters supplied to update the firewall rule. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken)) + 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.GetWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Lists the Data Lake Store firewall rules within the specified Data Lake - /// Store account. + /// Deletes the specified firewall rule from the specified Data Lake Store + /// account /// /// /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the firewall - /// rules. + /// The name of the Data Lake Store account. /// - public static IPage ListByAccount(this IFirewallRulesOperations operations, string resourceGroupName, string accountName) + /// + /// The name of the firewall rule to delete. + /// + public static void Delete(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName) { - return operations.ListByAccountAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); + operations.DeleteAsync(resourceGroupName, accountName, firewallRuleName).GetAwaiter().GetResult(); } /// - /// Lists the Data Lake Store firewall rules within the specified Data Lake - /// Store account. + /// Deletes the specified firewall rule from the specified Data Lake Store + /// account /// /// /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the firewall - /// rules. + /// The name of the Data Lake Store account. + /// + /// + /// The name of the firewall rule to delete. /// /// /// The cancellation token. /// - public static async Task> ListByAccountAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IFirewallRulesOperations operations, string resourceGroupName, string accountName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IAccountOperations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IAccountsOperations.cs similarity index 84% rename from src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IAccountOperations.cs rename to src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IAccountsOperations.cs index 1a7202e6f2f0..e475551a2810 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IAccountOperations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IAccountsOperations.cs @@ -20,22 +20,26 @@ namespace Microsoft.Azure.Management.DataLake.Store using System.Threading.Tasks; /// - /// AccountOperations operations. + /// AccountsOperations operations. /// - public partial interface IAccountOperations + public partial interface IAccountsOperations { /// - /// Creates the specified Data Lake Store account. + /// Lists the Data Lake Store accounts within the subscription. The + /// response includes a link to the next page of results, if any. /// - /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// + /// OData parameters to apply to the operation. /// - /// - /// The name of the Data Lake Store account to create. + /// + /// OData Select statement. Limits the properties on each entry to just + /// those requested, e.g. Categories?$select=CategoryName,Description. + /// Optional. /// - /// - /// Parameters supplied to create the Data Lake Store account. + /// + /// The Boolean value of true or false to request a count of the + /// matching resources included with the resources in the response, + /// e.g. Categories?$count=true. Optional. /// /// /// The headers that will be added to request. @@ -52,19 +56,27 @@ public partial interface IAccountOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string resourceGroupName, string name, DataLakeStoreAccount parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the specified Data Lake Store account information. + /// Lists the Data Lake Store accounts within a specific resource + /// group. The response includes a link to the next page of results, if + /// any. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// - /// - /// The name of the Data Lake Store account to update. + /// + /// OData parameters to apply to the operation. /// - /// - /// Parameters supplied to update the Data Lake Store account. + /// + /// OData Select statement. Limits the properties on each entry to just + /// those requested, e.g. Categories?$select=CategoryName,Description. + /// Optional. + /// + /// + /// A Boolean value of true or false to request a count of the matching + /// resources included with the resources in the response, e.g. + /// Categories?$count=true. Optional. /// /// /// The headers that will be added to request. @@ -81,16 +93,18 @@ public partial interface IAccountOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string name, DataLakeStoreAccountUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the specified Data Lake Store account. + /// Creates the specified Data Lake Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// - /// - /// The name of the Data Lake Store account to delete. + /// + /// The name of the Data Lake Store account. + /// + /// + /// Parameters supplied to create the Data Lake Store account. /// /// /// The headers that will be added to request. @@ -101,19 +115,21 @@ public partial interface IAccountOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, CreateDataLakeStoreAccountParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the specified Data Lake Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// - /// - /// The name of the Data Lake Store account to retrieve. + /// + /// The name of the Data Lake Store account. /// /// /// The headers that will be added to request. @@ -130,18 +146,18 @@ public partial interface IAccountOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Attempts to enable a user managed Key Vault for encryption of the - /// specified Data Lake Store account. + /// Updates the specified Data Lake Store account information. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account to attempt to enable the - /// Key Vault for. + /// The name of the Data Lake Store account. + /// + /// + /// Parameters supplied to update the Data Lake Store account. /// /// /// The headers that will be added to request. @@ -152,31 +168,21 @@ public partial interface IAccountOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task EnableKeyVaultWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, UpdateDataLakeStoreAccountParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists the Data Lake Store accounts within a specific resource - /// group. The response includes a link to the next page of results, if - /// any. + /// Deletes the specified Data Lake Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account(s). - /// - /// - /// OData parameters to apply to the operation. + /// The name of the Azure resource group. /// - /// - /// OData Select statement. Limits the properties on each entry to just - /// those requested, e.g. Categories?$select=CategoryName,Description. - /// Optional. - /// - /// - /// A Boolean value of true or false to request a count of the matching - /// resources included with the resources in the response, e.g. - /// Categories?$count=true. Optional. + /// + /// The name of the Data Lake Store account. /// /// /// The headers that will be added to request. @@ -187,29 +193,19 @@ public partial interface IAccountOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists the Data Lake Store accounts within the subscription. The - /// response includes a link to the next page of results, if any. + /// Attempts to enable a user managed Key Vault for encryption of the + /// specified Data Lake Store account. /// - /// - /// OData parameters to apply to the operation. - /// - /// - /// OData Select statement. Limits the properties on each entry to just - /// those requested, e.g. Categories?$select=CategoryName,Description. - /// Optional. + /// + /// The name of the Azure resource group. /// - /// - /// The Boolean value of true or false to request a count of the - /// matching resources included with the resources in the response, - /// e.g. Categories?$count=true. Optional. + /// + /// The name of the Data Lake Store account. /// /// /// The headers that will be added to request. @@ -220,18 +216,15 @@ public partial interface IAccountOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task EnableKeyVaultWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Checks whether the specified account name is available or taken. /// /// - /// The Resource location without whitespace. + /// The resource location without whitespace. /// /// /// Parameters supplied to check the Data Lake Store account name @@ -257,11 +250,10 @@ public partial interface IAccountOperations /// Creates the specified Data Lake Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// - /// - /// The name of the Data Lake Store account to create. + /// + /// The name of the Data Lake Store account. /// /// /// Parameters supplied to create the Data Lake Store account. @@ -281,16 +273,15 @@ public partial interface IAccountOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string name, DataLakeStoreAccount parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string accountName, CreateDataLakeStoreAccountParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the specified Data Lake Store account information. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// - /// - /// The name of the Data Lake Store account to update. + /// + /// The name of the Data Lake Store account. /// /// /// Parameters supplied to update the Data Lake Store account. @@ -310,16 +301,15 @@ public partial interface IAccountOperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string name, DataLakeStoreAccountUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, UpdateDataLakeStoreAccountParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes the specified Data Lake Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// - /// - /// The name of the Data Lake Store account to delete. + /// + /// The name of the Data Lake Store account. /// /// /// The headers that will be added to request. @@ -333,11 +323,10 @@ public partial interface IAccountOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists the Data Lake Store accounts within a specific resource - /// group. The response includes a link to the next page of results, if - /// any. + /// Lists the Data Lake Store accounts within the subscription. The + /// response includes a link to the next page of results, if any. /// /// /// The NextLink from the previous successful call to List operation. @@ -357,10 +346,11 @@ public partial interface IAccountOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists the Data Lake Store accounts within the subscription. The - /// response includes a link to the next page of results, if any. + /// Lists the Data Lake Store accounts within a specific resource + /// group. The response includes a link to the next page of results, if + /// any. /// /// /// The NextLink from the previous successful call to List operation. @@ -380,6 +370,6 @@ public partial interface IAccountOperations /// /// Thrown when a required parameter is null /// - Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IDataLakeStoreAccountManagementClient.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IDataLakeStoreAccountManagementClient.cs index 5186ef71361e..8de1f6aa1d10 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IDataLakeStoreAccountManagementClient.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IDataLakeStoreAccountManagementClient.cs @@ -70,6 +70,11 @@ public partial interface IDataLakeStoreAccountManagementClient : System.IDisposa bool? GenerateClientRequestId { get; set; } + /// + /// Gets the IAccountsOperations. + /// + IAccountsOperations Accounts { get; } + /// /// Gets the IFirewallRulesOperations. /// @@ -81,19 +86,14 @@ public partial interface IDataLakeStoreAccountManagementClient : System.IDisposa ITrustedIdProvidersOperations TrustedIdProviders { get; } /// - /// Gets the IAccountOperations. + /// Gets the IOperations. /// - IAccountOperations Account { get; } + IOperations Operations { get; } /// /// Gets the ILocationsOperations. /// ILocationsOperations Locations { get; } - /// - /// Gets the IOperations. - /// - IOperations Operations { get; } - } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IFirewallRulesOperations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IFirewallRulesOperations.cs index dfaa12acc073..b8df6391d07b 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IFirewallRulesOperations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/IFirewallRulesOperations.cs @@ -24,23 +24,14 @@ namespace Microsoft.Azure.Management.DataLake.Store 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. + /// Lists the Data Lake Store firewall rules within the specified Data + /// Lake Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// /// - /// 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. - /// - /// - /// Parameters supplied to create or update the firewall rule. + /// The name of the Data Lake Store account. /// /// /// The headers that will be added to request. @@ -57,23 +48,23 @@ public partial interface IFirewallRulesOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, FirewallRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the specified firewall rule. + /// 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 - /// Store account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account to which to update the - /// firewall rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to update. + /// The name of the firewall rule to create or update. /// /// - /// Parameters supplied to update the firewall rule. + /// Parameters supplied to create or update the firewall rule. /// /// /// The headers that will be added to request. @@ -90,21 +81,18 @@ public partial interface IFirewallRulesOperations /// /// 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)); + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, CreateOrUpdateFirewallRuleParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the specified firewall rule from the specified Data Lake - /// Store account + /// Gets the specified Data Lake Store firewall rule. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to delete the - /// firewall rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to delete. + /// The name of the firewall rule to retrieve. /// /// /// The headers that will be added to request. @@ -115,23 +103,27 @@ public partial interface IFirewallRulesOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the specified Data Lake Store firewall rule. + /// Updates the specified firewall rule. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the - /// firewall rule. + /// The name of the Data Lake Store account. /// /// - /// The name of the firewall rule to retrieve. + /// The name of the firewall rule to update. + /// + /// + /// Parameters supplied to update the firewall rule. /// /// /// The headers that will be added to request. @@ -148,18 +140,19 @@ public partial interface IFirewallRulesOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, UpdateFirewallRuleParameters parameters = default(UpdateFirewallRuleParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists the Data Lake Store firewall rules within the specified Data - /// Lake Store account. + /// Deletes the specified firewall rule from the specified Data Lake + /// Store account /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the - /// firewall rules. + /// The name of the Data Lake Store account. + /// + /// + /// The name of the firewall rule to delete. /// /// /// The headers that will be added to request. @@ -170,13 +163,10 @@ public partial interface IFirewallRulesOperations /// /// 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)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string firewallRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the Data Lake Store firewall rules within the specified Data /// Lake Store account. diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/ILocationsOperations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/ILocationsOperations.cs index ccad1e299067..da4bdd496a65 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/ILocationsOperations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/ILocationsOperations.cs @@ -25,10 +25,10 @@ public partial interface ILocationsOperations { /// /// Gets subscription-level properties and limits for Data Lake Store - /// specified by Resource location. + /// specified by resource location. /// /// - /// The Resource location without whitespace. + /// The resource location without whitespace. /// /// /// The headers that will be added to request. diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/ITrustedIdProvidersOperations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/ITrustedIdProvidersOperations.cs index d1c6d5c0df56..ec6b6be59d08 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/ITrustedIdProvidersOperations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/ITrustedIdProvidersOperations.cs @@ -24,25 +24,14 @@ namespace Microsoft.Azure.Management.DataLake.Store public partial interface ITrustedIdProvidersOperations { /// - /// Creates or updates the specified trusted identity provider. During - /// update, the trusted identity provider with the specified name will - /// be replaced with this new provider + /// Lists the Data Lake Store trusted identity providers within the + /// specified Data Lake Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// /// - /// 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 or replace the trusted identity - /// provider. + /// The name of the Data Lake Store account. /// /// /// The headers that will be added to request. @@ -59,24 +48,25 @@ public partial interface ITrustedIdProvidersOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, TrustedIdProvider parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the specified trusted identity provider. + /// Creates or updates the specified trusted identity provider. During + /// update, the trusted identity provider with the specified name will + /// be replaced with this new provider /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account to which to update the - /// trusted identity provider. + /// The name of the Data Lake Store account. /// /// /// 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. + /// Parameters supplied to create or replace the trusted identity + /// provider. /// /// /// The headers that will be added to request. @@ -93,21 +83,18 @@ public partial interface ITrustedIdProvidersOperations /// /// 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)); + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, CreateOrUpdateTrustedIdProviderParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the specified trusted identity provider from the specified - /// Data Lake Store account + /// Gets the specified Data Lake Store trusted identity provider. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to delete the - /// trusted identity provider. + /// The name of the Data Lake Store account. /// /// - /// The name of the trusted identity provider to delete. + /// The name of the trusted identity provider to retrieve. /// /// /// The headers that will be added to request. @@ -118,23 +105,28 @@ public partial interface ITrustedIdProvidersOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the specified Data Lake Store trusted identity provider. + /// Updates the specified trusted identity provider. /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the - /// trusted identity provider. + /// The name of the Data Lake Store account. /// /// - /// The name of the trusted identity provider to retrieve. + /// 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. @@ -151,18 +143,19 @@ public partial interface ITrustedIdProvidersOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, UpdateTrustedIdProviderParameters parameters = default(UpdateTrustedIdProviderParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists the Data Lake Store trusted identity providers within the - /// specified Data Lake Store account. + /// Deletes the specified trusted identity provider from the specified + /// Data Lake Store account /// /// - /// The name of the Azure resource group that contains the Data Lake - /// Store account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the - /// trusted identity providers. + /// The name of the Data Lake Store account. + /// + /// + /// The name of the trusted identity provider to delete. /// /// /// The headers that will be added to request. @@ -173,13 +166,10 @@ public partial interface ITrustedIdProvidersOperations /// /// 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)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the Data Lake Store trusted identity providers within the /// specified Data Lake Store account. diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/LocationsOperations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/LocationsOperations.cs index d9aa3ee3645a..53f3ee5ba900 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/LocationsOperations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/LocationsOperations.cs @@ -52,10 +52,10 @@ internal LocationsOperations(DataLakeStoreAccountManagementClient client) /// /// Gets subscription-level properties and limits for Data Lake Store specified - /// by Resource location. + /// by resource location. /// /// - /// The Resource location without whitespace. + /// The resource location without whitespace. /// /// /// Headers that will be added to request. @@ -80,6 +80,10 @@ internal LocationsOperations(DataLakeStoreAccountManagementClient client) /// public async Task> GetCapabilityWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (location == null) { throw new ValidationException(ValidationRules.CannotBeNull, "location"); @@ -88,10 +92,6 @@ internal LocationsOperations(DataLakeStoreAccountManagementClient client) { 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; @@ -106,8 +106,8 @@ internal LocationsOperations(DataLakeStoreAccountManagementClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataLakeStore/locations/{location}/capability").ToString(); - _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); List _queryParameters = new List(); if (Client.ApiVersion != null) { diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/LocationsOperationsExtensions.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/LocationsOperationsExtensions.cs index 5a9e68420e9d..68f6ecb6f5dc 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/LocationsOperationsExtensions.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/LocationsOperationsExtensions.cs @@ -23,13 +23,13 @@ public static partial class LocationsOperationsExtensions { /// /// Gets subscription-level properties and limits for Data Lake Store specified - /// by Resource location. + /// by resource location. /// /// /// The operations group for this extension method. /// /// - /// The Resource location without whitespace. + /// The resource location without whitespace. /// public static CapabilityInformation GetCapability(this ILocationsOperations operations, string location) { @@ -38,13 +38,13 @@ public static CapabilityInformation GetCapability(this ILocationsOperations oper /// /// Gets subscription-level properties and limits for Data Lake Store specified - /// by Resource location. + /// by resource location. /// /// /// The operations group for this extension method. /// /// - /// The Resource location without whitespace. + /// The resource location without whitespace. /// /// /// The cancellation token. diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AclStatus.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AclStatus.cs index a9b1bac09574..20a74e52501f 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AclStatus.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AclStatus.cs @@ -39,7 +39,7 @@ public AclStatus() /// user, mask and other permissions. /// the indicator of whether the sticky bit is /// on or off. - public AclStatus(IList entries = default(IList), string group = default(string), string owner = default(string), int? permission = default(int?), bool? stickyBit = default(bool?)) + public AclStatus(IList entries = default(IList), string group = default(string), string owner = default(string), string permission = default(string), bool? stickyBit = default(bool?)) { Entries = entries; Group = group; @@ -77,7 +77,7 @@ public AclStatus() /// other permissions. /// [JsonProperty(PropertyName = "permission")] - public int? Permission { get; set; } + public string Permission { get; set; } /// /// Gets the indicator of whether the sticky bit is on or off. diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AclStatusResult.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AclStatusResult.cs index bc6a85632377..b51ffd9c3994 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AclStatusResult.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AclStatusResult.cs @@ -45,7 +45,7 @@ public AclStatusResult() /// /// Gets or sets the AclStatus object for a given file or directory. /// - [JsonProperty(PropertyName = "AclStatus")] + [JsonProperty(PropertyName = "aclStatus")] public AclStatus AclStatus { get; set; } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AdlsError.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AdlsError.cs index f06bff2c455c..7d70a619d2b3 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AdlsError.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AdlsError.cs @@ -47,7 +47,7 @@ public AdlsError() /// Gets the object representing the actual WebHDFS exception being /// returned. /// - [JsonProperty(PropertyName = "RemoteException")] + [JsonProperty(PropertyName = "remoteException")] public AdlsRemoteException RemoteException { get; private set; } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AdlsErrorException.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AdlsErrorException.cs index 76a4ddbfe82e..573312afc66d 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AdlsErrorException.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/AdlsErrorException.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models /// /// Exception thrown for an invalid response with AdlsError information. /// - public class AdlsErrorException : RestException + public partial class AdlsErrorException : RestException { /// /// Gets information about the associated HTTP request. diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CapabilityInformation.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CapabilityInformation.cs index dde8d29fc4ba..784fae277df7 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CapabilityInformation.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CapabilityInformation.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// Subscription-level properties and limits for Data Lake Store + /// Subscription-level properties and limits for Data Lake Store. /// public partial class CapabilityInformation { @@ -29,16 +29,16 @@ public CapabilityInformation() /// /// Initializes a new instance of the CapabilityInformation class. /// - /// the subscription credentials that + /// The subscription credentials that /// uniquely identifies the subscription. - /// the subscription state. Possible values + /// The subscription state. Possible values /// include: 'Registered', 'Suspended', 'Deleted', 'Unregistered', /// 'Warned' - /// the maximum supported number of + /// The maximum supported number of /// accounts under this subscription. - /// the current number of accounts under + /// The current number of accounts under /// this subscription. - /// the Boolean value of true or false to + /// The Boolean value of true or false to /// indicate the maintenance state. public CapabilityInformation(System.Guid? subscriptionId = default(System.Guid?), string state = default(string), int? maxAccountCount = default(int?), int? accountCount = default(int?), bool? migrationState = default(bool?)) { diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CheckNameAvailabilityParameters.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CheckNameAvailabilityParameters.cs index ccf432db3dd3..d2ab03f50b30 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CheckNameAvailabilityParameters.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CheckNameAvailabilityParameters.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// Data Lake Store account name availability check parameters + /// Data Lake Store account name availability check parameters. /// public partial class CheckNameAvailabilityParameters { @@ -32,7 +32,7 @@ public CheckNameAvailabilityParameters() /// Initializes a new instance of the CheckNameAvailabilityParameters /// class. /// - /// the Data Lake Store name to check availability + /// The Data Lake Store name to check availability /// for. public CheckNameAvailabilityParameters(string name) { @@ -59,7 +59,7 @@ static CheckNameAvailabilityParameters() public string Name { get; set; } /// - /// the Resource type. Note: This should not be set by the user, as the + /// The resource type. Note: This should not be set by the user, as the /// constant value is Microsoft.DataLakeStore/accounts /// [JsonProperty(PropertyName = "type")] diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/ContentSummaryResult.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/ContentSummaryResult.cs index 7c6b87c93869..9af2c417d366 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/ContentSummaryResult.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/ContentSummaryResult.cs @@ -45,7 +45,7 @@ public ContentSummaryResult() /// /// Gets the content summary for the specified path /// - [JsonProperty(PropertyName = "ContentSummary")] + [JsonProperty(PropertyName = "contentSummary")] public ContentSummary ContentSummary { get; private set; } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateDataLakeStoreAccountParameters.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateDataLakeStoreAccountParameters.cs new file mode 100644 index 000000000000..e0ef53589e24 --- /dev/null +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateDataLakeStoreAccountParameters.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. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataLake.Store.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + [Rest.Serialization.JsonTransformation] + public partial class CreateDataLakeStoreAccountParameters + { + /// + /// Initializes a new instance of the + /// CreateDataLakeStoreAccountParameters class. + /// + public CreateDataLakeStoreAccountParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// CreateDataLakeStoreAccountParameters class. + /// + /// The resource location. + /// The resource tags. + /// The Key Vault encryption identity, if + /// any. + /// The default owner group for all new + /// folders and files created in the Data Lake Store account. + /// The Key Vault encryption + /// configuration. + /// The current state of encryption for + /// this Data Lake Store account. Possible values include: 'Enabled', + /// 'Disabled' + /// The list of firewall rules associated + /// with this Data Lake Store account. + /// The current state of the IP address + /// firewall for this Data Lake Store 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 trusted identity + /// providers associated with this Data Lake Store account. + /// The current state of the + /// trusted identity provider feature for this Data Lake Store account. + /// Possible values include: 'Enabled', 'Disabled' + /// The commitment tier to use for next month. + /// Possible values include: 'Consumption', 'Commitment_1TB', + /// 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', + /// 'Commitment_1PB', 'Commitment_5PB' + public CreateDataLakeStoreAccountParameters(string location, IDictionary tags = default(IDictionary), EncryptionIdentity identity = default(EncryptionIdentity), string defaultGroup = default(string), EncryptionConfig encryptionConfig = default(EncryptionConfig), EncryptionState? encryptionState = default(EncryptionState?), IList firewallRules = default(IList), FirewallState? firewallState = default(FirewallState?), FirewallAllowAzureIpsState? firewallAllowAzureIps = default(FirewallAllowAzureIpsState?), IList trustedIdProviders = default(IList), TrustedIdProviderState? trustedIdProviderState = default(TrustedIdProviderState?), TierType? newTier = default(TierType?)) + { + Location = location; + Tags = tags; + Identity = identity; + DefaultGroup = defaultGroup; + EncryptionConfig = encryptionConfig; + EncryptionState = encryptionState; + FirewallRules = firewallRules; + FirewallState = firewallState; + FirewallAllowAzureIps = firewallAllowAzureIps; + TrustedIdProviders = trustedIdProviders; + TrustedIdProviderState = trustedIdProviderState; + NewTier = newTier; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource location. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the Key Vault encryption identity, if any. + /// + [JsonProperty(PropertyName = "identity")] + public EncryptionIdentity Identity { get; set; } + + /// + /// Gets or sets the default owner group for all new folders and files + /// created in the Data Lake Store account. + /// + [JsonProperty(PropertyName = "properties.defaultGroup")] + public string DefaultGroup { get; set; } + + /// + /// Gets or sets the Key Vault encryption configuration. + /// + [JsonProperty(PropertyName = "properties.encryptionConfig")] + public EncryptionConfig EncryptionConfig { get; set; } + + /// + /// Gets or sets the current state of encryption for this Data Lake + /// Store account. Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.encryptionState")] + public EncryptionState? EncryptionState { get; set; } + + /// + /// Gets or sets the list of firewall rules associated with this Data + /// Lake Store account. + /// + [JsonProperty(PropertyName = "properties.firewallRules")] + public IList FirewallRules { get; set; } + + /// + /// Gets or sets the current state of the IP address firewall for this + /// Data Lake Store 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 trusted identity providers associated with + /// this Data Lake Store account. + /// + [JsonProperty(PropertyName = "properties.trustedIdProviders")] + public IList TrustedIdProviders { get; set; } + + /// + /// Gets or sets the current state of the trusted identity provider + /// feature for this Data Lake Store account. Possible values include: + /// 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.trustedIdProviderState")] + public TrustedIdProviderState? TrustedIdProviderState { get; set; } + + /// + /// Gets or sets the commitment tier to use for next month. Possible + /// values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', + /// 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', + /// 'Commitment_5PB' + /// + [JsonProperty(PropertyName = "properties.newTier")] + public TierType? NewTier { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + if (EncryptionConfig != null) + { + EncryptionConfig.Validate(); + } + if (FirewallRules != null) + { + foreach (var element in FirewallRules) + { + if (element != null) + { + element.Validate(); + } + } + } + if (TrustedIdProviders != null) + { + foreach (var element1 in TrustedIdProviders) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateFirewallRuleWithAccountParameters.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateFirewallRuleWithAccountParameters.cs new file mode 100644 index 000000000000..609f3133b481 --- /dev/null +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateFirewallRuleWithAccountParameters.cs @@ -0,0 +1,102 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataLake.Store.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The parameters used to create a new firewall rule while creating a new + /// Data Lake Store account. + /// + [Rest.Serialization.JsonTransformation] + public partial class CreateFirewallRuleWithAccountParameters + { + /// + /// Initializes a new instance of the + /// CreateFirewallRuleWithAccountParameters class. + /// + public CreateFirewallRuleWithAccountParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// CreateFirewallRuleWithAccountParameters class. + /// + /// The unique name of the firewall rule to + /// create. + /// 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 CreateFirewallRuleWithAccountParameters(string name, string startIpAddress, string endIpAddress) + { + Name = name; + StartIpAddress = startIpAddress; + EndIpAddress = endIpAddress; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the unique name of the firewall rule to create. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// 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 (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (StartIpAddress == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StartIpAddress"); + } + if (EndIpAddress == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "EndIpAddress"); + } + } + } +} diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateOrUpdateFirewallRuleParameters.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateOrUpdateFirewallRuleParameters.cs new file mode 100644 index 000000000000..8002c82e9997 --- /dev/null +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateOrUpdateFirewallRuleParameters.cs @@ -0,0 +1,88 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataLake.Store.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The parameters used to create a new firewall rule. + /// + [Rest.Serialization.JsonTransformation] + public partial class CreateOrUpdateFirewallRuleParameters + { + /// + /// Initializes a new instance of the + /// CreateOrUpdateFirewallRuleParameters class. + /// + public CreateOrUpdateFirewallRuleParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// CreateOrUpdateFirewallRuleParameters 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 CreateOrUpdateFirewallRuleParameters(string startIpAddress, string endIpAddress) + { + StartIpAddress = startIpAddress; + EndIpAddress = endIpAddress; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// 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/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateOrUpdateTrustedIdProviderParameters.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateOrUpdateTrustedIdProviderParameters.cs new file mode 100644 index 000000000000..61cd46212781 --- /dev/null +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateOrUpdateTrustedIdProviderParameters.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. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataLake.Store.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The parameters used to create a new trusted identity provider. + /// + [Rest.Serialization.JsonTransformation] + public partial class CreateOrUpdateTrustedIdProviderParameters + { + /// + /// Initializes a new instance of the + /// CreateOrUpdateTrustedIdProviderParameters class. + /// + public CreateOrUpdateTrustedIdProviderParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// CreateOrUpdateTrustedIdProviderParameters class. + /// + /// The URL of this trusted identity + /// provider. + public CreateOrUpdateTrustedIdProviderParameters(string idProvider) + { + IdProvider = idProvider; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the URL of this trusted identity provider. + /// + [JsonProperty(PropertyName = "properties.idProvider")] + public string IdProvider { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (IdProvider == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "IdProvider"); + } + } + } +} diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateTrustedIdProviderWithAccountParameters.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateTrustedIdProviderWithAccountParameters.cs new file mode 100644 index 000000000000..df6dc78cb49c --- /dev/null +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/CreateTrustedIdProviderWithAccountParameters.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataLake.Store.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The parameters used to create a new trusted identity provider while + /// creating a new Data Lake Store account. + /// + [Rest.Serialization.JsonTransformation] + public partial class CreateTrustedIdProviderWithAccountParameters + { + /// + /// Initializes a new instance of the + /// CreateTrustedIdProviderWithAccountParameters class. + /// + public CreateTrustedIdProviderWithAccountParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// CreateTrustedIdProviderWithAccountParameters class. + /// + /// The unique name of the trusted identity provider + /// to create. + /// The URL of this trusted identity + /// provider. + public CreateTrustedIdProviderWithAccountParameters(string name, string idProvider) + { + Name = name; + IdProvider = idProvider; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the unique name of the trusted identity provider to + /// create. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the URL of this trusted identity provider. + /// + [JsonProperty(PropertyName = "properties.idProvider")] + public string IdProvider { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (IdProvider == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "IdProvider"); + } + } + } +} diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/DataLakeStoreAccount.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/DataLakeStoreAccount.cs index 2cff529209e0..521cd9c720ea 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/DataLakeStoreAccount.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/DataLakeStoreAccount.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// Data Lake Store account information + /// Data Lake Store account information. /// [Rest.Serialization.JsonTransformation] public partial class DataLakeStoreAccount : Resource @@ -34,79 +34,79 @@ public DataLakeStoreAccount() /// /// Initializes a new instance of the DataLakeStoreAccount class. /// - /// Resource location - /// Resource Id - /// Resource name - /// Resource type - /// Resource tags + /// The resource identifier. + /// The resource name. + /// The resource type. + /// The resource location. + /// The resource tags. /// The Key Vault encryption identity, if /// any. - /// the provisioning status of the Data + /// The unique identifier associated with this + /// Data Lake Store account. + /// The provisioning status of the Data /// Lake Store account. Possible values include: 'Failed', 'Creating', /// 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', /// 'Deleting', 'Deleted', 'Undeleting', 'Canceled' - /// the state of the Data Lake Store account. + /// The state of the Data Lake Store account. /// Possible values include: 'Active', 'Suspended' - /// the account creation time. - /// the account last modified + /// The account creation time. + /// The account last modified /// time. - /// the full CName endpoint for this + /// The full CName endpoint for this /// account. - /// The unique identifier associated with this - /// Data Lake Store account. + /// The default owner group for all new + /// folders and files created in the Data Lake Store account. + /// The Key Vault encryption + /// configuration. /// The current state of encryption for - /// this Data Lake store account. Possible values include: 'Enabled', + /// this Data Lake Store account. Possible values include: 'Enabled', /// 'Disabled' /// The current state of - /// encryption provisioning for this Data Lake store account. Possible + /// encryption provisioning for this Data Lake Store account. Possible /// values include: 'Creating', 'Succeeded' - /// The Key Vault encryption - /// configuration. + /// The list of firewall rules associated + /// with this Data Lake Store account. /// The current state of the IP address - /// firewall for this Data Lake store account. Possible values include: + /// firewall for this Data Lake Store account. Possible values include: /// 'Enabled', 'Disabled' - /// The list of firewall rules associated - /// with this Data Lake store account. + /// 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 trusted identity + /// providers associated with this Data Lake Store account. /// The current state of the - /// trusted identity provider feature for this Data Lake store account. + /// trusted identity provider feature for this Data Lake Store account. /// Possible values include: 'Enabled', 'Disabled' - /// The list of trusted identity - /// providers associated with this Data Lake store account. - /// the default owner group for all new - /// folders and files created in the Data Lake Store account. - /// the commitment tier to use for next month. + /// The commitment tier to use for next month. /// Possible values include: 'Consumption', 'Commitment_1TB', /// 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', /// 'Commitment_1PB', 'Commitment_5PB' - /// the commitment tier in use for the + /// The commitment tier in use for the /// current month. Possible values include: 'Consumption', /// 'Commitment_1TB', 'Commitment_10TB', 'Commitment_100TB', /// 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - /// 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?), System.DateTime? lastModifiedTime = default(System.DateTime?), string endpoint = default(string), System.Guid? accountId = default(System.Guid?), 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), string defaultGroup = default(string), TierType? newTier = default(TierType?), TierType? currentTier = default(TierType?), FirewallAllowAzureIpsState? firewallAllowAzureIps = default(FirewallAllowAzureIpsState?)) - : base(location, id, name, type, tags) + public DataLakeStoreAccount(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), EncryptionIdentity identity = default(EncryptionIdentity), System.Guid? accountId = default(System.Guid?), DataLakeStoreAccountStatus? provisioningState = default(DataLakeStoreAccountStatus?), DataLakeStoreAccountState? state = default(DataLakeStoreAccountState?), System.DateTime? creationTime = default(System.DateTime?), System.DateTime? lastModifiedTime = default(System.DateTime?), string endpoint = default(string), string defaultGroup = default(string), EncryptionConfig encryptionConfig = default(EncryptionConfig), EncryptionState? encryptionState = default(EncryptionState?), EncryptionProvisioningState? encryptionProvisioningState = default(EncryptionProvisioningState?), IList firewallRules = default(IList), FirewallState? firewallState = default(FirewallState?), FirewallAllowAzureIpsState? firewallAllowAzureIps = default(FirewallAllowAzureIpsState?), IList trustedIdProviders = default(IList), TrustedIdProviderState? trustedIdProviderState = default(TrustedIdProviderState?), TierType? newTier = default(TierType?), TierType? currentTier = default(TierType?)) + : base(id, name, type, location, tags) { Identity = identity; + AccountId = accountId; ProvisioningState = provisioningState; State = state; CreationTime = creationTime; LastModifiedTime = lastModifiedTime; Endpoint = endpoint; - AccountId = accountId; + DefaultGroup = defaultGroup; + EncryptionConfig = encryptionConfig; EncryptionState = encryptionState; EncryptionProvisioningState = encryptionProvisioningState; - EncryptionConfig = encryptionConfig; - FirewallState = firewallState; FirewallRules = firewallRules; - TrustedIdProviderState = trustedIdProviderState; + FirewallState = firewallState; + FirewallAllowAzureIps = firewallAllowAzureIps; TrustedIdProviders = trustedIdProviders; - DefaultGroup = defaultGroup; + TrustedIdProviderState = trustedIdProviderState; NewTier = newTier; CurrentTier = currentTier; - FirewallAllowAzureIps = firewallAllowAzureIps; CustomInit(); } @@ -116,10 +116,17 @@ public DataLakeStoreAccount() partial void CustomInit(); /// - /// Gets or sets the Key Vault encryption identity, if any. + /// Gets the Key Vault encryption identity, if any. /// [JsonProperty(PropertyName = "identity")] - public EncryptionIdentity Identity { get; set; } + public EncryptionIdentity Identity { get; private set; } + + /// + /// Gets the unique identifier associated with this Data Lake Store + /// account. + /// + [JsonProperty(PropertyName = "properties.accountId")] + public System.Guid? AccountId { get; private set; } /// /// Gets the provisioning status of the Data Lake Store account. @@ -156,78 +163,79 @@ public DataLakeStoreAccount() public string Endpoint { get; private set; } /// - /// Gets the unique identifier associated with this Data Lake Store - /// account. + /// Gets the default owner group for all new folders and files created + /// in the Data Lake Store account. /// - [JsonProperty(PropertyName = "properties.accountId")] - public System.Guid? AccountId { get; private set; } + [JsonProperty(PropertyName = "properties.defaultGroup")] + public string DefaultGroup { get; private set; } /// - /// Gets or sets the current state of encryption for this Data Lake - /// store account. Possible values include: 'Enabled', 'Disabled' + /// Gets the Key Vault encryption configuration. + /// + [JsonProperty(PropertyName = "properties.encryptionConfig")] + public EncryptionConfig EncryptionConfig { get; private set; } + + /// + /// Gets the current state of encryption for this Data Lake Store + /// account. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.encryptionState")] - public EncryptionState? EncryptionState { get; set; } + public EncryptionState? EncryptionState { get; private set; } /// /// Gets the current state of encryption provisioning for this Data - /// Lake store account. Possible values include: 'Creating', + /// Lake Store account. Possible values include: 'Creating', /// 'Succeeded' /// [JsonProperty(PropertyName = "properties.encryptionProvisioningState")] public EncryptionProvisioningState? EncryptionProvisioningState { get; private set; } /// - /// Gets or sets the Key Vault encryption configuration. + /// Gets the list of firewall rules associated with this Data Lake + /// Store account. /// - [JsonProperty(PropertyName = "properties.encryptionConfig")] - public EncryptionConfig EncryptionConfig { get; set; } + [JsonProperty(PropertyName = "properties.firewallRules")] + public IList FirewallRules { get; private set; } /// - /// Gets or sets the current state of the IP address firewall for this - /// Data Lake store account. Possible values include: 'Enabled', - /// 'Disabled' + /// Gets the current state of the IP address firewall for this Data + /// Lake Store account. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.firewallState")] - public FirewallState? FirewallState { get; set; } - - /// - /// Gets or sets the list of firewall rules associated with this Data - /// Lake store account. - /// - [JsonProperty(PropertyName = "properties.firewallRules")] - public IList FirewallRules { get; set; } + public FirewallState? FirewallState { get; private set; } /// - /// Gets or sets the current state of the trusted identity provider - /// feature for this Data Lake store account. Possible values include: - /// 'Enabled', 'Disabled' + /// Gets 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.trustedIdProviderState")] - public TrustedIdProviderState? TrustedIdProviderState { get; set; } + [JsonProperty(PropertyName = "properties.firewallAllowAzureIps")] + public FirewallAllowAzureIpsState? FirewallAllowAzureIps { get; private set; } /// - /// Gets or sets the list of trusted identity providers associated with - /// this Data Lake store account. + /// Gets the list of trusted identity providers associated with this + /// Data Lake Store account. /// [JsonProperty(PropertyName = "properties.trustedIdProviders")] - public IList TrustedIdProviders { get; set; } + public IList TrustedIdProviders { get; private set; } /// - /// Gets or sets the default owner group for all new folders and files - /// created in the Data Lake Store account. + /// Gets the current state of the trusted identity provider feature for + /// this Data Lake Store account. Possible values include: 'Enabled', + /// 'Disabled' /// - [JsonProperty(PropertyName = "properties.defaultGroup")] - public string DefaultGroup { get; set; } + [JsonProperty(PropertyName = "properties.trustedIdProviderState")] + public TrustedIdProviderState? TrustedIdProviderState { get; private set; } /// - /// Gets or sets the commitment tier to use for next month. Possible - /// values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', + /// Gets the commitment tier to use for next month. Possible values + /// include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', /// 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', /// 'Commitment_5PB' /// [JsonProperty(PropertyName = "properties.newTier")] - public TierType? NewTier { get; set; } + public TierType? NewTier { get; private set; } /// /// Gets the commitment tier in use for the current month. Possible @@ -238,48 +246,18 @@ public DataLakeStoreAccount() [JsonProperty(PropertyName = "properties.currentTier")] public TierType? CurrentTier { get; private 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. /// /// /// Thrown if validation fails /// - public override void Validate() + public virtual void Validate() { - base.Validate(); if (EncryptionConfig != null) { EncryptionConfig.Validate(); } - if (FirewallRules != null) - { - foreach (var element in FirewallRules) - { - if (element != null) - { - element.Validate(); - } - } - } - if (TrustedIdProviders != null) - { - foreach (var element1 in TrustedIdProviders) - { - if (element1 != null) - { - element1.Validate(); - } - } - } } } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/DataLakeStoreAccountBasic.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/DataLakeStoreAccountBasic.cs index fd0076bf5fec..9006786db5c7 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/DataLakeStoreAccountBasic.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/DataLakeStoreAccountBasic.cs @@ -34,33 +34,33 @@ public DataLakeStoreAccountBasic() /// /// Initializes a new instance of the DataLakeStoreAccountBasic class. /// - /// Resource location - /// Resource Id - /// Resource name - /// Resource type - /// Resource tags - /// the provisioning status of the Data + /// The resource identifier. + /// The resource name. + /// The resource type. + /// The resource location. + /// The resource tags. + /// The unique identifier associated with this + /// Data Lake Store account. + /// The provisioning status of the Data /// Lake Store account. Possible values include: 'Failed', 'Creating', /// 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', /// 'Deleting', 'Deleted', 'Undeleting', 'Canceled' - /// the state of the Data Lake Store account. + /// The state of the Data Lake Store account. /// Possible values include: 'Active', 'Suspended' - /// the account creation time. - /// the account last modified + /// The account creation time. + /// The account last modified /// time. - /// the full CName endpoint for this + /// The full CName endpoint for this /// account. - /// The unique identifier associated with this - /// Data Lake Store account. - public DataLakeStoreAccountBasic(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), DataLakeStoreAccountStatus? provisioningState = default(DataLakeStoreAccountStatus?), DataLakeStoreAccountState? state = default(DataLakeStoreAccountState?), System.DateTime? creationTime = default(System.DateTime?), System.DateTime? lastModifiedTime = default(System.DateTime?), string endpoint = default(string), System.Guid? accountId = default(System.Guid?)) - : base(location, id, name, type, tags) + public DataLakeStoreAccountBasic(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), System.Guid? accountId = default(System.Guid?), DataLakeStoreAccountStatus? provisioningState = default(DataLakeStoreAccountStatus?), DataLakeStoreAccountState? state = default(DataLakeStoreAccountState?), System.DateTime? creationTime = default(System.DateTime?), System.DateTime? lastModifiedTime = default(System.DateTime?), string endpoint = default(string)) + : base(id, name, type, location, tags) { + AccountId = accountId; ProvisioningState = provisioningState; State = state; CreationTime = creationTime; LastModifiedTime = lastModifiedTime; Endpoint = endpoint; - AccountId = accountId; CustomInit(); } @@ -69,6 +69,13 @@ public DataLakeStoreAccountBasic() /// partial void CustomInit(); + /// + /// Gets the unique identifier associated with this Data Lake Store + /// account. + /// + [JsonProperty(PropertyName = "properties.accountId")] + public System.Guid? AccountId { get; private set; } + /// /// Gets the provisioning status of the Data Lake Store account. /// Possible values include: 'Failed', 'Creating', 'Running', @@ -103,22 +110,5 @@ public DataLakeStoreAccountBasic() [JsonProperty(PropertyName = "properties.endpoint")] public string Endpoint { get; private set; } - /// - /// Gets the unique identifier associated with this Data Lake Store - /// account. - /// - [JsonProperty(PropertyName = "properties.accountId")] - public System.Guid? AccountId { get; private set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - } } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusProperties.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusProperties.cs index bb5182f71e47..b5db42269efa 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusProperties.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusProperties.cs @@ -32,8 +32,6 @@ public FileStatusProperties() /// the last access time as ticks since the /// epoch. /// the block size for the file. - /// the number of children in the - /// directory. /// Gets the expiration time, if any, as /// ticks since the epoch. If the value is 0 or DateTime.MaxValue there /// is no expiration. @@ -49,11 +47,10 @@ public FileStatusProperties() /// include: 'FILE', 'DIRECTORY' /// flag to indicate if extended acls are enabled /// - public FileStatusProperties(long? accessTime = default(long?), long? blockSize = default(long?), long? childrenNum = default(long?), long? expirationTime = default(long?), string group = default(string), long? length = default(long?), long? modificationTime = default(long?), string owner = default(string), string pathSuffix = default(string), string permission = default(string), FileType? type = default(FileType?), bool? aclBit = default(bool?)) + public FileStatusProperties(long? accessTime = default(long?), long? blockSize = default(long?), long? expirationTime = default(long?), string group = default(string), long? length = default(long?), long? modificationTime = default(long?), string owner = default(string), string pathSuffix = default(string), string permission = default(string), FileType? type = default(FileType?), bool? aclBit = default(bool?)) { AccessTime = accessTime; BlockSize = blockSize; - ChildrenNum = childrenNum; ExpirationTime = expirationTime; Group = group; Length = length; @@ -83,12 +80,6 @@ public FileStatusProperties() [JsonProperty(PropertyName = "blockSize")] public long? BlockSize { get; private set; } - /// - /// Gets the number of children in the directory. - /// - [JsonProperty(PropertyName = "childrenNum")] - public long? ChildrenNum { get; private set; } - /// /// Gets the expiration time, if any, as ticks since the epoch. If the /// value is 0 or DateTime.MaxValue there is no expiration. diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusResult.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusResult.cs index 383960bf45a3..f64832411115 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusResult.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusResult.cs @@ -45,7 +45,7 @@ public FileStatusResult() /// /// Gets the file status object associated with the specified path. /// - [JsonProperty(PropertyName = "FileStatus")] + [JsonProperty(PropertyName = "fileStatus")] public FileStatusProperties FileStatus { get; private set; } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatuses.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatuses.cs index e395b17bf27e..0710aca92da1 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatuses.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatuses.cs @@ -47,7 +47,7 @@ public FileStatuses() /// /// Gets the object containing the list of properties of the files. /// - [JsonProperty(PropertyName = "FileStatus")] + [JsonProperty(PropertyName = "fileStatus")] public IList FileStatus { get; private set; } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusesResult.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusesResult.cs index 6f23fbc84417..7e32562ed64b 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusesResult.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FileStatusesResult.cs @@ -45,7 +45,7 @@ public FileStatusesResult() /// /// Gets the object representing the list of file statuses. /// - [JsonProperty(PropertyName = "FileStatuses")] + [JsonProperty(PropertyName = "fileStatuses")] public FileStatuses FileStatuses { get; private set; } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FirewallRule.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FirewallRule.cs index 10cdc8c0e4f5..802c1b268c4d 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FirewallRule.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/FirewallRule.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// Data Lake Store firewall rule information + /// Data Lake Store firewall rule information. /// [Rest.Serialization.JsonTransformation] public partial class FirewallRule : SubResource @@ -32,16 +32,16 @@ public FirewallRule() /// /// Initializes a new instance of the FirewallRule class. /// - /// the start IP address for the firewall + /// The resource identifier. + /// The resource name. + /// The resource type. + /// 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 + /// 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)) + public FirewallRule(string id = default(string), string name = default(string), string type = default(string), string startIpAddress = default(string), string endIpAddress = default(string)) : base(id, name, type) { StartIpAddress = startIpAddress; @@ -55,36 +55,18 @@ public FirewallRule() partial void CustomInit(); /// - /// 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. + /// Gets 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; } + public string StartIpAddress { get; private 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. + /// Gets 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; } + public string EndIpAddress { get; private 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/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/NameAvailabilityInformation.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/NameAvailabilityInformation.cs index 762f99bc0546..9b1e2c603e67 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/NameAvailabilityInformation.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/NameAvailabilityInformation.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// Data Lake Store account name availability result information + /// Data Lake Store account name availability result information. /// public partial class NameAvailabilityInformation { @@ -31,12 +31,12 @@ public NameAvailabilityInformation() /// Initializes a new instance of the NameAvailabilityInformation /// class. /// - /// the Boolean value of true or false to + /// The Boolean value of true or false to /// indicate whether the Data Lake Store account name is available or /// not. - /// the reason why the Data Lake Store account + /// The reason why the Data Lake Store account /// name is not available, if nameAvailable is false. - /// the message describing why the Data Lake + /// The message describing why the Data Lake /// Store account name is not available, if nameAvailable is /// false. public NameAvailabilityInformation(bool? nameAvailable = default(bool?), string reason = default(string), string message = default(string)) diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/Operation.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/Operation.cs index 71e384b7cc8e..e7fe36c5ee88 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/Operation.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/Operation.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// An available operation for Data Lake Store + /// An available operation for Data Lake Store. /// public partial class Operation { @@ -29,10 +29,10 @@ public Operation() /// /// Initializes a new instance of the Operation class. /// - /// the name of the operation. - /// the display information for the + /// The name of the operation. + /// The display information for the /// operation. - /// the intended executor of the operation. + /// The intended executor of the operation. /// Possible values include: 'user', 'system', 'user,system' public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string)) { diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/OperationDisplay.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/OperationDisplay.cs index 4f14cfbae52c..a5cf8db826da 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/OperationDisplay.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/OperationDisplay.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// The display information for a particular operation + /// The display information for a particular operation. /// public partial class OperationDisplay { @@ -29,11 +29,11 @@ public OperationDisplay() /// /// Initializes a new instance of the OperationDisplay class. /// - /// the Resource provider of the + /// The resource provider of the /// operation. - /// the Resource type of the operation. - /// a friendly name of the operation. - /// a friendly description of the + /// The resource type of the operation. + /// A friendly name of the operation. + /// A friendly description of the /// operation. public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) { @@ -50,13 +50,13 @@ public OperationDisplay() partial void CustomInit(); /// - /// Gets the Resource provider of the operation. + /// Gets the resource provider of the operation. /// [JsonProperty(PropertyName = "provider")] public string Provider { get; private set; } /// - /// Gets the Resource type of the operation. + /// Gets the resource type of the operation. /// [JsonProperty(PropertyName = "resource")] public string Resource { get; private set; } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/OperationListResult.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/OperationListResult.cs index 1aa4fa2c68a4..79b3485cac4b 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/OperationListResult.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/OperationListResult.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// The list of available operations for Data Lake Store + /// The list of available operations for Data Lake Store. /// public partial class OperationListResult { @@ -31,8 +31,8 @@ public OperationListResult() /// /// Initializes a new instance of the OperationListResult class. /// - /// the results of the list operation. - /// the link (url) to the next page of + /// The results of the list operation. + /// The link (url) to the next page of /// results. public OperationListResult(IList value = default(IList), string nextLink = default(string)) { diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/Resource.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/Resource.cs index 6ecbd201ae5c..d6a03800c4bb 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/Resource.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/Resource.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// The Resource model definition. + /// The resource model definition. /// public partial class Resource : IResource { @@ -33,12 +33,12 @@ public Resource() /// /// Initializes a new instance of the Resource class. /// - /// Resource location - /// Resource Id - /// Resource name - /// Resource type - /// Resource tags - public Resource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) + /// The resource identifier. + /// The resource name. + /// The resource type. + /// The resource location. + /// The resource tags. + public Resource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary)) { Id = id; Name = name; @@ -54,47 +54,34 @@ public Resource() partial void CustomInit(); /// - /// Gets resource Id + /// Gets the resource identifier. /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } /// - /// Gets resource name + /// Gets the resource name. /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } /// - /// Gets resource type + /// Gets the resource type. /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } /// - /// Gets or sets resource location + /// Gets the resource location. /// [JsonProperty(PropertyName = "location")] - public string Location { get; set; } + public string Location { get; private set; } /// - /// Gets or sets resource tags + /// Gets the resource tags. /// [JsonProperty(PropertyName = "tags")] - public IDictionary Tags { get; set; } + public IDictionary Tags { get; private set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Location"); - } - } } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/SubResource.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/SubResource.cs index 05e6312fb1a8..9390525903fb 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/SubResource.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/SubResource.cs @@ -10,13 +10,15 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models { + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; /// - /// The Resource model definition for a nested resource. + /// The resource model definition for a nested resource. /// - public partial class SubResource + public partial class SubResource : IResource { /// /// Initializes a new instance of the SubResource class. @@ -29,9 +31,9 @@ public SubResource() /// /// Initializes a new instance of the SubResource class. /// - /// Resource Id - /// Resource name - /// Resource type + /// The resource identifier. + /// The resource name. + /// The resource type. public SubResource(string id = default(string), string name = default(string), string type = default(string)) { Id = id; @@ -46,19 +48,19 @@ public SubResource() partial void CustomInit(); /// - /// Gets resource Id + /// Gets the resource identifier. /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } /// - /// Gets or sets resource name + /// Gets the resource name. /// [JsonProperty(PropertyName = "name")] - public string Name { get; set; } + public string Name { get; private set; } /// - /// Gets resource type + /// Gets the resource type. /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/TrustedIdProvider.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/TrustedIdProvider.cs index 1dabbbf0bc09..e54a7c95c9e0 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/TrustedIdProvider.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/TrustedIdProvider.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// Data Lake Store Trusted Identity Provider information + /// Data Lake Store trusted identity provider information. /// [Rest.Serialization.JsonTransformation] public partial class TrustedIdProvider : SubResource @@ -32,12 +32,12 @@ public TrustedIdProvider() /// /// Initializes a new instance of the TrustedIdProvider class. /// + /// The resource identifier. + /// The resource name. + /// The resource type. /// The URL of this trusted identity - /// provider - /// Resource Id - /// Resource name - /// Resource type - public TrustedIdProvider(string idProvider, string id = default(string), string name = default(string), string type = default(string)) + /// provider. + public TrustedIdProvider(string id = default(string), string name = default(string), string type = default(string), string idProvider = default(string)) : base(id, name, type) { IdProvider = idProvider; @@ -50,23 +50,10 @@ public TrustedIdProvider() partial void CustomInit(); /// - /// Gets or sets the URL of this trusted identity provider + /// Gets the URL of this trusted identity provider. /// [JsonProperty(PropertyName = "properties.idProvider")] - public string IdProvider { get; set; } + public string IdProvider { get; private set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (IdProvider == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "IdProvider"); - } - } } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/DataLakeStoreAccountUpdateParameters.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateDataLakeStoreAccountParameters.cs similarity index 69% rename from src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/DataLakeStoreAccountUpdateParameters.cs rename to src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateDataLakeStoreAccountParameters.cs index 60c91aa33c71..bf86ae266df8 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/DataLakeStoreAccountUpdateParameters.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateDataLakeStoreAccountParameters.cs @@ -18,57 +18,63 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// Data Lake Store account information to update + /// Data Lake Store account information to update. /// [Rest.Serialization.JsonTransformation] - public partial class DataLakeStoreAccountUpdateParameters + public partial class UpdateDataLakeStoreAccountParameters { /// /// Initializes a new instance of the - /// DataLakeStoreAccountUpdateParameters class. + /// UpdateDataLakeStoreAccountParameters class. /// - public DataLakeStoreAccountUpdateParameters() + public UpdateDataLakeStoreAccountParameters() { CustomInit(); } /// /// Initializes a new instance of the - /// DataLakeStoreAccountUpdateParameters class. + /// UpdateDataLakeStoreAccountParameters class. /// /// Resource tags + /// The default owner group for all new + /// folders and files created in the Data Lake Store account. + /// Used for rotation of user managed + /// Key Vault keys. Can only be used to rotate a user managed + /// encryption Key Vault key. + /// The list of firewall rules associated + /// with this Data Lake Store account. /// The current state of the IP address - /// firewall for this Data Lake store account. Disabling the firewall + /// firewall for this Data Lake Store account. Disabling the firewall /// does not remove existing rules, they will just be ignored until the /// firewall is re-enabled. 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 trusted identity + /// providers associated with this Data Lake Store account. /// The current state of the - /// trusted identity provider feature for this Data Lake store account. + /// trusted identity provider feature for this Data Lake Store account. /// Disabling trusted identity provider functionality does not remove /// the providers, they will just be ignored until this feature is /// re-enabled. Possible values include: 'Enabled', 'Disabled' - /// the default owner group for all new - /// folders and files created in the Data Lake Store account. - /// the commitment tier to use for next month. + /// The commitment tier to use for next month. /// Possible values include: 'Consumption', 'Commitment_1TB', /// 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', /// 'Commitment_1PB', 'Commitment_5PB' - /// 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' - /// Used for rotation of user managed - /// Key Vault keys. Can only be used to rotate a user managed - /// encryption Key Vault key. - 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?), UpdateEncryptionConfig encryptionConfig = default(UpdateEncryptionConfig)) + public UpdateDataLakeStoreAccountParameters(IDictionary tags = default(IDictionary), string defaultGroup = default(string), UpdateEncryptionConfig encryptionConfig = default(UpdateEncryptionConfig), IList firewallRules = default(IList), FirewallState? firewallState = default(FirewallState?), FirewallAllowAzureIpsState? firewallAllowAzureIps = default(FirewallAllowAzureIpsState?), IList trustedIdProviders = default(IList), TrustedIdProviderState? trustedIdProviderState = default(TrustedIdProviderState?), TierType? newTier = default(TierType?)) { Tags = tags; + DefaultGroup = defaultGroup; + EncryptionConfig = encryptionConfig; + FirewallRules = firewallRules; FirewallState = firewallState; + FirewallAllowAzureIps = firewallAllowAzureIps; + TrustedIdProviders = trustedIdProviders; TrustedIdProviderState = trustedIdProviderState; - DefaultGroup = defaultGroup; NewTier = newTier; - FirewallAllowAzureIps = firewallAllowAzureIps; - EncryptionConfig = encryptionConfig; CustomInit(); } @@ -83,18 +89,55 @@ public DataLakeStoreAccountUpdateParameters() [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } + /// + /// Gets or sets the default owner group for all new folders and files + /// created in the Data Lake Store account. + /// + [JsonProperty(PropertyName = "properties.defaultGroup")] + public string DefaultGroup { get; set; } + + /// + /// Gets or sets used for rotation of user managed Key Vault keys. Can + /// only be used to rotate a user managed encryption Key Vault key. + /// + [JsonProperty(PropertyName = "properties.encryptionConfig")] + public UpdateEncryptionConfig EncryptionConfig { get; set; } + + /// + /// Gets or sets the list of firewall rules associated with this Data + /// Lake Store account. + /// + [JsonProperty(PropertyName = "properties.firewallRules")] + public IList FirewallRules { get; set; } + /// /// Gets or sets the current state of the IP address firewall for this - /// Data Lake store account. Disabling the firewall does not remove + /// Data Lake Store account. Disabling the firewall does not remove /// existing rules, they will just be ignored until the firewall is /// re-enabled. 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 trusted identity providers associated with + /// this Data Lake Store account. + /// + [JsonProperty(PropertyName = "properties.trustedIdProviders")] + public IList TrustedIdProviders { get; set; } + /// /// Gets or sets the current state of the trusted identity provider - /// feature for this Data Lake store account. Disabling trusted + /// feature for this Data Lake Store account. Disabling trusted /// identity provider functionality does not remove the providers, they /// will just be ignored until this feature is re-enabled. Possible /// values include: 'Enabled', 'Disabled' @@ -102,13 +145,6 @@ public DataLakeStoreAccountUpdateParameters() [JsonProperty(PropertyName = "properties.trustedIdProviderState")] public TrustedIdProviderState? TrustedIdProviderState { get; set; } - /// - /// Gets or sets the default owner group for all new folders and files - /// created in the Data Lake Store account. - /// - [JsonProperty(PropertyName = "properties.defaultGroup")] - public string DefaultGroup { get; set; } - /// /// Gets or sets the commitment tier to use for next month. Possible /// values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', @@ -118,21 +154,5 @@ 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; } - - /// - /// Gets or sets used for rotation of user managed Key Vault keys. Can - /// only be used to rotate a user managed encryption Key Vault key. - /// - [JsonProperty(PropertyName = "properties.encryptionConfig")] - public UpdateEncryptionConfig EncryptionConfig { get; set; } - } } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateFirewallRuleParameters.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateFirewallRuleParameters.cs index 1157eb0960d2..4c8f4ae7783a 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateFirewallRuleParameters.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateFirewallRuleParameters.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// Data Lake Store firewall rule update parameters + /// The parameters used to update a firewall rule. /// [Rest.Serialization.JsonTransformation] public partial class UpdateFirewallRuleParameters @@ -34,10 +34,10 @@ public UpdateFirewallRuleParameters() /// Initializes a new instance of the UpdateFirewallRuleParameters /// class. /// - /// the start IP address for the firewall + /// 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 + /// 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)) diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateFirewallRuleWithAccountParameters.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateFirewallRuleWithAccountParameters.cs new file mode 100644 index 000000000000..eacf7d2c3021 --- /dev/null +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateFirewallRuleWithAccountParameters.cs @@ -0,0 +1,94 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataLake.Store.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The parameters used to update a firewall rule while updating a Data + /// Lake Store account. + /// + [Rest.Serialization.JsonTransformation] + public partial class UpdateFirewallRuleWithAccountParameters + { + /// + /// Initializes a new instance of the + /// UpdateFirewallRuleWithAccountParameters class. + /// + public UpdateFirewallRuleWithAccountParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// UpdateFirewallRuleWithAccountParameters class. + /// + /// The unique name of the firewall rule to + /// update. + /// 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 UpdateFirewallRuleWithAccountParameters(string name, string startIpAddress = default(string), string endIpAddress = default(string)) + { + Name = name; + StartIpAddress = startIpAddress; + EndIpAddress = endIpAddress; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the unique name of the firewall rule to update. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// 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 (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateTrustedIdProviderParameters.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateTrustedIdProviderParameters.cs index 75aa633c77d1..38fe6286f15c 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateTrustedIdProviderParameters.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateTrustedIdProviderParameters.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataLake.Store.Models using System.Linq; /// - /// Data Lake Store Trusted Identity Provider update parameters + /// The parameters used to update a trusted identity provider. /// [Rest.Serialization.JsonTransformation] public partial class UpdateTrustedIdProviderParameters @@ -35,7 +35,7 @@ public UpdateTrustedIdProviderParameters() /// class. /// /// The URL of this trusted identity - /// provider + /// provider. public UpdateTrustedIdProviderParameters(string idProvider = default(string)) { IdProvider = idProvider; @@ -48,7 +48,7 @@ public UpdateTrustedIdProviderParameters() partial void CustomInit(); /// - /// Gets or sets the URL of this trusted identity provider + /// Gets or sets the URL of this trusted identity provider. /// [JsonProperty(PropertyName = "properties.idProvider")] public string IdProvider { get; set; } diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateTrustedIdProviderWithAccountParameters.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateTrustedIdProviderWithAccountParameters.cs new file mode 100644 index 000000000000..2cba82f60be3 --- /dev/null +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/UpdateTrustedIdProviderWithAccountParameters.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataLake.Store.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The parameters used to update a trusted identity provider while + /// updating a Data Lake Store account. + /// + [Rest.Serialization.JsonTransformation] + public partial class UpdateTrustedIdProviderWithAccountParameters + { + /// + /// Initializes a new instance of the + /// UpdateTrustedIdProviderWithAccountParameters class. + /// + public UpdateTrustedIdProviderWithAccountParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// UpdateTrustedIdProviderWithAccountParameters class. + /// + /// The unique name of the trusted identity provider + /// to update. + /// The URL of this trusted identity + /// provider. + public UpdateTrustedIdProviderWithAccountParameters(string name, string idProvider = default(string)) + { + Name = name; + IdProvider = idProvider; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the unique name of the trusted identity provider to + /// update. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the URL of this trusted identity provider. + /// + [JsonProperty(PropertyName = "properties.idProvider")] + public string IdProvider { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/SdkInfo_DataLakeStoreAccountManagementClient.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/SdkInfo_DataLakeStoreAccountManagementClient.cs index 0924e8990a1c..6a3b34c7ea88 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/SdkInfo_DataLakeStoreAccountManagementClient.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/SdkInfo_DataLakeStoreAccountManagementClient.cs @@ -11,7 +11,7 @@ public static IEnumerable> ApiInfo_DataLakeStoreAc { return new Tuple[] { - new Tuple("DataLakeStore", "Account", "2016-11-01"), + new Tuple("DataLakeStore", "Accounts", "2016-11-01"), new Tuple("DataLakeStore", "FirewallRules", "2016-11-01"), new Tuple("DataLakeStore", "Locations", "2016-11-01"), new Tuple("DataLakeStore", "Operations", "2016-11-01"), diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/TrustedIdProvidersOperations.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/TrustedIdProvidersOperations.cs index 20549c5db733..b5507645f689 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/TrustedIdProvidersOperations.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/TrustedIdProvidersOperations.cs @@ -51,24 +51,14 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien public DataLakeStoreAccountManagementClient Client { get; private set; } /// - /// Creates or updates the specified trusted identity provider. During update, - /// the trusted identity provider with the specified name will be replaced with - /// this new provider + /// Lists the Data Lake Store trusted identity providers within the specified + /// Data Lake Store account. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// /// - /// 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 or replace the trusted identity provider. + /// The name of the Data Lake Store account. /// /// /// Headers that will be added to request. @@ -91,8 +81,12 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, TrustedIdProvider parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -101,26 +95,10 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien { throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } - if (trustedIdProviderName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "trustedIdProviderName"); - } - 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; @@ -130,18 +108,15 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien 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, "CreateOrUpdate", tracingParameters); + 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.DataLakeStore/accounts/{accountName}/trustedIdProviders/{trustedIdProviderName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/trustedIdProviders").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _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) { @@ -154,7 +129,7 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -185,12 +160,6 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -246,7 +215,7 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -259,7 +228,7 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -279,22 +248,22 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien } /// - /// Updates the specified trusted identity provider. + /// Creates or updates the specified trusted identity provider. During update, + /// the trusted identity provider with the specified name will be replaced with + /// this new provider /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account to which to update the trusted - /// identity provider. + /// The name of the Data Lake Store account. /// /// /// 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. + /// Parameters supplied to create or replace the trusted identity provider. /// /// /// Headers that will be added to request. @@ -317,8 +286,12 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien /// /// 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)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, CreateOrUpdateTrustedIdProviderParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -331,13 +304,17 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien { throw new ValidationException(ValidationRules.CannotBeNull, "trustedIdProviderName"); } - if (Client.ApiVersion == null) + if (parameters == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - if (Client.SubscriptionId == null) + if (parameters != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -351,15 +328,15 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien tracingParameters.Add("trustedIdProviderName", trustedIdProviderName); tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + 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.DataLakeStore/accounts/{accountName}/trustedIdProviders/{trustedIdProviderName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _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) { @@ -372,7 +349,7 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -497,19 +474,16 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien } /// - /// Deletes the specified trusted identity provider from the specified Data - /// Lake Store account + /// Gets the specified Data Lake Store trusted identity provider. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to delete the trusted - /// identity provider. + /// The name of the Data Lake Store account. /// /// - /// The name of the trusted identity provider to delete. + /// The name of the trusted identity provider to retrieve. /// /// /// Headers that will be added to request. @@ -520,6 +494,9 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -529,8 +506,12 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -547,10 +528,6 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien { 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; @@ -562,15 +539,15 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien tracingParameters.Add("accountName", accountName); tracingParameters.Add("trustedIdProviderName", trustedIdProviderName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + 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.DataLakeStore/accounts/{accountName}/trustedIdProviders/{trustedIdProviderName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _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) { @@ -583,7 +560,7 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -634,7 +611,7 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 204) + if ((int)_statusCode != 200) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -669,13 +646,31 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -684,18 +679,20 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien } /// - /// Gets the specified Data Lake Store trusted identity provider. + /// Updates the specified trusted identity provider. /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the trusted - /// identity provider. + /// The name of the Data Lake Store account. /// /// - /// The name of the trusted identity provider to retrieve. + /// 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. @@ -718,8 +715,12 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, UpdateTrustedIdProviderParameters parameters = default(UpdateTrustedIdProviderParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -736,10 +737,6 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien { 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; @@ -750,16 +747,17 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("trustedIdProviderName", trustedIdProviderName); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + 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("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _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) { @@ -772,7 +770,7 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -803,6 +801,12 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials if (Client.Credentials != null) { @@ -891,16 +895,17 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien } /// - /// Lists the Data Lake Store trusted identity providers within the specified - /// Data Lake Store account. + /// Deletes the specified trusted identity provider from the specified Data + /// Lake Store account /// /// - /// The name of the Azure resource group that contains the Data Lake Store - /// account. + /// The name of the Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the trusted - /// identity providers. + /// The name of the Data Lake Store account. + /// + /// + /// The name of the trusted identity provider to delete. /// /// /// Headers that will be added to request. @@ -911,9 +916,6 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -923,8 +925,12 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien /// /// 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)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string trustedIdProviderName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -933,13 +939,13 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien { throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } - if (Client.ApiVersion == null) + if (trustedIdProviderName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "trustedIdProviderName"); } - if (Client.SubscriptionId == null) + if (Client.ApiVersion == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -950,15 +956,17 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); + tracingParameters.Add("trustedIdProviderName", trustedIdProviderName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByAccount", tracingParameters); + 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.DataLakeStore/accounts/{accountName}/trustedIdProviders").ToString(); + 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("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _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)); + _url = _url.Replace("{trustedIdProviderName}", System.Uri.EscapeDataString(trustedIdProviderName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -971,7 +979,7 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1022,7 +1030,7 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1057,31 +1065,13 @@ internal TrustedIdProvidersOperations(DataLakeStoreAccountManagementClient clien throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/TrustedIdProvidersOperationsExtensions.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/TrustedIdProvidersOperationsExtensions.cs index 75b9b0e34ad0..b50296ed7c0c 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/TrustedIdProvidersOperationsExtensions.cs +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/TrustedIdProvidersOperationsExtensions.cs @@ -22,268 +22,248 @@ namespace Microsoft.Azure.Management.DataLake.Store public static partial class TrustedIdProvidersOperationsExtensions { /// - /// Creates or updates the specified trusted identity provider. During update, - /// the trusted identity provider with the specified name will be replaced with - /// this new provider + /// Lists the Data Lake Store trusted identity providers within the specified + /// Data Lake Store account. /// /// /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account to add or replace the trusted - /// identity provider. + /// The name of the Data Lake Store account. /// - /// - /// The name of the trusted identity provider. This is used for differentiation - /// of providers in the account. - /// - /// - /// 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) + public static IPage ListByAccount(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName) { - return operations.CreateOrUpdateAsync(resourceGroupName, accountName, trustedIdProviderName, parameters).GetAwaiter().GetResult(); + return operations.ListByAccountAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); } /// - /// Creates or updates the specified trusted identity provider. During update, - /// the trusted identity provider with the specified name will be replaced with - /// this new provider + /// Lists the Data Lake Store trusted identity providers within the specified + /// Data Lake Store account. /// /// /// 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 Azure resource group. /// /// - /// 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 or replace the trusted identity provider. + /// The name of the Data Lake Store account. /// /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, TrustedIdProvider parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAccountAsync(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, accountName, trustedIdProviderName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the specified trusted identity provider. + /// Creates or updates the specified trusted identity provider. During update, + /// the trusted identity provider with the specified name will be replaced with + /// this new 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 Azure resource group. /// /// - /// The name of the Data Lake Store account to which to update the trusted - /// identity provider. + /// The name of the Data Lake Store account. /// /// /// 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. + /// Parameters supplied to create or replace the trusted identity provider. /// - public static TrustedIdProvider Update(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, UpdateTrustedIdProviderParameters parameters = default(UpdateTrustedIdProviderParameters)) + public static TrustedIdProvider CreateOrUpdate(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, CreateOrUpdateTrustedIdProviderParameters parameters) { - return operations.UpdateAsync(resourceGroupName, accountName, trustedIdProviderName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(resourceGroupName, accountName, trustedIdProviderName, parameters).GetAwaiter().GetResult(); } /// - /// Updates the specified trusted identity provider. + /// Creates or updates the specified trusted identity provider. During update, + /// the trusted identity provider with the specified name will be replaced with + /// this new 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 Azure resource group. /// /// - /// The name of the Data Lake Store account to which to update the trusted - /// identity provider. + /// The name of the Data Lake Store account. /// /// /// 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. + /// Parameters supplied to create or replace 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)) + public static async Task CreateOrUpdateAsync(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, CreateOrUpdateTrustedIdProviderParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, trustedIdProviderName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, accountName, trustedIdProviderName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes the specified trusted identity provider from the specified Data - /// Lake Store account + /// Gets the specified Data Lake Store 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to delete the trusted - /// identity provider. + /// The name of the Data Lake Store account. /// /// - /// The name of the trusted identity provider to delete. + /// The name of the trusted identity provider to retrieve. /// - public static void Delete(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName) + public static TrustedIdProvider Get(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName) { - operations.DeleteAsync(resourceGroupName, accountName, trustedIdProviderName).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, accountName, trustedIdProviderName).GetAwaiter().GetResult(); } /// - /// Deletes the specified trusted identity provider from the specified Data - /// Lake Store account + /// Gets the specified Data Lake Store 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to delete the trusted - /// identity provider. + /// The name of the Data Lake Store account. /// /// - /// The name of the trusted identity provider to delete. + /// The name of the trusted identity provider to retrieve. /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, trustedIdProviderName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, trustedIdProviderName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Gets the specified Data Lake Store trusted identity provider. + /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the trusted - /// identity provider. + /// The name of the Data Lake Store account. /// /// - /// The name of the trusted identity provider to retrieve. + /// The name of the trusted identity provider. This is used for differentiation + /// of providers in the account. /// - public static TrustedIdProvider Get(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName) + /// + /// 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.GetAsync(resourceGroupName, accountName, trustedIdProviderName).GetAwaiter().GetResult(); + return operations.UpdateAsync(resourceGroupName, accountName, trustedIdProviderName, parameters).GetAwaiter().GetResult(); } /// - /// Gets the specified Data Lake Store trusted identity provider. + /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the trusted - /// identity provider. + /// The name of the Data Lake Store account. /// /// - /// The name of the trusted identity provider to retrieve. + /// 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 GetAsync(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, CancellationToken cancellationToken = default(CancellationToken)) + 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.GetWithHttpMessagesAsync(resourceGroupName, accountName, trustedIdProviderName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, trustedIdProviderName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Lists the Data Lake Store trusted identity providers within the specified - /// Data Lake Store account. + /// Deletes the specified trusted identity provider from the specified Data + /// Lake Store account /// /// /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the trusted - /// identity providers. + /// The name of the Data Lake Store account. /// - public static IPage ListByAccount(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName) + /// + /// The name of the trusted identity provider to delete. + /// + public static void Delete(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName) { - return operations.ListByAccountAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); + operations.DeleteAsync(resourceGroupName, accountName, trustedIdProviderName).GetAwaiter().GetResult(); } /// - /// Lists the Data Lake Store trusted identity providers within the specified - /// Data Lake Store account. + /// Deletes the specified trusted identity provider from the specified Data + /// Lake Store account /// /// /// 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 Azure resource group. /// /// - /// The name of the Data Lake Store account from which to get the trusted - /// identity providers. + /// The name of the Data Lake Store account. + /// + /// + /// The name of the trusted identity provider to delete. /// /// /// The cancellation token. /// - public static async Task> ListByAccountAsync(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this ITrustedIdProvidersOperations operations, string resourceGroupName, string accountName, string trustedIdProviderName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, trustedIdProviderName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Microsoft.Azure.Management.DataLake.Store.csproj b/src/SDKs/DataLake.Store/Management.DataLake.Store/Microsoft.Azure.Management.DataLake.Store.csproj index b08cd1294a43..492f9aeadaeb 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Microsoft.Azure.Management.DataLake.Store.csproj +++ b/src/SDKs/DataLake.Store/Management.DataLake.Store/Microsoft.Azure.Management.DataLake.Store.csproj @@ -6,7 +6,7 @@ Microsoft.Azure.Management.DataLake.Store Provides Data Lake Store account and filesystem management capabilities for Microsoft Azure. - 2.3.3-preview + 2.4.0-preview Microsoft.Azure.Management.DataLake.Store Data Lake Store management;DataLakeStore; See https://aka.ms/adlsdotnetsdkchangelog for release notes. diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Properties/AssemblyInfo.cs b/src/SDKs/DataLake.Store/Management.DataLake.Store/Properties/AssemblyInfo.cs index 4f3e38b10e9c..cb14b28925d1 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Properties/AssemblyInfo.cs +++ b/src/SDKs/DataLake.Store/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.3.3.0")] +[assembly: AssemblyFileVersion("2.4.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Azure .NET SDK")] diff --git a/src/SDKs/DataLake.Store/changelog.md b/src/SDKs/DataLake.Store/changelog.md index dee16ae912d3..5a82405f1436 100644 --- a/src/SDKs/DataLake.Store/changelog.md +++ b/src/SDKs/DataLake.Store/changelog.md @@ -1,5 +1,29 @@ ## Microsoft.Azure.Management.DataLake.Store release notes +### Changes in 2.4.0-preview + +**Breaking changes** + +- The `Account` operations object has been changed from `Account` to `Accounts` + - E.g., `Account.Get(...)` to `Accounts.Get(...)` +- When creating or updating resources (`accounts`, `firewall rules`, etc.), explicit parameter objects are now required: + - Account creation: + - `DataLakeStoreAccount` to `CreateDataLakeStoreAccountParameters` + - List of `FirewallRule` to `CreateFirewallRuleWithAccountParameters` + - List of `TrustedIdProvider` to `CreateTrustedIdProviderWithAccountParameters` + - Account update: + - `DataLakeStoreUpdateParameters` to `UpdateDataLakeStoreParameters` + - List of `FirewallRule` to `UpdateFirewallRuleWithAccountParameters` + - List of `TrustedIdProvider` to `UpdateTrustedIdProviderWithAccountParameters` + - Firewall rule creation and update: + - `FirewallRule` to `CreateOrUpdateFirewallRuleParameters` + - `FirewallRule` to `UpdateFirewallRuleParameters` + - Trusted identity provider creation and update: + - `TrustedIdProvider` to `CreateOrUpdateTrustedIdProviderParameters` + - `TrustedIdProvider` to `UpdateTrustedIdProviderParameters` +- Bugfix: Removed the `childrenNum` field from `FileStatusProperties` because it was not supported +- Bugfix: Changed the data type of the `permission` field of `AclStatus` from `int` to `string` + ### Changes in 2.3.3-preview **Breaking changes** diff --git a/src/SDKs/DeviceProvisioningServices/AzSdk.RP.props b/src/SDKs/DeviceProvisioningServices/AzSdk.RP.props new file mode 100644 index 000000000000..70f95c61f97a --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/AzSdk.RP.props @@ -0,0 +1,7 @@ + + + + Devices_2017-11-15; + $(PackageTags);$(CommonTags);$(AzureApiTag); + + \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/DeviceProvisioningServices.Tests.csproj b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/DeviceProvisioningServices.Tests.csproj new file mode 100644 index 000000000000..7667f9a6817b --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/DeviceProvisioningServices.Tests.csproj @@ -0,0 +1,34 @@ + + + + DeviceProvisioningServices.Tests + DeviceProvisioningServices.Tests Class Library + DeviceProvisioningServices.Tests + 1.0.1-preview + + + + netcoreapp1.1 + + + + + + + + + + + + + + + PreserveNewest + + + + + + + + \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/Helpers/Constants.cs b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/Helpers/Constants.cs new file mode 100644 index 000000000000..24078950d94e --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/Helpers/Constants.cs @@ -0,0 +1,41 @@ +namespace DeviceProvisioningServices.Tests.Helpers +{ + public static class Constants + { + public const string AccessKeyName = "provisioningserviceowner"; + + public static class Certificate + { + public const string Content = + "MIIBvjCCAWOgAwIBAgIQG6PoBFT6GLJGNKn/EaxltTAKBggqhkjOPQQDAjAcMRow" + + "GAYDVQQDDBFBenVyZSBJb1QgUm9vdCBDQTAeFw0xNzExMDMyMDUyNDZaFw0xNzEy" + + "MDMyMTAyNDdaMBwxGjAYBgNVBAMMEUF6dXJlIElvVCBSb290IENBMFkwEwYHKoZI" + + "zj0CAQYIKoZIzj0DAQcDQgAE+CgpnW3K+KRNIi/U6Zqe/Al9m8PExHX2KgakmGTf" + + "E04nNBwnSoygWb0ekqpT+Lm+OP56LMMe9ynVNryDEr9OSKOBhjCBgzAOBgNVHQ8B" + + "Af8EBAMCAgQwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMB8GA1UdEQQY" + + "MBaCFENOPUF6dXJlIElvVCBSb290IENBMBIGA1UdEwEB/wQIMAYBAf8CAQwwHQYD" + + "VR0OBBYEFDjiklfHQzw1G0A33BcmRQTjAivTMAoGCCqGSM49BAMCA0kAMEYCIQCt" + + "jJ4bAvoYuDhwr92Kk+OkvpPF+qBFiRfrA/EC4YGtzQIhAO79WPtbUnBQ5fsQnW2a" + + "UAT4yJGWL+7l4/qfmqblb96n"; + + public const string Name = "DPStestCert"; + public const string Subject = "CN=Azure IoT Root CA"; + public const string Thumbprint = "9F0983E8F2DB2DB3582997FEF331247D872DEE32"; + } + + public const string DefaultLocation = "eastus"; + + public static class DefaultSku + { + public const string Name = "S1"; + public const int Capacity = 1; + public const string Tier = "S1"; + } + + public static readonly string[] AllocationPolicies = {"Hashed", "GeoLatency", "Static"}; + + public const int ArmAttemptWaitMS = 500; + public const int RandomAllocationWeight = 870084357; + public const int ArmAttemptLimit = 5; + } +} diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/Helpers/RecordedDelegatingHandler.cs b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/Helpers/RecordedDelegatingHandler.cs new file mode 100644 index 000000000000..931c719d6468 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/Helpers/RecordedDelegatingHandler.cs @@ -0,0 +1,87 @@ +using System; +using System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Threading.Tasks; + +namespace DeviceProvisioningServices.Tests.Helpers +{ + public class RecordedDelegatingHandler : DelegatingHandler + { + private HttpResponseMessage _response; + + public RecordedDelegatingHandler() + { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + } + + public RecordedDelegatingHandler(HttpResponseMessage response) + { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + _response = response; + } + + public HttpStatusCode StatusCodeToReturn { get; set; } + + public HttpStatusCode SubsequentStatusCodeToReturn { get; set; } + + public string Request { get; private set; } + + public HttpRequestHeaders RequestHeaders { get; private set; } + + public HttpContentHeaders ContentHeaders { get; private set; } + + public HttpMethod Method { get; private set; } + + public Uri Uri { get; private set; } + + public bool IsPassThrough { get; set; } + + private int counter; + + protected override async Task SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) + { + counter++; + // Save request + if (request.Content == null) + { + Request = string.Empty; + } + else + { + Request = await request.Content.ReadAsStringAsync(); + } + RequestHeaders = request.Headers; + if (request.Content != null) + { + ContentHeaders = request.Content.Headers; + } + Method = request.Method; + Uri = request.RequestUri; + + // Prepare response + if (IsPassThrough) + { + return await base.SendAsync(request, cancellationToken); + } + else + { + if (_response != null && counter == 1) + { + return _response; + } + else + { + var statusCode = StatusCodeToReturn; + if (counter > 1) + statusCode = SubsequentStatusCodeToReturn; + HttpResponseMessage response = new HttpResponseMessage(statusCode); + response.Content = new StringContent(""); + return response; + } + } + } + } +} diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientAllocationPolicyTests.cs b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientAllocationPolicyTests.cs new file mode 100644 index 000000000000..b389c855d2b9 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientAllocationPolicyTests.cs @@ -0,0 +1,64 @@ +using System.Linq; +using DeviceProvisioningServices.Tests.Helpers; +using Microsoft.Azure.Management.DeviceProvisioningServices; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Xunit; + +namespace DeviceProvisioningServices.Tests.ScenarioTests +{ + public class DeviceProvisioningClientAllocationPolicyTests : DeviceProvisioningTestBase + { + [Fact] + public void Get() + { + using (var context = MockContext.Start(this.GetType().FullName)) + { + var testName = "unitTestingUpdateAllocationPolicyGet"; + this.Initialize(context); + var resourceGroup = this.GetResourceGroup(testName); + var testedService = GetService(testName, resourceGroup.Name); + + + Assert.Contains(Constants.AllocationPolicies, x => x.Equals(testedService.Properties.AllocationPolicy)); + } + } + [Fact] + public void Update() + { + using (var context = MockContext.Start(this.GetType().FullName)) + { + var testName = "unitTestingDPSAllocationPolicyUpdate"; + this.Initialize(context); + var resourceGroup = this.GetResourceGroup(testName); + var testedService = GetService(testName, testName); + + //get a different Allocation policy + var newAllocationPolicy = Constants.AllocationPolicies + .Except(new[] { testedService.Properties.AllocationPolicy }).First(); + + var attempts = Constants.ArmAttemptLimit; + while (attempts > 0 && testedService.Properties.AllocationPolicy != newAllocationPolicy) + { + testedService.Properties.AllocationPolicy = newAllocationPolicy; + try + { + var updatedInstance = + this.provisioningClient.IotDpsResource.CreateOrUpdate(resourceGroup.Name, testName, + testedService); + Assert.Equal(newAllocationPolicy, updatedInstance.Properties.AllocationPolicy); + + testedService.Properties.AllocationPolicy = updatedInstance.Properties.AllocationPolicy; + } + catch + { + //Let ARM finish + System.Threading.Thread.Sleep(Constants.ArmAttemptWaitMS); + + attempts--; + } + } + } + } + + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientCertificates.cs b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientCertificates.cs new file mode 100644 index 000000000000..f1f31ea88e5d --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientCertificates.cs @@ -0,0 +1,55 @@ +using System.Linq; +using Microsoft.Azure.Management.DeviceProvisioningServices; +using Microsoft.Azure.Management.DeviceProvisioningServices.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using DeviceProvisioningServices.Tests.Helpers; +using Xunit; + +namespace DeviceProvisioningServices.Tests.ScenarioTests +{ + public class DeviceProvisioningClientCertificates : DeviceProvisioningTestBase + { + + [Fact] + public void CreateAndDelete() + { + using (var context = MockContext.Start(this.GetType().FullName)) + { + this.Initialize(context); + var testName = "unitTestingDPSCertificatesCreateAndDelete"; + var resourceGroup = this.GetResourceGroup(testName); + var service = this.GetService(resourceGroup.Name, testName); + + //add a cert + this.provisioningClient.DpsCertificate.CreateOrUpdate(testName, + testName, Constants.Certificate.Name, + new CertificateBodyDescription(Constants.Certificate.Content)); + + var certificateList = this.provisioningClient.DpsCertificates.List(testName, + testName); + + Assert.Contains(certificateList.Value, x => x.Name == Constants.Certificate.Name); + + //verify certificate details + var certificateDetails = + certificateList.Value.FirstOrDefault(x => x.Name == Constants.Certificate.Name); + Assert.NotNull(certificateDetails); + Assert.Equal(certificateDetails.Properties.Subject, Constants.Certificate.Subject); + Assert.Equal(certificateDetails.Properties.Thumbprint, Constants.Certificate.Thumbprint); + + //can get a verification code + var verificationCodeResponse = + this.provisioningClient.DpsCertificate.GenerateVerificationCode(certificateDetails.Name, + certificateDetails.Etag, resourceGroup.Name, service.Name); + Assert.NotNull(verificationCodeResponse.Properties); + Assert.False(string.IsNullOrEmpty(verificationCodeResponse.Properties.VerificationCode)); + + //delete certificate + this.provisioningClient.DpsCertificate.Delete(resourceGroup.Name, verificationCodeResponse.Etag, service.Name, Constants.Certificate.Name); + certificateList = this.provisioningClient.DpsCertificates.List(testName, + testName); + Assert.DoesNotContain(certificateList.Value, x => x.Name == Constants.Certificate.Name); + } + } + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientLinkedHubsTests.cs b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientLinkedHubsTests.cs new file mode 100644 index 000000000000..d15db340af1f --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientLinkedHubsTests.cs @@ -0,0 +1,93 @@ +using System.Collections.Generic; +using System.Linq; +using Microsoft.Azure.Management.IotHub; +using Microsoft.Azure.Management.IotHub.Models; +using Microsoft.Azure.Management.DeviceProvisioningServices; +using Microsoft.Azure.Management.DeviceProvisioningServices.Models; +using Microsoft.Azure.Management.Resources.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Xunit; + +namespace DeviceProvisioningServices.Tests.ScenarioTests +{ + public class DeviceProvisioningClientLinkedHubsTests : DeviceProvisioningTestBase + { + [Fact] + public void CreateAndDelete() + { + using (var context = MockContext.Start(this.GetType().FullName)) + { + var testName = "unitTestingDPSLinkedHubCreateUpdateDelete"; + this.Initialize(context); + var iotHubClient = this.GetClient(context); + var resourceGroup = this.GetResourceGroup(testName); + var testedService = GetService(testName, resourceGroup.Name); + + var iotHub = GetIoTHub(iotHubClient, resourceGroup, testName); + var keys = iotHubClient.IotHubResource.ListKeys( + resourceGroup.Name, + iotHub.Name); + var key = keys.FirstOrDefault(x => x.Rights.HasFlag(AccessRights.ServiceConnect)); + var connectionString = $"HostName={iotHub.Name}.azure-devices.net;SharedAccessKeyName={key.KeyName};SharedAccessKey={key.PrimaryKey}"; + testedService.Properties.IotHubs = + testedService.Properties.IotHubs ?? new List(1); + + testedService.Properties.IotHubs.Add(new IotHubDefinitionDescription(connectionString, resourceGroup.Location, name: testName)); + var updatedInstance = + this.provisioningClient.IotDpsResource.CreateOrUpdate(resourceGroup.Name, testName, + testedService); + + var returnedHub = updatedInstance.Properties.IotHubs.FirstOrDefault(x => x.ConnectionString.StartsWith($"HostName={iotHub.Name}.azure-devices.net;")); + Assert.NotNull(returnedHub); + connectionString = returnedHub.ConnectionString; + + var updatedApplyPolicy = !(returnedHub.ApplyAllocationPolicy ?? false); + returnedHub.ApplyAllocationPolicy = updatedApplyPolicy; + + var updatedPolicyWeight = Helpers.Constants.RandomAllocationWeight; + returnedHub.AllocationWeight = updatedPolicyWeight; + + updatedInstance = + this.provisioningClient.IotDpsResource.CreateOrUpdate(resourceGroup.Name, testName, + updatedInstance); + var updatedHub = updatedInstance.Properties.IotHubs.FirstOrDefault(x => x.ConnectionString == connectionString); + Assert.NotNull(updatedHub); + + Assert.Equal(updatedApplyPolicy, updatedHub.ApplyAllocationPolicy); + Assert.Equal(updatedPolicyWeight, updatedHub.AllocationWeight); + + + //Delete the linked hub + testedService.Properties.IotHubs = testedService.Properties.IotHubs.Except( + testedService.Properties.IotHubs.Where(x => x.Name == testName)).ToList(); + updatedInstance = this.provisioningClient.IotDpsResource.CreateOrUpdate(resourceGroup.Name, testName, + testedService); + Assert.DoesNotContain(updatedInstance.Properties.IotHubs, x=> x.ConnectionString == connectionString); + + } + } + + + private IotHubDescription GetIoTHub(IotHubClient iotHubClient, ResourceGroup resourceGroup, string hubName) + { + return iotHubClient.IotHubResource.CreateOrUpdate( + resourceGroup.Name, + hubName, + new IotHubDescription + { + Location = resourceGroup.Location, + Subscriptionid = testEnv.SubscriptionId, + Resourcegroup = resourceGroup.Name, + Sku = new IotHubSkuInfo + { + Name = "S1", + Capacity = 1 + }, + Properties = new IotHubProperties + { + Routing = new RoutingProperties() + } + }); + } + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientSharedAccessPolicyTests.cs b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientSharedAccessPolicyTests.cs new file mode 100644 index 000000000000..c5ec0bb13d45 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientSharedAccessPolicyTests.cs @@ -0,0 +1,111 @@ +using System.Collections.Generic; +using System.Net; +using Microsoft.Azure.Management.DeviceProvisioningServices; +using Microsoft.Azure.Management.DeviceProvisioningServices.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using DeviceProvisioningServices.Tests.Helpers; +using Xunit; + +namespace DeviceProvisioningServices.Tests.ScenarioTests +{ + public class DeviceProvisioningClientSharedAccessPolicyTests : DeviceProvisioningTestBase + { + [Fact] + public void ListCreateDelete() + { + using (var context = MockContext.Start(this.GetType().FullName)) + { + this.Initialize(context); + var testName = "unitTestingDPSSharedAccessPoliciesListCreateDelete"; + var resourceGroup = this.GetResourceGroup(testName); + var testedService = GetService(testName, testName); + + //verify owner has been created + var ownerKey = this.provisioningClient.IotDpsResource.ListKeysForKeyName( + testedService.Name, + Constants.AccessKeyName, + resourceGroup.Name); + Assert.Equal(Constants.AccessKeyName, ownerKey.KeyName); + + //this access policy should not exist + Assert.False(TryGetKeyByName(testName, out var accessPolicy)); + Assert.Null(accessPolicy); + + + //new key + testedService.Properties.AuthorizationPolicies = + new List( + new[] + { + ownerKey, + new SharedAccessSignatureAuthorizationRuleAccessRightsDescription(testName, + rights: "RegistrationStatusWrite"), + }); + + var attempts = Constants.ArmAttemptLimit; + var success = false; + while (attempts > 0 && !success) + { + try + { + this.provisioningClient.IotDpsResource.CreateOrUpdate(testName, testedService.Name, + testedService); + success = true; + } + catch + { + //Let ARM finish + System.Threading.Thread.Sleep(Constants.ArmAttemptWaitMS); + attempts--; + } + } + //this access policy exists now + Assert.True(TryGetKeyByName(testName, out accessPolicy)); + Assert.NotNull(accessPolicy); + + testedService.Properties.AuthorizationPolicies = + new List( + new[] + { + ownerKey + }); + attempts = Constants.ArmAttemptLimit; + success = false; + while (attempts > 0 && !success) + { + try + { + this.provisioningClient.IotDpsResource.CreateOrUpdate(testName, testedService.Name, testedService); + success = true; + } + catch + { + //Let ARM finish + System.Threading.Thread.Sleep(Constants.ArmAttemptWaitMS); + + attempts--; + } + } + + //the policy has been removed + Assert.False(TryGetKeyByName(testName, out accessPolicy)); + Assert.Null(accessPolicy); + } + } + + private bool TryGetKeyByName(string testName, out SharedAccessSignatureAuthorizationRuleAccessRightsDescription accessPolicy) + { + try + { + accessPolicy = this.provisioningClient.IotDpsResource.ListKeysForKeyName(testName, testName, testName); + return true; + } + catch (ErrorDetailsException ex) + { + accessPolicy = null; + Assert.Equal(HttpStatusCode.NotFound, ex.Response.StatusCode); + return false; + } + } + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientTest.cs b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientTest.cs new file mode 100644 index 000000000000..178acd522d1b --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningClientTest.cs @@ -0,0 +1,152 @@ +using System; +using System.Linq; +using Microsoft.Azure.Management.DeviceProvisioningServices; +using Microsoft.Azure.Management.DeviceProvisioningServices.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using DeviceProvisioningServices.Tests.Helpers; +using Xunit; + +namespace DeviceProvisioningServices.Tests.ScenarioTests +{ + public class DeviceProvisioningClientTest : DeviceProvisioningTestBase + { + [Fact] + public void CreateAndDelete() + { + using (var context = MockContext.Start(this.GetType().FullName)) + { + + this.Initialize(context); + var testName = "unitTestingDPSCreateUpdate"; + this.GetResourceGroup(testName); + + + var availabilityInfo = + this.provisioningClient.IotDpsResource.CheckProvisioningServiceNameAvailability(new OperationInputs(testName)); + + if (!availabilityInfo.NameAvailable ?? false) + { + //it exists, so test the delete + this.provisioningClient.IotDpsResource.Delete(testName, testName); + + //check the name is now available + availabilityInfo = + this.provisioningClient.IotDpsResource.CheckProvisioningServiceNameAvailability(new OperationInputs(testName)); + Assert.True(availabilityInfo.NameAvailable); + } + + //try to create a DPS service + var createServiceDescription = new ProvisioningServiceDescription(Constants.DefaultLocation, + new IotDpsPropertiesDescription(), + new IotDpsSkuInfo(Constants.DefaultSku.Name, + Constants.DefaultSku.Tier, + Constants.DefaultSku.Capacity + )); + + var dpsInstance = this.provisioningClient.IotDpsResource.CreateOrUpdate( + testName, + testName, + createServiceDescription); + + Assert.NotNull(dpsInstance); + Assert.Equal(Constants.DefaultSku.Name, dpsInstance.Sku.Name); + Assert.Equal(testName, dpsInstance.Name); + + //verify item exists in list by resource group + var existingServices = + this.provisioningClient.IotDpsResource.ListByResourceGroup(testName); + Assert.Contains(existingServices, x => x.Name == testName); + + //verify can find + var foundInstance = this.provisioningClient.IotDpsResource.Get(testName, testName); + Assert.NotNull(foundInstance); + Assert.Equal(testName, foundInstance.Name); + + var attempts = Constants.ArmAttemptLimit; + var success = false; + while (attempts > 0 && !success) + { + try + { + + this.provisioningClient.IotDpsResource.Delete(testName, testName); + success = true; + } + catch + { + attempts--; + System.Threading.Thread.Sleep(Constants.ArmAttemptWaitMS); + } + } + existingServices = + this.provisioningClient.IotDpsResource.ListByResourceGroup(testName); + + //As long as it is gone or deleting, we're good + Assert.DoesNotContain(existingServices, x => x.Name == testName && x.Properties.State != "Deleting"); + } + } + + [Fact] + public void UpdateSku() + { + using (var context = MockContext.Start(this.GetType().FullName)) + { + this.Initialize(context); + string testName = "unitTestingDPSUpdateSku"; + var resourceGroup = this.GetResourceGroup(testName); + var service = this.GetService(testName, testName); + //update capacity + service.Sku.Capacity += 1; + var attempts = Constants.ArmAttemptLimit; + var success = false; + while (attempts > 0 && !success) + { + try + { + var updatedInstance = + this.provisioningClient.IotDpsResource.CreateOrUpdate(resourceGroup.Name, service.Name, + service); + Assert.Equal(service.Sku.Capacity, updatedInstance.Sku.Capacity); + success = true; + } + catch + { + //Let ARM finish + System.Threading.Thread.Sleep(Constants.ArmAttemptWaitMS); + attempts--; + } + } + + + + } + } + [Fact] + public void CreateFailure() + { + using (var context = MockContext.Start(this.GetType().FullName)) + { + + this.Initialize(context); + var testName = "unitTestingDPSCreateUpdateInvalidName"; + this.GetResourceGroup(testName); + + + //try to create a DPS service + var createServiceDescription = new ProvisioningServiceDescription(Constants.DefaultLocation, + new IotDpsPropertiesDescription(), + new IotDpsSkuInfo(Constants.DefaultSku.Name, + Constants.DefaultSku.Tier, + Constants.DefaultSku.Capacity + )); + + var badCall = new Func(() => this.provisioningClient.IotDpsResource.CreateOrUpdate( + testName, + $"1ñ1{testName}!!!", //We dont't allow most punctuation, leading numbers, etc + createServiceDescription)); + + Assert.Throws(badCall); + } + } + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningTestBase.cs b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningTestBase.cs new file mode 100644 index 000000000000..fcf15561c3c0 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/ScenarioTests/DeviceProvisioningTestBase.cs @@ -0,0 +1,86 @@ +using System.Net; +using Microsoft.Azure.Management.DeviceProvisioningServices; +using Microsoft.Azure.Management.DeviceProvisioningServices.Models; +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.Resources.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using DeviceProvisioningServices.Tests.Helpers; + +namespace DeviceProvisioningServices.Tests.ScenarioTests +{ + public class DeviceProvisioningTestBase : TestBase + { + protected IotDpsClient provisioningClient; + protected ResourceManagementClient resourcesClient; + protected TestEnvironment testEnv; + + protected bool initialized = false; + protected object locker = new object(); + + + + protected void Initialize(MockContext context) + { + if (!initialized) + { + lock (locker) + { + if (!initialized) + { + testEnv = TestEnvironmentFactory.GetTestEnvironment(); + resourcesClient = GetClient(context); + provisioningClient = GetClient(context); + } + initialized = true; + } + } + } + + protected ProvisioningServiceDescription GetService(string serviceName, string resourceGroupName) + { + var availabilityInfo = + this.provisioningClient.IotDpsResource.CheckProvisioningServiceNameAvailability(new OperationInputs(serviceName)); + if (!availabilityInfo.NameAvailable ?? true) + { + this.provisioningClient.IotDpsResource.Get(serviceName, + resourceGroupName); + } + var createServiceDescription = new ProvisioningServiceDescription(Constants.DefaultLocation, + new IotDpsPropertiesDescription(), + new IotDpsSkuInfo(Constants.DefaultSku.Name, + Constants.DefaultSku.Tier, + Constants.DefaultSku.Capacity + )); + + return this.provisioningClient.IotDpsResource.CreateOrUpdate( + resourceGroupName, + serviceName, createServiceDescription); + } + + protected T GetClient(MockContext context, RecordedDelegatingHandler handler = null) where T : class + { + if (handler == null) + { + handler = new RecordedDelegatingHandler + { + StatusCodeToReturn = HttpStatusCode.OK, + IsPassThrough = true + }; + } + var client = context.GetServiceClient(handlers: handler); + return client; + } + + protected ResourceGroup GetResourceGroup(string resourceGroupName, string resourceGroupLocation = null) + { + + if (string.IsNullOrEmpty(resourceGroupLocation)) + { + resourceGroupLocation = Constants.DefaultLocation; + } + + return this.resourcesClient.ResourceGroups.CreateOrUpdate(resourceGroupName, + new ResourceGroup { Location = resourceGroupLocation }); + } + } +} diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientAllocationPolicyTests/Get.json b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientAllocationPolicyTests/Get.json new file mode 100644 index 000000000000..d20d11fa4f46 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientAllocationPolicyTests/Get.json @@ -0,0 +1,313 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourcegroups/unitTestingUpdateAllocationPolicyGet?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlZ3JvdXBzL3VuaXRUZXN0aW5nVXBkYXRlQWxsb2NhdGlvblBvbGljeUdldD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "7c0bf603-3204-4898-b315-a7cacb81a87b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingUpdateAllocationPolicyGet\",\r\n \"name\": \"unitTestingUpdateAllocationPolicyGet\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "225" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:52:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "33a8a7db-e059-41b3-aebf-fbc5ee119805" + ], + "x-ms-correlation-request-id": [ + "33a8a7db-e059-41b3-aebf-fbc5ee119805" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195205Z:33a8a7db-e059-41b3-aebf-fbc5ee119805" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9jaGVja1Byb3Zpc2lvbmluZ1NlcnZpY2VOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"unitTestingUpdateAllocationPolicyGet\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "54" + ], + "x-ms-client-request-id": [ + "69934c28-7be2-4444-9947-bb5af78663eb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true,\r\n \"reason\": \"Invalid\",\r\n \"message\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:52:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "6271635c-dcff-4c41-8c24-47391cad2320" + ], + "x-ms-correlation-request-id": [ + "6271635c-dcff-4c41-8c24-47391cad2320" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195210Z:6271635c-dcff-4c41-8c24-47391cad2320" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingUpdateAllocationPolicyGet/providers/Microsoft.Devices/provisioningServices/unitTestingUpdateAllocationPolicyGet?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nVXBkYXRlQWxsb2NhdGlvblBvbGljeUdldC9wcm92aWRlcnMvTWljcm9zb2Z0LkRldmljZXMvcHJvdmlzaW9uaW5nU2VydmljZXMvdW5pdFRlc3RpbmdVcGRhdGVBbGxvY2F0aW9uUG9saWN5R2V0P2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "105" + ], + "x-ms-client-request-id": [ + "82d1581f-5d70-4be1-8edd-a18e4a302daf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"unitTestingUpdateAllocationPolicyGet\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Activating\",\r\n \"provisioningState\": \"Accepted\",\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingUpdateAllocationPolicyGet\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingUpdateAllocationPolicyGet/providers/Microsoft.Devices/provisioningServices/unitTestingUpdateAllocationPolicyGet\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "594" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:52:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingUpdateAllocationPolicyGet/providers/Microsoft.Devices/provisioningServices/unitTestingUpdateAllocationPolicyGet/operationResults/b3NfaWRfZTJjZWU1NGMtYzVmOC00YjViLWE5ZGEtZGFmMGIxMTJhOTI2?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4999" + ], + "x-ms-request-id": [ + "3684564a-4e76-4671-b86c-37d594e1a568" + ], + "x-ms-correlation-request-id": [ + "3684564a-4e76-4671-b86c-37d594e1a568" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195212Z:3684564a-4e76-4671-b86c-37d594e1a568" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingUpdateAllocationPolicyGet/providers/Microsoft.Devices/provisioningServices/unitTestingUpdateAllocationPolicyGet/operationResults/b3NfaWRfZTJjZWU1NGMtYzVmOC00YjViLWE5ZGEtZGFmMGIxMTJhOTI2?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nVXBkYXRlQWxsb2NhdGlvblBvbGljeUdldC9wcm92aWRlcnMvTWljcm9zb2Z0LkRldmljZXMvcHJvdmlzaW9uaW5nU2VydmljZXMvdW5pdFRlc3RpbmdVcGRhdGVBbGxvY2F0aW9uUG9saWN5R2V0L29wZXJhdGlvblJlc3VsdHMvYjNOZmFXUmZaVEpqWldVMU5HTXRZelZtT0MwMFlqVmlMV0U1WkdFdFpHRm1NR0l4TVRKaE9USTI/YXBpLXZlcnNpb249MjAxNy0xMS0xNSZhc3luY2luZm8=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:52:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "67a9750d-b2e9-417e-8283-e95f0a0ab69e" + ], + "x-ms-correlation-request-id": [ + "67a9750d-b2e9-417e-8283-e95f0a0ab69e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195242Z:67a9750d-b2e9-417e-8283-e95f0a0ab69e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingUpdateAllocationPolicyGet/providers/Microsoft.Devices/provisioningServices/unitTestingUpdateAllocationPolicyGet?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nVXBkYXRlQWxsb2NhdGlvblBvbGljeUdldC9wcm92aWRlcnMvTWljcm9zb2Z0LkRldmljZXMvcHJvdmlzaW9uaW5nU2VydmljZXMvdW5pdFRlc3RpbmdVcGRhdGVBbGxvY2F0aW9uUG9saWN5R2V0P2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLeU=\",\r\n \"name\": \"unitTestingUpdateAllocationPolicyGet\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingUpdateAllocationPolicyGet.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne00009283\"\r\n },\r\n \"resourcegroup\": \"unitTestingUpdateAllocationPolicyGet\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingUpdateAllocationPolicyGet/providers/Microsoft.Devices/provisioningServices/unitTestingUpdateAllocationPolicyGet\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:52:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "256889fa-1da4-4a19-810f-c86344fcced6" + ], + "x-ms-correlation-request-id": [ + "256889fa-1da4-4a19-810f-c86344fcced6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195243Z:256889fa-1da4-4a19-810f-c86344fcced6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b" + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientAllocationPolicyTests/Update.json b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientAllocationPolicyTests/Update.json new file mode 100644 index 000000000000..0f93fae280d5 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientAllocationPolicyTests/Update.json @@ -0,0 +1,490 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourcegroups/unitTestingDPSAllocationPolicyUpdate?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlZ3JvdXBzL3VuaXRUZXN0aW5nRFBTQWxsb2NhdGlvblBvbGljeVVwZGF0ZT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "0889c36b-eba4-48c1-a2d0-da23fa90d70e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate\",\r\n \"name\": \"unitTestingDPSAllocationPolicyUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "225" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:53:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "4e03fe79-43d1-4160-b738-f326da2b3e29" + ], + "x-ms-correlation-request-id": [ + "4e03fe79-43d1-4160-b738-f326da2b3e29" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195329Z:4e03fe79-43d1-4160-b738-f326da2b3e29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9jaGVja1Byb3Zpc2lvbmluZ1NlcnZpY2VOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"unitTestingDPSAllocationPolicyUpdate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "54" + ], + "x-ms-client-request-id": [ + "42f96439-3ba5-446c-a8d7-3da130053646" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true,\r\n \"reason\": \"Invalid\",\r\n \"message\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:53:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "1d714062-0cdc-4ef3-8b1e-1e57a2ae7198" + ], + "x-ms-correlation-request-id": [ + "1d714062-0cdc-4ef3-8b1e-1e57a2ae7198" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195332Z:1d714062-0cdc-4ef3-8b1e-1e57a2ae7198" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQWxsb2NhdGlvblBvbGljeVVwZGF0ZS9wcm92aWRlcnMvTWljcm9zb2Z0LkRldmljZXMvcHJvdmlzaW9uaW5nU2VydmljZXMvdW5pdFRlc3RpbmdEUFNBbGxvY2F0aW9uUG9saWN5VXBkYXRlP2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "105" + ], + "x-ms-client-request-id": [ + "e3465363-abf3-4241-a26c-49e563b75402" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"unitTestingDPSAllocationPolicyUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Activating\",\r\n \"provisioningState\": \"Accepted\",\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingDPSAllocationPolicyUpdate\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "594" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:53:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate/operationResults/b3NfaWRfMzMxMWNhMzAtMzQ0NC00MGVhLWJhZjUtODgzZjUxZGE5YTVl?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4999" + ], + "x-ms-request-id": [ + "faad8c99-4fe9-4511-9cdb-d90e51ed79cf" + ], + "x-ms-correlation-request-id": [ + "faad8c99-4fe9-4511-9cdb-d90e51ed79cf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195334Z:faad8c99-4fe9-4511-9cdb-d90e51ed79cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQWxsb2NhdGlvblBvbGljeVVwZGF0ZS9wcm92aWRlcnMvTWljcm9zb2Z0LkRldmljZXMvcHJvdmlzaW9uaW5nU2VydmljZXMvdW5pdFRlc3RpbmdEUFNBbGxvY2F0aW9uUG9saWN5VXBkYXRlP2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"etag\": \"AAAAAAAKLgo=\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"GeoLatency\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "233" + ], + "x-ms-client-request-id": [ + "156b0fed-39d0-40b1-beb4-660bf92cca1e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLgo=\",\r\n \"name\": \"unitTestingDPSAllocationPolicyUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Transitioning\",\r\n \"provisioningState\": \"Accepted\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"GeoLatency\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingDPSAllocationPolicyUpdate\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "636" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:54:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate/operationResults/b3NfaWRfZTFlODIwZWQtYWEwNi00OTU1LWI1MzgtMzMyZjM1N2Q3OTQ2?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4998" + ], + "x-ms-request-id": [ + "098bf95d-d2fb-471d-9591-a6cdf4af9966" + ], + "x-ms-correlation-request-id": [ + "098bf95d-d2fb-471d-9591-a6cdf4af9966" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195415Z:098bf95d-d2fb-471d-9591-a6cdf4af9966" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate/operationResults/b3NfaWRfMzMxMWNhMzAtMzQ0NC00MGVhLWJhZjUtODgzZjUxZGE5YTVl?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQWxsb2NhdGlvblBvbGljeVVwZGF0ZS9wcm92aWRlcnMvTWljcm9zb2Z0LkRldmljZXMvcHJvdmlzaW9uaW5nU2VydmljZXMvdW5pdFRlc3RpbmdEUFNBbGxvY2F0aW9uUG9saWN5VXBkYXRlL29wZXJhdGlvblJlc3VsdHMvYjNOZmFXUmZNek14TVdOaE16QXRNelEwTkMwME1HVmhMV0poWmpVdE9EZ3paalV4WkdFNVlUVmw/YXBpLXZlcnNpb249MjAxNy0xMS0xNSZhc3luY2luZm8=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:54:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "68189b7f-2421-4d41-9541-4b0eb6b677dd" + ], + "x-ms-correlation-request-id": [ + "68189b7f-2421-4d41-9541-4b0eb6b677dd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195404Z:68189b7f-2421-4d41-9541-4b0eb6b677dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQWxsb2NhdGlvblBvbGljeVVwZGF0ZS9wcm92aWRlcnMvTWljcm9zb2Z0LkRldmljZXMvcHJvdmlzaW9uaW5nU2VydmljZXMvdW5pdFRlc3RpbmdEUFNBbGxvY2F0aW9uUG9saWN5VXBkYXRlP2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLgo=\",\r\n \"name\": \"unitTestingDPSAllocationPolicyUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSAllocationPolicyUpdate.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne00009285\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSAllocationPolicyUpdate\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:54:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "cdce8803-d641-4233-8a85-fd86590c18b9" + ], + "x-ms-correlation-request-id": [ + "cdce8803-d641-4233-8a85-fd86590c18b9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195405Z:cdce8803-d641-4233-8a85-fd86590c18b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQWxsb2NhdGlvblBvbGljeVVwZGF0ZS9wcm92aWRlcnMvTWljcm9zb2Z0LkRldmljZXMvcHJvdmlzaW9uaW5nU2VydmljZXMvdW5pdFRlc3RpbmdEUFNBbGxvY2F0aW9uUG9saWN5VXBkYXRlP2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLhQ=\",\r\n \"name\": \"unitTestingDPSAllocationPolicyUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"GeoLatency\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSAllocationPolicyUpdate.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne00009285\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSAllocationPolicyUpdate\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:54:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "0f81a5c4-797d-418c-9c3c-db833d929f9d" + ], + "x-ms-correlation-request-id": [ + "0f81a5c4-797d-418c-9c3c-db833d929f9d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195446Z:0f81a5c4-797d-418c-9c3c-db833d929f9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSAllocationPolicyUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSAllocationPolicyUpdate/operationResults/b3NfaWRfZTFlODIwZWQtYWEwNi00OTU1LWI1MzgtMzMyZjM1N2Q3OTQ2?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQWxsb2NhdGlvblBvbGljeVVwZGF0ZS9wcm92aWRlcnMvTWljcm9zb2Z0LkRldmljZXMvcHJvdmlzaW9uaW5nU2VydmljZXMvdW5pdFRlc3RpbmdEUFNBbGxvY2F0aW9uUG9saWN5VXBkYXRlL29wZXJhdGlvblJlc3VsdHMvYjNOZmFXUmZaVEZsT0RJd1pXUXRZV0V3TmkwME9UVTFMV0kxTXpndE16TXlaak0xTjJRM09UUTI/YXBpLXZlcnNpb249MjAxNy0xMS0xNSZhc3luY2luZm8=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:54:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "d3392e4e-2c86-459f-8b15-cc27c31c8cb4" + ], + "x-ms-correlation-request-id": [ + "d3392e4e-2c86-459f-8b15-cc27c31c8cb4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195446Z:d3392e4e-2c86-459f-8b15-cc27c31c8cb4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b" + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientCertificates/CreateAndDelete.json b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientCertificates/CreateAndDelete.json new file mode 100644 index 000000000000..820acbcd50e4 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientCertificates/CreateAndDelete.json @@ -0,0 +1,624 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourcegroups/unitTestingDPSCertificatesCreateAndDelete?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlZ3JvdXBzL3VuaXRUZXN0aW5nRFBTQ2VydGlmaWNhdGVzQ3JlYXRlQW5kRGVsZXRlP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "6f9d30e1-9a5a-4edc-aef6-8f5352b0ef43" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete\",\r\n \"name\": \"unitTestingDPSCertificatesCreateAndDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "235" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:55:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "5ac86159-de73-49d9-91e8-27d10e9136ef" + ], + "x-ms-correlation-request-id": [ + "5ac86159-de73-49d9-91e8-27d10e9136ef" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195527Z:5ac86159-de73-49d9-91e8-27d10e9136ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9jaGVja1Byb3Zpc2lvbmluZ1NlcnZpY2VOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"unitTestingDPSCertificatesCreateAndDelete\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "59" + ], + "x-ms-client-request-id": [ + "255c96b3-05a0-42e1-9dc6-eb6bd538492b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true,\r\n \"reason\": \"Invalid\",\r\n \"message\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:55:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "ae78a31d-c784-4b72-8cbe-26cc44445275" + ], + "x-ms-correlation-request-id": [ + "ae78a31d-c784-4b72-8cbe-26cc44445275" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195542Z:ae78a31d-c784-4b72-8cbe-26cc44445275" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ2VydGlmaWNhdGVzQ3JlYXRlQW5kRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NlcnRpZmljYXRlc0NyZWF0ZUFuZERlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "105" + ], + "x-ms-client-request-id": [ + "23fb8d76-9d74-4bb4-a77d-f2ab8aeb60f1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"unitTestingDPSCertificatesCreateAndDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Activating\",\r\n \"provisioningState\": \"Accepted\",\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingDPSCertificatesCreateAndDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "614" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:55:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete/operationResults/b3NfaWRfMzFlOGU0OWUtMjIyYi00NjVlLThhNjEtZWFiY2Q1YzBlYmU1?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4999" + ], + "x-ms-request-id": [ + "d6deeff5-b583-4281-8bd2-d84a45051151" + ], + "x-ms-correlation-request-id": [ + "d6deeff5-b583-4281-8bd2-d84a45051151" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195545Z:d6deeff5-b583-4281-8bd2-d84a45051151" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete/operationResults/b3NfaWRfMzFlOGU0OWUtMjIyYi00NjVlLThhNjEtZWFiY2Q1YzBlYmU1?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ2VydGlmaWNhdGVzQ3JlYXRlQW5kRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NlcnRpZmljYXRlc0NyZWF0ZUFuZERlbGV0ZS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmTXpGbE9HVTBPV1V0TWpJeVlpMDBOalZsTFRoaE5qRXRaV0ZpWTJRMVl6QmxZbVUxP2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:56:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "099d9a37-e6f3-469c-88ce-f825b6c8ed22" + ], + "x-ms-correlation-request-id": [ + "099d9a37-e6f3-469c-88ce-f825b6c8ed22" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195615Z:099d9a37-e6f3-469c-88ce-f825b6c8ed22" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ2VydGlmaWNhdGVzQ3JlYXRlQW5kRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NlcnRpZmljYXRlc0NyZWF0ZUFuZERlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLiU=\",\r\n \"name\": \"unitTestingDPSCertificatesCreateAndDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSCertificatesCreateAndDelete.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne00009286\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSCertificatesCreateAndDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:56:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "2aab1c0f-f42e-430a-a417-012437a7dfb4" + ], + "x-ms-correlation-request-id": [ + "2aab1c0f-f42e-430a-a417-012437a7dfb4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195615Z:2aab1c0f-f42e-430a-a417-012437a7dfb4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete/certificates/DPStestCert?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ2VydGlmaWNhdGVzQ3JlYXRlQW5kRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NlcnRpZmljYXRlc0NyZWF0ZUFuZERlbGV0ZS9jZXJ0aWZpY2F0ZXMvRFBTdGVzdENlcnQ/YXBpLXZlcnNpb249MjAxNy0xMS0xNQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"certificate\": \"MIIBvjCCAWOgAwIBAgIQG6PoBFT6GLJGNKn/EaxltTAKBggqhkjOPQQDAjAcMRowGAYDVQQDDBFBenVyZSBJb1QgUm9vdCBDQTAeFw0xNzExMDMyMDUyNDZaFw0xNzEyMDMyMTAyNDdaMBwxGjAYBgNVBAMMEUF6dXJlIElvVCBSb290IENBMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE+CgpnW3K+KRNIi/U6Zqe/Al9m8PExHX2KgakmGTfE04nNBwnSoygWb0ekqpT+Lm+OP56LMMe9ynVNryDEr9OSKOBhjCBgzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMB8GA1UdEQQYMBaCFENOPUF6dXJlIElvVCBSb290IENBMBIGA1UdEwEB/wQIMAYBAf8CAQwwHQYDVR0OBBYEFDjiklfHQzw1G0A33BcmRQTjAivTMAoGCCqGSM49BAMCA0kAMEYCIQCtjJ4bAvoYuDhwr92Kk+OkvpPF+qBFiRfrA/EC4YGtzQIhAO79WPtbUnBQ5fsQnW2aUAT4yJGWL+7l4/qfmqblb96n\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "625" + ], + "x-ms-client-request-id": [ + "0cbc5481-47ed-4b67-9956-af5081fe8613" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"subject\": \"CN=Azure IoT Root CA\",\r\n \"expiry\": \"Sun, 03 Dec 2017 21:02:47 GMT\",\r\n \"thumbprint\": \"9F0983E8F2DB2DB3582997FEF331247D872DEE32\",\r\n \"isVerified\": false,\r\n \"created\": \"Wed, 10 Jan 2018 19:56:41 GMT\",\r\n \"updated\": \"Wed, 10 Jan 2018 19:56:41 GMT\"\r\n },\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete/certificates/DPStestCert\",\r\n \"name\": \"DPStestCert\",\r\n \"type\": \"Microsoft.Devices/IotHubs/Certificates\",\r\n \"etag\": \"AAAAAAAKLik=\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:56:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "4657d2ce-42eb-4e0e-b2ac-fcc0c888d831" + ], + "x-ms-correlation-request-id": [ + "4657d2ce-42eb-4e0e-b2ac-fcc0c888d831" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195641Z:4657d2ce-42eb-4e0e-b2ac-fcc0c888d831" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete/certificates?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ2VydGlmaWNhdGVzQ3JlYXRlQW5kRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NlcnRpZmljYXRlc0NyZWF0ZUFuZERlbGV0ZS9jZXJ0aWZpY2F0ZXM/YXBpLXZlcnNpb249MjAxNy0xMS0xNQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "db80f119-1ec1-4d8a-a6fc-fb711dfe8819" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"subject\": \"CN=Azure IoT Root CA\",\r\n \"expiry\": \"Sun, 03 Dec 2017 21:02:47 GMT\",\r\n \"thumbprint\": \"9F0983E8F2DB2DB3582997FEF331247D872DEE32\",\r\n \"isVerified\": false,\r\n \"created\": \"Wed, 10 Jan 2018 19:56:41 GMT\",\r\n \"updated\": \"Wed, 10 Jan 2018 19:56:41 GMT\"\r\n },\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete/certificates/DPStestCert\",\r\n \"name\": \"DPStestCert\",\r\n \"type\": \"Microsoft.Devices/IotHubs/Certificates\",\r\n \"etag\": \"AAAAAAAKLik=\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:56:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "2ea77f36-9144-41d6-9975-832e9e1fd058" + ], + "x-ms-correlation-request-id": [ + "2ea77f36-9144-41d6-9975-832e9e1fd058" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195642Z:2ea77f36-9144-41d6-9975-832e9e1fd058" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete/certificates?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ2VydGlmaWNhdGVzQ3JlYXRlQW5kRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NlcnRpZmljYXRlc0NyZWF0ZUFuZERlbGV0ZS9jZXJ0aWZpY2F0ZXM/YXBpLXZlcnNpb249MjAxNy0xMS0xNQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "98144203-3c01-4a35-a46f-44268d0eec15" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:56:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "1ab546b9-a6c3-4795-819f-b1e8a419671c" + ], + "x-ms-correlation-request-id": [ + "1ab546b9-a6c3-4795-819f-b1e8a419671c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195652Z:1ab546b9-a6c3-4795-819f-b1e8a419671c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete/certificates/DPStestCert/generateVerificationCode?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ2VydGlmaWNhdGVzQ3JlYXRlQW5kRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NlcnRpZmljYXRlc0NyZWF0ZUFuZERlbGV0ZS9jZXJ0aWZpY2F0ZXMvRFBTdGVzdENlcnQvZ2VuZXJhdGVWZXJpZmljYXRpb25Db2RlP2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d268ab0b-9f45-45ec-a001-3319ba927565" + ], + "If-Match": [ + "AAAAAAAKLik=" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"verificationCode\": \"19B6E3906CA4D9711D8CE4C92452EBC8BA5F0423075DF08B\",\r\n \"subject\": \"CN=Azure IoT Root CA\",\r\n \"expiry\": \"Sun, 03 Dec 2017 21:02:47 GMT\",\r\n \"thumbprint\": \"9F0983E8F2DB2DB3582997FEF331247D872DEE32\",\r\n \"isVerified\": false,\r\n \"created\": \"Wed, 10 Jan 2018 19:56:41 GMT\",\r\n \"updated\": \"Wed, 10 Jan 2018 19:56:46 GMT\"\r\n },\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete/certificates/DPStestCert\",\r\n \"name\": \"DPStestCert\",\r\n \"type\": \"Microsoft.Devices/IotHubs/Certificates\",\r\n \"etag\": \"AAAAAAAKLi4=\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:56:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "53574a71-610e-4cf5-b220-e628c786e78f" + ], + "x-ms-correlation-request-id": [ + "53574a71-610e-4cf5-b220-e628c786e78f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195646Z:53574a71-610e-4cf5-b220-e628c786e78f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCertificatesCreateAndDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCertificatesCreateAndDelete/certificates/DPStestCert?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ2VydGlmaWNhdGVzQ3JlYXRlQW5kRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NlcnRpZmljYXRlc0NyZWF0ZUFuZERlbGV0ZS9jZXJ0aWZpY2F0ZXMvRFBTdGVzdENlcnQ/YXBpLXZlcnNpb249MjAxNy0xMS0xNQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b66091b6-4c6c-4ab4-a4b9-a1e9f8eba7b5" + ], + "If-Match": [ + "AAAAAAAKLi4=" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 19:56:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "efabed8a-94a4-4ebb-b145-a649f6d3aa79" + ], + "x-ms-correlation-request-id": [ + "efabed8a-94a4-4ebb-b145-a649f6d3aa79" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T195651Z:efabed8a-94a4-4ebb-b145-a649f6d3aa79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b" + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientLinkedHubsTests/CreateAndDelete.json b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientLinkedHubsTests/CreateAndDelete.json new file mode 100644 index 000000000000..8ec6d2891c06 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientLinkedHubsTests/CreateAndDelete.json @@ -0,0 +1,1305 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourcegroups/unitTestingDPSLinkedHubCreateUpdateDelete?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlZ3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "c703ace9-a8a1-4274-a54a-f9304130f752" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"location\": \"eastus\",\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, 10 Jan 2018 20:20:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "f42f1df7-00fb-49c2-9a68-8c545e6a3023" + ], + "x-ms-correlation-request-id": [ + "f42f1df7-00fb-49c2-9a68-8c545e6a3023" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202038Z:f42f1df7-00fb-49c2-9a68-8c545e6a3023" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9jaGVja1Byb3Zpc2lvbmluZ1NlcnZpY2VOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "59" + ], + "x-ms-client-request-id": [ + "08ac5803-e637-47b8-a5a0-f5b5f2e007ec" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true,\r\n \"reason\": \"Invalid\",\r\n \"message\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:20:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "cbcc637f-37da-422e-9b14-41eef4a04824" + ], + "x-ms-correlation-request-id": [ + "cbcc637f-37da-422e-9b14-41eef4a04824" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202041Z:cbcc637f-37da-422e-9b14-41eef4a04824" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "105" + ], + "x-ms-client-request-id": [ + "272d0274-679a-4f4d-9918-dfe21e893d2d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Activating\",\r\n \"provisioningState\": \"Accepted\",\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "614" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:20:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWRfNTdkNzA3MDktYzJiNi00M2ZkLWIwYTAtOTI5MTI4NjUwNTgy?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4999" + ], + "x-ms-request-id": [ + "5e9e98b2-8115-487e-a78a-c21ea819e2df" + ], + "x-ms-correlation-request-id": [ + "5e9e98b2-8115-487e-a78a-c21ea819e2df" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202043Z:5e9e98b2-8115-487e-a78a-c21ea819e2df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"etag\": \"AAAAAAAKL0M=\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [\r\n {\r\n \"connectionString\": \"HostName=unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=uOMtgBq+O49FmtSqzLSjIX9JVWBzDtipIv2RvdP8eWI=\",\r\n \"location\": \"eastus\"\r\n }\r\n ],\r\n \"allocationPolicy\": \"Hashed\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "477" + ], + "x-ms-client-request-id": [ + "81829ed2-e782-4423-8911-c40ff9b11cc0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKL0M=\",\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Transitioning\",\r\n \"provisioningState\": \"Accepted\",\r\n \"iotHubs\": [\r\n {\r\n \"connectionString\": \"HostName=unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=uOMtgBq+O49FmtSqzLSjIX9JVWBzDtipIv2RvdP8eWI=\",\r\n \"location\": \"eastus\"\r\n }\r\n ],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "856" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:24:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWRfM2UwZTcyYWItZTEwNy00YTQyLTk4N2EtOGViOWQ5NzIwYWM4?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4999" + ], + "x-ms-request-id": [ + "1b1deacd-6d60-4851-b566-d03b4609db7e" + ], + "x-ms-correlation-request-id": [ + "1b1deacd-6d60-4851-b566-d03b4609db7e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202404Z:1b1deacd-6d60-4851-b566-d03b4609db7e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"etag\": \"AAAAAAAKL1Y=\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [\r\n {\r\n \"applyAllocationPolicy\": true,\r\n \"allocationWeight\": 870084357,\r\n \"connectionString\": \"HostName=unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=****\",\r\n \"location\": \"eastus\"\r\n }\r\n ],\r\n \"allocationPolicy\": \"Hashed\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "517" + ], + "x-ms-client-request-id": [ + "fec391ae-7f64-48c6-926f-7b12b7b65229" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKL1Y=\",\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Transitioning\",\r\n \"provisioningState\": \"Accepted\",\r\n \"iotHubs\": [\r\n {\r\n \"applyAllocationPolicy\": true,\r\n \"allocationWeight\": 870084357,\r\n \"connectionString\": \"HostName=unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=****\",\r\n \"location\": \"eastus\"\r\n }\r\n ],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "874" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:24:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWRfN2JjYjc2ZjEtYTY2ZC00YjkxLWE0NmMtZjk5YmVlNmE4NjRk?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4998" + ], + "x-ms-request-id": [ + "6e400edb-0980-4690-9f77-ccc7eda175c2" + ], + "x-ms-correlation-request-id": [ + "6e400edb-0980-4690-9f77-ccc7eda175c2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202451Z:6e400edb-0980-4690-9f77-ccc7eda175c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"etag\": \"AAAAAAAKL0M=\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "229" + ], + "x-ms-client-request-id": [ + "ea55b2cc-6026-4449-94db-6368ff40fb77" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKL0M=\",\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Transitioning\",\r\n \"provisioningState\": \"Accepted\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "652" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:25:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWRfZWFjZWM2YzItNGMzYi00NzY3LWIwNDItODAyY2NmN2VlMjc5?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4997" + ], + "x-ms-request-id": [ + "df82401a-deca-4176-858a-865e1d612432" + ], + "x-ms-correlation-request-id": [ + "df82401a-deca-4176-858a-865e1d612432" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202531Z:df82401a-deca-4176-858a-865e1d612432" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWRfNTdkNzA3MDktYzJiNi00M2ZkLWIwYTAtOTI5MTI4NjUwNTgy?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmTlRka056QTNNRGt0WXpKaU5pMDBNMlprTFdJd1lUQXRPVEk1TVRJNE5qVXdOVGd5P2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:21:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "7e4aa4cf-0fdd-4fff-95d6-aa36666de933" + ], + "x-ms-correlation-request-id": [ + "7e4aa4cf-0fdd-4fff-95d6-aa36666de933" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202114Z:7e4aa4cf-0fdd-4fff-95d6-aa36666de933" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKL0M=\",\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne00009295\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:21:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "786dba94-1369-4563-945f-a1876dd53e06" + ], + "x-ms-correlation-request-id": [ + "786dba94-1369-4563-945f-a1876dd53e06" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202114Z:786dba94-1369-4563-945f-a1876dd53e06" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKL1Y=\",\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [\r\n {\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices.net\",\r\n \"connectionString\": \"HostName=unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=****\",\r\n \"location\": \"eastus\"\r\n }\r\n ],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne00009295\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:24:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "e54b2115-1aec-48a0-9498-8e2f8200d672" + ], + "x-ms-correlation-request-id": [ + "e54b2115-1aec-48a0-9498-8e2f8200d672" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202434Z:e54b2115-1aec-48a0-9498-8e2f8200d672" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKL2A=\",\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [\r\n {\r\n \"applyAllocationPolicy\": true,\r\n \"allocationWeight\": 870084357,\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices.net\",\r\n \"connectionString\": \"HostName=unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=****\",\r\n \"location\": \"eastus\"\r\n }\r\n ],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne00009295\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:25:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "b826aecb-fdbe-4e21-bf52-7c1baaf12cbe" + ], + "x-ms-correlation-request-id": [ + "b826aecb-fdbe-4e21-bf52-7c1baaf12cbe" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202522Z:b826aecb-fdbe-4e21-bf52-7c1baaf12cbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKL3w=\",\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne00009295\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:26:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "71dd1150-d530-42fc-8aa6-caa5048eeb57" + ], + "x-ms-correlation-request-id": [ + "71dd1150-d530-42fc-8aa6-caa5048eeb57" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202601Z:71dd1150-d530-42fc-8aa6-caa5048eeb57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/IotHubs/unitTestingDPSLinkedHubCreateUpdateDelete?api-version=2017-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9Jb3RIdWJzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlP2FwaS12ZXJzaW9uPTIwMTctMDctMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"resourcegroup\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"properties\": {\r\n \"routing\": {}\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "254" + ], + "x-ms-client-request-id": [ + "d6c91d99-e00c-4b95-9816-c0d2d2f9d335" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.IotHub.IotHubClient/1.1.3.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/IotHubs/unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"type\": \"Microsoft.Devices/IotHubs\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"resourcegroup\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"properties\": {\r\n \"state\": \"Activating\",\r\n \"provisioningState\": \"Accepted\",\r\n \"routing\": {\r\n \"endpoints\": {\r\n \"serviceBusQueues\": [],\r\n \"serviceBusTopics\": [],\r\n \"eventHubs\": [],\r\n \"storageContainers\": []\r\n },\r\n \"routes\": [],\r\n \"fallbackRoute\": {\r\n \"name\": \"$fallback\",\r\n \"source\": \"DeviceMessages\",\r\n \"condition\": \"true\",\r\n \"endpointNames\": [\r\n \"events\"\r\n ],\r\n \"isEnabled\": false\r\n }\r\n },\r\n \"enableFileUploadNotifications\": false,\r\n \"cloudToDevice\": {\r\n \"maxDeliveryCount\": 10,\r\n \"defaultTtlAsIso8601\": \"PT1H\",\r\n \"feedback\": {\r\n \"lockDurationAsIso8601\": \"PT1M\",\r\n \"ttlAsIso8601\": \"PT1H\",\r\n \"maxDeliveryCount\": 10\r\n }\r\n },\r\n \"features\": \"None\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1005" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:21:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/IotHubs/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWhfNjA2MjAxMTMtYTY5Ni00MWQ2LTgyOTAtOGQyNGM4NTExMmNk?api-version=2017-07-01&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4999" + ], + "x-ms-request-id": [ + "ceb7f863-5954-48b6-95df-6add4661941f" + ], + "x-ms-correlation-request-id": [ + "ceb7f863-5954-48b6-95df-6add4661941f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202121Z:ceb7f863-5954-48b6-95df-6add4661941f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/IotHubs/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWhfNjA2MjAxMTMtYTY5Ni00MWQ2LTgyOTAtOGQyNGM4NTExMmNk?api-version=2017-07-01&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9Jb3RIdWJzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL29wZXJhdGlvblJlc3VsdHMvYjNOZmFXaGZOakEyTWpBeE1UTXRZVFk1TmkwME1XUTJMVGd5T1RBdE9HUXlOR000TlRFeE1tTms/YXBpLXZlcnNpb249MjAxNy0wNy0wMSZhc3luY2luZm8=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.IotHub.IotHubClient/1.1.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Running\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:21:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "84288a05-230c-422c-a070-5ea2ed9606fe" + ], + "x-ms-correlation-request-id": [ + "84288a05-230c-422c-a070-5ea2ed9606fe" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202151Z:84288a05-230c-422c-a070-5ea2ed9606fe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/IotHubs/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWhfNjA2MjAxMTMtYTY5Ni00MWQ2LTgyOTAtOGQyNGM4NTExMmNk?api-version=2017-07-01&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9Jb3RIdWJzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL29wZXJhdGlvblJlc3VsdHMvYjNOZmFXaGZOakEyTWpBeE1UTXRZVFk1TmkwME1XUTJMVGd5T1RBdE9HUXlOR000TlRFeE1tTms/YXBpLXZlcnNpb249MjAxNy0wNy0wMSZhc3luY2luZm8=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.IotHub.IotHubClient/1.1.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Running\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:22:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "24570049-e4ec-4b33-9ee8-e8c3772c493a" + ], + "x-ms-correlation-request-id": [ + "24570049-e4ec-4b33-9ee8-e8c3772c493a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202221Z:24570049-e4ec-4b33-9ee8-e8c3772c493a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/IotHubs/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWhfNjA2MjAxMTMtYTY5Ni00MWQ2LTgyOTAtOGQyNGM4NTExMmNk?api-version=2017-07-01&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9Jb3RIdWJzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL29wZXJhdGlvblJlc3VsdHMvYjNOZmFXaGZOakEyTWpBeE1UTXRZVFk1TmkwME1XUTJMVGd5T1RBdE9HUXlOR000TlRFeE1tTms/YXBpLXZlcnNpb249MjAxNy0wNy0wMSZhc3luY2luZm8=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.IotHub.IotHubClient/1.1.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Running\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:22:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "a85a5685-3ceb-41ca-89f5-a1cb892a555c" + ], + "x-ms-correlation-request-id": [ + "a85a5685-3ceb-41ca-89f5-a1cb892a555c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202252Z:a85a5685-3ceb-41ca-89f5-a1cb892a555c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/IotHubs/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWhfNjA2MjAxMTMtYTY5Ni00MWQ2LTgyOTAtOGQyNGM4NTExMmNk?api-version=2017-07-01&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9Jb3RIdWJzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL29wZXJhdGlvblJlc3VsdHMvYjNOZmFXaGZOakEyTWpBeE1UTXRZVFk1TmkwME1XUTJMVGd5T1RBdE9HUXlOR000TlRFeE1tTms/YXBpLXZlcnNpb249MjAxNy0wNy0wMSZhc3luY2luZm8=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.IotHub.IotHubClient/1.1.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Running\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:23:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-request-id": [ + "ccac08b3-7b81-403c-adfc-dd5ed8f6cb5b" + ], + "x-ms-correlation-request-id": [ + "ccac08b3-7b81-403c-adfc-dd5ed8f6cb5b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202322Z:ccac08b3-7b81-403c-adfc-dd5ed8f6cb5b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/IotHubs/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWhfNjA2MjAxMTMtYTY5Ni00MWQ2LTgyOTAtOGQyNGM4NTExMmNk?api-version=2017-07-01&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9Jb3RIdWJzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL29wZXJhdGlvblJlc3VsdHMvYjNOZmFXaGZOakEyTWpBeE1UTXRZVFk1TmkwME1XUTJMVGd5T1RBdE9HUXlOR000TlRFeE1tTms/YXBpLXZlcnNpb249MjAxNy0wNy0wMSZhc3luY2luZm8=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.IotHub.IotHubClient/1.1.3.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:23:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-request-id": [ + "5fb76789-15cc-4992-bba9-338ab4310038" + ], + "x-ms-correlation-request-id": [ + "5fb76789-15cc-4992-bba9-338ab4310038" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202352Z:5fb76789-15cc-4992-bba9-338ab4310038" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/IotHubs/unitTestingDPSLinkedHubCreateUpdateDelete?api-version=2017-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9Jb3RIdWJzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlP2FwaS12ZXJzaW9uPTIwMTctMDctMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.IotHub.IotHubClient/1.1.3.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/IotHubs/unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"name\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"type\": \"Microsoft.Devices/IotHubs\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"resourcegroup\": \"unitTestingDPSLinkedHubCreateUpdateDelete\",\r\n \"etag\": \"AAAAAAFsgQE=\",\r\n \"properties\": {\r\n \"operationsMonitoringProperties\": {\r\n \"events\": {\r\n \"None\": \"None\",\r\n \"Connections\": \"None\",\r\n \"DeviceTelemetry\": \"None\",\r\n \"C2DCommands\": \"None\",\r\n \"DeviceIdentityOperations\": \"None\",\r\n \"FileUploadOperations\": \"None\",\r\n \"Routes\": \"None\"\r\n }\r\n },\r\n \"state\": \"Active\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"ipFilterRules\": [],\r\n \"hostName\": \"unitTestingDPSLinkedHubCreateUpdateDelete.azure-devices.net\",\r\n \"eventHubEndpoints\": {\r\n \"events\": {\r\n \"retentionTimeInDays\": 1,\r\n \"partitionCount\": 4,\r\n \"partitionIds\": [\r\n \"0\",\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ],\r\n \"path\": \"unittestingdpslinkedhubcr\",\r\n \"endpoint\": \"sb://iothub-ns-unittestin-313630-e964877a0a.servicebus.windows.net/\"\r\n },\r\n \"operationsMonitoringEvents\": {\r\n \"retentionTimeInDays\": 1,\r\n \"partitionCount\": 4,\r\n \"partitionIds\": [\r\n \"0\",\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ],\r\n \"path\": \"unittestingdpslinkedhubcr-operationmonitoring\",\r\n \"endpoint\": \"sb://iothub-ns-unittestin-313630-e964877a0a.servicebus.windows.net/\"\r\n }\r\n },\r\n \"routing\": {\r\n \"endpoints\": {\r\n \"serviceBusQueues\": [],\r\n \"serviceBusTopics\": [],\r\n \"eventHubs\": [],\r\n \"storageContainers\": []\r\n },\r\n \"routes\": [],\r\n \"fallbackRoute\": {\r\n \"name\": \"$fallback\",\r\n \"source\": \"DeviceMessages\",\r\n \"condition\": \"true\",\r\n \"endpointNames\": [\r\n \"events\"\r\n ],\r\n \"isEnabled\": false\r\n }\r\n },\r\n \"storageEndpoints\": {\r\n \"$default\": {\r\n \"sasTtlAsIso8601\": \"PT1H\",\r\n \"connectionString\": \"\",\r\n \"containerName\": \"\"\r\n }\r\n },\r\n \"messagingEndpoints\": {\r\n \"fileNotifications\": {\r\n \"lockDurationAsIso8601\": \"PT1M\",\r\n \"ttlAsIso8601\": \"PT1H\",\r\n \"maxDeliveryCount\": 10\r\n }\r\n },\r\n \"enableFileUploadNotifications\": false,\r\n \"cloudToDevice\": {\r\n \"maxDeliveryCount\": 10,\r\n \"defaultTtlAsIso8601\": \"PT1H\",\r\n \"feedback\": {\r\n \"lockDurationAsIso8601\": \"PT1M\",\r\n \"ttlAsIso8601\": \"PT1H\",\r\n \"maxDeliveryCount\": 10\r\n }\r\n },\r\n \"features\": \"None\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:23:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-request-id": [ + "372ac736-c922-425a-a0f9-10d07bc25cfb" + ], + "x-ms-correlation-request-id": [ + "372ac736-c922-425a-a0f9-10d07bc25cfb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202352Z:372ac736-c922-425a-a0f9-10d07bc25cfb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/IotHubs/unitTestingDPSLinkedHubCreateUpdateDelete/listkeys?api-version=2017-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9Jb3RIdWJzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL2xpc3RrZXlzP2FwaS12ZXJzaW9uPTIwMTctMDctMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0c28652d-5d86-423c-ba63-9bc3ef7892cc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.IotHub.IotHubClient/1.1.3.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"keyName\": \"iothubowner\",\r\n \"primaryKey\": \"uOMtgBq+O49FmtSqzLSjIX9JVWBzDtipIv2RvdP8eWI=\",\r\n \"secondaryKey\": \"xDSe9zMe/F0tNPQMdIYg2lwE86sCz03mrbDl+7xNTE8=\",\r\n \"rights\": \"RegistryWrite, ServiceConnect, DeviceConnect\"\r\n },\r\n {\r\n \"keyName\": \"service\",\r\n \"primaryKey\": \"7iB0Div5ceNbFo5oS0KlUJHge8LCszsJbs8yzGVr4gI=\",\r\n \"secondaryKey\": \"0UR5eZNnvJBb94OoKxnXxowjfqqxHZaJfd7jUwn4rQo=\",\r\n \"rights\": \"ServiceConnect\"\r\n },\r\n {\r\n \"keyName\": \"device\",\r\n \"primaryKey\": \"WTC1QQN0dJnmEZPMC2+hySxxi0ZvXFRBfMGOylaiDVo=\",\r\n \"secondaryKey\": \"4zTYlwWTlsJ7RT1ufyxL7FFbKTpXrGBOLZzImHtEFLY=\",\r\n \"rights\": \"DeviceConnect\"\r\n },\r\n {\r\n \"keyName\": \"registryRead\",\r\n \"primaryKey\": \"5wvw+cwuPUBfq1dG9AxuVYXv2x2e2D+Inj63lJQUz5g=\",\r\n \"secondaryKey\": \"7QhXEQGY8x6HdxpYcMyYiOMH3521faoN2i6xOGbLG+s=\",\r\n \"rights\": \"RegistryRead\"\r\n },\r\n {\r\n \"keyName\": \"registryReadWrite\",\r\n \"primaryKey\": \"wR+84fhZ//rdzoAEfVEqwYLlHvtLpK1OrqaE+KaDB1g=\",\r\n \"secondaryKey\": \"t+UxMxtt8yUykJB+OTbpJl1qMPrSI2qnLORHA95Ek2Q=\",\r\n \"rights\": \"RegistryWrite\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:23:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "c5ce3880-b8a8-4828-845e-2483631d1b37" + ], + "x-ms-correlation-request-id": [ + "c5ce3880-b8a8-4828-845e-2483631d1b37" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202357Z:c5ce3880-b8a8-4828-845e-2483631d1b37" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWRfM2UwZTcyYWItZTEwNy00YTQyLTk4N2EtOGViOWQ5NzIwYWM4?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmTTJVd1pUY3lZV0l0WlRFd055MDBZVFF5TFRrNE4yRXRPR1ZpT1dRNU56SXdZV000P2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:24:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "8433d91e-92e0-4f34-9261-a67d81d4dc65" + ], + "x-ms-correlation-request-id": [ + "8433d91e-92e0-4f34-9261-a67d81d4dc65" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202434Z:8433d91e-92e0-4f34-9261-a67d81d4dc65" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWRfN2JjYjc2ZjEtYTY2ZC00YjkxLWE0NmMtZjk5YmVlNmE4NjRk?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmTjJKallqYzJaakV0WVRZMlpDMDBZamt4TFdFME5tTXRaams1WW1WbE5tRTROalJrP2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:25:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "e609683f-2e52-4489-b6a0-5e4c9edbc178" + ], + "x-ms-correlation-request-id": [ + "e609683f-2e52-4489-b6a0-5e4c9edbc178" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202521Z:e609683f-2e52-4489-b6a0-5e4c9edbc178" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSLinkedHubCreateUpdateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSLinkedHubCreateUpdateDelete/operationResults/b3NfaWRfZWFjZWM2YzItNGMzYi00NzY3LWIwNDItODAyY2NmN2VlMjc5?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTTGlua2VkSHViQ3JlYXRlVXBkYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0xpbmtlZEh1YkNyZWF0ZVVwZGF0ZURlbGV0ZS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmWldGalpXTTJZekl0TkdNellpMDBOelkzTFdJd05ESXRPREF5WTJObU4yVmxNamM1P2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:26:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "b4c24d10-4a1c-4da4-aab5-ac7f2b8d8372" + ], + "x-ms-correlation-request-id": [ + "b4c24d10-4a1c-4da4-aab5-ac7f2b8d8372" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T202601Z:b4c24d10-4a1c-4da4-aab5-ac7f2b8d8372" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b" + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientSharedAccessPolicyTests/ListCreateDelete.json b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientSharedAccessPolicyTests/ListCreateDelete.json new file mode 100644 index 000000000000..534ffd1fa7ea --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientSharedAccessPolicyTests/ListCreateDelete.json @@ -0,0 +1,905 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourcegroups/unitTestingDPSSharedAccessPoliciesListCreateDelete?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlZ3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "b8fb624a-d0f2-44c9-b5c1-b84d78a5c755" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"name\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "253" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:03:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "a26fdc09-34f8-4abf-b20a-fff067dee379" + ], + "x-ms-correlation-request-id": [ + "a26fdc09-34f8-4abf-b20a-fff067dee379" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200337Z:a26fdc09-34f8-4abf-b20a-fff067dee379" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9jaGVja1Byb3Zpc2lvbmluZ1NlcnZpY2VOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "68" + ], + "x-ms-client-request-id": [ + "7591c8e6-7ae4-490f-ac48-6ac7d7e6a6bc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true,\r\n \"reason\": \"Invalid\",\r\n \"message\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:03:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "a943c5bc-a4b7-4ad6-bf3e-3ecb280f998e" + ], + "x-ms-correlation-request-id": [ + "a943c5bc-a4b7-4ad6-bf3e-3ecb280f998e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200340Z:a943c5bc-a4b7-4ad6-bf3e-3ecb280f998e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "105" + ], + "x-ms-client-request-id": [ + "f56734d2-eed0-4129-b0ac-15e9dc9944b4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Activating\",\r\n \"provisioningState\": \"Accepted\",\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "650" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:03:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete/operationResults/b3NfaWRfN2QyN2E0Y2UtNjEzNS00MzA2LThiNDgtN2Q5MmEwZTZmYWY4?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4999" + ], + "x-ms-request-id": [ + "76faf5a5-b361-46d2-8166-e37acded63ba" + ], + "x-ms-correlation-request-id": [ + "76faf5a5-b361-46d2-8166-e37acded63ba" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200342Z:76faf5a5-b361-46d2-8166-e37acded63ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"etag\": \"AAAAAAAKLoA=\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"authorizationPolicies\": [\r\n {\r\n \"keyName\": \"provisioningserviceowner\",\r\n \"primaryKey\": \"JzNDaC+SK0jjquLv2YzmO0rq82F5ofAFMJnDWbCBe28=\",\r\n \"secondaryKey\": \"OohTJX09SgMjZAyzVbJd1sILs/HWmDNiyoA54fxYl+0=\",\r\n \"rights\": \"ServiceConfig, DeviceConnect, EnrollmentWrite\"\r\n },\r\n {\r\n \"keyName\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"rights\": \"RegistrationStatusWrite\"\r\n }\r\n ]\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "684" + ], + "x-ms-client-request-id": [ + "f2735570-3650-4e0d-946d-a0a2c763b7c9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLoA=\",\r\n \"name\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Transitioning\",\r\n \"provisioningState\": \"Accepted\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null,\r\n \"authorizationPolicies\": [\r\n {\r\n \"keyName\": \"provisioningserviceowner\",\r\n \"primaryKey\": \"JzNDaC+SK0jjquLv2YzmO0rq82F5ofAFMJnDWbCBe28=\",\r\n \"secondaryKey\": \"OohTJX09SgMjZAyzVbJd1sILs/HWmDNiyoA54fxYl+0=\",\r\n \"rights\": \"ServiceConfig, DeviceConnect, EnrollmentWrite\"\r\n },\r\n {\r\n \"keyName\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"primaryKey\": \"/ElJwrXKs+tmyiU2oJhZao7+syMhqwgDgX9v6LvdWi4=\",\r\n \"secondaryKey\": \"c2vjhg3vgYQXN609X9L6r+9el5IPSBAgJcBMZ6XiJyg=\",\r\n \"rights\": \"RegistrationStatusWrite\"\r\n }\r\n ]\r\n },\r\n \"resourcegroup\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1154" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:04:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete/operationResults/b3NfaWRfYmI3YWUyODItNjU2Ni00OTc5LWI5ZTUtMzI5Mzg5OTBhNWUz?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4998" + ], + "x-ms-request-id": [ + "1e748736-f782-49ea-b276-1484b0c30336" + ], + "x-ms-correlation-request-id": [ + "1e748736-f782-49ea-b276-1484b0c30336" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200430Z:1e748736-f782-49ea-b276-1484b0c30336" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"etag\": \"AAAAAAAKLoA=\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"authorizationPolicies\": [\r\n {\r\n \"keyName\": \"provisioningserviceowner\",\r\n \"primaryKey\": \"JzNDaC+SK0jjquLv2YzmO0rq82F5ofAFMJnDWbCBe28=\",\r\n \"secondaryKey\": \"OohTJX09SgMjZAyzVbJd1sILs/HWmDNiyoA54fxYl+0=\",\r\n \"rights\": \"ServiceConfig, DeviceConnect, EnrollmentWrite\"\r\n }\r\n ]\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "546" + ], + "x-ms-client-request-id": [ + "968c9fb9-d6bb-4823-b91c-d934169c04ab" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLoA=\",\r\n \"name\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Transitioning\",\r\n \"provisioningState\": \"Accepted\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null,\r\n \"authorizationPolicies\": [\r\n {\r\n \"keyName\": \"provisioningserviceowner\",\r\n \"primaryKey\": \"JzNDaC+SK0jjquLv2YzmO0rq82F5ofAFMJnDWbCBe28=\",\r\n \"secondaryKey\": \"OohTJX09SgMjZAyzVbJd1sILs/HWmDNiyoA54fxYl+0=\",\r\n \"rights\": \"ServiceConfig, DeviceConnect, EnrollmentWrite\"\r\n }\r\n ]\r\n },\r\n \"resourcegroup\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "932" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:05:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete/operationResults/b3NfaWRfYWMwODgwYTMtOTM2OC00ODMxLWFiNzMtMDNjMDhlYmQyYjUy?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4997" + ], + "x-ms-request-id": [ + "72ea8520-3d88-471d-9633-5876884c4009" + ], + "x-ms-correlation-request-id": [ + "72ea8520-3d88-471d-9633-5876884c4009" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200516Z:72ea8520-3d88-471d-9633-5876884c4009" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete/operationResults/b3NfaWRfN2QyN2E0Y2UtNjEzNS00MzA2LThiNDgtN2Q5MmEwZTZmYWY4?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmTjJReU4yRTBZMlV0TmpFek5TMDBNekEyTFRoaU5EZ3ROMlE1TW1Fd1pUWm1ZV1k0P2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:04:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "adeb09d3-da4e-4936-ba1d-f49942c5f6e7" + ], + "x-ms-correlation-request-id": [ + "adeb09d3-da4e-4936-ba1d-f49942c5f6e7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200413Z:adeb09d3-da4e-4936-ba1d-f49942c5f6e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLoA=\",\r\n \"name\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne0000928B\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:04:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "e23d3073-1874-427e-9298-8b09a161cdcb" + ], + "x-ms-correlation-request-id": [ + "e23d3073-1874-427e-9298-8b09a161cdcb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200413Z:e23d3073-1874-427e-9298-8b09a161cdcb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLoY=\",\r\n \"name\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne0000928B\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:05:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "e354116c-436f-42ce-9a37-4730c24eb97d" + ], + "x-ms-correlation-request-id": [ + "e354116c-436f-42ce-9a37-4730c24eb97d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200501Z:e354116c-436f-42ce-9a37-4730c24eb97d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLow=\",\r\n \"name\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne0000928B\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:05:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "6741a6dc-b34b-4238-862f-9a187bf841ec" + ], + "x-ms-correlation-request-id": [ + "6741a6dc-b34b-4238-862f-9a187bf841ec" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200546Z:6741a6dc-b34b-4238-862f-9a187bf841ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete/keys/provisioningserviceowner/listkeys?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZS9rZXlzL3Byb3Zpc2lvbmluZ3NlcnZpY2Vvd25lci9saXN0a2V5cz9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "06d4c499-ca2c-495b-921a-35ccd34fdde5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"keyName\": \"provisioningserviceowner\",\r\n \"primaryKey\": \"JzNDaC+SK0jjquLv2YzmO0rq82F5ofAFMJnDWbCBe28=\",\r\n \"secondaryKey\": \"OohTJX09SgMjZAyzVbJd1sILs/HWmDNiyoA54fxYl+0=\",\r\n \"rights\": \"ServiceConfig, DeviceConnect, EnrollmentWrite\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:04:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "181d791f-4c50-4ac5-ad98-6fee784cefe2" + ], + "x-ms-correlation-request-id": [ + "181d791f-4c50-4ac5-ad98-6fee784cefe2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200421Z:181d791f-4c50-4ac5-ad98-6fee784cefe2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete/keys/unitTestingDPSSharedAccessPoliciesListCreateDelete/listkeys?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZS9rZXlzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL2xpc3RrZXlzP2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fc2681c4-ec33-4cc2-8aa9-4b983fac2f2c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"Code\": \"KeyNameNotFound\",\r\n \"HttpStatusCode\": \"NotFound\",\r\n \"Message\": \"Key name not found: unitTestingDPSSharedAccessPoliciesListCreateDelete. If you contact a support representative please include this correlation identifier: 908b57be-a66c-45e0-836d-1ed7528be272, timestamp: 2018-01-10 20:04:22Z, errorcode: IH404001.\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "314" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:04:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "a62d51ea-948c-4788-a82c-9f6b891e3708" + ], + "x-ms-correlation-request-id": [ + "a62d51ea-948c-4788-a82c-9f6b891e3708" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200422Z:a62d51ea-948c-4788-a82c-9f6b891e3708" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete/keys/unitTestingDPSSharedAccessPoliciesListCreateDelete/listkeys?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZS9rZXlzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL2xpc3RrZXlzP2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b3fa0893-430e-4c15-a006-5ef3529f0ff3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"keyName\": \"unitTestingDPSSharedAccessPoliciesListCreateDelete\",\r\n \"primaryKey\": \"/ElJwrXKs+tmyiU2oJhZao7+syMhqwgDgX9v6LvdWi4=\",\r\n \"secondaryKey\": \"c2vjhg3vgYQXN609X9L6r+9el5IPSBAgJcBMZ6XiJyg=\",\r\n \"rights\": \"RegistrationStatusWrite\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:05:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "4090453c-70fb-4ba8-becd-72c0f6618040" + ], + "x-ms-correlation-request-id": [ + "4090453c-70fb-4ba8-becd-72c0f6618040" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200509Z:4090453c-70fb-4ba8-becd-72c0f6618040" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete/keys/unitTestingDPSSharedAccessPoliciesListCreateDelete/listkeys?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZS9rZXlzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL2xpc3RrZXlzP2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8c6bd9c1-3e0f-42a4-ba1a-6489a4bb7ba8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"Code\": \"KeyNameNotFound\",\r\n \"HttpStatusCode\": \"NotFound\",\r\n \"Message\": \"Key name not found: unitTestingDPSSharedAccessPoliciesListCreateDelete. If you contact a support representative please include this correlation identifier: 145b035b-4f34-4c92-a60b-7dd19be9dc14, timestamp: 2018-01-10 20:05:53Z, errorcode: IH404001.\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "314" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:05:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "3da33d68-36e4-493c-b2aa-da204e148136" + ], + "x-ms-correlation-request-id": [ + "3da33d68-36e4-493c-b2aa-da204e148136" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200552Z:3da33d68-36e4-493c-b2aa-da204e148136" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete/operationResults/b3NfaWRfYmI3YWUyODItNjU2Ni00OTc5LWI5ZTUtMzI5Mzg5OTBhNWUz?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmWW1JM1lXVXlPREl0TmpVMk5pMDBPVGM1TFdJNVpUVXRNekk1TXpnNU9UQmhOV1V6P2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:05:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "ba5a3259-1ddb-4cad-b19a-f68af133c28e" + ], + "x-ms-correlation-request-id": [ + "ba5a3259-1ddb-4cad-b19a-f68af133c28e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200500Z:ba5a3259-1ddb-4cad-b19a-f68af133c28e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSSharedAccessPoliciesListCreateDelete/providers/Microsoft.Devices/provisioningServices/unitTestingDPSSharedAccessPoliciesListCreateDelete/operationResults/b3NfaWRfYWMwODgwYTMtOTM2OC00ODMxLWFiNzMtMDNjMDhlYmQyYjUy?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTU2hhcmVkQWNjZXNzUG9saWNpZXNMaXN0Q3JlYXRlRGVsZXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1NoYXJlZEFjY2Vzc1BvbGljaWVzTGlzdENyZWF0ZURlbGV0ZS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmWVdNd09EZ3dZVE10T1RNMk9DMDBPRE14TFdGaU56TXRNRE5qTURobFltUXlZalV5P2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:05:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "9f759233-c362-4c0e-b1a4-d918abbf37d6" + ], + "x-ms-correlation-request-id": [ + "9f759233-c362-4c0e-b1a4-d918abbf37d6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200546Z:9f759233-c362-4c0e-b1a4-d918abbf37d6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b" + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientTest/CreateAndDelete.json b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientTest/CreateAndDelete.json new file mode 100644 index 000000000000..ea5bc3fbb7cd --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientTest/CreateAndDelete.json @@ -0,0 +1,618 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourcegroups/unitTestingDPSCreateUpdate?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlZ3JvdXBzL3VuaXRUZXN0aW5nRFBTQ3JlYXRlVXBkYXRlP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "3f7bd5c8-3a5f-44f7-90ec-ab14cfe867fb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate\",\r\n \"name\": \"unitTestingDPSCreateUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "205" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:06:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "36cc8657-7e51-4372-9995-0f1fbc812300" + ], + "x-ms-correlation-request-id": [ + "36cc8657-7e51-4372-9995-0f1fbc812300" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200644Z:36cc8657-7e51-4372-9995-0f1fbc812300" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9jaGVja1Byb3Zpc2lvbmluZ1NlcnZpY2VOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"unitTestingDPSCreateUpdate\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "44" + ], + "x-ms-client-request-id": [ + "c1be89c7-2b2d-4db3-969c-85add4d33782" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true,\r\n \"reason\": \"Invalid\",\r\n \"message\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:06:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "c40d38a9-95d9-4ed1-a592-6aa33d467b55" + ], + "x-ms-correlation-request-id": [ + "c40d38a9-95d9-4ed1-a592-6aa33d467b55" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200649Z:c40d38a9-95d9-4ed1-a592-6aa33d467b55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ3JlYXRlVXBkYXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NyZWF0ZVVwZGF0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "105" + ], + "x-ms-client-request-id": [ + "200891ae-3535-4bb2-8595-9ed01479c066" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"unitTestingDPSCreateUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Activating\",\r\n \"provisioningState\": \"Accepted\",\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingDPSCreateUpdate\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "554" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:06:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate/operationResults/b3NfaWRfYjRmMjI0YWEtZjg2Ni00NDhkLWE5N2MtYTdlMmU2ODlkMjNm?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4999" + ], + "x-ms-request-id": [ + "443eee4d-b670-4728-9b91-2bda8641c5d7" + ], + "x-ms-correlation-request-id": [ + "443eee4d-b670-4728-9b91-2bda8641c5d7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200654Z:443eee4d-b670-4728-9b91-2bda8641c5d7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate/operationResults/b3NfaWRfYjRmMjI0YWEtZjg2Ni00NDhkLWE5N2MtYTdlMmU2ODlkMjNm?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ3JlYXRlVXBkYXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NyZWF0ZVVwZGF0ZS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmWWpSbU1qSTBZV0V0WmpnMk5pMDBORGhrTFdFNU4yTXRZVGRsTW1VMk9EbGtNak5tP2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:07:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "05701055-8d44-4119-8b3d-883994251249" + ], + "x-ms-correlation-request-id": [ + "05701055-8d44-4119-8b3d-883994251249" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200724Z:05701055-8d44-4119-8b3d-883994251249" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ3JlYXRlVXBkYXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NyZWF0ZVVwZGF0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLqg=\",\r\n \"name\": \"unitTestingDPSCreateUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSCreateUpdate.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne0000928D\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSCreateUpdate\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:07:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "c62f3351-2422-4e6b-92a2-d8e82618054f" + ], + "x-ms-correlation-request-id": [ + "c62f3351-2422-4e6b-92a2-d8e82618054f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200724Z:c62f3351-2422-4e6b-92a2-d8e82618054f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ3JlYXRlVXBkYXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NyZWF0ZVVwZGF0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "80458e90-8c70-4006-81b1-da9a94adfba8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLqg=\",\r\n \"name\": \"unitTestingDPSCreateUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSCreateUpdate.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne0000928D\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSCreateUpdate\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:07:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "aeea6ff0-91c8-4e0b-91e9-a809b11f79a6" + ], + "x-ms-correlation-request-id": [ + "aeea6ff0-91c8-4e0b-91e9-a809b11f79a6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200731Z:aeea6ff0-91c8-4e0b-91e9-a809b11f79a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ3JlYXRlVXBkYXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcz9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1dd74399-5d8d-4a99-b36d-b2961e0525ce" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"etag\": \"AAAAAAAKLqg=\",\r\n \"name\": \"unitTestingDPSCreateUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSCreateUpdate.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne0000928D\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSCreateUpdate\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:07:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "8df483d8-fbe2-47a9-afb2-9d50c83dc4eb" + ], + "x-ms-correlation-request-id": [ + "8df483d8-fbe2-47a9-afb2-9d50c83dc4eb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200729Z:8df483d8-fbe2-47a9-afb2-9d50c83dc4eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ3JlYXRlVXBkYXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcz9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2edd44b3-8c6e-4061-8f10-511723de1a5b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:08:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "d51a2568-7cd9-4240-a85a-3b3863788226" + ], + "x-ms-correlation-request-id": [ + "d51a2568-7cd9-4240-a85a-3b3863788226" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200801Z:d51a2568-7cd9-4240-a85a-3b3863788226" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ3JlYXRlVXBkYXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NyZWF0ZVVwZGF0ZT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "66432e04-fbba-4245-8e11-1ecc338d8642" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "null", + "ResponseHeaders": { + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:07:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate/operationResults/b3NfaWRfNWVmMGRkMGEtYzRhZC00MjM3LTgwZWEtOWU3NGFiZGY4MDkw?api-version=2017-11-15" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate/operationResults/b3NfaWRfNWVmMGRkMGEtYzRhZC00MjM3LTgwZWEtOWU3NGFiZGY4MDkw?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "a2c82fca-d8a4-4b6a-ac14-a163d989b0ab" + ], + "x-ms-correlation-request-id": [ + "a2c82fca-d8a4-4b6a-ac14-a163d989b0ab" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200739Z:a2c82fca-d8a4-4b6a-ac14-a163d989b0ab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdate/providers/Microsoft.Devices/provisioningServices/unitTestingDPSCreateUpdate/operationResults/b3NfaWRfNWVmMGRkMGEtYzRhZC00MjM3LTgwZWEtOWU3NGFiZGY4MDkw?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ3JlYXRlVXBkYXRlL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU0NyZWF0ZVVwZGF0ZS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmTldWbU1HUmtNR0V0WXpSaFpDMDBNak0zTFRnd1pXRXRPV1UzTkdGaVpHWTRNRGt3P2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:07:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "9e58cd25-dfff-4f7d-a1b3-d546cbc09311" + ], + "x-ms-correlation-request-id": [ + "9e58cd25-dfff-4f7d-a1b3-d546cbc09311" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200754Z:9e58cd25-dfff-4f7d-a1b3-d546cbc09311" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b" + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientTest/CreateFailure.json b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientTest/CreateFailure.json new file mode 100644 index 000000000000..8ed6cd4e97a7 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientTest/CreateFailure.json @@ -0,0 +1,133 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourcegroups/unitTestingDPSCreateUpdateInvalidName?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlZ3JvdXBzL3VuaXRUZXN0aW5nRFBTQ3JlYXRlVXBkYXRlSW52YWxpZE5hbWU/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "960f1675-f7f4-4805-944a-ff33e851cbb7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdateInvalidName\",\r\n \"name\": \"unitTestingDPSCreateUpdateInvalidName\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "227" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:08:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "f6b147d4-20c4-4c9a-a1f5-d3365ded86f0" + ], + "x-ms-correlation-request-id": [ + "f6b147d4-20c4-4c9a-a1f5-d3365ded86f0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200848Z:f6b147d4-20c4-4c9a-a1f5-d3365ded86f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSCreateUpdateInvalidName/providers/Microsoft.Devices/provisioningServices/1%C3%B11unitTestingDPSCreateUpdateInvalidName!!!?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTQ3JlYXRlVXBkYXRlSW52YWxpZE5hbWUvcHJvdmlkZXJzL01pY3Jvc29mdC5EZXZpY2VzL3Byb3Zpc2lvbmluZ1NlcnZpY2VzLzElQzMlQjExdW5pdFRlc3RpbmdEUFNDcmVhdGVVcGRhdGVJbnZhbGlkTmFtZSEhIT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "105" + ], + "x-ms-client-request-id": [ + "ebdad7b3-bb3a-49bf-99db-62302a58d193" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"Code\": \"InvalidIotDpsName\",\r\n \"HttpStatusCode\": \"BadRequest\",\r\n \"Message\": \"Provisioning Service name can contain only alphanumeric and hyphen and must start/end with alphanumeric. Should be 3 to 50 chars long. Name 'global' not allowed. If you contact a support representative please include this correlation identifier: 421496a5-e9da-470c-9fce-a06149abf312, timestamp: 2018-01-10 20:09:02Z, errorcode: IH400305.\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "408" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:09:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4999" + ], + "x-ms-request-id": [ + "50b60738-3a3c-413e-8d10-c5f049da6195" + ], + "x-ms-correlation-request-id": [ + "50b60738-3a3c-413e-8d10-c5f049da6195" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200902Z:50b60738-3a3c-413e-8d10-c5f049da6195" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 400 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b" + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientTest/UpdateSku.json b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientTest/UpdateSku.json new file mode 100644 index 000000000000..e1a8f5a06c63 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/DeviceProvisioningServices.Tests/SessionRecords/DeviceProvisioningServices.Tests.ScenarioTests.DeviceProvisioningClientTest/UpdateSku.json @@ -0,0 +1,490 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourcegroups/unitTestingDPSUpdateSku?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlZ3JvdXBzL3VuaXRUZXN0aW5nRFBTVXBkYXRlU2t1P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "8f763868-0467-4b81-ba03-c1167389b727" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku\",\r\n \"name\": \"unitTestingDPSUpdateSku\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "199" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:09:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "9149e58d-6d17-45c8-a2bb-afdd470e19c8" + ], + "x-ms-correlation-request-id": [ + "9149e58d-6d17-45c8-a2bb-afdd470e19c8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200949Z:9149e58d-6d17-45c8-a2bb-afdd470e19c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9jaGVja1Byb3Zpc2lvbmluZ1NlcnZpY2VOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMTEtMTU=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"unitTestingDPSUpdateSku\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "41" + ], + "x-ms-client-request-id": [ + "ca868ad2-9846-4af0-a6a8-e8003b8a3ef8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true,\r\n \"reason\": \"Invalid\",\r\n \"message\": null\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:09:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "99d46d37-a7ca-4a67-ac14-2dc9c33bb12e" + ], + "x-ms-correlation-request-id": [ + "99d46d37-a7ca-4a67-ac14-2dc9c33bb12e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200953Z:99d46d37-a7ca-4a67-ac14-2dc9c33bb12e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTVXBkYXRlU2t1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1VwZGF0ZVNrdT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 1\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "105" + ], + "x-ms-client-request-id": [ + "de9e1e61-3685-425c-8580-f8628f18a70b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"unitTestingDPSUpdateSku\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Activating\",\r\n \"provisioningState\": \"Accepted\",\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingDPSUpdateSku\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "542" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:09:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku/operationResults/b3NfaWRfZTMxMTk5ZmMtYTFlOS00ZDlkLTgzNTYtM2YxNWZhN2MyMzll?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4999" + ], + "x-ms-request-id": [ + "2c84c64f-e79d-4ee2-9b10-b9c918d6694c" + ], + "x-ms-correlation-request-id": [ + "2c84c64f-e79d-4ee2-9b10-b9c918d6694c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T200955Z:2c84c64f-e79d-4ee2-9b10-b9c918d6694c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTVXBkYXRlU2t1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1VwZGF0ZVNrdT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"etag\": \"AAAAAAAKLt0=\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"capacity\": 2\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "229" + ], + "x-ms-client-request-id": [ + "79f38efb-dfa2-43b1-b08f-479eecf5c671" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLt0=\",\r\n \"name\": \"unitTestingDPSUpdateSku\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Transitioning\",\r\n \"provisioningState\": \"Accepted\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"idScope\": null\r\n },\r\n \"resourcegroup\": \"unitTestingDPSUpdateSku\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "580" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:11:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku/operationResults/b3NfaWRfNTgxOGI2Y2EtMWZhOC00NzRkLWEzMzQtMTRiM2VhMzE5ZTlj?api-version=2017-11-15&asyncinfo" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "4998" + ], + "x-ms-request-id": [ + "cae87099-614d-48b4-9875-12a0f7b074ff" + ], + "x-ms-correlation-request-id": [ + "cae87099-614d-48b4-9875-12a0f7b074ff" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T201101Z:cae87099-614d-48b4-9875-12a0f7b074ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku/operationResults/b3NfaWRfZTMxMTk5ZmMtYTFlOS00ZDlkLTgzNTYtM2YxNWZhN2MyMzll?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTVXBkYXRlU2t1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1VwZGF0ZVNrdS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmWlRNeE1UazVabU10WVRGbE9TMDBaRGxrTFRnek5UWXRNMll4TldaaE4yTXlNemxsP2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:10:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "dabafbf1-6125-4ea6-9ea2-a3c165e00814" + ], + "x-ms-correlation-request-id": [ + "dabafbf1-6125-4ea6-9ea2-a3c165e00814" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T201026Z:dabafbf1-6125-4ea6-9ea2-a3c165e00814" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTVXBkYXRlU2t1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1VwZGF0ZVNrdT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLt0=\",\r\n \"name\": \"unitTestingDPSUpdateSku\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSUpdateSku.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne00009290\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSUpdateSku\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:10:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "a7f85066-6ba5-4f97-8c1a-7eaa84c04a3c" + ], + "x-ms-correlation-request-id": [ + "a7f85066-6ba5-4f97-8c1a-7eaa84c04a3c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T201026Z:a7f85066-6ba5-4f97-8c1a-7eaa84c04a3c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku?api-version=2017-11-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTVXBkYXRlU2t1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1VwZGF0ZVNrdT9hcGktdmVyc2lvbj0yMDE3LTExLTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"etag\": \"AAAAAAAKLuc=\",\r\n \"name\": \"unitTestingDPSUpdateSku\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"state\": \"Active\",\r\n \"iotHubs\": [],\r\n \"allocationPolicy\": \"Hashed\",\r\n \"serviceOperationsHostName\": \"unitTestingDPSUpdateSku.azure-devices-provisioning.net\",\r\n \"deviceProvisioningHostName\": \"global.azure-devices-provisioning.net\",\r\n \"idScope\": \"0ne00009290\"\r\n },\r\n \"resourcegroup\": \"unitTestingDPSUpdateSku\",\r\n \"type\": \"Microsoft.Devices/provisioningServices\",\r\n \"id\": \"/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku\",\r\n \"subscriptionid\": \"9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:11:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "7209aeaa-7ac2-4978-9dba-0a0acd551c03" + ], + "x-ms-correlation-request-id": [ + "7209aeaa-7ac2-4978-9dba-0a0acd551c03" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T201132Z:7209aeaa-7ac2-4978-9dba-0a0acd551c03" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b/resourceGroups/unitTestingDPSUpdateSku/providers/Microsoft.Devices/provisioningServices/unitTestingDPSUpdateSku/operationResults/b3NfaWRfNTgxOGI2Y2EtMWZhOC00NzRkLWEzMzQtMTRiM2VhMzE5ZTlj?api-version=2017-11-15&asyncinfo", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTcxMmZmMjUtZGZhMy00OGYzLThhNmEtNWEyYmMwMGZiMDhiL3Jlc291cmNlR3JvdXBzL3VuaXRUZXN0aW5nRFBTVXBkYXRlU2t1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGV2aWNlcy9wcm92aXNpb25pbmdTZXJ2aWNlcy91bml0VGVzdGluZ0RQU1VwZGF0ZVNrdS9vcGVyYXRpb25SZXN1bHRzL2IzTmZhV1JmTlRneE9HSTJZMkV0TVdaaE9DMDBOelJrTFdFek16UXRNVFJpTTJWaE16RTVaVGxqP2FwaS12ZXJzaW9uPTIwMTctMTEtMTUmYXN5bmNpbmZv", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ProvisioningServices.IotDpsClient/0.9.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 10 Jan 2018 20:11:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "bec5fa4f-d3a0-4811-a90c-3665933f57ea" + ], + "x-ms-correlation-request-id": [ + "bec5fa4f-d3a0-4811-a90c-3665933f57ea" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180110T201131Z:bec5fa4f-d3a0-4811-a90c-3665933f57ea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "9712ff25-dfa3-48f3-8a6a-5a2bc00fb08b" + } +} \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices.sln b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices.sln new file mode 100644 index 000000000000..be39082f6eb1 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices.sln @@ -0,0 +1,37 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27004.2009 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.DeviceProvisioningServices", "Management.DeviceProvisioningServices\Microsoft.Azure.Management.DeviceProvisioningServices.csproj", "{8B1E153F-90A7-49C3-99EA-C502627380A9}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DeviceProvisioningServices.Tests", "DeviceProvisioningServices.Tests\DeviceProvisioningServices.Tests.csproj", "{C716AD7C-9F09-4206-B0DA-C779CBB2F1CA}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.IotHub", "..\IotHub\Management.IotHub\Microsoft.Azure.Management.IotHub.csproj", "{15FABBE1-F329-4F7A-AA06-9B755DDB72D8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8B1E153F-90A7-49C3-99EA-C502627380A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8B1E153F-90A7-49C3-99EA-C502627380A9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8B1E153F-90A7-49C3-99EA-C502627380A9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8B1E153F-90A7-49C3-99EA-C502627380A9}.Release|Any CPU.Build.0 = Release|Any CPU + {C716AD7C-9F09-4206-B0DA-C779CBB2F1CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C716AD7C-9F09-4206-B0DA-C779CBB2F1CA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C716AD7C-9F09-4206-B0DA-C779CBB2F1CA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C716AD7C-9F09-4206-B0DA-C779CBB2F1CA}.Release|Any CPU.Build.0 = Release|Any CPU + {15FABBE1-F329-4F7A-AA06-9B755DDB72D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {15FABBE1-F329-4F7A-AA06-9B755DDB72D8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {15FABBE1-F329-4F7A-AA06-9B755DDB72D8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {15FABBE1-F329-4F7A-AA06-9B755DDB72D8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F153AC1E-A864-4774-AAC2-96BFFC6944F4} + EndGlobalSection +EndGlobal diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificateOperations.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificateOperations.cs new file mode 100644 index 000000000000..350b8bee2a8b --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificateOperations.cs @@ -0,0 +1,1350 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DpsCertificateOperations operations. + /// + internal partial class DpsCertificateOperations : IServiceOperations, IDpsCertificateOperations + { + /// + /// Initializes a new instance of the DpsCertificateOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DpsCertificateOperations(IotDpsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the IotDpsClient + /// + public IotDpsClient Client { get; private set; } + + /// + /// Get the certificate from the provisioning service. + /// + /// + /// Name of the certificate to retrieve. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of the provisioning service the certificate is associated with. + /// + /// + /// ETag of the certificate. + /// + /// + /// 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 certificateName, string resourceGroupName, string provisioningServiceName, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (certificateName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("ifMatch", ifMatch); + 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.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}").ToString(); + _url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (ifMatch != null) + { + if (_httpRequest.Headers.Contains("If-Match")) + { + _httpRequest.Headers.Remove("If-Match"); + } + _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch); + } + 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 ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Upload the certificate to the provisioning service. + /// + /// + /// Add new certificate or update an existing certificate. + /// + /// + /// Resource group identifier. + /// + /// + /// The name of the provisioning service. + /// + /// + /// The name of the certificate create or update. + /// + /// + /// The certificate body. + /// + /// + /// ETag of the certificate. This is required to update an existing + /// certificate, and ignored while creating a brand new certificate. + /// + /// + /// 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 provisioningServiceName, string certificateName, CertificateBodyDescription certificateDescription, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (certificateName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); + } + if (certificateName != null) + { + if (certificateName.Length > 256) + { + throw new ValidationException(ValidationRules.MaxLength, "certificateName", 256); + } + } + if (certificateDescription == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "certificateDescription"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("certificateDescription", certificateDescription); + tracingParameters.Add("ifMatch", ifMatch); + 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.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + _url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (ifMatch != null) + { + if (_httpRequest.Headers.Contains("If-Match")) + { + _httpRequest.Headers.Remove("If-Match"); + } + _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch); + } + 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(certificateDescription != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(certificateDescription, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete the Provisioning Service Certificate. + /// + /// + /// Deletes the specified certificate assosciated with the Provisioning Service + /// + /// + /// Resource group identifier. + /// + /// + /// ETag of the certificate + /// + /// + /// The name of the provisioning service. + /// + /// + /// This is a mandatory field, and is the logical name of the certificate that + /// the provisioning service will access by. + /// + /// + /// This is optional, and it is the Common Name of the certificate. + /// + /// + /// Raw data within the certificate. + /// + /// + /// Indicates if certificate has been verified by owner of the private key. + /// + /// + /// A description that mentions the purpose of the certificate. Possible values + /// include: 'clientAuthentication', 'serverAuthentication' + /// + /// + /// Time the certificate is created. + /// + /// + /// Time the certificate is last updated. + /// + /// + /// Indicates if the certificate contains a private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + /// + /// 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 ifMatch, string provisioningServiceName, string certificateName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (ifMatch == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ifMatch"); + } + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (certificateName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("ifMatch", ifMatch); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("certificatename", certificatename); + tracingParameters.Add("certificaterawBytes", certificaterawBytes); + tracingParameters.Add("certificateisVerified", certificateisVerified); + tracingParameters.Add("certificatepurpose", certificatepurpose); + tracingParameters.Add("certificatecreated", certificatecreated); + tracingParameters.Add("certificatelastUpdated", certificatelastUpdated); + tracingParameters.Add("certificatehasPrivateKey", certificatehasPrivateKey); + tracingParameters.Add("certificatenonce", certificatenonce); + 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.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + _url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName)); + List _queryParameters = new List(); + if (certificatename != null) + { + _queryParameters.Add(string.Format("certificate.name={0}", System.Uri.EscapeDataString(certificatename))); + } + if (certificaterawBytes != null) + { + _queryParameters.Add(string.Format("certificate.rawBytes={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificaterawBytes, Client.SerializationSettings).Trim('"')))); + } + if (certificateisVerified != null) + { + _queryParameters.Add(string.Format("certificate.isVerified={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificateisVerified, Client.SerializationSettings).Trim('"')))); + } + if (certificatepurpose != null) + { + _queryParameters.Add(string.Format("certificate.purpose={0}", System.Uri.EscapeDataString(certificatepurpose))); + } + if (certificatecreated != null) + { + _queryParameters.Add(string.Format("certificate.created={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificatecreated, Client.SerializationSettings).Trim('"')))); + } + if (certificatelastUpdated != null) + { + _queryParameters.Add(string.Format("certificate.lastUpdated={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificatelastUpdated, Client.SerializationSettings).Trim('"')))); + } + if (certificatehasPrivateKey != null) + { + _queryParameters.Add(string.Format("certificate.hasPrivateKey={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificatehasPrivateKey, Client.SerializationSettings).Trim('"')))); + } + if (certificatenonce != null) + { + _queryParameters.Add(string.Format("certificate.nonce={0}", System.Uri.EscapeDataString(certificatenonce))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (ifMatch != null) + { + if (_httpRequest.Headers.Contains("If-Match")) + { + _httpRequest.Headers.Remove("If-Match"); + } + _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch); + } + 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 ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Generate verification code for Proof of Possession. + /// + /// + /// The mandatory logical name of the certificate, that the provisioning + /// service uses to access. + /// + /// + /// ETag of the certificate. This is required to update an existing + /// certificate, and ignored while creating a brand new certificate. + /// + /// + /// name of resource group. + /// + /// + /// Name of provisioning service. + /// + /// + /// Common Name for the certificate. + /// + /// + /// Raw data of certificate. + /// + /// + /// Indicates if the certificate has been verified by owner of the private key. + /// + /// + /// Description mentioning the purpose of the certificate. Possible values + /// include: 'clientAuthentication', 'serverAuthentication' + /// + /// + /// Certificate creation time. + /// + /// + /// Certificate last updated time. + /// + /// + /// Indicates if the certificate contains private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + /// + /// 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> GenerateVerificationCodeWithHttpMessagesAsync(string certificateName, string ifMatch, string resourceGroupName, string provisioningServiceName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (certificateName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); + } + if (ifMatch == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ifMatch"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("ifMatch", ifMatch); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("certificatename", certificatename); + tracingParameters.Add("certificaterawBytes", certificaterawBytes); + tracingParameters.Add("certificateisVerified", certificateisVerified); + tracingParameters.Add("certificatepurpose", certificatepurpose); + tracingParameters.Add("certificatecreated", certificatecreated); + tracingParameters.Add("certificatelastUpdated", certificatelastUpdated); + tracingParameters.Add("certificatehasPrivateKey", certificatehasPrivateKey); + tracingParameters.Add("certificatenonce", certificatenonce); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GenerateVerificationCode", 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.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode").ToString(); + _url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + List _queryParameters = new List(); + if (certificatename != null) + { + _queryParameters.Add(string.Format("certificate.name={0}", System.Uri.EscapeDataString(certificatename))); + } + if (certificaterawBytes != null) + { + _queryParameters.Add(string.Format("certificate.rawBytes={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificaterawBytes, Client.SerializationSettings).Trim('"')))); + } + if (certificateisVerified != null) + { + _queryParameters.Add(string.Format("certificate.isVerified={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificateisVerified, Client.SerializationSettings).Trim('"')))); + } + if (certificatepurpose != null) + { + _queryParameters.Add(string.Format("certificate.purpose={0}", System.Uri.EscapeDataString(certificatepurpose))); + } + if (certificatecreated != null) + { + _queryParameters.Add(string.Format("certificate.created={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificatecreated, Client.SerializationSettings).Trim('"')))); + } + if (certificatelastUpdated != null) + { + _queryParameters.Add(string.Format("certificate.lastUpdated={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificatelastUpdated, Client.SerializationSettings).Trim('"')))); + } + if (certificatehasPrivateKey != null) + { + _queryParameters.Add(string.Format("certificate.hasPrivateKey={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificatehasPrivateKey, Client.SerializationSettings).Trim('"')))); + } + if (certificatenonce != null) + { + _queryParameters.Add(string.Format("certificate.nonce={0}", System.Uri.EscapeDataString(certificatenonce))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (ifMatch != null) + { + if (_httpRequest.Headers.Contains("If-Match")) + { + _httpRequest.Headers.Remove("If-Match"); + } + _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch); + } + 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 ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Verify certificate's private key possession. + /// + /// + /// Verifies the certificate's private key possession by providing the leaf + /// cert issued by the verifying pre uploaded certificate. + /// + /// + /// The mandatory logical name of the certificate, that the provisioning + /// service uses to access. + /// + /// + /// ETag of the certificate. + /// + /// + /// The name of the certificate + /// + /// + /// Resource group name. + /// + /// + /// Provisioning service name. + /// + /// + /// Common Name for the certificate. + /// + /// + /// Raw data of certificate. + /// + /// + /// Indicates if the certificate has been verified by owner of the private key. + /// + /// + /// Describe the purpose of the certificate. Possible values include: + /// 'clientAuthentication', 'serverAuthentication' + /// + /// + /// Certificate creation time. + /// + /// + /// Certificate last updated time. + /// + /// + /// Indicates if the certificate contains private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + /// + /// 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> VerifyCertificateWithHttpMessagesAsync(string certificateName, string ifMatch, VerificationCodeRequest request, string resourceGroupName, string provisioningServiceName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (certificateName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "certificateName"); + } + if (ifMatch == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ifMatch"); + } + if (request == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "request"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("certificateName", certificateName); + tracingParameters.Add("ifMatch", ifMatch); + tracingParameters.Add("request", request); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("certificatename", certificatename); + tracingParameters.Add("certificaterawBytes", certificaterawBytes); + tracingParameters.Add("certificateisVerified", certificateisVerified); + tracingParameters.Add("certificatepurpose", certificatepurpose); + tracingParameters.Add("certificatecreated", certificatecreated); + tracingParameters.Add("certificatelastUpdated", certificatelastUpdated); + tracingParameters.Add("certificatehasPrivateKey", certificatehasPrivateKey); + tracingParameters.Add("certificatenonce", certificatenonce); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "VerifyCertificate", 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.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify").ToString(); + _url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + List _queryParameters = new List(); + if (certificatename != null) + { + _queryParameters.Add(string.Format("certificate.name={0}", System.Uri.EscapeDataString(certificatename))); + } + if (certificaterawBytes != null) + { + _queryParameters.Add(string.Format("certificate.rawBytes={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificaterawBytes, Client.SerializationSettings).Trim('"')))); + } + if (certificateisVerified != null) + { + _queryParameters.Add(string.Format("certificate.isVerified={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificateisVerified, Client.SerializationSettings).Trim('"')))); + } + if (certificatepurpose != null) + { + _queryParameters.Add(string.Format("certificate.purpose={0}", System.Uri.EscapeDataString(certificatepurpose))); + } + if (certificatecreated != null) + { + _queryParameters.Add(string.Format("certificate.created={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificatecreated, Client.SerializationSettings).Trim('"')))); + } + if (certificatelastUpdated != null) + { + _queryParameters.Add(string.Format("certificate.lastUpdated={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificatelastUpdated, Client.SerializationSettings).Trim('"')))); + } + if (certificatehasPrivateKey != null) + { + _queryParameters.Add(string.Format("certificate.hasPrivateKey={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(certificatehasPrivateKey, Client.SerializationSettings).Trim('"')))); + } + if (certificatenonce != null) + { + _queryParameters.Add(string.Format("certificate.nonce={0}", System.Uri.EscapeDataString(certificatenonce))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (ifMatch != null) + { + if (_httpRequest.Headers.Contains("If-Match")) + { + _httpRequest.Headers.Remove("If-Match"); + } + _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch); + } + 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(request != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(request, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificateOperationsExtensions.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificateOperationsExtensions.cs new file mode 100644 index 000000000000..9f2d1cfa4b8b --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificateOperationsExtensions.cs @@ -0,0 +1,474 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DpsCertificateOperations. + /// + public static partial class DpsCertificateOperationsExtensions + { + /// + /// Get the certificate from the provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the certificate to retrieve. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of the provisioning service the certificate is associated with. + /// + /// + /// ETag of the certificate. + /// + public static CertificateResponse Get(this IDpsCertificateOperations operations, string certificateName, string resourceGroupName, string provisioningServiceName, string ifMatch = default(string)) + { + return operations.GetAsync(certificateName, resourceGroupName, provisioningServiceName, ifMatch).GetAwaiter().GetResult(); + } + + /// + /// Get the certificate from the provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the certificate to retrieve. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of the provisioning service the certificate is associated with. + /// + /// + /// ETag of the certificate. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDpsCertificateOperations operations, string certificateName, string resourceGroupName, string provisioningServiceName, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(certificateName, resourceGroupName, provisioningServiceName, ifMatch, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Upload the certificate to the provisioning service. + /// + /// + /// Add new certificate or update an existing certificate. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// The name of the provisioning service. + /// + /// + /// The name of the certificate create or update. + /// + /// + /// The certificate body. + /// + /// + /// ETag of the certificate. This is required to update an existing + /// certificate, and ignored while creating a brand new certificate. + /// + public static CertificateResponse CreateOrUpdate(this IDpsCertificateOperations operations, string resourceGroupName, string provisioningServiceName, string certificateName, CertificateBodyDescription certificateDescription, string ifMatch = default(string)) + { + return operations.CreateOrUpdateAsync(resourceGroupName, provisioningServiceName, certificateName, certificateDescription, ifMatch).GetAwaiter().GetResult(); + } + + /// + /// Upload the certificate to the provisioning service. + /// + /// + /// Add new certificate or update an existing certificate. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// The name of the provisioning service. + /// + /// + /// The name of the certificate create or update. + /// + /// + /// The certificate body. + /// + /// + /// ETag of the certificate. This is required to update an existing + /// certificate, and ignored while creating a brand new certificate. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IDpsCertificateOperations operations, string resourceGroupName, string provisioningServiceName, string certificateName, CertificateBodyDescription certificateDescription, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, provisioningServiceName, certificateName, certificateDescription, ifMatch, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete the Provisioning Service Certificate. + /// + /// + /// Deletes the specified certificate assosciated with the Provisioning Service + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// ETag of the certificate + /// + /// + /// The name of the provisioning service. + /// + /// + /// This is a mandatory field, and is the logical name of the certificate that + /// the provisioning service will access by. + /// + /// + /// This is optional, and it is the Common Name of the certificate. + /// + /// + /// Raw data within the certificate. + /// + /// + /// Indicates if certificate has been verified by owner of the private key. + /// + /// + /// A description that mentions the purpose of the certificate. Possible values + /// include: 'clientAuthentication', 'serverAuthentication' + /// + /// + /// Time the certificate is created. + /// + /// + /// Time the certificate is last updated. + /// + /// + /// Indicates if the certificate contains a private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + public static void Delete(this IDpsCertificateOperations operations, string resourceGroupName, string ifMatch, string provisioningServiceName, string certificateName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string)) + { + operations.DeleteAsync(resourceGroupName, ifMatch, provisioningServiceName, certificateName, certificatename, certificaterawBytes, certificateisVerified, certificatepurpose, certificatecreated, certificatelastUpdated, certificatehasPrivateKey, certificatenonce).GetAwaiter().GetResult(); + } + + /// + /// Delete the Provisioning Service Certificate. + /// + /// + /// Deletes the specified certificate assosciated with the Provisioning Service + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// ETag of the certificate + /// + /// + /// The name of the provisioning service. + /// + /// + /// This is a mandatory field, and is the logical name of the certificate that + /// the provisioning service will access by. + /// + /// + /// This is optional, and it is the Common Name of the certificate. + /// + /// + /// Raw data within the certificate. + /// + /// + /// Indicates if certificate has been verified by owner of the private key. + /// + /// + /// A description that mentions the purpose of the certificate. Possible values + /// include: 'clientAuthentication', 'serverAuthentication' + /// + /// + /// Time the certificate is created. + /// + /// + /// Time the certificate is last updated. + /// + /// + /// Indicates if the certificate contains a private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IDpsCertificateOperations operations, string resourceGroupName, string ifMatch, string provisioningServiceName, string certificateName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, ifMatch, provisioningServiceName, certificateName, certificatename, certificaterawBytes, certificateisVerified, certificatepurpose, certificatecreated, certificatelastUpdated, certificatehasPrivateKey, certificatenonce, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Generate verification code for Proof of Possession. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The mandatory logical name of the certificate, that the provisioning + /// service uses to access. + /// + /// + /// ETag of the certificate. This is required to update an existing + /// certificate, and ignored while creating a brand new certificate. + /// + /// + /// name of resource group. + /// + /// + /// Name of provisioning service. + /// + /// + /// Common Name for the certificate. + /// + /// + /// Raw data of certificate. + /// + /// + /// Indicates if the certificate has been verified by owner of the private key. + /// + /// + /// Description mentioning the purpose of the certificate. Possible values + /// include: 'clientAuthentication', 'serverAuthentication' + /// + /// + /// Certificate creation time. + /// + /// + /// Certificate last updated time. + /// + /// + /// Indicates if the certificate contains private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + public static VerificationCodeResponse GenerateVerificationCode(this IDpsCertificateOperations operations, string certificateName, string ifMatch, string resourceGroupName, string provisioningServiceName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string)) + { + return operations.GenerateVerificationCodeAsync(certificateName, ifMatch, resourceGroupName, provisioningServiceName, certificatename, certificaterawBytes, certificateisVerified, certificatepurpose, certificatecreated, certificatelastUpdated, certificatehasPrivateKey, certificatenonce).GetAwaiter().GetResult(); + } + + /// + /// Generate verification code for Proof of Possession. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The mandatory logical name of the certificate, that the provisioning + /// service uses to access. + /// + /// + /// ETag of the certificate. This is required to update an existing + /// certificate, and ignored while creating a brand new certificate. + /// + /// + /// name of resource group. + /// + /// + /// Name of provisioning service. + /// + /// + /// Common Name for the certificate. + /// + /// + /// Raw data of certificate. + /// + /// + /// Indicates if the certificate has been verified by owner of the private key. + /// + /// + /// Description mentioning the purpose of the certificate. Possible values + /// include: 'clientAuthentication', 'serverAuthentication' + /// + /// + /// Certificate creation time. + /// + /// + /// Certificate last updated time. + /// + /// + /// Indicates if the certificate contains private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + /// + /// The cancellation token. + /// + public static async Task GenerateVerificationCodeAsync(this IDpsCertificateOperations operations, string certificateName, string ifMatch, string resourceGroupName, string provisioningServiceName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GenerateVerificationCodeWithHttpMessagesAsync(certificateName, ifMatch, resourceGroupName, provisioningServiceName, certificatename, certificaterawBytes, certificateisVerified, certificatepurpose, certificatecreated, certificatelastUpdated, certificatehasPrivateKey, certificatenonce, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Verify certificate's private key possession. + /// + /// + /// Verifies the certificate's private key possession by providing the leaf + /// cert issued by the verifying pre uploaded certificate. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The mandatory logical name of the certificate, that the provisioning + /// service uses to access. + /// + /// + /// ETag of the certificate. + /// + /// + /// The name of the certificate + /// + /// + /// Resource group name. + /// + /// + /// Provisioning service name. + /// + /// + /// Common Name for the certificate. + /// + /// + /// Raw data of certificate. + /// + /// + /// Indicates if the certificate has been verified by owner of the private key. + /// + /// + /// Describe the purpose of the certificate. Possible values include: + /// 'clientAuthentication', 'serverAuthentication' + /// + /// + /// Certificate creation time. + /// + /// + /// Certificate last updated time. + /// + /// + /// Indicates if the certificate contains private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + public static CertificateResponse VerifyCertificate(this IDpsCertificateOperations operations, string certificateName, string ifMatch, VerificationCodeRequest request, string resourceGroupName, string provisioningServiceName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string)) + { + return operations.VerifyCertificateAsync(certificateName, ifMatch, request, resourceGroupName, provisioningServiceName, certificatename, certificaterawBytes, certificateisVerified, certificatepurpose, certificatecreated, certificatelastUpdated, certificatehasPrivateKey, certificatenonce).GetAwaiter().GetResult(); + } + + /// + /// Verify certificate's private key possession. + /// + /// + /// Verifies the certificate's private key possession by providing the leaf + /// cert issued by the verifying pre uploaded certificate. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The mandatory logical name of the certificate, that the provisioning + /// service uses to access. + /// + /// + /// ETag of the certificate. + /// + /// + /// The name of the certificate + /// + /// + /// Resource group name. + /// + /// + /// Provisioning service name. + /// + /// + /// Common Name for the certificate. + /// + /// + /// Raw data of certificate. + /// + /// + /// Indicates if the certificate has been verified by owner of the private key. + /// + /// + /// Describe the purpose of the certificate. Possible values include: + /// 'clientAuthentication', 'serverAuthentication' + /// + /// + /// Certificate creation time. + /// + /// + /// Certificate last updated time. + /// + /// + /// Indicates if the certificate contains private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + /// + /// The cancellation token. + /// + public static async Task VerifyCertificateAsync(this IDpsCertificateOperations operations, string certificateName, string ifMatch, VerificationCodeRequest request, string resourceGroupName, string provisioningServiceName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.VerifyCertificateWithHttpMessagesAsync(certificateName, ifMatch, request, resourceGroupName, provisioningServiceName, certificatename, certificaterawBytes, certificateisVerified, certificatepurpose, certificatecreated, certificatelastUpdated, certificatehasPrivateKey, certificatenonce, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificatesOperations.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificatesOperations.cs new file mode 100644 index 000000000000..f7c906bfd248 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificatesOperations.cs @@ -0,0 +1,245 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DpsCertificatesOperations operations. + /// + internal partial class DpsCertificatesOperations : IServiceOperations, IDpsCertificatesOperations + { + /// + /// Initializes a new instance of the DpsCertificatesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DpsCertificatesOperations(IotDpsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the IotDpsClient + /// + public IotDpsClient Client { get; private set; } + + /// + /// Get all the certificates tied to the provisioning service. + /// + /// + /// Name of resource group. + /// + /// + /// Name of provisioning service to retrieve certificates for. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ListWithHttpMessagesAsync(string resourceGroupName, string provisioningServiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificatesOperationsExtensions.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificatesOperationsExtensions.cs new file mode 100644 index 000000000000..60f5aaa3abeb --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/DpsCertificatesOperationsExtensions.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DpsCertificatesOperations. + /// + public static partial class DpsCertificatesOperationsExtensions + { + /// + /// Get all the certificates tied to the provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of resource group. + /// + /// + /// Name of provisioning service to retrieve certificates for. + /// + public static CertificateListDescription List(this IDpsCertificatesOperations operations, string resourceGroupName, string provisioningServiceName) + { + return operations.ListAsync(resourceGroupName, provisioningServiceName).GetAwaiter().GetResult(); + } + + /// + /// Get all the certificates tied to the provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of resource group. + /// + /// + /// Name of provisioning service to retrieve certificates for. + /// + /// + /// The cancellation token. + /// + public static async Task ListAsync(this IDpsCertificatesOperations operations, string resourceGroupName, string provisioningServiceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, provisioningServiceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IDpsCertificateOperations.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IDpsCertificateOperations.cs new file mode 100644 index 000000000000..1fa168aa1853 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IDpsCertificateOperations.cs @@ -0,0 +1,281 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DpsCertificateOperations operations. + /// + public partial interface IDpsCertificateOperations + { + /// + /// Get the certificate from the provisioning service. + /// + /// + /// Name of the certificate to retrieve. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of the provisioning service the certificate is associated + /// with. + /// + /// + /// ETag of the certificate. + /// + /// + /// 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 certificateName, string resourceGroupName, string provisioningServiceName, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Upload the certificate to the provisioning service. + /// + /// + /// Add new certificate or update an existing certificate. + /// + /// + /// Resource group identifier. + /// + /// + /// The name of the provisioning service. + /// + /// + /// The name of the certificate create or update. + /// + /// + /// The certificate body. + /// + /// + /// ETag of the certificate. This is required to update an existing + /// certificate, and ignored while creating a brand new certificate. + /// + /// + /// 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 provisioningServiceName, string certificateName, CertificateBodyDescription certificateDescription, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete the Provisioning Service Certificate. + /// + /// + /// Deletes the specified certificate assosciated with the Provisioning + /// Service + /// + /// + /// Resource group identifier. + /// + /// + /// ETag of the certificate + /// + /// + /// The name of the provisioning service. + /// + /// + /// This is a mandatory field, and is the logical name of the + /// certificate that the provisioning service will access by. + /// + /// + /// This is optional, and it is the Common Name of the certificate. + /// + /// + /// Raw data within the certificate. + /// + /// + /// Indicates if certificate has been verified by owner of the private + /// key. + /// + /// + /// A description that mentions the purpose of the certificate. + /// Possible values include: 'clientAuthentication', + /// 'serverAuthentication' + /// + /// + /// Time the certificate is created. + /// + /// + /// Time the certificate is last updated. + /// + /// + /// Indicates if the certificate contains a private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + /// + /// 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 ifMatch, string provisioningServiceName, string certificateName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Generate verification code for Proof of Possession. + /// + /// + /// The mandatory logical name of the certificate, that the + /// provisioning service uses to access. + /// + /// + /// ETag of the certificate. This is required to update an existing + /// certificate, and ignored while creating a brand new certificate. + /// + /// + /// name of resource group. + /// + /// + /// Name of provisioning service. + /// + /// + /// Common Name for the certificate. + /// + /// + /// Raw data of certificate. + /// + /// + /// Indicates if the certificate has been verified by owner of the + /// private key. + /// + /// + /// Description mentioning the purpose of the certificate. Possible + /// values include: 'clientAuthentication', 'serverAuthentication' + /// + /// + /// Certificate creation time. + /// + /// + /// Certificate last updated time. + /// + /// + /// Indicates if the certificate contains private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + /// + /// 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> GenerateVerificationCodeWithHttpMessagesAsync(string certificateName, string ifMatch, string resourceGroupName, string provisioningServiceName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Verify certificate's private key possession. + /// + /// + /// Verifies the certificate's private key possession by providing the + /// leaf cert issued by the verifying pre uploaded certificate. + /// + /// + /// The mandatory logical name of the certificate, that the + /// provisioning service uses to access. + /// + /// + /// ETag of the certificate. + /// + /// + /// The name of the certificate + /// + /// + /// Resource group name. + /// + /// + /// Provisioning service name. + /// + /// + /// Common Name for the certificate. + /// + /// + /// Raw data of certificate. + /// + /// + /// Indicates if the certificate has been verified by owner of the + /// private key. + /// + /// + /// Describe the purpose of the certificate. Possible values include: + /// 'clientAuthentication', 'serverAuthentication' + /// + /// + /// Certificate creation time. + /// + /// + /// Certificate last updated time. + /// + /// + /// Indicates if the certificate contains private key. + /// + /// + /// Random number generated to indicate Proof of Possession. + /// + /// + /// 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> VerifyCertificateWithHttpMessagesAsync(string certificateName, string ifMatch, VerificationCodeRequest request, string resourceGroupName, string provisioningServiceName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IDpsCertificatesOperations.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IDpsCertificatesOperations.cs new file mode 100644 index 000000000000..4a08b9116496 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IDpsCertificatesOperations.cs @@ -0,0 +1,52 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DpsCertificatesOperations operations. + /// + public partial interface IDpsCertificatesOperations + { + /// + /// Get all the certificates tied to the provisioning service. + /// + /// + /// Name of resource group. + /// + /// + /// Name of provisioning service to retrieve certificates for. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ListWithHttpMessagesAsync(string resourceGroupName, string provisioningServiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IIotDpsClient.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IIotDpsClient.cs new file mode 100644 index 000000000000..90bb04df9dd4 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IIotDpsClient.cs @@ -0,0 +1,92 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// API for using the Azure IoT Hub Device Provisioning Service features. + /// + public partial interface IIotDpsClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// The subscription identifier. + /// + string SubscriptionId { get; set; } + + /// + /// The version of the API. + /// + string ApiVersion { get; } + + /// + /// Gets or sets the preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// Gets or sets the retry timeout in seconds for Long Running + /// Operations. Default value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// When set to true a unique x-ms-client-request-id value is generated + /// and included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + + /// + /// Gets the IDpsCertificateOperations. + /// + IDpsCertificateOperations DpsCertificate { get; } + + /// + /// Gets the IIotDpsResourceOperations. + /// + IIotDpsResourceOperations IotDpsResource { get; } + + /// + /// Gets the IDpsCertificatesOperations. + /// + IDpsCertificatesOperations DpsCertificates { get; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IIotDpsResourceOperations.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IIotDpsResourceOperations.cs new file mode 100644 index 000000000000..38dd659835f4 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IIotDpsResourceOperations.cs @@ -0,0 +1,534 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IotDpsResourceOperations operations. + /// + public partial interface IIotDpsResourceOperations + { + /// + /// Get the non-security related metadata of the provisioning service. + /// + /// + /// Get the metadata of the provisioning service without SAS keys. + /// + /// + /// Name of the provisioning service to retrieve. + /// + /// + /// Resource group name. + /// + /// + /// 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 provisioningServiceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update the metadata of the provisioning service. + /// + /// + /// Create or update the metadata of the provisioning service. The + /// usual pattern to modify a property is to retrieve the provisioning + /// service metadata and security metadata, and then combine them with + /// the modified values in a new body to update the provisioning + /// service. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Description of the provisioning service to create or update. + /// + /// + /// 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 provisioningServiceName, ProvisioningServiceDescription iotDpsDescription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Update an existing provisioning service's tags. + /// + /// + /// Update an existing provisioning service's tags. to update other + /// fields use the CreateOrUpdate method + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Updated tag information to set into the provisioning service + /// instance. + /// + /// + /// 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 provisioningServiceName, TagsResource provisioningServiceTags, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete the Provisioning Service + /// + /// + /// Deletes the Provisioning Service. + /// + /// + /// Name of provisioning service to delete. + /// + /// + /// Resource group identifier. + /// + /// + /// 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 provisioningServiceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the provisioning services in a subscription. + /// + /// + /// List all the provisioning services for a given subscription id. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all provisioning services in the given resource + /// group. + /// + /// + /// Resource group identifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the status of a long running operation, such as create, update + /// or delete a provisioning service. + /// + /// + /// Operation id corresponding to long running operation. Use this to + /// poll for the status. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service that the operation is running on. + /// + /// + /// Async header used to poll on the status of the operation, obtained + /// while creating the long running 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> GetOperationResultWithHttpMessagesAsync(string operationId, string resourceGroupName, string provisioningServiceName, string asyncinfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get the list of valid SKUs for a provisioning service. + /// + /// + /// Gets the list of valid SKUs and tiers for a provisioning service. + /// + /// + /// Name of provisioning service. + /// + /// + /// Name of resource group. + /// + /// + /// 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>> ListValidSkusWithHttpMessagesAsync(string provisioningServiceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Check if a provisioning service name is available. + /// + /// + /// Check if a provisioning service name is available. This will + /// validate if the name is syntactically valid and if the name is + /// usable + /// + /// + /// Set the name parameter in the OperationInputs structure to the name + /// of the provisioning service to check. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CheckProvisioningServiceNameAvailabilityWithHttpMessagesAsync(OperationInputs arguments, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get the security metadata for a provisioning service. + /// + /// + /// List the primary and secondary keys for a provisioning service. + /// + /// + /// The provisioning service name to get the shared access keys for. + /// + /// + /// resource group name + /// + /// + /// 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>> ListKeysWithHttpMessagesAsync(string provisioningServiceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a shared access policy by name from a provisioning service. + /// + /// + /// List primary and secondary keys for a specific key name + /// + /// + /// Name of the provisioning service. + /// + /// + /// Logical key name to get key-values for. + /// + /// + /// The name of the resource group that contains the provisioning + /// service. + /// + /// + /// 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> ListKeysForKeyNameWithHttpMessagesAsync(string provisioningServiceName, string keyName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update the metadata of the provisioning service. + /// + /// + /// Create or update the metadata of the provisioning service. The + /// usual pattern to modify a property is to retrieve the provisioning + /// service metadata and security metadata, and then combine them with + /// the modified values in a new body to update the provisioning + /// service. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Description of the provisioning service to create or update. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string provisioningServiceName, ProvisioningServiceDescription iotDpsDescription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Update an existing provisioning service's tags. + /// + /// + /// Update an existing provisioning service's tags. to update other + /// fields use the CreateOrUpdate method + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Updated tag information to set into the provisioning service + /// instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string provisioningServiceName, TagsResource provisioningServiceTags, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete the Provisioning Service + /// + /// + /// Deletes the Provisioning Service. + /// + /// + /// Name of provisioning service to delete. + /// + /// + /// Resource group identifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string provisioningServiceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the provisioning services in a subscription. + /// + /// + /// List all the provisioning services for a given subscription id. + /// + /// + /// 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>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a list of all provisioning services in the given resource + /// group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get the list of valid SKUs for a provisioning service. + /// + /// + /// Gets the list of valid SKUs and tiers for a provisioning service. + /// + /// + /// 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>> ListValidSkusNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get the security metadata for a provisioning service. + /// + /// + /// List the primary and secondary keys for a provisioning service. + /// + /// + /// 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>> ListKeysNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IOperations.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IOperations.cs new file mode 100644 index 000000000000..4ffca0bd4ec3 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IOperations.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + public partial interface IOperations + { + /// + /// Lists all of the available Microsoft.Devices REST API operations. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all of the available Microsoft.Devices REST API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IotDpsClient.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IotDpsClient.cs new file mode 100644 index 000000000000..1077c59836fa --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IotDpsClient.cs @@ -0,0 +1,335 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// API for using the Azure IoT Hub Device Provisioning Service features. + /// + public partial class IotDpsClient : ServiceClient, IIotDpsClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// The subscription identifier. + /// + public string SubscriptionId { get; set; } + + /// + /// The version of the API. + /// + public string ApiVersion { get; private set; } + + /// + /// Gets or sets the preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// Gets or sets the retry timeout in seconds for Long Running Operations. + /// Default value is 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// When set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Gets the IDpsCertificateOperations. + /// + public virtual IDpsCertificateOperations DpsCertificate { get; private set; } + + /// + /// Gets the IIotDpsResourceOperations. + /// + public virtual IIotDpsResourceOperations IotDpsResource { get; private set; } + + /// + /// Gets the IDpsCertificatesOperations. + /// + public virtual IDpsCertificatesOperations DpsCertificates { get; private set; } + + /// + /// Initializes a new instance of the IotDpsClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected IotDpsClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the IotDpsClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected IotDpsClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the IotDpsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected IotDpsClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the IotDpsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected IotDpsClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the IotDpsClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public IotDpsClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the IotDpsClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public IotDpsClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the IotDpsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public IotDpsClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the IotDpsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public IotDpsClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Operations = new Operations(this); + DpsCertificate = new DpsCertificateOperations(this); + IotDpsResource = new IotDpsResourceOperations(this); + DpsCertificates = new DpsCertificatesOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2017-11-15"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IotDpsResourceOperations.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IotDpsResourceOperations.cs new file mode 100644 index 000000000000..48a881ae3c80 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IotDpsResourceOperations.cs @@ -0,0 +1,2994 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// IotDpsResourceOperations operations. + /// + internal partial class IotDpsResourceOperations : IServiceOperations, IIotDpsResourceOperations + { + /// + /// Initializes a new instance of the IotDpsResourceOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal IotDpsResourceOperations(IotDpsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the IotDpsClient + /// + public IotDpsClient Client { get; private set; } + + /// + /// Get the non-security related metadata of the provisioning service. + /// + /// + /// Get the metadata of the provisioning service without SAS keys. + /// + /// + /// Name of the provisioning service to retrieve. + /// + /// + /// Resource group name. + /// + /// + /// 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 provisioningServiceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.Devices/provisioningServices/{provisioningServiceName}").ToString(); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update the metadata of the provisioning service. + /// + /// + /// Create or update the metadata of the provisioning service. The usual + /// pattern to modify a property is to retrieve the provisioning service + /// metadata and security metadata, and then combine them with the modified + /// values in a new body to update the provisioning service. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Description of the provisioning service to create or update. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string provisioningServiceName, ProvisioningServiceDescription iotDpsDescription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, provisioningServiceName, iotDpsDescription, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update an existing provisioning service's tags. + /// + /// + /// Update an existing provisioning service's tags. to update other fields use + /// the CreateOrUpdate method + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Updated tag information to set into the provisioning service instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string provisioningServiceName, TagsResource provisioningServiceTags, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, provisioningServiceName, provisioningServiceTags, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete the Provisioning Service + /// + /// + /// Deletes the Provisioning Service. + /// + /// + /// Name of provisioning service to delete. + /// + /// + /// Resource group identifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string provisioningServiceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(provisioningServiceName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get all the provisioning services in a subscription. + /// + /// + /// List all the provisioning services for a given subscription id. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all provisioning services in the given resource group. + /// + /// + /// Resource group identifier. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the status of a long running operation, such as create, update or + /// delete a provisioning service. + /// + /// + /// Operation id corresponding to long running operation. Use this to poll for + /// the status. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service that the operation is running on. + /// + /// + /// Async header used to poll on the status of the operation, obtained while + /// creating the long running 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> GetOperationResultWithHttpMessagesAsync(string operationId, string resourceGroupName, string provisioningServiceName, string asyncinfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (operationId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "operationId"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (asyncinfo == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "asyncinfo"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("operationId", operationId); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("asyncinfo", asyncinfo); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetOperationResult", 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.Devices/provisioningServices/{provisioningServiceName}/operationresults/{operationId}").ToString(); + _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(operationId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + List _queryParameters = new List(); + if (asyncinfo != null) + { + _queryParameters.Add(string.Format("asyncinfo={0}", System.Uri.EscapeDataString(asyncinfo))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get the list of valid SKUs for a provisioning service. + /// + /// + /// Gets the list of valid SKUs and tiers for a provisioning service. + /// + /// + /// Name of provisioning service. + /// + /// + /// Name of resource group. + /// + /// + /// 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>> ListValidSkusWithHttpMessagesAsync(string provisioningServiceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListValidSkus", 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.Devices/provisioningServices/{provisioningServiceName}/skus").ToString(); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Check if a provisioning service name is available. + /// + /// + /// Check if a provisioning service name is available. This will validate if + /// the name is syntactically valid and if the name is usable + /// + /// + /// Set the name parameter in the OperationInputs structure to the name of the + /// provisioning service to check. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CheckProvisioningServiceNameAvailabilityWithHttpMessagesAsync(OperationInputs arguments, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (arguments == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "arguments"); + } + if (arguments != null) + { + arguments.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("arguments", arguments); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckProvisioningServiceNameAvailability", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(arguments != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(arguments, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get the security metadata for a provisioning service. + /// + /// + /// List the primary and secondary keys for a provisioning service. + /// + /// + /// The provisioning service name to get the shared access keys for. + /// + /// + /// resource group name + /// + /// + /// 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>> ListKeysWithHttpMessagesAsync(string provisioningServiceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListKeys", 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.Devices/provisioningServices/{provisioningServiceName}/listkeys").ToString(); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // 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 ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a shared access policy by name from a provisioning service. + /// + /// + /// List primary and secondary keys for a specific key name + /// + /// + /// Name of the provisioning service. + /// + /// + /// Logical key name to get key-values for. + /// + /// + /// The name of the resource group that contains the provisioning service. + /// + /// + /// 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> ListKeysForKeyNameWithHttpMessagesAsync(string provisioningServiceName, string keyName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (keyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "keyName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("keyName", keyName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListKeysForKeyName", 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.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys").ToString(); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + _url = _url.Replace("{keyName}", System.Uri.EscapeDataString(keyName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // 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 ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update the metadata of the provisioning service. + /// + /// + /// Create or update the metadata of the provisioning service. The usual + /// pattern to modify a property is to retrieve the provisioning service + /// metadata and security metadata, and then combine them with the modified + /// values in a new body to update the provisioning service. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Description of the provisioning service to create or update. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string provisioningServiceName, ProvisioningServiceDescription iotDpsDescription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (iotDpsDescription == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "iotDpsDescription"); + } + if (iotDpsDescription != null) + { + iotDpsDescription.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("iotDpsDescription", iotDpsDescription); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(iotDpsDescription != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(iotDpsDescription, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Update an existing provisioning service's tags. + /// + /// + /// Update an existing provisioning service's tags. to update other fields use + /// the CreateOrUpdate method + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Updated tag information to set into the provisioning service instance. + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string provisioningServiceName, TagsResource provisioningServiceTags, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (provisioningServiceTags == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceTags"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("provisioningServiceTags", provisioningServiceTags); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(provisioningServiceTags != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(provisioningServiceTags, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete the Provisioning Service + /// + /// + /// Deletes the Provisioning Service. + /// + /// + /// Name of provisioning service to delete. + /// + /// + /// Resource group identifier. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string provisioningServiceName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (provisioningServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "provisioningServiceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("provisioningServiceName", provisioningServiceName); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}").ToString(); + _url = _url.Replace("{provisioningServiceName}", System.Uri.EscapeDataString(provisioningServiceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204 && (int)_statusCode != 404) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the provisioning services in a subscription. + /// + /// + /// List all the provisioning services for a given subscription id. + /// + /// + /// 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>> ListBySubscriptionNextWithHttpMessagesAsync(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, "ListBySubscriptionNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a list of all provisioning services in the given resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(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, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get the list of valid SKUs for a provisioning service. + /// + /// + /// Gets the list of valid SKUs and tiers for a provisioning service. + /// + /// + /// 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>> ListValidSkusNextWithHttpMessagesAsync(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, "ListValidSkusNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get the security metadata for a provisioning service. + /// + /// + /// List the primary and secondary keys for a provisioning service. + /// + /// + /// 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>> ListKeysNextWithHttpMessagesAsync(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, "ListKeysNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // 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 ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IotDpsResourceOperationsExtensions.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IotDpsResourceOperationsExtensions.cs new file mode 100644 index 000000000000..76ff87ac2416 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/IotDpsResourceOperationsExtensions.cs @@ -0,0 +1,849 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for IotDpsResourceOperations. + /// + public static partial class IotDpsResourceOperationsExtensions + { + /// + /// Get the non-security related metadata of the provisioning service. + /// + /// + /// Get the metadata of the provisioning service without SAS keys. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the provisioning service to retrieve. + /// + /// + /// Resource group name. + /// + public static ProvisioningServiceDescription Get(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName) + { + return operations.GetAsync(provisioningServiceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Get the non-security related metadata of the provisioning service. + /// + /// + /// Get the metadata of the provisioning service without SAS keys. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the provisioning service to retrieve. + /// + /// + /// Resource group name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(provisioningServiceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update the metadata of the provisioning service. + /// + /// + /// Create or update the metadata of the provisioning service. The usual + /// pattern to modify a property is to retrieve the provisioning service + /// metadata and security metadata, and then combine them with the modified + /// values in a new body to update the provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Description of the provisioning service to create or update. + /// + public static ProvisioningServiceDescription CreateOrUpdate(this IIotDpsResourceOperations operations, string resourceGroupName, string provisioningServiceName, ProvisioningServiceDescription iotDpsDescription) + { + return operations.CreateOrUpdateAsync(resourceGroupName, provisioningServiceName, iotDpsDescription).GetAwaiter().GetResult(); + } + + /// + /// Create or update the metadata of the provisioning service. + /// + /// + /// Create or update the metadata of the provisioning service. The usual + /// pattern to modify a property is to retrieve the provisioning service + /// metadata and security metadata, and then combine them with the modified + /// values in a new body to update the provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Description of the provisioning service to create or update. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IIotDpsResourceOperations operations, string resourceGroupName, string provisioningServiceName, ProvisioningServiceDescription iotDpsDescription, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, provisioningServiceName, iotDpsDescription, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Update an existing provisioning service's tags. + /// + /// + /// Update an existing provisioning service's tags. to update other fields use + /// the CreateOrUpdate method + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Updated tag information to set into the provisioning service instance. + /// + public static ProvisioningServiceDescription Update(this IIotDpsResourceOperations operations, string resourceGroupName, string provisioningServiceName, TagsResource provisioningServiceTags) + { + return operations.UpdateAsync(resourceGroupName, provisioningServiceName, provisioningServiceTags).GetAwaiter().GetResult(); + } + + /// + /// Update an existing provisioning service's tags. + /// + /// + /// Update an existing provisioning service's tags. to update other fields use + /// the CreateOrUpdate method + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Updated tag information to set into the provisioning service instance. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IIotDpsResourceOperations operations, string resourceGroupName, string provisioningServiceName, TagsResource provisioningServiceTags, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, provisioningServiceName, provisioningServiceTags, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete the Provisioning Service + /// + /// + /// Deletes the Provisioning Service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of provisioning service to delete. + /// + /// + /// Resource group identifier. + /// + public static void Delete(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName) + { + operations.DeleteAsync(provisioningServiceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Delete the Provisioning Service + /// + /// + /// Deletes the Provisioning Service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of provisioning service to delete. + /// + /// + /// Resource group identifier. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(provisioningServiceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Get all the provisioning services in a subscription. + /// + /// + /// List all the provisioning services for a given subscription id. + /// + /// + /// The operations group for this extension method. + /// + public static IPage ListBySubscription(this IIotDpsResourceOperations operations) + { + return operations.ListBySubscriptionAsync().GetAwaiter().GetResult(); + } + + /// + /// Get all the provisioning services in a subscription. + /// + /// + /// List all the provisioning services for a given subscription id. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionAsync(this IIotDpsResourceOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all provisioning services in the given resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + public static IPage ListByResourceGroup(this IIotDpsResourceOperations operations, string resourceGroupName) + { + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all provisioning services in the given resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IIotDpsResourceOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the status of a long running operation, such as create, update or + /// delete a provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Operation id corresponding to long running operation. Use this to poll for + /// the status. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service that the operation is running on. + /// + /// + /// Async header used to poll on the status of the operation, obtained while + /// creating the long running operation. + /// + public static AsyncOperationResult GetOperationResult(this IIotDpsResourceOperations operations, string operationId, string resourceGroupName, string provisioningServiceName, string asyncinfo) + { + return operations.GetOperationResultAsync(operationId, resourceGroupName, provisioningServiceName, asyncinfo).GetAwaiter().GetResult(); + } + + /// + /// Gets the status of a long running operation, such as create, update or + /// delete a provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Operation id corresponding to long running operation. Use this to poll for + /// the status. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service that the operation is running on. + /// + /// + /// Async header used to poll on the status of the operation, obtained while + /// creating the long running operation. + /// + /// + /// The cancellation token. + /// + public static async Task GetOperationResultAsync(this IIotDpsResourceOperations operations, string operationId, string resourceGroupName, string provisioningServiceName, string asyncinfo, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetOperationResultWithHttpMessagesAsync(operationId, resourceGroupName, provisioningServiceName, asyncinfo, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get the list of valid SKUs for a provisioning service. + /// + /// + /// Gets the list of valid SKUs and tiers for a provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of provisioning service. + /// + /// + /// Name of resource group. + /// + public static IPage ListValidSkus(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName) + { + return operations.ListValidSkusAsync(provisioningServiceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Get the list of valid SKUs for a provisioning service. + /// + /// + /// Gets the list of valid SKUs and tiers for a provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of provisioning service. + /// + /// + /// Name of resource group. + /// + /// + /// The cancellation token. + /// + public static async Task> ListValidSkusAsync(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListValidSkusWithHttpMessagesAsync(provisioningServiceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Check if a provisioning service name is available. + /// + /// + /// Check if a provisioning service name is available. This will validate if + /// the name is syntactically valid and if the name is usable + /// + /// + /// The operations group for this extension method. + /// + /// + /// Set the name parameter in the OperationInputs structure to the name of the + /// provisioning service to check. + /// + public static NameAvailabilityInfo CheckProvisioningServiceNameAvailability(this IIotDpsResourceOperations operations, OperationInputs arguments) + { + return operations.CheckProvisioningServiceNameAvailabilityAsync(arguments).GetAwaiter().GetResult(); + } + + /// + /// Check if a provisioning service name is available. + /// + /// + /// Check if a provisioning service name is available. This will validate if + /// the name is syntactically valid and if the name is usable + /// + /// + /// The operations group for this extension method. + /// + /// + /// Set the name parameter in the OperationInputs structure to the name of the + /// provisioning service to check. + /// + /// + /// The cancellation token. + /// + public static async Task CheckProvisioningServiceNameAvailabilityAsync(this IIotDpsResourceOperations operations, OperationInputs arguments, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckProvisioningServiceNameAvailabilityWithHttpMessagesAsync(arguments, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get the security metadata for a provisioning service. + /// + /// + /// List the primary and secondary keys for a provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The provisioning service name to get the shared access keys for. + /// + /// + /// resource group name + /// + public static IPage ListKeys(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName) + { + return operations.ListKeysAsync(provisioningServiceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Get the security metadata for a provisioning service. + /// + /// + /// List the primary and secondary keys for a provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The provisioning service name to get the shared access keys for. + /// + /// + /// resource group name + /// + /// + /// The cancellation token. + /// + public static async Task> ListKeysAsync(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListKeysWithHttpMessagesAsync(provisioningServiceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a shared access policy by name from a provisioning service. + /// + /// + /// List primary and secondary keys for a specific key name + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the provisioning service. + /// + /// + /// Logical key name to get key-values for. + /// + /// + /// The name of the resource group that contains the provisioning service. + /// + public static SharedAccessSignatureAuthorizationRuleAccessRightsDescription ListKeysForKeyName(this IIotDpsResourceOperations operations, string provisioningServiceName, string keyName, string resourceGroupName) + { + return operations.ListKeysForKeyNameAsync(provisioningServiceName, keyName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Get a shared access policy by name from a provisioning service. + /// + /// + /// List primary and secondary keys for a specific key name + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the provisioning service. + /// + /// + /// Logical key name to get key-values for. + /// + /// + /// The name of the resource group that contains the provisioning service. + /// + /// + /// The cancellation token. + /// + public static async Task ListKeysForKeyNameAsync(this IIotDpsResourceOperations operations, string provisioningServiceName, string keyName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListKeysForKeyNameWithHttpMessagesAsync(provisioningServiceName, keyName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update the metadata of the provisioning service. + /// + /// + /// Create or update the metadata of the provisioning service. The usual + /// pattern to modify a property is to retrieve the provisioning service + /// metadata and security metadata, and then combine them with the modified + /// values in a new body to update the provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Description of the provisioning service to create or update. + /// + public static ProvisioningServiceDescription BeginCreateOrUpdate(this IIotDpsResourceOperations operations, string resourceGroupName, string provisioningServiceName, ProvisioningServiceDescription iotDpsDescription) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, provisioningServiceName, iotDpsDescription).GetAwaiter().GetResult(); + } + + /// + /// Create or update the metadata of the provisioning service. + /// + /// + /// Create or update the metadata of the provisioning service. The usual + /// pattern to modify a property is to retrieve the provisioning service + /// metadata and security metadata, and then combine them with the modified + /// values in a new body to update the provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Description of the provisioning service to create or update. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IIotDpsResourceOperations operations, string resourceGroupName, string provisioningServiceName, ProvisioningServiceDescription iotDpsDescription, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, provisioningServiceName, iotDpsDescription, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Update an existing provisioning service's tags. + /// + /// + /// Update an existing provisioning service's tags. to update other fields use + /// the CreateOrUpdate method + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Updated tag information to set into the provisioning service instance. + /// + public static ProvisioningServiceDescription BeginUpdate(this IIotDpsResourceOperations operations, string resourceGroupName, string provisioningServiceName, TagsResource provisioningServiceTags) + { + return operations.BeginUpdateAsync(resourceGroupName, provisioningServiceName, provisioningServiceTags).GetAwaiter().GetResult(); + } + + /// + /// Update an existing provisioning service's tags. + /// + /// + /// Update an existing provisioning service's tags. to update other fields use + /// the CreateOrUpdate method + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource group identifier. + /// + /// + /// Name of provisioning service to create or update. + /// + /// + /// Updated tag information to set into the provisioning service instance. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IIotDpsResourceOperations operations, string resourceGroupName, string provisioningServiceName, TagsResource provisioningServiceTags, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, provisioningServiceName, provisioningServiceTags, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete the Provisioning Service + /// + /// + /// Deletes the Provisioning Service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of provisioning service to delete. + /// + /// + /// Resource group identifier. + /// + public static void BeginDelete(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName) + { + operations.BeginDeleteAsync(provisioningServiceName, resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Delete the Provisioning Service + /// + /// + /// Deletes the Provisioning Service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of provisioning service to delete. + /// + /// + /// Resource group identifier. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(provisioningServiceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Get all the provisioning services in a subscription. + /// + /// + /// List all the provisioning services for a given subscription id. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListBySubscriptionNext(this IIotDpsResourceOperations operations, string nextPageLink) + { + return operations.ListBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get all the provisioning services in a subscription. + /// + /// + /// List all the provisioning services for a given subscription id. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionNextAsync(this IIotDpsResourceOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a list of all provisioning services in the given resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IIotDpsResourceOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get a list of all provisioning services in the given resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this IIotDpsResourceOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get the list of valid SKUs for a provisioning service. + /// + /// + /// Gets the list of valid SKUs and tiers for a provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListValidSkusNext(this IIotDpsResourceOperations operations, string nextPageLink) + { + return operations.ListValidSkusNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get the list of valid SKUs for a provisioning service. + /// + /// + /// Gets the list of valid SKUs and tiers for a provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListValidSkusNextAsync(this IIotDpsResourceOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListValidSkusNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get the security metadata for a provisioning service. + /// + /// + /// List the primary and secondary keys for a provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListKeysNext(this IIotDpsResourceOperations operations, string nextPageLink) + { + return operations.ListKeysNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get the security metadata for a provisioning service. + /// + /// + /// List the primary and secondary keys for a provisioning service. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListKeysNextAsync(this IIotDpsResourceOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListKeysNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/AccessRightsDescription.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/AccessRightsDescription.cs new file mode 100644 index 000000000000..629d33aad14b --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/AccessRightsDescription.cs @@ -0,0 +1,26 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + + /// + /// Defines values for AccessRightsDescription. + /// + public static class AccessRightsDescription + { + public const string ServiceConfig = "ServiceConfig"; + public const string EnrollmentRead = "EnrollmentRead"; + public const string EnrollmentWrite = "EnrollmentWrite"; + public const string DeviceConnect = "DeviceConnect"; + public const string RegistrationStatusRead = "RegistrationStatusRead"; + public const string RegistrationStatusWrite = "RegistrationStatusWrite"; + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/AllocationPolicy.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/AllocationPolicy.cs new file mode 100644 index 000000000000..869a29ddfab9 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/AllocationPolicy.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + + /// + /// Defines values for AllocationPolicy. + /// + public static class AllocationPolicy + { + public const string Hashed = "Hashed"; + public const string GeoLatency = "GeoLatency"; + public const string Static = "Static"; + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/AsyncOperationResult.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/AsyncOperationResult.cs new file mode 100644 index 000000000000..b34925448456 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/AsyncOperationResult.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Result of a long running operation. + /// + public partial class AsyncOperationResult + { + /// + /// Initializes a new instance of the AsyncOperationResult class. + /// + public AsyncOperationResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AsyncOperationResult class. + /// + /// current status of a long running + /// operation. + /// Error message containing code, description and + /// details + public AsyncOperationResult(string status = default(string), ErrorMesssage error = default(ErrorMesssage)) + { + Status = status; + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets current status of a long running operation. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets error message containing code, description and details + /// + [JsonProperty(PropertyName = "error")] + public ErrorMesssage Error { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateBodyDescription.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateBodyDescription.cs new file mode 100644 index 000000000000..9f0f9360730b --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateBodyDescription.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The JSON-serialized X509 Certificate. + /// + public partial class CertificateBodyDescription + { + /// + /// Initializes a new instance of the CertificateBodyDescription class. + /// + public CertificateBodyDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CertificateBodyDescription class. + /// + /// Base-64 representation of the X509 leaf + /// certificate .cer file or just .pem file content. + public CertificateBodyDescription(string certificate = default(string)) + { + Certificate = certificate; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets base-64 representation of the X509 leaf certificate + /// .cer file or just .pem file content. + /// + [JsonProperty(PropertyName = "certificate")] + public string Certificate { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateListDescription.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateListDescription.cs new file mode 100644 index 000000000000..4edf2dea0527 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateListDescription.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The JSON-serialized array of Certificate objects. + /// + public partial class CertificateListDescription + { + /// + /// Initializes a new instance of the CertificateListDescription class. + /// + public CertificateListDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CertificateListDescription class. + /// + /// The array of Certificate objects. + public CertificateListDescription(IList value = default(IList)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the array of Certificate objects. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateProperties.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateProperties.cs new file mode 100644 index 000000000000..7d007bb8dbe1 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateProperties.cs @@ -0,0 +1,100 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The description of an X509 CA Certificate. + /// + public partial class CertificateProperties + { + /// + /// Initializes a new instance of the CertificateProperties class. + /// + public CertificateProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CertificateProperties class. + /// + /// The certificate's subject name. + /// The certificate's expiration date and + /// time. + /// The certificate's thumbprint. + /// Determines whether certificate has been + /// verified. + /// The certificate's creation date and + /// time. + /// The certificate's last update date and + /// time. + public CertificateProperties(string subject = default(string), System.DateTime? expiry = default(System.DateTime?), string thumbprint = default(string), bool? isVerified = default(bool?), System.DateTime? created = default(System.DateTime?), System.DateTime? updated = default(System.DateTime?)) + { + Subject = subject; + Expiry = expiry; + Thumbprint = thumbprint; + IsVerified = isVerified; + Created = created; + Updated = updated; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the certificate's subject name. + /// + [JsonProperty(PropertyName = "subject")] + public string Subject { get; private set; } + + /// + /// Gets the certificate's expiration date and time. + /// + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "expiry")] + public System.DateTime? Expiry { get; private set; } + + /// + /// Gets the certificate's thumbprint. + /// + [JsonProperty(PropertyName = "thumbprint")] + public string Thumbprint { get; private set; } + + /// + /// Gets determines whether certificate has been verified. + /// + [JsonProperty(PropertyName = "isVerified")] + public bool? IsVerified { get; private set; } + + /// + /// Gets the certificate's creation date and time. + /// + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "created")] + public System.DateTime? Created { get; private set; } + + /// + /// Gets the certificate's last update date and time. + /// + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "updated")] + public System.DateTime? Updated { get; private set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificatePurpose.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificatePurpose.cs new file mode 100644 index 000000000000..8d42c4fb0575 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificatePurpose.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + + /// + /// Defines values for CertificatePurpose. + /// + public static class CertificatePurpose + { + public const string ClientAuthentication = "clientAuthentication"; + public const string ServerAuthentication = "serverAuthentication"; + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateResponse.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateResponse.cs new file mode 100644 index 000000000000..2ddbfd09bf8f --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/CertificateResponse.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The X509 Certificate. + /// + public partial class CertificateResponse : IResource + { + /// + /// Initializes a new instance of the CertificateResponse class. + /// + public CertificateResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CertificateResponse class. + /// + /// properties of a certificate + /// The resource identifier. + /// The name of the certificate. + /// The entity tag. + /// The resource type. + public CertificateResponse(CertificateProperties properties = default(CertificateProperties), string id = default(string), string name = default(string), string etag = default(string), string type = default(string)) + { + Properties = properties; + Id = id; + Name = name; + Etag = etag; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets properties of a certificate + /// + [JsonProperty(PropertyName = "properties")] + public CertificateProperties Properties { get; set; } + + /// + /// Gets the resource identifier. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the certificate. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the entity tag. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + /// + /// Gets the resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/ErrorDetails.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ErrorDetails.cs similarity index 57% rename from src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/ErrorDetails.cs rename to src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ErrorDetails.cs index 9cf7cd1529af..80bf511666df 100644 --- a/src/SDKs/DataLake.Store/Management.DataLake.Store/Generated/Models/ErrorDetails.cs +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ErrorDetails.cs @@ -8,13 +8,13 @@ // regenerated. // -namespace Microsoft.Azure.Management.DataLake.Store.Models +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models { using Newtonsoft.Json; using System.Linq; /// - /// Data Lake Store error details information + /// Error details. /// public partial class ErrorDetails { @@ -29,17 +29,16 @@ 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)) + /// The error code. + /// The HTTP status code. + /// The error message. + /// The error details. + public ErrorDetails(string code = default(string), string httpStatusCode = default(string), string message = default(string), string details = default(string)) { Code = code; + HttpStatusCode = httpStatusCode; Message = message; - Target = target; + Details = details; CustomInit(); } @@ -49,23 +48,28 @@ public ErrorDetails() partial void CustomInit(); /// - /// Gets the HTTP status code or error code associated with this error + /// Gets the error code. /// - [JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "Code")] public string Code { get; private set; } /// - /// Gets the error message localized based on Accept-Language + /// Gets the HTTP status code. /// - [JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "HttpStatusCode")] + public string HttpStatusCode { get; private set; } + + /// + /// Gets the error message. + /// + [JsonProperty(PropertyName = "Message")] public string Message { get; private set; } /// - /// Gets the target of the particular error (for example, the name of - /// the property in error). + /// Gets the error details. /// - [JsonProperty(PropertyName = "target")] - public string Target { get; private set; } + [JsonProperty(PropertyName = "Details")] + public string Details { get; private set; } } } diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ErrorDetailsException.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ErrorDetailsException.cs new file mode 100644 index 000000000000..d8daf7716fa1 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ErrorDetailsException.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Microsoft.Rest; + + /// + /// Exception thrown for an invalid response with ErrorDetails information. + /// + public partial class ErrorDetailsException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public ErrorDetails Body { get; set; } + + /// + /// Initializes a new instance of the ErrorDetailsException class. + /// + public ErrorDetailsException() + { + } + + /// + /// Initializes a new instance of the ErrorDetailsException class. + /// + /// The exception message. + public ErrorDetailsException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorDetailsException class. + /// + /// The exception message. + /// Inner exception. + public ErrorDetailsException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ErrorMesssage.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ErrorMesssage.cs new file mode 100644 index 000000000000..00ace596ad62 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ErrorMesssage.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Error response containing message and code. + /// + public partial class ErrorMesssage + { + /// + /// Initializes a new instance of the ErrorMesssage class. + /// + public ErrorMesssage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorMesssage class. + /// + /// standard error code + /// standard error description + /// detailed summary of error + public ErrorMesssage(string code = default(string), string message = default(string), string details = default(string)) + { + Code = code; + Message = message; + Details = details; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets standard error code + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets standard error description + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets detailed summary of error + /// + [JsonProperty(PropertyName = "details")] + public string Details { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsPropertiesDescription.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsPropertiesDescription.cs new file mode 100644 index 000000000000..dee983613f06 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsPropertiesDescription.cs @@ -0,0 +1,132 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// the service specific properties of a provisoning service, including + /// keys, linked iot hubs, current state, and system generated properties + /// such as hostname and idScope + /// + public partial class IotDpsPropertiesDescription + { + /// + /// Initializes a new instance of the IotDpsPropertiesDescription + /// class. + /// + public IotDpsPropertiesDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IotDpsPropertiesDescription + /// class. + /// + /// Current state of the provisioning service. + /// Possible values include: 'Activating', 'Active', 'Deleting', + /// 'Deleted', 'ActivationFailed', 'DeletionFailed', 'Transitioning', + /// 'Suspending', 'Suspended', 'Resuming', 'FailingOver', + /// 'FailoverFailed' + /// The ARM provisioning state of the + /// provisioning service. + /// List of IoT hubs assosciated with this + /// provisioning service. + /// Allocation policy to be used by this + /// provisioning service. Possible values include: 'Hashed', + /// 'GeoLatency', 'Static' + /// Service endpoint for + /// provisioning service. + /// Device endpoint for this + /// provisioning service. + /// Unique identifier of this provisioning + /// service. + /// List of authorization keys for + /// a provisioning service. + public IotDpsPropertiesDescription(string state = default(string), string provisioningState = default(string), IList iotHubs = default(IList), string allocationPolicy = default(string), string serviceOperationsHostName = default(string), string deviceProvisioningHostName = default(string), string idScope = default(string), IList authorizationPolicies = default(IList)) + { + State = state; + ProvisioningState = provisioningState; + IotHubs = iotHubs; + AllocationPolicy = allocationPolicy; + ServiceOperationsHostName = serviceOperationsHostName; + DeviceProvisioningHostName = deviceProvisioningHostName; + IdScope = idScope; + AuthorizationPolicies = authorizationPolicies; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets current state of the provisioning service. Possible + /// values include: 'Activating', 'Active', 'Deleting', 'Deleted', + /// 'ActivationFailed', 'DeletionFailed', 'Transitioning', + /// 'Suspending', 'Suspended', 'Resuming', 'FailingOver', + /// 'FailoverFailed' + /// + [JsonProperty(PropertyName = "state")] + public string State { get; set; } + + /// + /// Gets or sets the ARM provisioning state of the provisioning + /// service. + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets or sets list of IoT hubs assosciated with this provisioning + /// service. + /// + [JsonProperty(PropertyName = "iotHubs")] + public IList IotHubs { get; set; } + + /// + /// Gets or sets allocation policy to be used by this provisioning + /// service. Possible values include: 'Hashed', 'GeoLatency', 'Static' + /// + [JsonProperty(PropertyName = "allocationPolicy")] + public string AllocationPolicy { get; set; } + + /// + /// Gets service endpoint for provisioning service. + /// + [JsonProperty(PropertyName = "serviceOperationsHostName")] + public string ServiceOperationsHostName { get; private set; } + + /// + /// Gets device endpoint for this provisioning service. + /// + [JsonProperty(PropertyName = "deviceProvisioningHostName")] + public string DeviceProvisioningHostName { get; private set; } + + /// + /// Gets unique identifier of this provisioning service. + /// + [JsonProperty(PropertyName = "idScope")] + public string IdScope { get; private set; } + + /// + /// Gets or sets list of authorization keys for a provisioning service. + /// + [JsonProperty(PropertyName = "authorizationPolicies")] + public IList AuthorizationPolicies { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsSku.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsSku.cs new file mode 100644 index 000000000000..1412ef27c11f --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsSku.cs @@ -0,0 +1,21 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + + /// + /// Defines values for IotDpsSku. + /// + public static class IotDpsSku + { + public const string S1 = "S1"; + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsSkuDefinition.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsSkuDefinition.cs new file mode 100644 index 000000000000..9cd9ba2244d4 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsSkuDefinition.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Available Sku's of tier and units. + /// + public partial class IotDpsSkuDefinition + { + /// + /// Initializes a new instance of the IotDpsSkuDefinition class. + /// + public IotDpsSkuDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IotDpsSkuDefinition class. + /// + /// Sku name. Possible values include: 'S1' + public IotDpsSkuDefinition(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets sku name. Possible values include: 'S1' + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsSkuInfo.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsSkuInfo.cs new file mode 100644 index 000000000000..6b0738f5cda6 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotDpsSkuInfo.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// List of possible provisoning service SKUs. + /// + public partial class IotDpsSkuInfo + { + /// + /// Initializes a new instance of the IotDpsSkuInfo class. + /// + public IotDpsSkuInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IotDpsSkuInfo class. + /// + /// Sku name. Possible values include: 'S1' + /// Pricing tier name of the provisioning + /// service. + /// The number of units to provision + public IotDpsSkuInfo(string name = default(string), string tier = default(string), long? capacity = default(long?)) + { + Name = name; + Tier = tier; + Capacity = capacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets sku name. Possible values include: 'S1' + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets pricing tier name of the provisioning service. + /// + [JsonProperty(PropertyName = "tier")] + public string Tier { get; private set; } + + /// + /// Gets or sets the number of units to provision + /// + [JsonProperty(PropertyName = "capacity")] + public long? Capacity { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotHubDefinitionDescription.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotHubDefinitionDescription.cs new file mode 100644 index 000000000000..087abaae8f2d --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/IotHubDefinitionDescription.cs @@ -0,0 +1,107 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Description of the IoT hub. + /// + public partial class IotHubDefinitionDescription + { + /// + /// Initializes a new instance of the IotHubDefinitionDescription + /// class. + /// + public IotHubDefinitionDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IotHubDefinitionDescription + /// class. + /// + /// Connection string og the IoT + /// hub. + /// ARM region of the IoT hub. + /// flag for applying + /// allocationPolicy or not for a given iot hub. + /// weight to apply for a given iot + /// h. + /// Host name of the IoT hub. + public IotHubDefinitionDescription(string connectionString, string location, bool? applyAllocationPolicy = default(bool?), int? allocationWeight = default(int?), string name = default(string)) + { + ApplyAllocationPolicy = applyAllocationPolicy; + AllocationWeight = allocationWeight; + Name = name; + ConnectionString = connectionString; + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets flag for applying allocationPolicy or not for a given + /// iot hub. + /// + [JsonProperty(PropertyName = "applyAllocationPolicy")] + public bool? ApplyAllocationPolicy { get; set; } + + /// + /// Gets or sets weight to apply for a given iot h. + /// + [JsonProperty(PropertyName = "allocationWeight")] + public int? AllocationWeight { get; set; } + + /// + /// Gets host name of the IoT hub. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets or sets connection string og the IoT hub. + /// + [JsonProperty(PropertyName = "connectionString")] + public string ConnectionString { get; set; } + + /// + /// Gets or sets ARM region of the IoT hub. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ConnectionString == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ConnectionString"); + } + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + } + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/NameAvailabilityInfo.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/NameAvailabilityInfo.cs new file mode 100644 index 000000000000..12125656a6c0 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/NameAvailabilityInfo.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Description of name availability. + /// + public partial class NameAvailabilityInfo + { + /// + /// Initializes a new instance of the NameAvailabilityInfo class. + /// + public NameAvailabilityInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NameAvailabilityInfo class. + /// + /// specifies if a name is available or + /// not + /// specifies the reason a name is unavailable. + /// Possible values include: 'Invalid', 'AlreadyExists' + /// message containing a etailed reason name is + /// unavailable + public NameAvailabilityInfo(bool? nameAvailable = default(bool?), string reason = default(string), string message = default(string)) + { + NameAvailable = nameAvailable; + Reason = reason; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies if a name is available or not + /// + [JsonProperty(PropertyName = "nameAvailable")] + public bool? NameAvailable { get; set; } + + /// + /// Gets or sets specifies the reason a name is unavailable. Possible + /// values include: 'Invalid', 'AlreadyExists' + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + /// + /// Gets or sets message containing a etailed reason name is + /// unavailable + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/NameUnavailabilityReason.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/NameUnavailabilityReason.cs new file mode 100644 index 000000000000..e81ab9e6f9b7 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/NameUnavailabilityReason.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + + /// + /// Defines values for NameUnavailabilityReason. + /// + public static class NameUnavailabilityReason + { + public const string Invalid = "Invalid"; + public const string AlreadyExists = "AlreadyExists"; + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/Operation.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/Operation.cs new file mode 100644 index 000000000000..6af1781fa9d6 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/Operation.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// IoT Hub REST API operation. + /// + public partial class Operation + { + /// + /// Initializes a new instance of the Operation class. + /// + public Operation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Operation class. + /// + /// Operation name: {provider}/{resource}/{read | + /// write | action | delete} + /// The object that represents the + /// operation. + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay)) + { + Name = name; + Display = display; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets operation name: {provider}/{resource}/{read | write | action | + /// delete} + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets or sets the object that represents the operation. + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplay Display { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/OperationDisplay.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/OperationDisplay.cs new file mode 100644 index 000000000000..7dc145ee72e5 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/OperationDisplay.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The object that represents the operation. + /// + public partial class OperationDisplay + { + /// + /// Initializes a new instance of the OperationDisplay class. + /// + public OperationDisplay() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplay class. + /// + /// Service provider: Microsoft Devices. + /// Resource Type: ProvisioningServices. + /// Name of the operation. + public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string)) + { + Provider = provider; + Resource = resource; + Operation = operation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets service provider: Microsoft Devices. + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; private set; } + + /// + /// Gets resource Type: ProvisioningServices. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; private set; } + + /// + /// Gets name of the operation. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; private set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/OperationInputs.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/OperationInputs.cs new file mode 100644 index 000000000000..49e6b4c2b24c --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/OperationInputs.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Input values for operation results call. + /// + public partial class OperationInputs + { + /// + /// Initializes a new instance of the OperationInputs class. + /// + public OperationInputs() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationInputs class. + /// + /// The name of the Provisioning Service to + /// check. + public OperationInputs(string name) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the Provisioning Service to check. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/Page.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/Page.cs new file mode 100644 index 000000000000..42a8f2c3653e --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/Page.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ProvisioningServiceDescription.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ProvisioningServiceDescription.cs new file mode 100644 index 000000000000..9ee57bc08986 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/ProvisioningServiceDescription.cs @@ -0,0 +1,101 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The description of the provisioning service. + /// + public partial class ProvisioningServiceDescription : Resource + { + /// + /// Initializes a new instance of the ProvisioningServiceDescription + /// class. + /// + public ProvisioningServiceDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProvisioningServiceDescription + /// class. + /// + /// The resource location. + /// Service specific properties for a + /// provisioning service + /// Sku info for a provisioning Service. + /// The resource identifier. + /// The resource name. + /// The resource type. + /// The resource tags. + /// The Etag field is *not* required. If it is + /// provided in the response body, it must also be provided as a header + /// per the normal ETag convention. + public ProvisioningServiceDescription(string location, IotDpsPropertiesDescription properties, IotDpsSkuInfo sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string etag = default(string)) + : base(location, id, name, type, tags) + { + Etag = etag; + Properties = properties; + Sku = sku; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Etag field is *not* required. If it is provided in + /// the response body, it must also be provided as a header per the + /// normal ETag convention. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; set; } + + /// + /// Gets or sets service specific properties for a provisioning service + /// + [JsonProperty(PropertyName = "properties")] + public IotDpsPropertiesDescription Properties { get; set; } + + /// + /// Gets or sets sku info for a provisioning Service. + /// + [JsonProperty(PropertyName = "sku")] + public IotDpsSkuInfo Sku { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + if (Sku == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Sku"); + } + } + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/Resource.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/Resource.cs new file mode 100644 index 000000000000..1a430c4d513d --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/Resource.cs @@ -0,0 +1,107 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The common properties of an Azure resource. + /// + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Resource class. + /// + /// The resource location. + /// The resource identifier. + /// The resource name. + /// The resource type. + /// The resource tags. + public Resource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) + { + Id = id; + Name = name; + Type = type; + Location = location; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the resource identifier. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the resource name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets the resource location. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + if (Name != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(Name, "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$")) + { + throw new ValidationException(ValidationRules.Pattern, "Name", "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$"); + } + } + } + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/SharedAccessSignatureAuthorizationRuleAccessRightsDescription.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/SharedAccessSignatureAuthorizationRuleAccessRightsDescription.cs new file mode 100644 index 000000000000..fe2aea1eaed3 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/SharedAccessSignatureAuthorizationRuleAccessRightsDescription.cs @@ -0,0 +1,103 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Description of the shared access key. + /// + public partial class SharedAccessSignatureAuthorizationRuleAccessRightsDescription + { + /// + /// Initializes a new instance of the + /// SharedAccessSignatureAuthorizationRuleAccessRightsDescription + /// class. + /// + public SharedAccessSignatureAuthorizationRuleAccessRightsDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// SharedAccessSignatureAuthorizationRuleAccessRightsDescription + /// class. + /// + /// Name of the key. + /// Rights that this key has. Possible values + /// include: 'ServiceConfig', 'EnrollmentRead', 'EnrollmentWrite', + /// 'DeviceConnect', 'RegistrationStatusRead', + /// 'RegistrationStatusWrite' + /// Primary SAS key value. + /// Secondary SAS key value. + public SharedAccessSignatureAuthorizationRuleAccessRightsDescription(string keyName, string rights, string primaryKey = default(string), string secondaryKey = default(string)) + { + KeyName = keyName; + PrimaryKey = primaryKey; + SecondaryKey = secondaryKey; + Rights = rights; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the key. + /// + [JsonProperty(PropertyName = "keyName")] + public string KeyName { get; set; } + + /// + /// Gets or sets primary SAS key value. + /// + [JsonProperty(PropertyName = "primaryKey")] + public string PrimaryKey { get; set; } + + /// + /// Gets or sets secondary SAS key value. + /// + [JsonProperty(PropertyName = "secondaryKey")] + public string SecondaryKey { get; set; } + + /// + /// Gets or sets rights that this key has. Possible values include: + /// 'ServiceConfig', 'EnrollmentRead', 'EnrollmentWrite', + /// 'DeviceConnect', 'RegistrationStatusRead', + /// 'RegistrationStatusWrite' + /// + [JsonProperty(PropertyName = "rights")] + public string Rights { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (KeyName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "KeyName"); + } + if (Rights == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Rights"); + } + } + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/State.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/State.cs new file mode 100644 index 000000000000..4cb71e5ec2f0 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/State.cs @@ -0,0 +1,32 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + + /// + /// Defines values for State. + /// + public static class State + { + public const string Activating = "Activating"; + public const string Active = "Active"; + public const string Deleting = "Deleting"; + public const string Deleted = "Deleted"; + public const string ActivationFailed = "ActivationFailed"; + public const string DeletionFailed = "DeletionFailed"; + public const string Transitioning = "Transitioning"; + public const string Suspending = "Suspending"; + public const string Suspended = "Suspended"; + public const string Resuming = "Resuming"; + public const string FailingOver = "FailingOver"; + public const string FailoverFailed = "FailoverFailed"; + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/TagsResource.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/TagsResource.cs new file mode 100644 index 000000000000..3e7e12667151 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/TagsResource.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A container holding only the Tags for a resource, allowing the user to + /// update the tags on a Provisioning Service instance. + /// + public partial class TagsResource + { + /// + /// Initializes a new instance of the TagsResource class. + /// + public TagsResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TagsResource class. + /// + /// Resource tags + public TagsResource(IDictionary tags = default(IDictionary)) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/VerificationCodeRequest.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/VerificationCodeRequest.cs new file mode 100644 index 000000000000..2a7f21b9dfdb --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/VerificationCodeRequest.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The JSON-serialized leaf certificate + /// + public partial class VerificationCodeRequest + { + /// + /// Initializes a new instance of the VerificationCodeRequest class. + /// + public VerificationCodeRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VerificationCodeRequest class. + /// + /// base-64 representation of X509 + /// certificate .cer file or just .pem file content. + public VerificationCodeRequest(string certificate = default(string)) + { + Certificate = certificate; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets base-64 representation of X509 certificate .cer file + /// or just .pem file content. + /// + [JsonProperty(PropertyName = "certificate")] + public string Certificate { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/VerificationCodeResponse.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/VerificationCodeResponse.cs new file mode 100644 index 000000000000..dada77807da1 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/VerificationCodeResponse.cs @@ -0,0 +1,83 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Description of the response of the verification code. + /// + public partial class VerificationCodeResponse : IResource + { + /// + /// Initializes a new instance of the VerificationCodeResponse class. + /// + public VerificationCodeResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VerificationCodeResponse class. + /// + /// Name of certificate. + /// Request etag. + /// The resource identifier. + /// The resource type. + public VerificationCodeResponse(string name = default(string), string etag = default(string), string id = default(string), string type = default(string), VerificationCodeResponseProperties properties = default(VerificationCodeResponseProperties)) + { + Name = name; + Etag = etag; + Id = id; + Type = type; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets name of certificate. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets request etag. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + /// + /// Gets the resource identifier. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// + [JsonProperty(PropertyName = "properties")] + public VerificationCodeResponseProperties Properties { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/VerificationCodeResponseProperties.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/VerificationCodeResponseProperties.cs new file mode 100644 index 000000000000..e92b0961607e --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Models/VerificationCodeResponseProperties.cs @@ -0,0 +1,100 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class VerificationCodeResponseProperties + { + /// + /// Initializes a new instance of the + /// VerificationCodeResponseProperties class. + /// + public VerificationCodeResponseProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// VerificationCodeResponseProperties class. + /// + /// Verification code. + /// Certificate subject. + /// Code expiry. + /// Certificate thumbprint. + /// Indicate if the certificate is verified by + /// owner of private key. + /// Certificate created time. + /// Certificate updated time. + public VerificationCodeResponseProperties(string verificationCode = default(string), string subject = default(string), string expiry = default(string), string thumbprint = default(string), bool? isVerified = default(bool?), string created = default(string), string updated = default(string)) + { + VerificationCode = verificationCode; + Subject = subject; + Expiry = expiry; + Thumbprint = thumbprint; + IsVerified = isVerified; + Created = created; + Updated = updated; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets verification code. + /// + [JsonProperty(PropertyName = "verificationCode")] + public string VerificationCode { get; set; } + + /// + /// Gets or sets certificate subject. + /// + [JsonProperty(PropertyName = "subject")] + public string Subject { get; set; } + + /// + /// Gets or sets code expiry. + /// + [JsonProperty(PropertyName = "expiry")] + public string Expiry { get; set; } + + /// + /// Gets or sets certificate thumbprint. + /// + [JsonProperty(PropertyName = "thumbprint")] + public string Thumbprint { get; set; } + + /// + /// Gets or sets indicate if the certificate is verified by owner of + /// private key. + /// + [JsonProperty(PropertyName = "isVerified")] + public bool? IsVerified { get; set; } + + /// + /// Gets or sets certificate created time. + /// + [JsonProperty(PropertyName = "created")] + public string Created { get; set; } + + /// + /// Gets or sets certificate updated time. + /// + [JsonProperty(PropertyName = "updated")] + public string Updated { get; set; } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Operations.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Operations.cs new file mode 100644 index 000000000000..d667cdd721bc --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/Operations.cs @@ -0,0 +1,390 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + internal partial class Operations : IServiceOperations, IOperations + { + /// + /// Initializes a new instance of the Operations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal Operations(IotDpsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the IotDpsClient + /// + public IotDpsClient Client { get; private set; } + + /// + /// Lists all of the available Microsoft.Devices REST API operations. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Devices/operations").ToString(); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all of the available Microsoft.Devices REST API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorDetailsException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorDetails _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/OperationsExtensions.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/OperationsExtensions.cs new file mode 100644 index 000000000000..572ac046cfb3 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/OperationsExtensions.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DeviceProvisioningServices +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Operations. + /// + public static partial class OperationsExtensions + { + /// + /// Lists all of the available Microsoft.Devices REST API operations. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Microsoft.Devices REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all of the available Microsoft.Devices REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Microsoft.Devices REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/SdkInfo_iotDpsClient.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/SdkInfo_iotDpsClient.cs new file mode 100644 index 000000000000..e0e84a89f3de --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Generated/SdkInfo_iotDpsClient.cs @@ -0,0 +1,21 @@ + +using System; +using System.Collections.Generic; +using System.Linq; + +internal static partial class SdkInfo +{ + public static IEnumerable> ApiInfo_iotDpsClient + { + get + { + return new Tuple[] + { + new Tuple("Devices", "DpsCertificate", "2017-11-15"), + new Tuple("Devices", "DpsCertificates", "2017-11-15"), + new Tuple("Devices", "IotDpsResource", "2017-11-15"), + new Tuple("Devices", "Operations", "2017-11-15"), + }.AsEnumerable(); + } + } +} diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Microsoft.Azure.Management.DeviceProvisioningServices.csproj b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Microsoft.Azure.Management.DeviceProvisioningServices.csproj new file mode 100644 index 000000000000..e85cf5c28364 --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Microsoft.Azure.Management.DeviceProvisioningServices.csproj @@ -0,0 +1,22 @@ + + + + + + + Microsoft.Azure.Management.DeviceProvisioningServices + Provides management capabilities for Microsoft Azure IoT Device Provisioning Service. + Microsoft Azure Provisioning Service Management + Microsoft.Azure.Management.DeviceProvisioningServices + 0.9.0-preview + Microsoft Azure IoT Provisioning Services;IoT Device Provisioning Service Management;IoT Provisioning Service; + This is a general availability release of the Azure Iot Device Provisioning Service SDK. + + + net452;netstandard1.4 + + + + + + \ No newline at end of file diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Properties/AssemblyInfo.cs b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..4a83bc21a34c --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/Properties/AssemblyInfo.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Reflection; +using System.Resources; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Microsoft Azure Provisioning Service Management Library")] +[assembly: AssemblyDescription("Provides management capabilities for Microsoft Azure IoT Device Provisioning Service.")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Microsoft Azure .NET SDK")] +[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: NeutralResourcesLanguage("en")] +[assembly: AssemblyVersion("0.9.0.0")] +[assembly: AssemblyFileVersion("0.9.0.0")] diff --git a/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/generate.cmd b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/generate.cmd new file mode 100644 index 000000000000..9a9079fa870c --- /dev/null +++ b/src/SDKs/DeviceProvisioningServices/Management.DeviceProvisioningServices/generate.cmd @@ -0,0 +1,7 @@ +:: +:: Microsoft Azure SDK for Net - Generate library code +:: Copyright (C) Microsoft Corporation. All Rights Reserved. +:: + +@echo off +call %~dp0..\..\..\..\tools\generate.cmd deviceprovisioningservices/resource-manager %* diff --git a/src/SDKs/Search/DataPlane/Microsoft.Azure.Search/Microsoft.Azure.Search.csproj b/src/SDKs/Search/DataPlane/Microsoft.Azure.Search/Microsoft.Azure.Search.csproj index 798f068187bd..ab9b19f9a52d 100644 --- a/src/SDKs/Search/DataPlane/Microsoft.Azure.Search/Microsoft.Azure.Search.csproj +++ b/src/SDKs/Search/DataPlane/Microsoft.Azure.Search/Microsoft.Azure.Search.csproj @@ -5,7 +5,7 @@ Makes it easy to develop a .NET application that uses Azure Search. Microsoft Azure Search Library Microsoft.Azure.Search - 4.0.1-preview + 4.0.2-preview Microsoft Azure Search;Search This is a preview of the newest major version of the Azure Search .NET SDK, based on version 2016-09-01-Preview of the Azure Search REST API. New in this version is support for synonyms and indexer support for JSON Blobs. See this article for help on migrating to the latest version: http://aka.ms/search-sdk-upgrade. diff --git a/src/SDKs/Search/DataPlane/Microsoft.Azure.Search/Properties/AssemblyInfo.cs b/src/SDKs/Search/DataPlane/Microsoft.Azure.Search/Properties/AssemblyInfo.cs index f7a0f64c9544..3a8f03104476 100644 --- a/src/SDKs/Search/DataPlane/Microsoft.Azure.Search/Properties/AssemblyInfo.cs +++ b/src/SDKs/Search/DataPlane/Microsoft.Azure.Search/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyDescription("Makes it easy to develop a .NET application that uses Azure Search.")] [assembly: AssemblyVersion("4.0.0.0")] -[assembly: AssemblyFileVersion("4.0.1.0")] +[assembly: AssemblyFileVersion("4.0.2.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] diff --git a/src/SDKs/_metadata/datafactory_resource-manager.txt b/src/SDKs/_metadata/datafactory_resource-manager.txt index 9327390047d5..6298706b8d5c 100644 --- a/src/SDKs/_metadata/datafactory_resource-manager.txt +++ b/src/SDKs/_metadata/datafactory_resource-manager.txt @@ -1,11 +1,11 @@ -2018-02-02 07:13:12 UTC +2018-02-08 02:32:23 UTC 1) azure-rest-api-specs repository information GitHub user: Azure Branch: master -Commit: f9ec24015ab77a2d7a1dfd33ddd208824459a7ca +Commit: 24071a7c302f86686bec19f033ab7e13da3ebce7 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Program Files\nodejs `-- autorest@2.0.4245 +Bootstrapper version: C:\Users\yanzhang\AppData\Roaming\npm `-- autorest@2.0.4245 Latest installed version: diff --git a/src/SDKs/_metadata/datalake-analytics_data-plane.txt b/src/SDKs/_metadata/datalake-analytics_data-plane.txt index 73eddad704bd..970cee641054 100644 --- a/src/SDKs/_metadata/datalake-analytics_data-plane.txt +++ b/src/SDKs/_metadata/datalake-analytics_data-plane.txt @@ -1,11 +1,10 @@ -2018-02-05 18:05:31 UTC +2018-02-07 22:22:52 UTC 1) azure-rest-api-specs repository information -GitHub user: ro-joowan -Branch: revert-path-parameters -Commit: feeb7c588bb1499c06a18170bec89e8475006e47 +GitHub user: Azure +Branch: master +Commit: f6330512616c264543fec0f02f21072a1559173b 2) AutoRest information Requested version: latest Bootstrapper version: C:\Users\jooro\AppData\Roaming\npm `-- autorest@2.0.4245 -Latest installed version: diff --git a/src/SDKs/_metadata/datalake-analytics_resource-manager.txt b/src/SDKs/_metadata/datalake-analytics_resource-manager.txt index 8d3ac78b58fc..ac9d48e1a606 100644 --- a/src/SDKs/_metadata/datalake-analytics_resource-manager.txt +++ b/src/SDKs/_metadata/datalake-analytics_resource-manager.txt @@ -1,11 +1,10 @@ -2018-02-05 18:04:47 UTC +2018-02-07 22:22:39 UTC 1) azure-rest-api-specs repository information -GitHub user: ro-joowan -Branch: revert-path-parameters -Commit: feeb7c588bb1499c06a18170bec89e8475006e47 +GitHub user: Azure +Branch: master +Commit: f6330512616c264543fec0f02f21072a1559173b 2) AutoRest information Requested version: latest Bootstrapper version: C:\Users\jooro\AppData\Roaming\npm `-- autorest@2.0.4245 -Latest installed version: diff --git a/src/SDKs/_metadata/datalake-store_data-plane.txt b/src/SDKs/_metadata/datalake-store_data-plane.txt index e49cbd228e4c..e21acb96f7fd 100644 --- a/src/SDKs/_metadata/datalake-store_data-plane.txt +++ b/src/SDKs/_metadata/datalake-store_data-plane.txt @@ -1,11 +1,10 @@ -2018-01-04 20:02:31 UTC +2018-02-07 22:21:41 UTC 1) azure-rest-api-specs repository information GitHub user: Azure -Branch: current -Commit: db22f73d75fba57c9f1dcbd118bd1337ade842cf +Branch: master +Commit: f6330512616c264543fec0f02f21072a1559173b 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\jooro\AppData\Roaming\npm `-- autorest@2.0.4215 -Latest installed version: +Bootstrapper version: C:\Users\jooro\AppData\Roaming\npm `-- autorest@2.0.4245 diff --git a/src/SDKs/_metadata/datalake-store_resource-manager.txt b/src/SDKs/_metadata/datalake-store_resource-manager.txt index 2e3f6fe4789a..5f95cddff128 100644 --- a/src/SDKs/_metadata/datalake-store_resource-manager.txt +++ b/src/SDKs/_metadata/datalake-store_resource-manager.txt @@ -1,11 +1,10 @@ -2018-01-04 20:02:08 UTC +2018-02-07 22:21:29 UTC 1) azure-rest-api-specs repository information GitHub user: Azure -Branch: current -Commit: db22f73d75fba57c9f1dcbd118bd1337ade842cf +Branch: master +Commit: f6330512616c264543fec0f02f21072a1559173b 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\jooro\AppData\Roaming\npm `-- autorest@2.0.4215 -Latest installed version: +Bootstrapper version: C:\Users\jooro\AppData\Roaming\npm `-- autorest@2.0.4245 diff --git a/src/SDKs/_metadata/deviceprovisioningservices_resource-manager.txt b/src/SDKs/_metadata/deviceprovisioningservices_resource-manager.txt new file mode 100644 index 000000000000..0ca060937895 --- /dev/null +++ b/src/SDKs/_metadata/deviceprovisioningservices_resource-manager.txt @@ -0,0 +1,11 @@ +2018-02-06 21:26:17 UTC + +1) azure-rest-api-specs repository information +GitHub user: Azure +Branch: current +Commit: d390062ed96aa6478741b5f5196039540cb90d65 + +2) AutoRest information +Requested version: latest +Bootstrapper version: C:\Users\pamontg\AppData\Roaming\npm `-- autorest@2.0.4245 +Latest installed version: diff --git a/src/SdkCommon/CR.test.reference.props b/src/SdkCommon/CR.test.reference.props index 9ed0a761360a..d4817aa7abc0 100644 --- a/src/SdkCommon/CR.test.reference.props +++ b/src/SdkCommon/CR.test.reference.props @@ -6,6 +6,6 @@ - + \ No newline at end of file diff --git a/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure.Tests/LROTests/LongRunningOperationsTest.cs b/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure.Tests/LROTests/LongRunningOperationsTest.cs index d121ea77b394..f209827d57cb 100644 --- a/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure.Tests/LROTests/LongRunningOperationsTest.cs +++ b/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure.Tests/LROTests/LongRunningOperationsTest.cs @@ -596,6 +596,7 @@ public void TestCreateOrUpdateWithRetryAfter() var tokenCredentials = new TokenCredentials("123", "abc"); var handler = new PlaybackTestHandler(LROResponse.MockCreateOrUpdateWithRetryAfterTwoTries()); var fakeClient = new RedisManagementClient(tokenCredentials, handler); + fakeClient.LongRunningOperationRetryTimeout = 1; var now = DateTime.Now; fakeClient.RedisOperations.CreateOrUpdate("rg", "redis", new RedisCreateOrUpdateParameters(), "1234"); @@ -611,6 +612,7 @@ public void TestDeleteWithRetryAfter() var tokenCredentials = new TokenCredentials("123", "abc"); var handler = new PlaybackTestHandler(LROResponse.MockDeleteWithRetryAfterTwoTries()); var fakeClient = new RedisManagementClient(tokenCredentials, handler); + fakeClient.LongRunningOperationRetryTimeout = 1; // Set LRO retry time out to 1, so that Retry-After can be set during test mode var now = DateTime.Now; fakeClient.RedisOperations.Delete("rg", "redis", "1234"); @@ -625,7 +627,8 @@ public void TestPatchWithRetryAfter() { var tokenCredentials = new TokenCredentials("123", "abc"); var handler = new PlaybackTestHandler(LROResponse.MockPatchWithRetryAfterTwoTries()); - var fakeClient = new RedisManagementClient(tokenCredentials, handler); + var fakeClient = new RedisManagementClient(tokenCredentials, handler); + fakeClient.LongRunningOperationRetryTimeout = 1; // Set LRO retry time out to 1, so that Retry-After can be set during test mode var now = DateTime.Now; fakeClient.RedisOperations.Patch("rg", "redis", new RedisCreateOrUpdateParameters(), "1234"); Assert.True(DateTime.Now - now >= TimeSpan.FromSeconds(2)); @@ -640,6 +643,7 @@ public void TestCreateWithDifferentRetryAfter() var tokenCredentials = new TokenCredentials("123", "abc"); var handler = new PlaybackTestHandler(LROResponse.MockCreateOrUpdateWithDifferentRetryAfterValues()); var fakeClient = new RedisManagementClient(tokenCredentials, handler); + fakeClient.LongRunningOperationRetryTimeout = 1; // Set LRO retry time out to 1, so that Retry-After can be set during test mode var before = DateTime.Now; fakeClient.RedisOperations.CreateOrUpdate("rg", "redis", new RedisCreateOrUpdateParameters(), "1234"); Assert.True(DateTime.Now - before >= TimeSpan.FromSeconds(7)); @@ -654,6 +658,7 @@ public void TestCreateWithRetryAfterDefaultMin() var tokenCredentials = new TokenCredentials("123", "abc"); var handler = new PlaybackTestHandler(LROResponse.MockCreateWithRetryAfterDefaultMin()); var fakeClient = new RedisManagementClient(tokenCredentials, handler); + fakeClient.LongRunningOperationRetryTimeout = 1; // Set LRO retry time out to 1, so that Retry-After can be set during test mode var before = DateTime.Now; fakeClient.RedisOperations.CreateOrUpdate("rg", "redis", new RedisCreateOrUpdateParameters(), "1234"); Assert.True(DateTime.Now - before >= TimeSpan.FromSeconds(0)); @@ -668,6 +673,7 @@ public void TestCreateWithRetryAfterDefaultMax() var tokenCredentials = new TokenCredentials("123", "abc"); var handler = new PlaybackTestHandler(LROResponse.MockCreateWithRetryAfterDefaultMax()); var fakeClient = new RedisManagementClient(tokenCredentials, handler); + fakeClient.LongRunningOperationRetryTimeout = 1; // Set LRO retry time out to 1, so that Retry-After can be set during test mode var before = DateTime.Now; fakeClient.RedisOperations.CreateOrUpdate("rg", "redis", new RedisCreateOrUpdateParameters(), "1234"); Assert.True(DateTime.Now - before >= TimeSpan.FromSeconds(40)); @@ -896,7 +902,7 @@ public class LRO_MultipleHeaders /// /// /// - [Fact] + [Fact(Skip ="Disabling this scenario for now")] public void TestPUT_WithMultipleHeaders() { var tokenCredentials = new TokenCredentials("123", "abc"); diff --git a/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/Microsoft.Rest.ClientRuntime.Azure.csproj b/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/Microsoft.Rest.ClientRuntime.Azure.csproj index 2ab127c2973e..96a6917556d2 100644 --- a/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/Microsoft.Rest.ClientRuntime.Azure.csproj +++ b/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/Microsoft.Rest.ClientRuntime.Azure.csproj @@ -4,7 +4,7 @@ Microsoft.Rest.ClientRuntime.Azure Provides common error handling, tracing, and HTTP/REST-based pipeline manipulation. Client Runtime for Microsoft Azure Libraries - 3.3.11 + 3.3.12 Microsoft.Rest.ClientRuntime.Azure Microsoft Azure AutoRest ClientRuntime REST $(NugetCommonTags) $(NugetCommonProfileTags) diff --git a/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/PollingState.cs b/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/PollingState.cs index eeeab4421bb1..c5770eeb69bf 100644 --- a/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/PollingState.cs +++ b/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/PollingState.cs @@ -31,6 +31,7 @@ internal class PollingState where TBody : class where THeader : private int _retryAfterInSeconds; private int _clientLongRunningOperationRetryTimeout; + private bool _isRunningUnderPlaybackMode; /// @@ -42,13 +43,14 @@ public PollingState(HttpOperationResponse response, int? retryTi { // Due to test/playback scenario, we prioritze retryTimeout set by Client (client.LongRunningOperationRetryTimeout property) // So LROTimeoutsetbyClient needs to be set first before we set the generic RetryAfterInSeconds value - LROTimeoutSetByClient = retryTimeout.HasValue ? retryTimeout.Value : AzureAsyncOperation.DefaultDelay; RetryAfterInSeconds = retryTimeout.HasValue ? retryTimeout.Value : AzureAsyncOperation.DefaultDelay; Response = response.Response; Request = response.Request; Resource = response.Body; ResourceHeaders = response.Headers; + _isRunningUnderPlaybackMode = false; + string raw = response.Response.Content == null ? null : response.Response.Content.AsString(); @@ -146,33 +148,23 @@ public HttpResponseMessage Response _response = value; if (_response != null) { + if (_response.Headers.Contains("azSdkTestPlayBackMode")) + { + _isRunningUnderPlaybackMode = bool.Parse(_response.Headers.GetValues("azSdkTestPlayBackMode").FirstOrDefault()); + } if (_response.Headers.Contains("Azure-AsyncOperation")) { AzureAsyncOperationHeaderLink = _response.Headers.GetValues("Azure-AsyncOperation").FirstOrDefault(); } - //else - //{ - // AzureAsyncOperationHeaderLink = string.Empty; - //} - if (_response.Headers.Contains("Location")) { LocationHeaderLink = _response.Headers.GetValues("Location").FirstOrDefault(); } - //else - //{ - // LocationHeaderLink = string.Empty; - //} - if (_response.Headers.Contains("Retry-After")) { string retryValue = _response.Headers.GetValues("Retry-After").FirstOrDefault(); RetryAfterInSeconds = int.Parse(retryValue, CultureInfo.InvariantCulture); } - else - { - RetryAfterInSeconds = LROTimeoutSetByClient; - } } } } @@ -245,6 +237,7 @@ internal int RetryAfterInSeconds { get { + //return ValidateRetryAfterValue(_retryAfterInSeconds); return _retryAfterInSeconds; } @@ -254,6 +247,24 @@ internal int RetryAfterInSeconds } } + /// + /// Test hook to determine if running under Playback mode (test mode) + /// + internal bool IsRunningUnderPlaybackMode + { + get + { + if (Response != null) + { + if (Response.Headers.Contains("azSdkTestPlayBackMode")) + { + _isRunningUnderPlaybackMode = bool.Parse(Response.Headers.GetValues("azSdkTestPlayBackMode").FirstOrDefault()); + } + } + + return _isRunningUnderPlaybackMode; + } + } private int ValidateRetryAfterValue(int? currentValue) { @@ -266,13 +277,20 @@ private int ValidateRetryAfterValue(int? currentValue) else if (currentValue > DEFAULT_MAX_DELAY_SECONDS) currentValue = DEFAULT_MAX_DELAY_SECONDS; - if (LROTimeoutSetByClient == TEST_MIN_DELAY_SECONDS) + if (IsRunningUnderPlaybackMode) + { + currentValue = TEST_MIN_DELAY_SECONDS; + } + else { - if(currentValue == LROTimeoutSetByClient) + if (LROTimeoutSetByClient == TEST_MIN_DELAY_SECONDS) // we assume playback mode (test mode) { - currentValue = TEST_MIN_DELAY_SECONDS; + if (currentValue != LROTimeoutSetByClient) //Case where Retry-After is set to non zero, we set it to 0 in playback mode + { + currentValue = TEST_MIN_DELAY_SECONDS; + } } - } + } } else { @@ -281,17 +299,6 @@ private int ValidateRetryAfterValue(int? currentValue) return currentValue.Value; } - - //internal int GetRetryAfterValueFromHeader(HttpResponseMessage responseMessage) - //{ - // int retryAfter = 0; - // if (responseMessage != null && responseMessage.Headers.Contains("Retry-After")) - // { - // retryAfter = int.Parse(responseMessage.Headers.GetValues("Retry-After").FirstOrDefault(), CultureInfo.InvariantCulture); - // } - - // return retryAfter; - //} /// /// Gets CloudException from current instance. diff --git a/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/Properties/AssemblyInfo.cs b/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/Properties/AssemblyInfo.cs index f5edb2a98895..d098c717af3a 100644 --- a/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/Properties/AssemblyInfo.cs +++ b/src/SdkCommon/ClientRuntime.Azure/ClientRuntime.Azure/Properties/AssemblyInfo.cs @@ -9,7 +9,7 @@ [assembly: AssemblyTitle("Microsoft Rest Azure Client Runtime")] [assembly: AssemblyDescription("Client infrastructure for Azure client libraries.")] [assembly: AssemblyVersion("3.0.0.0")] -[assembly: AssemblyFileVersion("3.3.11.0")] +[assembly: AssemblyFileVersion("3.3.12.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft Corporation")] diff --git a/src/SdkCommon/ClientRuntime/ClientRuntime.Tests/JsonSerializationTests.cs b/src/SdkCommon/ClientRuntime/ClientRuntime.Tests/JsonSerializationTests.cs index 2416771ecfcd..f7ee7f699a50 100644 --- a/src/SdkCommon/ClientRuntime/ClientRuntime.Tests/JsonSerializationTests.cs +++ b/src/SdkCommon/ClientRuntime/ClientRuntime.Tests/JsonSerializationTests.cs @@ -533,8 +533,7 @@ private static void TestWithBadJsonSerializerSettings(Action callback) JsonConvert.DefaultSettings = () => new JsonSerializerSettings() { - Converters = new[] { new InvalidJsonConverter() }, - ContractResolver = new InvalidContractResolver() + Converters = new[] { new ModelConverter() } }; try @@ -562,29 +561,72 @@ private class ModelWithConst public int Rating { get; set; } } - private class InvalidContractResolver : IContractResolver + + private class ModelConverter : JsonConverter { - public JsonContract ResolveContract(Type type) + public override bool CanConvert(Type objectType) => objectType == typeof(Model); + + public override object ReadJson( + JsonReader reader, + Type objectType, + object existingValue, + JsonSerializer serializer) { - throw new InvalidOperationException(JsonErrorMessage); + var model = new Model(); + + ExpectAndAdvance(reader, JsonToken.StartObject); + + ExpectProperty(reader, "Name"); + model.Name = reader.ReadAsString().ToUpper(); + reader.Read(); + + ExpectProperty(reader, "Rating"); + model.Rating = reader.ReadAsInt32().Value; + reader.Read(); + + Expect(reader, JsonToken.EndObject); + + return model; } - } - private class InvalidJsonConverter : JsonConverter - { - public override bool CanConvert(Type objectType) + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + var model = (Model)value; + + writer.WriteStartObject(); + + writer.WritePropertyName("Name"); + writer.WriteValue(model.Name.ToUpper()); + + writer.WritePropertyName("Rating"); + writer.WriteValue(model.Rating); + + writer.WriteEndObject(); + + } + + private static void Expect(JsonReader reader, JsonToken tokenType) { - throw new InvalidOperationException(JsonErrorMessage); + if (reader.TokenType != tokenType) + { + throw new JsonSerializationException($"Found unexpected token: {tokenType}."); + } } - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + private static void ExpectAndAdvance(JsonReader reader, JsonToken tokenType) { - throw new InvalidOperationException(JsonErrorMessage); + Expect(reader, tokenType); + reader.Read(); } - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + private static void ExpectProperty(JsonReader reader, string name) { - throw new InvalidOperationException(JsonErrorMessage); + Expect(reader, JsonToken.PropertyName); + string propertyName = reader.Value as string; + if (propertyName != name) + { + throw new JsonSerializationException($"Found unexpected property. Expected: {name}. Actual: {propertyName}."); + } } } }