diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/ContainerRegistry.Tests.csproj b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/ContainerRegistry.Tests.csproj index 836bafa092de..e895921a7778 100644 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/ContainerRegistry.Tests.csproj +++ b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/ContainerRegistry.Tests.csproj @@ -12,9 +12,8 @@ - - - + + diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Helpers/ContainerRegistryTestUtilities.cs b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Helpers/ContainerRegistryTestUtilities.cs index 3d599579b91a..cb1ab5ee04a9 100644 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Helpers/ContainerRegistryTestUtilities.cs +++ b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Helpers/ContainerRegistryTestUtilities.cs @@ -1,17 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -using System; -using System.Linq; -using System.Collections.Generic; -using Microsoft.Azure.Management.Resources; -using Microsoft.Azure.Management.Resources.Models; -using Microsoft.Azure.Management.Storage; -using Microsoft.Azure.Management.Storage.Models; using Microsoft.Azure.Management.ContainerRegistry; using Microsoft.Azure.Management.ContainerRegistry.Models; +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.Storage; +using Microsoft.Azure.Management.Storage.Models; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Linq; using Xunit; +using Resource = Microsoft.Azure.Management.ContainerRegistry.Models.Resource; +using Sku = Microsoft.Azure.Management.ContainerRegistry.Models.Sku; +using SkuName = Microsoft.Azure.Management.ContainerRegistry.Models.SkuName; namespace ContainerRegistry.Tests { @@ -25,23 +28,30 @@ public class ContainerRegistryTestUtilities { "key1","value1"}, { "key2","value2"} }; + public static Dictionary DefaultNewTags = new Dictionary + { + { "key2","value2"}, + { "key3","value3"}, + { "key4","value4"} + }; + + public static string DefaultWebhookServiceUri = "http://www.microsoft.com"; + public static string DefaultWebhookScope = "hello-world"; public static string GetDefaultRegistryLocation(ResourceManagementClient client) { Provider provider = client.Providers.Get(ContainerRegistryNamespace); ProviderResourceType resourceType = provider.ResourceTypes.First( t => StringComparer.OrdinalIgnoreCase.Equals(t.ResourceType, ContainerRegistryResourceType)); - string location = resourceType.Locations.First(); - return NormalizeLocation(location); + return resourceType.Locations.First(); } - public static string GetNonDefaultRegistryLocation(ResourceManagementClient client) + public static string GetNonDefaultRegistryLocation(ResourceManagementClient client, string defaultLocation) { Provider provider = client.Providers.Get(ContainerRegistryNamespace); ProviderResourceType resourceType = provider.ResourceTypes.First( t => StringComparer.OrdinalIgnoreCase.Equals(t.ResourceType, ContainerRegistryResourceType)); - string location = resourceType.Locations.ToArray()[1]; - return NormalizeLocation(location); + return resourceType.Locations.First(l => !NormalizeLocation(l).Equals(defaultLocation)); } public static ResourceManagementClient GetResourceManagementClient(MockContext context, RecordedDelegatingHandler handler) @@ -67,89 +77,117 @@ public static ContainerRegistryManagementClient GetContainerRegistryManagementCl public static ResourceGroup CreateResourceGroup(ResourceManagementClient client) { - var rgName = TestUtilities.GenerateName("acr_rg"); - - return client.ResourceGroups.CreateOrUpdate(rgName, new ResourceGroup - { - Location = GetDefaultRegistryLocation(client) - }); + return client.ResourceGroups.CreateOrUpdate( + TestUtilities.GenerateName("acr_rg"), + new ResourceGroup + { + Location = GetDefaultRegistryLocation(client) + }); } - public static string CreateStorageAccount(StorageManagementClient client, ResourceGroup resourceGroup) + public static StorageAccount CreateStorageAccount(StorageManagementClient client, ResourceGroup resourceGroup) { - string storageName = TestUtilities.GenerateName("acrstorage"); - - var createRequest = client.StorageAccounts.Create(resourceGroup.Name, storageName, new StorageAccountCreateParameters - { - Location = resourceGroup.Location, - Sku = new Microsoft.Azure.Management.Storage.Models.Sku { Name = SkuName.StandardLRS }, - Kind = Kind.Storage - }); - - return storageName; + return client.StorageAccounts.Create( + resourceGroup.Name, + TestUtilities.GenerateName("acrstorage"), + new StorageAccountCreateParameters + { + Location = resourceGroup.Location, + Sku = new Microsoft.Azure.Management.Storage.Models.Sku + { + Name = Microsoft.Azure.Management.Storage.Models.SkuName.StandardLRS + }, + Kind = Kind.Storage + }); } - public static string CreateContainerRegistry(ContainerRegistryManagementClient client, ResourceGroup resourceGroup, string storageName, string storageKey) + public static Registry CreateClassicContainerRegistry(ContainerRegistryManagementClient client, ResourceGroup resourceGroup, StorageAccount storageAccount) { - string registryName = TestUtilities.GenerateName("acrregistry"); - RegistryCreateParameters parameters = GetDefaultRegistryCreateParameters(resourceGroup, storageName, storageKey); - - var createRequest = client.Registries.Create(resourceGroup.Name, registryName, parameters); - - return registryName; + return client.Registries.Create( + resourceGroup.Name, + TestUtilities.GenerateName("acrregistry"), + new Registry + { + Location = resourceGroup.Location, + Sku = new Sku + { + Name = SkuName.Classic + }, + StorageAccount = new StorageAccountProperties + { + Id = storageAccount.Id + }, + Tags = DefaultTags + }); } - public static RegistryCreateParameters GetDefaultRegistryCreateParameters(ResourceGroup resourceGroup, string storageName, string storageKey) + public static Registry CreateManagedContainerRegistry(ContainerRegistryManagementClient client, string resourceGroupName, string location) { - RegistryCreateParameters parameters = new RegistryCreateParameters - { - Location = resourceGroup.Location, - Sku = new Microsoft.Azure.Management.ContainerRegistry.Models.Sku + return client.Registries.Create( + resourceGroupName, + TestUtilities.GenerateName("acrregistry"), + new Registry { - Name = "Basic" - }, - StorageAccount = new StorageAccountParameters + Location = location, + Sku = new Sku + { + Name = SkuName.Premium + }, + Tags = DefaultTags + }); + } + + public static Webhook CreatedContainerRegistryWebhook(ContainerRegistryManagementClient client, string resourceGroupName, string registryName, string location) + { + return client.Webhooks.Create( + resourceGroupName, + registryName, + TestUtilities.GenerateName("acrwebhook"), + new WebhookCreateParameters { - Name = storageName, - AccessKey = storageKey - }, - Tags = DefaultTags - }; + Location = location, + ServiceUri = DefaultWebhookServiceUri, + Actions = new List() { WebhookAction.Push }, + Tags = DefaultTags + }); + } - return parameters; + public static Replication CreatedContainerRegistryReplication(ContainerRegistryManagementClient client, string resourceGroupName, string registryName, string location) + { + return client.Replications.Create( + resourceGroupName, + registryName, + NormalizeLocation(location), + location, + DefaultTags); } - public static string GetStorageAccessKey(StorageManagementClient client, ResourceGroup resourceGroup, string storageName) + public static void ValidateResourceDefaultTags(Resource resource) { - return client.StorageAccounts.ListKeys(resourceGroup.Name, storageName).Keys[0].Value; + ValidateResource(resource); + Assert.NotNull(resource.Tags); + Assert.Equal(2, resource.Tags.Count); + Assert.Equal("value1", resource.Tags["key1"]); + Assert.Equal("value2", resource.Tags["key2"]); } - public static void VerifyRegistryProperties(Registry registry, string storageName, bool useDefaults) - { - Assert.NotNull(registry); - Assert.NotNull(registry.Id); - Assert.NotNull(registry.Name); - Assert.NotNull(registry.Location); - Assert.NotNull(registry.Sku); - Assert.Equal(registry.Sku.Name, "Basic"); - Assert.Equal(registry.Sku.Tier, Microsoft.Azure.Management.ContainerRegistry.Models.SkuTier.Basic); - Assert.Equal(registry.ProvisioningState, Microsoft.Azure.Management.ContainerRegistry.Models.ProvisioningState.Succeeded); - Assert.NotNull(registry.AdminUserEnabled); - Assert.NotNull(registry.LoginServer); - Assert.NotNull(registry.CreationDate); - Assert.NotNull(registry.StorageAccount); - Assert.NotNull(registry.StorageAccount.Name); - - Assert.Equal(registry.StorageAccount.Name, storageName); - - if (useDefaults) - { - Assert.Equal(registry.AdminUserEnabled, false); - Assert.NotNull(registry.Tags); - Assert.Equal(2, registry.Tags.Count); - Assert.Equal(registry.Tags["key1"], "value1"); - Assert.Equal(registry.Tags["key2"], "value2"); - } + public static void ValidateResourceDefaultNewTags(Resource resource) + { + ValidateResource(resource); + Assert.NotNull(resource.Tags); + Assert.Equal(3, resource.Tags.Count); + Assert.Equal("value2", resource.Tags["key2"]); + Assert.Equal("value3", resource.Tags["key3"]); + Assert.Equal("value4", resource.Tags["key4"]); + } + + private static void ValidateResource(Resource resource) + { + Assert.NotNull(resource); + Assert.NotNull(resource.Id); + Assert.NotNull(resource.Name); + Assert.NotNull(resource.Type); + Assert.NotNull(resource.Location); } private static string NormalizeLocation(string location) diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ClassicContainerRegistryTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ClassicContainerRegistryTest.json new file mode 100644 index 000000000000..002abf2ee29e --- /dev/null +++ b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ClassicContainerRegistryTest.json @@ -0,0 +1,871 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d77414a5-cd8f-47c8-9897-d64bfdf76c4c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/ping\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/getCallbackConfig\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/listEvents\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listUsages\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/replications\",\r\n \"locations\": [\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14932" + ], + "x-ms-request-id": [ + "dfc7095c-6458-468d-8656-8517346674fb" + ], + "x-ms-correlation-request-id": [ + "dfc7095c-6458-468d-8656-8517346674fb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003925Z:dfc7095c-6458-468d-8656-8517346674fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg5797?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzU3OTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "db9fe691-30a4-486c-8f1e-83404f2db51c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797\",\r\n \"name\": \"acr_rg5797\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "321a01aa-f6c1-4722-9df8-c5efaa86f6a8" + ], + "x-ms-correlation-request-id": [ + "321a01aa-f6c1-4722-9df8-c5efaa86f6a8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003927Z:321a01aa-f6c1-4722-9df8-c5efaa86f6a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.Storage/storageAccounts/acrstorage3292?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU3OTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlMzI5Mj9hcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "96" + ], + "x-ms-client-request-id": [ + "c2e44d5f-51bb-4ca4-8c01-d70e287865ab" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Storage.StorageManagementClient/7.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/locations/westus/asyncoperations/0104552e-ccd2-4f48-b58f-3a98467a54bd?monitor=true&api-version=2017-06-01" + ], + "Retry-After": [ + "17" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "dcf15e6e-8926-4a4b-96d0-cdc8f72ba854" + ], + "x-ms-correlation-request-id": [ + "dcf15e6e-8926-4a4b-96d0-cdc8f72ba854" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003928Z:dcf15e6e-8926-4a4b-96d0-cdc8f72ba854" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.Storage/locations/westus/asyncoperations/0104552e-ccd2-4f48-b58f-3a98467a54bd?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy8wMTA0NTUyZS1jY2QyLTRmNDgtYjU4Zi0zYTk4NDY3YTU0YmQ/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTctMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Storage.StorageManagementClient/7.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.Storage/storageAccounts/acrstorage3292\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage3292\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-10-20T00:39:27.8089924Z\",\r\n \"encryption\": {\r\n \"keySource\": \"Microsoft.Storage\",\r\n \"services\": {\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2017-10-20T00:39:27.8119967Z\"\r\n },\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2017-10-20T00:39:27.8119967Z\"\r\n }\r\n }\r\n },\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"defaultAction\": \"Allow\",\r\n \"ipRules\": [],\r\n \"virtualNetworkRules\": []\r\n },\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage3292.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage3292.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage3292.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage3292.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\",\r\n \"supportsHttpsTrafficOnly\": false\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "66d55d56-23c9-4edb-b57e-c2229a0b3c7f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14931" + ], + "x-ms-correlation-request-id": [ + "66d55d56-23c9-4edb-b57e-c2229a0b3c7f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003945Z:66d55d56-23c9-4edb-b57e-c2229a0b3c7f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU3OTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTkwMz9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Classic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.Storage/storageAccounts/acrstorage3292\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "342" + ], + "x-ms-client-request-id": [ + "1f4c7357-c9a8-42f6-b8eb-6a932eb90274" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Classic\",\r\n \"tier\": \"Classic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903\",\r\n \"name\": \"acrregistry9903\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry9903.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:39:51.5065586Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.Storage/storageAccounts/acrstorage3292\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-request-id": [ + "59578e95-ce93-4145-a225-2ec3e743906c" + ], + "x-ms-correlation-request-id": [ + "59578e95-ce93-4145-a225-2ec3e743906c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003955Z:59578e95-ce93-4145-a225-2ec3e743906c" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU3OTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "de347df1-181c-4edd-a93a-808bb1012341" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Classic\",\r\n \"tier\": \"Classic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903\",\r\n \"name\": \"acrregistry9903\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry9903.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:39:51.5065586Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.Storage/storageAccounts/acrstorage3292\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14928" + ], + "x-ms-request-id": [ + "9eae0e88-4293-43a0-b0fb-dec58536dd37" + ], + "x-ms-correlation-request-id": [ + "9eae0e88-4293-43a0-b0fb-dec58536dd37" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003955Z:9eae0e88-4293-43a0-b0fb-dec58536dd37" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU3OTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTkwMz9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0f15ffcf-346b-4236-8a6d-443aab8a2d5a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Classic\",\r\n \"tier\": \"Classic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903\",\r\n \"name\": \"acrregistry9903\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry9903.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:39:51.5065586Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.Storage/storageAccounts/acrstorage3292\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14927" + ], + "x-ms-request-id": [ + "b7842cee-f695-48d1-85fa-d1532122748d" + ], + "x-ms-correlation-request-id": [ + "b7842cee-f695-48d1-85fa-d1532122748d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003955Z:b7842cee-f695-48d1-85fa-d1532122748d" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903/listCredentials?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU3OTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTkwMy9saXN0Q3JlZGVudGlhbHM/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "51d78ed1-0de6-4adf-9103-7542a9914df4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"UnAuthorizedForCredentialOperations\",\r\n \"message\": \"Cannot perform credential operations for /subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903 as admin user is disabled. Enable admin user and try again.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "312" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-request-id": [ + "71dfdd5d-30d6-4e23-9efa-7078df3d7a15" + ], + "x-ms-correlation-request-id": [ + "71dfdd5d-30d6-4e23-9efa-7078df3d7a15" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003955Z:71dfdd5d-30d6-4e23-9efa-7078df3d7a15" + ] + }, + "StatusCode": 400 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903/listCredentials?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU3OTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTkwMy9saXN0Q3JlZGVudGlhbHM/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f871e33f-9db1-4824-adbb-b7ef9fb89165" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"username\": \"acrregistry9903\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"1bGlAMNN1G2nZTFW7+lRmS=xwoW1sV+A\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"B=ffmbnSXa8Zw0y1fb8vynA4L7labri1\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "c2b7897f-50df-432a-9c11-2f07e27ba51b" + ], + "x-ms-correlation-request-id": [ + "c2b7897f-50df-432a-9c11-2f07e27ba51b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003956Z:c2b7897f-50df-432a-9c11-2f07e27ba51b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU3OTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTkwMz9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Classic\"\r\n },\r\n \"properties\": {\r\n \"adminUserEnabled\": true\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "186" + ], + "x-ms-client-request-id": [ + "3f9d8b56-6696-49e8-9d3d-5a0613c5aba7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Classic\",\r\n \"tier\": \"Classic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903\",\r\n \"name\": \"acrregistry9903\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry9903.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:39:51.5065586Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.Storage/storageAccounts/acrstorage3292\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "91d8e6c3-daab-4524-a665-8ecdcfd0e18d" + ], + "x-ms-correlation-request-id": [ + "91d8e6c3-daab-4524-a665-8ecdcfd0e18d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003956Z:91d8e6c3-daab-4524-a665-8ecdcfd0e18d" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903/regenerateCredential?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU3OTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTkwMy9yZWdlbmVyYXRlQ3JlZGVudGlhbD9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"password\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "26" + ], + "x-ms-client-request-id": [ + "9a9515d0-e932-4209-8f28-58101afb3d5d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"username\": \"acrregistry9903\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"PL/xq89o20i66INicu/pjAtTOAEdLbM/\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"B=ffmbnSXa8Zw0y1fb8vynA4L7labri1\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-request-id": [ + "72d0fe75-bb3c-48fd-a721-ce17b166e77b" + ], + "x-ms-correlation-request-id": [ + "72d0fe75-bb3c-48fd-a721-ce17b166e77b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003957Z:72d0fe75-bb3c-48fd-a721-ce17b166e77b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903/regenerateCredential?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU3OTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTkwMy9yZWdlbmVyYXRlQ3JlZGVudGlhbD9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"password2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "27" + ], + "x-ms-client-request-id": [ + "9d2eb52a-9b35-4c0c-a030-dee054b4d41c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"username\": \"acrregistry9903\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"PL/xq89o20i66INicu/pjAtTOAEdLbM/\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"=TMZxv89soToISbLaMxpDET4E7PeiLw8\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1188" + ], + "x-ms-request-id": [ + "31cbf497-9f7f-4992-b251-39f675b7c736" + ], + "x-ms-correlation-request-id": [ + "31cbf497-9f7f-4992-b251-39f675b7c736" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003957Z:31cbf497-9f7f-4992-b251-39f675b7c736" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU3OTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTkwMz9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f2454197-9503-42ff-b368-9be4fdde3f67" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1187" + ], + "x-ms-request-id": [ + "3979781e-91c3-4723-9239-6f2b6bd147bd" + ], + "x-ms-correlation-request-id": [ + "3979781e-91c3-4723-9239-6f2b6bd147bd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003959Z:3979781e-91c3-4723-9239-6f2b6bd147bd" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg5797/providers/Microsoft.ContainerRegistry/registries/acrregistry9903?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzU3OTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTkwMz9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "49e50388-7750-4834-8ab5-27721d392ac0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:39:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1186" + ], + "x-ms-request-id": [ + "ad55bd0c-a64a-4d56-8478-778ac48a432d" + ], + "x-ms-correlation-request-id": [ + "ad55bd0c-a64a-4d56-8478-778ac48a432d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003959Z:ad55bd0c-a64a-4d56-8478-778ac48a432d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 204 + } + ], + "Names": { + "CreateResourceGroup": [ + "acr_rg5797" + ], + "CreateStorageAccount": [ + "acrstorage3292" + ], + "CreateClassicContainerRegistry": [ + "acrregistry9903" + ] + }, + "Variables": { + "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" + } +} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCheckNameTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCheckNameTest.json index 9fb990e4b50c..fe3b63b2f75c 100644 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCheckNameTest.json +++ b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCheckNameTest.json @@ -1,23 +1,23 @@ { "Entries": [ { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "060c9c9d-62e7-4eca-9cb7-d459f734dc7f" + "55dc6e53-c99c-491b-990e-7007e74771e0" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/ping\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/getCallbackConfig\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/listEvents\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listUsages\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/replications\",\r\n \"locations\": [\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -29,7 +29,7 @@ "no-cache" ], "Date": [ - "Thu, 16 Mar 2017 22:56:05 GMT" + "Fri, 20 Oct 2017 00:41:21 GMT" ], "Pragma": [ "no-cache" @@ -38,16 +38,16 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14786" ], "x-ms-request-id": [ - "37dd45ac-2238-4300-bf70-9a53964bc66e" + "ee4de96b-59ee-4b06-b8d0-beb56a9e8049" ], "x-ms-correlation-request-id": [ - "37dd45ac-2238-4300-bf70-9a53964bc66e" + "ee4de96b-59ee-4b06-b8d0-beb56a9e8049" ], "x-ms-routing-request-id": [ - "WESTUS2:20170316T225606Z:37dd45ac-2238-4300-bf70-9a53964bc66e" + "WESTUS2:20171020T004122Z:ee4de96b-59ee-4b06-b8d0-beb56a9e8049" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -56,32 +56,32 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg130?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzEzMD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg2068?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzIwNjg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "28" + "29" ], "x-ms-client-request-id": [ - "1ecb15f0-f2a8-4613-a867-8d02cb610b65" + "f42d693e-a70b-4ad3-b664-8eea937a8e89" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg130\",\r\n \"name\": \"acr_rg130\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2068\",\r\n \"name\": \"acr_rg2068\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "171" + "173" ], "Content-Type": [ "application/json; charset=utf-8" @@ -93,22 +93,22 @@ "no-cache" ], "Date": [ - "Thu, 16 Mar 2017 22:56:06 GMT" + "Fri, 20 Oct 2017 00:41:22 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" + "1190" ], "x-ms-request-id": [ - "c3f722d0-6f02-493e-91ac-de336192ea3a" + "9bf066d4-8961-49d6-8388-6637d4618177" ], "x-ms-correlation-request-id": [ - "c3f722d0-6f02-493e-91ac-de336192ea3a" + "9bf066d4-8961-49d6-8388-6637d4618177" ], "x-ms-routing-request-id": [ - "WESTUS2:20170316T225606Z:c3f722d0-6f02-493e-91ac-de336192ea3a" + "WESTUS2:20171020T004123Z:9bf066d4-8961-49d6-8388-6637d4618177" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -117,196 +117,10 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg130/providers/Microsoft.Storage/storageAccounts/acrstorage5345?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzEzMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2FjcnN0b3JhZ2U1MzQ1P2FwaS12ZXJzaW9uPTIwMTYtMDEtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "2b07dbd0-68b9-4c65-bd63-ab7c9ea1c79d" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:56:07 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/47e8748b-1867-44fe-ac4a-ee96e5eca922?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1184" - ], - "x-ms-request-id": [ - "cda0e802-0fe9-4acd-9106-d05fc169a731" - ], - "x-ms-correlation-request-id": [ - "cda0e802-0fe9-4acd-9106-d05fc169a731" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225608Z:cda0e802-0fe9-4acd-9106-d05fc169a731" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/47e8748b-1867-44fe-ac4a-ee96e5eca922?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzQ3ZTg3NDhiLTE4NjctNDRmZS1hYzRhLWVlOTZlNWVjYTkyMj9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg130/providers/Microsoft.Storage/storageAccounts/acrstorage5345\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage5345\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:56:07.7550247Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage5345.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage5345.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage5345.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage5345.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:56:38 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "3a4c2840-0a7e-4533-9186-721f9d6d86c0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" - ], - "x-ms-correlation-request-id": [ - "3a4c2840-0a7e-4533-9186-721f9d6d86c0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225639Z:3a4c2840-0a7e-4533-9186-721f9d6d86c0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg130/providers/Microsoft.Storage/storageAccounts/acrstorage5345/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzEzMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2FjcnN0b3JhZ2U1MzQ1L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMTYtMDEtMDE=", + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2be52d97-14fe-4e30-9277-07b51689a153" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"S/HB2nelE4UpnKyjQ8w9miTohq6PpnOffxVACsRGTg+Svk2A3DO+g51lp1Ty9nCKsS7qXoTRRdAx5FC4t3s/xQ==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"BQd9rn6zE5L9wDAs/JaBTJM54LDoyZnSEmMQYuvkvucG7C0e+WZ1dFXypBwg2oqgej3yKDAxIbhkpjPf+xcuLg==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:56:38 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "5a872545-a333-4dc9-bcfb-6c2a54f2c20c" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1183" - ], - "x-ms-correlation-request-id": [ - "5a872545-a333-4dc9-bcfb-6c2a54f2c20c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225639Z:5a872545-a333-4dc9-bcfb-6c2a54f2c20c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"acrregistry5548\",\r\n \"type\": \"Microsoft.ContainerRegistry/registries\"\r\n}", + "RequestBody": "{\r\n \"name\": \"acrregistry2054\",\r\n \"type\": \"Microsoft.ContainerRegistry/registries\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -315,14 +129,14 @@ "86" ], "x-ms-client-request-id": [ - "5e0ebdba-0b86-4bee-84be-460225775ad7" + "e8ee88a2-1e56-4dfc-839d-52afaafd29fc" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" ] }, "ResponseBody": "{\r\n \"nameAvailable\": true\r\n}", @@ -337,7 +151,7 @@ "no-cache" ], "Date": [ - "Thu, 16 Mar 2017 22:56:39 GMT" + "Fri, 20 Oct 2017 00:41:23 GMT" ], "Pragma": [ "no-cache" @@ -355,23 +169,23 @@ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14785" ], "x-ms-request-id": [ - "c4fa4d27-9fb2-4d99-a735-16b0bc59eb05" + "748f763b-0dc3-43cf-8598-6d0b16f834a3" ], "x-ms-correlation-request-id": [ - "c4fa4d27-9fb2-4d99-a735-16b0bc59eb05" + "748f763b-0dc3-43cf-8598-6d0b16f834a3" ], "x-ms-routing-request-id": [ - "WESTUS2:20170316T225640Z:c4fa4d27-9fb2-4d99-a735-16b0bc59eb05" + "WESTUS2:20171020T004124Z:748f763b-0dc3-43cf-8598-6d0b16f834a3" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", "RequestMethod": "POST", "RequestBody": "{\r\n \"name\": \"Microsoft\",\r\n \"type\": \"Microsoft.ContainerRegistry/registries\"\r\n}", "RequestHeaders": { @@ -382,17 +196,17 @@ "80" ], "x-ms-client-request-id": [ - "37aee96c-fd71-4ec2-b4f3-f13e394c3266" + "bf129c63-74c6-4243-a583-712c50f4689b" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" ] }, - "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"Invalid\",\r\n \"message\": \"The specified registry name is disallowed\"\r\n}", + "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"Invalid\",\r\n \"message\": \"The specified resource name is disallowed\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -404,7 +218,7 @@ "no-cache" ], "Date": [ - "Thu, 16 Mar 2017 22:56:39 GMT" + "Fri, 20 Oct 2017 00:41:23 GMT" ], "Pragma": [ "no-cache" @@ -422,25 +236,25 @@ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14784" ], "x-ms-request-id": [ - "ea8832fc-3a86-4462-8415-0fe50b866217" + "2f084061-06a6-4e00-9d16-60c18b4b6085" ], "x-ms-correlation-request-id": [ - "ea8832fc-3a86-4462-8415-0fe50b866217" + "2f084061-06a6-4e00-9d16-60c18b4b6085" ], "x-ms-routing-request-id": [ - "WESTUS2:20170316T225640Z:ea8832fc-3a86-4462-8415-0fe50b866217" + "WESTUS2:20171020T004124Z:2f084061-06a6-4e00-9d16-60c18b4b6085" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"acrregistry6760\",\r\n \"type\": \"Microsoft.ContainerRegistry/registries\"\r\n}", + "RequestBody": "{\r\n \"name\": \"acrregistry1872\",\r\n \"type\": \"Microsoft.ContainerRegistry/registries\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -449,17 +263,17 @@ "86" ], "x-ms-client-request-id": [ - "e0454ff5-2ba2-45d2-9cd5-f38799106907" + "237c9a2a-70bd-4edb-9b45-8194d92cd660" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" ] }, - "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"AlreadyExists\",\r\n \"message\": \"The registry acrregistry6760 is already in use.\"\r\n}", + "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"AlreadyExists\",\r\n \"message\": \"The registry acrregistry1872 is already in use.\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -471,7 +285,7 @@ "no-cache" ], "Date": [ - "Thu, 16 Mar 2017 22:56:42 GMT" + "Fri, 20 Oct 2017 00:41:27 GMT" ], "Pragma": [ "no-cache" @@ -489,44 +303,44 @@ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14783" ], "x-ms-request-id": [ - "3b383815-17eb-4b57-a394-8b0b6d4834cf" + "0058cbaa-fd0a-4e09-a593-3f83f3389956" ], "x-ms-correlation-request-id": [ - "3b383815-17eb-4b57-a394-8b0b6d4834cf" + "0058cbaa-fd0a-4e09-a593-3f83f3389956" ], "x-ms-routing-request-id": [ - "WESTUS2:20170316T225643Z:3b383815-17eb-4b57-a394-8b0b6d4834cf" + "WESTUS2:20171020T004128Z:0058cbaa-fd0a-4e09-a593-3f83f3389956" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg130/providers/Microsoft.ContainerRegistry/registries/acrregistry6760?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzEzMC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXMvYWNycmVnaXN0cnk2NzYwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2068/providers/Microsoft.ContainerRegistry/registries/acrregistry1872?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIwNjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTg3Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5345\",\r\n \"accessKey\": \"S/HB2nelE4UpnKyjQ8w9miTohq6PpnOffxVACsRGTg+Svk2A3DO+g51lp1Ty9nCKsS7qXoTRRdAx5FC4t3s/xQ==\"\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "332" + "133" ], "x-ms-client-request-id": [ - "4b9ff5c7-45c3-45d2-b620-1860c1c3d32b" + "65e01b16-2897-41b1-89a0-d700f38645d6" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg130/providers/Microsoft.ContainerRegistry/registries/acrregistry6760\",\r\n \"name\": \"acrregistry6760\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry6760.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:56:42.4447349Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5345\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg2068/providers/Microsoft.ContainerRegistry/registries/acrregistry1872\",\r\n \"name\": \"acrregistry1872\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1872.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:41:26.2776042Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -538,7 +352,7 @@ "no-cache" ], "Date": [ - "Thu, 16 Mar 2017 22:56:42 GMT" + "Fri, 20 Oct 2017 00:41:27 GMT" ], "Pragma": [ "no-cache" @@ -556,16 +370,16 @@ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1182" + "1189" ], "x-ms-request-id": [ - "85f6f2c2-82b9-47fd-9fa3-28256215009d" + "34304b7b-2976-483c-b2c8-dfa62eafcf12" ], "x-ms-correlation-request-id": [ - "85f6f2c2-82b9-47fd-9fa3-28256215009d" + "34304b7b-2976-483c-b2c8-dfa62eafcf12" ], "x-ms-routing-request-id": [ - "WESTUS2:20170316T225643Z:85f6f2c2-82b9-47fd-9fa3-28256215009d" + "WESTUS2:20171020T004128Z:34304b7b-2976-483c-b2c8-dfa62eafcf12" ] }, "StatusCode": 200 @@ -573,19 +387,16 @@ ], "Names": { "CreateResourceGroup": [ - "acr_rg130" - ], - "CreateStorageAccount": [ - "acrstorage5345" + "acr_rg2068" ], "ContainerRegistryCheckNameTest": [ - "acrregistry5548" + "acrregistry2054" ], - "CreateContainerRegistry": [ - "acrregistry6760" + "CreateManagedContainerRegistry": [ + "acrregistry1872" ] }, "Variables": { - "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" + "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" } } \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCreateTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCreateTest.json deleted file mode 100644 index 8b4ec685d443..000000000000 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryCreateTest.json +++ /dev/null @@ -1,455 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c9893638-06dc-432f-8687-c0a9f49f5dfe" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:54:57 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" - ], - "x-ms-request-id": [ - "a989aba4-f088-49da-adf3-0035505cd7f3" - ], - "x-ms-correlation-request-id": [ - "a989aba4-f088-49da-adf3-0035505cd7f3" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225457Z:a989aba4-f088-49da-adf3-0035505cd7f3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg3844?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzM4NDQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "99791b0e-d205-44e8-8f18-962304c2d692" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844\",\r\n \"name\": \"acr_rg3844\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:54:57 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1180" - ], - "x-ms-request-id": [ - "3fdbc2bf-127b-4622-96d7-9d94504853ac" - ], - "x-ms-correlation-request-id": [ - "3fdbc2bf-127b-4622-96d7-9d94504853ac" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225458Z:3fdbc2bf-127b-4622-96d7-9d94504853ac" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844/providers/Microsoft.Storage/storageAccounts/acrstorage5516?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTUxNj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "ef35c44e-8d8a-42fb-8137-01a80af9e7cb" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:54:59 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/b44eeab4-a4b7-4f25-8be2-b49879f44820?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1179" - ], - "x-ms-request-id": [ - "90befa48-ccb3-4759-b09c-b3b950eefc45" - ], - "x-ms-correlation-request-id": [ - "90befa48-ccb3-4759-b09c-b3b950eefc45" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225459Z:90befa48-ccb3-4759-b09c-b3b950eefc45" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/b44eeab4-a4b7-4f25-8be2-b49879f44820?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2I0NGVlYWI0LWE0YjctNGYyNS04YmUyLWI0OTg3OWY0NDgyMD9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844/providers/Microsoft.Storage/storageAccounts/acrstorage5516\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage5516\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:54:59.2635223Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage5516.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage5516.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage5516.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage5516.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:55:29 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "cb31d1c6-abe3-437e-b1f8-429803cccb9f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" - ], - "x-ms-correlation-request-id": [ - "cb31d1c6-abe3-437e-b1f8-429803cccb9f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225530Z:cb31d1c6-abe3-437e-b1f8-429803cccb9f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844/providers/Microsoft.Storage/storageAccounts/acrstorage5516/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTUxNi9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4f7a9b94-d1b0-4a43-9d76-fa5c75c4c9af" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"iEGtqp2ZNlb2v4DeDANC+DA45w3JDJXHmNVOtJ+c6kaIFRBxkw38LOMqsc9v+GE9WirfqiqDMAQF84sMlzsb6w==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"KRzW0lpeLoBeNU2WyUx6V9iVXe+IfYipggO2UXZyFuqCxUg9DfFvfjzr5wkP0jAJ/WvP1FQLl0/myXhh1jMMCQ==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:55:29 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "a5ee8330-9532-40a2-9e8b-5fa49754517f" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1178" - ], - "x-ms-correlation-request-id": [ - "a5ee8330-9532-40a2-9e8b-5fa49754517f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225530Z:a5ee8330-9532-40a2-9e8b-5fa49754517f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844/providers/Microsoft.ContainerRegistry/registries/acrregistry807?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODA3P2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5516\",\r\n \"accessKey\": \"iEGtqp2ZNlb2v4DeDANC+DA45w3JDJXHmNVOtJ+c6kaIFRBxkw38LOMqsc9v+GE9WirfqiqDMAQF84sMlzsb6w==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "332" - ], - "x-ms-client-request-id": [ - "fe8474d6-109f-4293-ae6d-315f7c184e5c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg3844/providers/Microsoft.ContainerRegistry/registries/acrregistry807\",\r\n \"name\": \"acrregistry807\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry807.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:55:32.9755213Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5516\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:55:59 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1177" - ], - "x-ms-request-id": [ - "86b78256-5fbf-4e25-bb60-344a0b2d7f6b" - ], - "x-ms-correlation-request-id": [ - "86b78256-5fbf-4e25-bb60-344a0b2d7f6b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225559Z:86b78256-5fbf-4e25-bb60-344a0b2d7f6b" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3844/providers/Microsoft.ContainerRegistry/registries/acrregistry5094?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4NDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTA5ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5516\",\r\n \"accessKey\": \"iEGtqp2ZNlb2v4DeDANC+DA45w3JDJXHmNVOtJ+c6kaIFRBxkw38LOMqsc9v+GE9WirfqiqDMAQF84sMlzsb6w==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "363" - ], - "x-ms-client-request-id": [ - "3a4ba901-c32d-4bbd-a69b-1900f91d71f4" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg3844/providers/Microsoft.ContainerRegistry/registries/acrregistry5094\",\r\n \"name\": \"acrregistry5094\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry5094.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:56:00.9029153Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5516\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:56:01 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1176" - ], - "x-ms-request-id": [ - "2d051354-0e55-46ab-8e2c-f1771df6051f" - ], - "x-ms-correlation-request-id": [ - "2d051354-0e55-46ab-8e2c-f1771df6051f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225601Z:2d051354-0e55-46ab-8e2c-f1771df6051f" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "acr_rg3844" - ], - "CreateStorageAccount": [ - "acrstorage5516" - ], - "ContainerRegistryCreateTest": [ - "acrregistry807", - "acrregistry5094" - ] - }, - "Variables": { - "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" - } -} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryDeleteTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryDeleteTest.json deleted file mode 100644 index ce9433468a3b..000000000000 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryDeleteTest.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b96ba4cf-46e1-4381-a4f7-ecac752927ff" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:52 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" - ], - "x-ms-request-id": [ - "76319a52-1f99-4745-96e5-b7dffa19565e" - ], - "x-ms-correlation-request-id": [ - "76319a52-1f99-4745-96e5-b7dffa19565e" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225352Z:76319a52-1f99-4745-96e5-b7dffa19565e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg3822?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzM4MjI/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "8f046bfc-9469-4875-b864-ae72cdfea73d" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822\",\r\n \"name\": \"acr_rg3822\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:53 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-request-id": [ - "342e98a3-869b-4097-bf62-6ac083cf7a0d" - ], - "x-ms-correlation-request-id": [ - "342e98a3-869b-4097-bf62-6ac083cf7a0d" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225353Z:342e98a3-869b-4097-bf62-6ac083cf7a0d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.Storage/storageAccounts/acrstorage8486?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODQ4Nj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "39fc6665-412b-40fe-abf1-3021091a732c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:54 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/34262009-be6f-4a5a-b863-e7da8c7ff9d8?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-request-id": [ - "89829535-f1df-46e5-858b-845b88498e73" - ], - "x-ms-correlation-request-id": [ - "89829535-f1df-46e5-858b-845b88498e73" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225354Z:89829535-f1df-46e5-858b-845b88498e73" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/34262009-be6f-4a5a-b863-e7da8c7ff9d8?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzM0MjYyMDA5LWJlNmYtNGE1YS1iODYzLWU3ZGE4YzdmZjlkOD9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.Storage/storageAccounts/acrstorage8486\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage8486\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:53:54.729397Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage8486.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage8486.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage8486.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage8486.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:54:24 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "674300de-8a92-49e7-a8fd-1cbcdca77911" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" - ], - "x-ms-correlation-request-id": [ - "674300de-8a92-49e7-a8fd-1cbcdca77911" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225425Z:674300de-8a92-49e7-a8fd-1cbcdca77911" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.Storage/storageAccounts/acrstorage8486/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODQ4Ni9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "325317cd-6890-4c73-86ad-3c30009e588a" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"H7HeVdoiFI54kD7+nATzO027hQ6rLvKdYETqORURd+AmRQwnhMoEdkyPHUlH8TORffd35YcAJyayQOW0wDjWEw==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"bC3PcP8JFDA9xvXtA3cYuoifRE8HqbRDFnjG3ALUoB9ZLzc2ATrdvY5ZqC6vcwAWqaqZQOlYQX5YwCNV70iUhQ==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:54:24 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "5766b74f-3550-4fa7-a575-e1abd3e376c8" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-correlation-request-id": [ - "5766b74f-3550-4fa7-a575-e1abd3e376c8" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225425Z:5766b74f-3550-4fa7-a575-e1abd3e376c8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.ContainerRegistry/registries/doesnotexist?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2RvZXNub3RleGlzdD9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "0e81f88d-d9c9-4d2e-a6c7-3d12df61e04b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:54:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-request-id": [ - "e16e0a98-7f9c-41a5-85b9-e266a96665b4" - ], - "x-ms-correlation-request-id": [ - "e16e0a98-7f9c-41a5-85b9-e266a96665b4" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225425Z:e16e0a98-7f9c-41a5-85b9-e266a96665b4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 204 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.ContainerRegistry/registries/acrregistry4222?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NDIyMj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8486\",\r\n \"accessKey\": \"H7HeVdoiFI54kD7+nATzO027hQ6rLvKdYETqORURd+AmRQwnhMoEdkyPHUlH8TORffd35YcAJyayQOW0wDjWEw==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "332" - ], - "x-ms-client-request-id": [ - "e3bcee92-0a6c-4494-92a4-bc71aa55179c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg3822/providers/Microsoft.ContainerRegistry/registries/acrregistry4222\",\r\n \"name\": \"acrregistry4222\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry4222.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:54:47.0144318Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8486\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:54:48 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" - ], - "x-ms-request-id": [ - "95841333-8683-4930-a86b-a088a113960e" - ], - "x-ms-correlation-request-id": [ - "95841333-8683-4930-a86b-a088a113960e" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225449Z:95841333-8683-4930-a86b-a088a113960e" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.ContainerRegistry/registries/acrregistry4222?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NDIyMj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d1804061-ce22-40b1-b6d5-362e5bee2773" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:54:50 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" - ], - "x-ms-request-id": [ - "ec6444eb-a82e-45e2-8050-82d509024806" - ], - "x-ms-correlation-request-id": [ - "ec6444eb-a82e-45e2-8050-82d509024806" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225451Z:ec6444eb-a82e-45e2-8050-82d509024806" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg3822/providers/Microsoft.ContainerRegistry/registries/acrregistry4222?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzM4MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NDIyMj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "7ff2b18e-97e4-401e-8055-53167c552697" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:54:50 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" - ], - "x-ms-request-id": [ - "23390d66-2889-46bc-a129-9f1c812e8ecc" - ], - "x-ms-correlation-request-id": [ - "23390d66-2889-46bc-a129-9f1c812e8ecc" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225451Z:23390d66-2889-46bc-a129-9f1c812e8ecc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 204 - } - ], - "Names": { - "CreateResourceGroup": [ - "acr_rg3822" - ], - "CreateStorageAccount": [ - "acrstorage8486" - ], - "CreateContainerRegistry": [ - "acrregistry4222" - ] - }, - "Variables": { - "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" - } -} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryGetTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryGetTest.json deleted file mode 100644 index 2b3656483dcb..000000000000 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryGetTest.json +++ /dev/null @@ -1,577 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "41059e2e-0fea-4d73-b461-c86720c42774" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:45:57 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" - ], - "x-ms-request-id": [ - "8a8e859c-95af-407b-90da-2e1b4311e704" - ], - "x-ms-correlation-request-id": [ - "8a8e859c-95af-407b-90da-2e1b4311e704" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224558Z:8a8e859c-95af-407b-90da-2e1b4311e704" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9843?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzk4NDM/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "ce54ebbd-22c1-4dde-86f4-659db2c94cfc" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843\",\r\n \"name\": \"acr_rg9843\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:45:58 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-request-id": [ - "016cf2ab-362e-4eaf-8100-fa61d9e3c84e" - ], - "x-ms-correlation-request-id": [ - "016cf2ab-362e-4eaf-8100-fa61d9e3c84e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224558Z:016cf2ab-362e-4eaf-8100-fa61d9e3c84e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.Storage/storageAccounts/acrstorage5985?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTk4NT9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "3289b3a2-e3ec-429e-bfa0-d3c23bf8b3a6" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:45:58 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/8d99bedd-6f7b-4e25-aaa4-d4b762f3746b?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-request-id": [ - "640e8a2a-b944-42c5-86e8-21f4e55913ad" - ], - "x-ms-correlation-request-id": [ - "640e8a2a-b944-42c5-86e8-21f4e55913ad" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224559Z:640e8a2a-b944-42c5-86e8-21f4e55913ad" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/8d99bedd-6f7b-4e25-aaa4-d4b762f3746b?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzhkOTliZWRkLTZmN2ItNGUyNS1hYWE0LWQ0Yjc2MmYzNzQ2Yj9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.Storage/storageAccounts/acrstorage5985\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage5985\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:45:59.8424177Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage5985.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage5985.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage5985.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage5985.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:46:32 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "fe63b8d5-9ee0-413c-bb6e-5cca67335a5e" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" - ], - "x-ms-correlation-request-id": [ - "fe63b8d5-9ee0-413c-bb6e-5cca67335a5e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224632Z:fe63b8d5-9ee0-413c-bb6e-5cca67335a5e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.Storage/storageAccounts/acrstorage5985/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTk4NS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4bf6fc89-c5cb-40d0-a191-7b9f034f251a" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"nWK3MX+0ZSkjFzNIM0tSuewn6K9MhzsqRJtUaRNh+WIKGd1Uq94hbGkg74t8SwTVewawOk3STzdFItTsaCNJgA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"1qbwQDM6OVYsqmxC96z29jQa8tzYZSX2j4uy7nMWRp/pnyf9IjBs/m7efRsu4xii0gRGUX8UawSlJhlSw49Mxg==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:46:32 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "c4a3913a-1254-4eee-9a87-50ff83b1c302" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-correlation-request-id": [ - "c4a3913a-1254-4eee-9a87-50ff83b1c302" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224633Z:c4a3913a-1254-4eee-9a87-50ff83b1c302" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry86?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODY/YXBpLXZlcnNpb249MjAxNy0wMy0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\",\r\n \"accessKey\": \"nWK3MX+0ZSkjFzNIM0tSuewn6K9MhzsqRJtUaRNh+WIKGd1Uq94hbGkg74t8SwTVewawOk3STzdFItTsaCNJgA==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "363" - ], - "x-ms-client-request-id": [ - "9d61f92a-bd56-4d43-b96a-4e87a756da34" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry86\",\r\n \"name\": \"acrregistry86\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry86.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:46:35.8198288Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:46:37 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-request-id": [ - "d181b9eb-273d-4ef2-ab43-c2721e392f5d" - ], - "x-ms-correlation-request-id": [ - "d181b9eb-273d-4ef2-ab43-c2721e392f5d" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224637Z:d181b9eb-273d-4ef2-ab43-c2721e392f5d" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry86?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODY/YXBpLXZlcnNpb249MjAxNy0wMy0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "fa0b33c0-d0ca-47e9-aef4-df52bd484d5b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry86\",\r\n \"name\": \"acrregistry86\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry86.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:46:37.402919Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:46:37 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" - ], - "x-ms-request-id": [ - "5fb17681-89d0-48ed-8b66-b1c59d657b92" - ], - "x-ms-correlation-request-id": [ - "5fb17681-89d0-48ed-8b66-b1c59d657b92" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224637Z:5fb17681-89d0-48ed-8b66-b1c59d657b92" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry3319?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MzMxOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\",\r\n \"accessKey\": \"nWK3MX+0ZSkjFzNIM0tSuewn6K9MhzsqRJtUaRNh+WIKGd1Uq94hbGkg74t8SwTVewawOk3STzdFItTsaCNJgA==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "364" - ], - "x-ms-client-request-id": [ - "a1ebdbea-791c-462d-80be-c385dc3a8b6d" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry3319\",\r\n \"name\": \"acrregistry3319\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry3319.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:46:39.5322797Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:47:04 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-request-id": [ - "bbbaad0c-d636-44be-99fc-c3d16d9be2a1" - ], - "x-ms-correlation-request-id": [ - "bbbaad0c-d636-44be-99fc-c3d16d9be2a1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224705Z:bbbaad0c-d636-44be-99fc-c3d16d9be2a1" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry3319?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk4NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MzMxOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "def4c9bb-05e6-479f-8806-b07dcfc75e32" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9843/providers/Microsoft.ContainerRegistry/registries/acrregistry3319\",\r\n \"name\": \"acrregistry3319\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry3319.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:47:05.5229154Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5985\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:47:05 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" - ], - "x-ms-request-id": [ - "b84695df-cebe-40e2-b5b8-f0530e1a12e7" - ], - "x-ms-correlation-request-id": [ - "b84695df-cebe-40e2-b5b8-f0530e1a12e7" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224705Z:b84695df-cebe-40e2-b5b8-f0530e1a12e7" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "acr_rg9843" - ], - "CreateStorageAccount": [ - "acrstorage5985" - ], - "ContainerRegistryGetTest": [ - "acrregistry86", - "acrregistry3319" - ] - }, - "Variables": { - "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" - } -} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListByResourceGroupTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListByResourceGroupTest.json deleted file mode 100644 index fbe2da3e8cb9..000000000000 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListByResourceGroupTest.json +++ /dev/null @@ -1,516 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "fe2f4482-5e22-4253-af96-0d71a6e61e31" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:50:35 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" - ], - "x-ms-request-id": [ - "e7c70ac7-f396-4869-8b9f-9b7e24a49de2" - ], - "x-ms-correlation-request-id": [ - "e7c70ac7-f396-4869-8b9f-9b7e24a49de2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225036Z:e7c70ac7-f396-4869-8b9f-9b7e24a49de2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg4701?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzQ3MDE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "0a8cb82b-5bbe-4e03-9ff3-63e3b0432d2d" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701\",\r\n \"name\": \"acr_rg4701\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:50:36 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-request-id": [ - "03b6bccb-70e0-4a38-a2ea-e7fb117c1e6a" - ], - "x-ms-correlation-request-id": [ - "03b6bccb-70e0-4a38-a2ea-e7fb117c1e6a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225036Z:03b6bccb-70e0-4a38-a2ea-e7fb117c1e6a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.Storage/storageAccounts/acrstorage8876?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODg3Nj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "b15b747e-ea75-4b61-beab-1ab67651e48e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:50:36 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/a126c5db-2717-4758-91a0-df9db6e226fe?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-request-id": [ - "31753bdc-596a-490f-8a89-ddaf3416d33d" - ], - "x-ms-correlation-request-id": [ - "31753bdc-596a-490f-8a89-ddaf3416d33d" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225037Z:31753bdc-596a-490f-8a89-ddaf3416d33d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/a126c5db-2717-4758-91a0-df9db6e226fe?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2ExMjZjNWRiLTI3MTctNDc1OC05MWEwLWRmOWRiNmUyMjZmZT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.Storage/storageAccounts/acrstorage8876\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage8876\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:50:37.4409786Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage8876.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage8876.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage8876.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage8876.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:51:07 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "96789ba5-32c0-41f7-9b47-7148d48d1e94" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" - ], - "x-ms-correlation-request-id": [ - "96789ba5-32c0-41f7-9b47-7148d48d1e94" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225107Z:96789ba5-32c0-41f7-9b47-7148d48d1e94" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.Storage/storageAccounts/acrstorage8876/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODg3Ni9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "25e00b70-37ce-4af5-86a4-743d40b8d0a3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"9IDINDecbc1h/EN8LpAcyoLw3n/HI8goIJQ2hMsNrZ2R/MBwsZ+IW9JcAo2FW6pVZW4rRNzW8mf24nz+fw8HVw==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"FPaTF1xzLyRyP/OT0SBW6Kwqznk0WfYhe+SSldVQ0yE3S4QBd/zNnd6roYFlqmIXSZj5NMYofzoy0LVc8gA1rA==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:51:07 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "a940a0df-0456-499b-8b94-3b6bfc4e7b0d" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-correlation-request-id": [ - "a940a0df-0456-499b-8b94-3b6bfc4e7b0d" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225107Z:a940a0df-0456-499b-8b94-3b6bfc4e7b0d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry8286?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDEvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5ODI4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\",\r\n \"accessKey\": \"9IDINDecbc1h/EN8LpAcyoLw3n/HI8goIJQ2hMsNrZ2R/MBwsZ+IW9JcAo2FW6pVZW4rRNzW8mf24nz+fw8HVw==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "332" - ], - "x-ms-client-request-id": [ - "28f9b49a-a5fa-45c1-88da-0bc7fc9f432c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry8286\",\r\n \"name\": \"acrregistry8286\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8286.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:51:29.0179786Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:51:54 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-request-id": [ - "c5656653-459a-4053-8c4a-fdb52734adcc" - ], - "x-ms-correlation-request-id": [ - "c5656653-459a-4053-8c4a-fdb52734adcc" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225154Z:c5656653-459a-4053-8c4a-fdb52734adcc" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry7868?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDEvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2OD9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\",\r\n \"accessKey\": \"9IDINDecbc1h/EN8LpAcyoLw3n/HI8goIJQ2hMsNrZ2R/MBwsZ+IW9JcAo2FW6pVZW4rRNzW8mf24nz+fw8HVw==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "332" - ], - "x-ms-client-request-id": [ - "bbff414e-6ab0-4e48-9ff5-6a321edbc941" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry7868\",\r\n \"name\": \"acrregistry7868\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7868.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:51:55.9662416Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:52:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-request-id": [ - "5691500f-daab-409c-8060-27f9336a467a" - ], - "x-ms-correlation-request-id": [ - "5691500f-daab-409c-8060-27f9336a467a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225222Z:5691500f-daab-409c-8060-27f9336a467a" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzQ3MDEvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "58e6529d-d04d-4943-b94f-475c98536ddf" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry7868\",\r\n \"name\": \"acrregistry7868\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7868.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:52:22.1088397Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\"\r\n }\r\n }\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg4701/providers/Microsoft.ContainerRegistry/registries/acrregistry8286\",\r\n \"name\": \"acrregistry8286\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry8286.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:51:30.5921302Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8876\"\r\n }\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:52:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" - ], - "x-ms-request-id": [ - "e17dfcc5-366c-4b6c-af66-04b4ebe5980b" - ], - "x-ms-correlation-request-id": [ - "e17dfcc5-366c-4b6c-af66-04b4ebe5980b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225222Z:e17dfcc5-366c-4b6c-af66-04b4ebe5980b" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "acr_rg4701" - ], - "CreateStorageAccount": [ - "acrstorage8876" - ], - "CreateContainerRegistry": [ - "acrregistry8286", - "acrregistry7868" - ] - }, - "Variables": { - "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" - } -} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListBySubscriptionTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListBySubscriptionTest.json deleted file mode 100644 index abfee1ee088f..000000000000 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListBySubscriptionTest.json +++ /dev/null @@ -1,820 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "64abe80b-6390-433a-8729-6aabe018fce6" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:47:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" - ], - "x-ms-request-id": [ - "b9eed7cb-206e-4ed4-bee9-a924cbf4efb8" - ], - "x-ms-correlation-request-id": [ - "b9eed7cb-206e-4ed4-bee9-a924cbf4efb8" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224711Z:b9eed7cb-206e-4ed4-bee9-a924cbf4efb8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "1ff71a2b-73dc-4926-9315-37596b7db49d" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:48:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" - ], - "x-ms-request-id": [ - "c8b972ef-213c-4240-9bd4-2989e4392da1" - ], - "x-ms-correlation-request-id": [ - "c8b972ef-213c-4240-9bd4-2989e4392da1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224811Z:c8b972ef-213c-4240-9bd4-2989e4392da1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg2340?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzIzNDA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "0cc79db5-18a8-4d72-a5cd-8b4d1f428354" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg2340\",\r\n \"name\": \"acr_rg2340\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:47:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" - ], - "x-ms-request-id": [ - "e161d2e2-0c34-4bb0-ac15-135481027428" - ], - "x-ms-correlation-request-id": [ - "e161d2e2-0c34-4bb0-ac15-135481027428" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224712Z:e161d2e2-0c34-4bb0-ac15-135481027428" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg2340/providers/Microsoft.Storage/storageAccounts/acrstorage3754?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlMzc1ND9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "c1eb7ad5-d579-482c-94ca-0260cae288a8" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:47:12 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/c5353d5d-2a20-4ec2-b331-4c02451c9e05?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" - ], - "x-ms-request-id": [ - "4580cf76-7a45-4f0e-8f46-c92ddde55d31" - ], - "x-ms-correlation-request-id": [ - "4580cf76-7a45-4f0e-8f46-c92ddde55d31" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224712Z:4580cf76-7a45-4f0e-8f46-c92ddde55d31" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/c5353d5d-2a20-4ec2-b331-4c02451c9e05?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2M1MzUzZDVkLTJhMjAtNGVjMi1iMzMxLTRjMDI0NTFjOWUwNT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg2340/providers/Microsoft.Storage/storageAccounts/acrstorage3754\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage3754\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:47:13.1223613Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage3754.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage3754.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage3754.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage3754.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:47:42 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "c7403d6a-d1af-48c1-9126-590b2ed6e9f1" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" - ], - "x-ms-correlation-request-id": [ - "c7403d6a-d1af-48c1-9126-590b2ed6e9f1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224743Z:c7403d6a-d1af-48c1-9126-590b2ed6e9f1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg2340/providers/Microsoft.Storage/storageAccounts/acrstorage3754/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlMzc1NC9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d74e62aa-7065-456a-b121-c51b2b925572" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"ZGudPqJXjh3yawc9pQq7+8UKTNo/wC4X9Qfkj461E3qYaYK9hQ2QNui0cwvH1H+POUKfeIjp+6xuFt88IYzvsQ==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"ZKiBjGl7gkmZ3NKHSwRIts8cAqNAr5qwv/zgL8HW5Ey5aH3cAM8zWDRlcFDBXNuxdfUAaX3oiemthvyTncbiLw==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:47:42 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "14b525cb-5b25-4166-bba2-c710539b621f" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1188" - ], - "x-ms-correlation-request-id": [ - "14b525cb-5b25-4166-bba2-c710539b621f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224743Z:14b525cb-5b25-4166-bba2-c710539b621f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg2340/providers/Microsoft.ContainerRegistry/registries/acrregistry3911?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzIzNDAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MzkxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3754\",\r\n \"accessKey\": \"ZGudPqJXjh3yawc9pQq7+8UKTNo/wC4X9Qfkj461E3qYaYK9hQ2QNui0cwvH1H+POUKfeIjp+6xuFt88IYzvsQ==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "332" - ], - "x-ms-client-request-id": [ - "7ac39e12-38c6-452c-a9f3-a5c4d12e004d" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg2340/providers/Microsoft.ContainerRegistry/registries/acrregistry3911\",\r\n \"name\": \"acrregistry3911\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry3911.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:47:44.6019628Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3754\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:48:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" - ], - "x-ms-request-id": [ - "a161a51d-2afe-43be-8ffc-3532ae5f7001" - ], - "x-ms-correlation-request-id": [ - "a161a51d-2afe-43be-8ffc-3532ae5f7001" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224811Z:a161a51d-2afe-43be-8ffc-3532ae5f7001" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg6006?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzYwMDY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "68adf39d-617a-4db5-9f86-d0eed3860672" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg6006\",\r\n \"name\": \"acr_rg6006\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:48:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" - ], - "x-ms-request-id": [ - "e5c97fee-4581-43cd-acf6-484b2d1fc440" - ], - "x-ms-correlation-request-id": [ - "e5c97fee-4581-43cd-acf6-484b2d1fc440" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224811Z:e5c97fee-4581-43cd-acf6-484b2d1fc440" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg6006/providers/Microsoft.Storage/storageAccounts/acrstorage3046?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlMzA0Nj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "629eb358-5cb9-4aea-a0c5-9346afb2c7d9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:48:12 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/bdeb3a65-1562-4be5-b2ef-39c1b54e225a?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" - ], - "x-ms-request-id": [ - "48d5dbf2-f052-4173-9a68-d853f2199365" - ], - "x-ms-correlation-request-id": [ - "48d5dbf2-f052-4173-9a68-d853f2199365" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224812Z:48d5dbf2-f052-4173-9a68-d853f2199365" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/bdeb3a65-1562-4be5-b2ef-39c1b54e225a?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2JkZWIzYTY1LTE1NjItNGJlNS1iMmVmLTM5YzFiNTRlMjI1YT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg6006/providers/Microsoft.Storage/storageAccounts/acrstorage3046\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage3046\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:48:11.9667117Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage3046.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage3046.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage3046.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage3046.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:48:42 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "0910518c-67ac-4b45-bfab-3e1cad60cd3a" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" - ], - "x-ms-correlation-request-id": [ - "0910518c-67ac-4b45-bfab-3e1cad60cd3a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224842Z:0910518c-67ac-4b45-bfab-3e1cad60cd3a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg6006/providers/Microsoft.Storage/storageAccounts/acrstorage3046/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlMzA0Ni9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b866f0e3-b58c-493b-9587-a3e788d4dff7" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"7sVrGcwBj7Qw8TKHlmvhBjNCCWYNGBe4blQLarX7/BrsDCqCJDYK9mlEWcIivS+Li3ewRdFTGDvr3ANnsLTL2Q==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"Q86Ci1yM7RSuKt7XymP9QyvDPaDd1yFsTjBSIzXdAKJJTc4I14OPEjB5krbRZA/hRAqL0VXfAjYsj6TOztK8sw==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:48:42 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "392d8bc1-6433-45a3-9a2d-0636814d21b1" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1184" - ], - "x-ms-correlation-request-id": [ - "392d8bc1-6433-45a3-9a2d-0636814d21b1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224842Z:392d8bc1-6433-45a3-9a2d-0636814d21b1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg6006/providers/Microsoft.ContainerRegistry/registries/acrregistry6626?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzYwMDYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NjYyNj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3046\",\r\n \"accessKey\": \"7sVrGcwBj7Qw8TKHlmvhBjNCCWYNGBe4blQLarX7/BrsDCqCJDYK9mlEWcIivS+Li3ewRdFTGDvr3ANnsLTL2Q==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "332" - ], - "x-ms-client-request-id": [ - "fd8f3f9d-fcf0-4a04-b6d4-eef4a040100e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg6006/providers/Microsoft.ContainerRegistry/registries/acrregistry6626\",\r\n \"name\": \"acrregistry6626\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry6626.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:48:43.431155Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3046\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:48:44 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1183" - ], - "x-ms-request-id": [ - "544ad12e-44ca-4619-8af7-d26a9c51387e" - ], - "x-ms-correlation-request-id": [ - "544ad12e-44ca-4619-8af7-d26a9c51387e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224844Z:544ad12e-44ca-4619-8af7-d26a9c51387e" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry/registries?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvcmVnaXN0cmllcz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b8babf3c-4873-4d6d-9222-2b51e47bb94d" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg2340/providers/Microsoft.ContainerRegistry/registries/acrregistry3911\",\r\n \"name\": \"acrregistry3911\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry3911.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:48:11.1108569Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3754\"\r\n }\r\n }\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg6006/providers/Microsoft.ContainerRegistry/registries/acrregistry6626\",\r\n \"name\": \"acrregistry6626\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry6626.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:48:44.65611Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage3046\"\r\n }\r\n }\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:48:44 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" - ], - "x-ms-request-id": [ - "c2c5d389-b617-4245-8d05-5cf3fd43f42c" - ], - "x-ms-correlation-request-id": [ - "c2c5d389-b617-4245-8d05-5cf3fd43f42c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224844Z:c2c5d389-b617-4245-8d05-5cf3fd43f42c" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "acr_rg2340", - "acr_rg6006" - ], - "CreateStorageAccount": [ - "acrstorage3754", - "acrstorage3046" - ], - "CreateContainerRegistry": [ - "acrregistry3911", - "acrregistry6626" - ] - }, - "Variables": { - "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" - } -} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListCredentialsTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListCredentialsTest.json deleted file mode 100644 index edbbc8e6276d..000000000000 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryListCredentialsTest.json +++ /dev/null @@ -1,573 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "aa6d40e9-d7b2-4f6f-b032-b22a10a2e6c9" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:49:30 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" - ], - "x-ms-request-id": [ - "059bda0b-d7ec-49a5-b6b6-0479bf1a821c" - ], - "x-ms-correlation-request-id": [ - "059bda0b-d7ec-49a5-b6b6-0479bf1a821c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224930Z:059bda0b-d7ec-49a5-b6b6-0479bf1a821c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5198?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzUxOTg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "c74c0263-a7c0-4a74-996f-da24cae77d36" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198\",\r\n \"name\": \"acr_rg5198\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:49:31 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" - ], - "x-ms-request-id": [ - "548a819c-8c08-45c4-b1a5-82ccd44885b1" - ], - "x-ms-correlation-request-id": [ - "548a819c-8c08-45c4-b1a5-82ccd44885b1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224931Z:548a819c-8c08-45c4-b1a5-82ccd44885b1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.Storage/storageAccounts/acrstorage9033?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlOTAzMz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "80343310-7b33-4911-a694-f1aa7c374af7" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:49:32 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/19c56fa3-be92-4f73-8b0f-46c7f76dbdaf?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" - ], - "x-ms-request-id": [ - "3d3ce249-7611-4548-8bfd-eae2cedb893c" - ], - "x-ms-correlation-request-id": [ - "3d3ce249-7611-4548-8bfd-eae2cedb893c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224932Z:3d3ce249-7611-4548-8bfd-eae2cedb893c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/19c56fa3-be92-4f73-8b0f-46c7f76dbdaf?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzE5YzU2ZmEzLWJlOTItNGY3My04YjBmLTQ2YzdmNzZkYmRhZj9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.Storage/storageAccounts/acrstorage9033\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage9033\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:49:32.0674825Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage9033.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage9033.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage9033.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage9033.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:50:02 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "a053ad1f-ad19-43fe-b663-094045ddb331" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" - ], - "x-ms-correlation-request-id": [ - "a053ad1f-ad19-43fe-b663-094045ddb331" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225002Z:a053ad1f-ad19-43fe-b663-094045ddb331" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.Storage/storageAccounts/acrstorage9033/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlOTAzMy9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "153905ae-4feb-4b35-ac55-fec628c3d62e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"dnyiClPzMsKQSbo6nfc9xPP9cfMe0Zsm6pr2kmaq9D/rlG810GN7LfvYE0drPvX8eKwiwkq4kRAgcmmz7rjsQA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"t+Zxptimlm0pKrIUW5ZnOKWWIEz3oPPC7ArjrP8cfTUB1qxCE3HtTKZmjc/ZsEdVroU8ZQoRtvIwOFpywbXYlg==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:50:02 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "c6f4f6f7-8ee7-4bea-8c64-c7db36714950" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" - ], - "x-ms-correlation-request-id": [ - "c6f4f6f7-8ee7-4bea-8c64-c7db36714950" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225002Z:c6f4f6f7-8ee7-4bea-8c64-c7db36714950" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage9033\",\r\n \"accessKey\": \"dnyiClPzMsKQSbo6nfc9xPP9cfMe0Zsm6pr2kmaq9D/rlG810GN7LfvYE0drPvX8eKwiwkq4kRAgcmmz7rjsQA==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "332" - ], - "x-ms-client-request-id": [ - "3c9d90a2-3361-4852-94fa-e7181340dba8" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866\",\r\n \"name\": \"acrregistry7866\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7866.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:50:25.9915269Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage9033\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:50:26 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" - ], - "x-ms-request-id": [ - "5c0fb8bf-832a-4d5e-aeec-171f71b00322" - ], - "x-ms-correlation-request-id": [ - "5c0fb8bf-832a-4d5e-aeec-171f71b00322" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225027Z:5c0fb8bf-832a-4d5e-aeec-171f71b00322" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866/listCredentials?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2Ni9saXN0Q3JlZGVudGlhbHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMQ==", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "690c5a35-0cfa-4457-8efd-d5c986f17c7e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"message\": \"Cannot perform credential operations for /subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866 as Admin user is disabled. Enable Admin user feature and try again.\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "265" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:50:26 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1188" - ], - "x-ms-request-id": [ - "17b9958b-2e49-4393-90c7-2f410996dfab" - ], - "x-ms-correlation-request-id": [ - "17b9958b-2e49-4393-90c7-2f410996dfab" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225027Z:17b9958b-2e49-4393-90c7-2f410996dfab" - ] - }, - "StatusCode": 400 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866/listCredentials?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2Ni9saXN0Q3JlZGVudGlhbHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMQ==", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "43907cc0-40ba-49c9-b867-255dfd01264f" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"username\": \"acrregistry7866\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"++AS+pkNIn1v3v6crckk+rUyLwMpS95F\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"3=/a=x/vd9V=nhT+J=/X/j/Mfp5dE7=f\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:50:26 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" - ], - "x-ms-request-id": [ - "46f2cd74-18f2-4181-b66e-be4280b417de" - ], - "x-ms-correlation-request-id": [ - "46f2cd74-18f2-4181-b66e-be4280b417de" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225027Z:46f2cd74-18f2-4181-b66e-be4280b417de" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUxOTgvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "58" - ], - "x-ms-client-request-id": [ - "24c9f5bf-0f57-4308-ad75-aa927dbf9587" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5198/providers/Microsoft.ContainerRegistry/registries/acrregistry7866\",\r\n \"name\": \"acrregistry7866\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7866.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:50:26.8911106Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage9033\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:50:26 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" - ], - "x-ms-request-id": [ - "59c91f84-f9f1-4a81-b05d-021c0a71f302" - ], - "x-ms-correlation-request-id": [ - "59c91f84-f9f1-4a81-b05d-021c0a71f302" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T225027Z:59c91f84-f9f1-4a81-b05d-021c0a71f302" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "acr_rg5198" - ], - "CreateStorageAccount": [ - "acrstorage9033" - ], - "CreateContainerRegistry": [ - "acrregistry7866" - ] - }, - "Variables": { - "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" - } -} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryRegenerateCredentialTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryRegenerateCredentialTest.json deleted file mode 100644 index a5efae50dd37..000000000000 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryRegenerateCredentialTest.json +++ /dev/null @@ -1,582 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "7cc8d7ef-1d10-4463-864d-861b0f443308" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:48:51 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" - ], - "x-ms-request-id": [ - "357fc767-c0d8-4fc7-bdaa-7c6cb5f06586" - ], - "x-ms-correlation-request-id": [ - "357fc767-c0d8-4fc7-bdaa-7c6cb5f06586" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224851Z:357fc767-c0d8-4fc7-bdaa-7c6cb5f06586" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9767?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzk3Njc/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "6059c327-6739-4f32-b2e8-fa8abf2d0947" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767\",\r\n \"name\": \"acr_rg9767\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:48:51 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-request-id": [ - "32d35ed6-851b-4934-9858-160def387d76" - ], - "x-ms-correlation-request-id": [ - "32d35ed6-851b-4934-9858-160def387d76" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224851Z:32d35ed6-851b-4934-9858-160def387d76" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.Storage/storageAccounts/acrstorage5504?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTUwND9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "74d7bc92-787d-4fe0-901e-aadcb30621b7" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:48:52 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/5176cb5c-109a-4baa-9fdf-8c67426a0f61?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-request-id": [ - "9a0592a3-0ef5-404a-befe-56157069c193" - ], - "x-ms-correlation-request-id": [ - "9a0592a3-0ef5-404a-befe-56157069c193" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224852Z:9a0592a3-0ef5-404a-befe-56157069c193" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/5176cb5c-109a-4baa-9fdf-8c67426a0f61?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzUxNzZjYjVjLTEwOWEtNGJhYS05ZmRmLThjNjc0MjZhMGY2MT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.Storage/storageAccounts/acrstorage5504\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage5504\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:48:52.7295809Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage5504.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage5504.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage5504.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage5504.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:49:22 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "a44bf636-6341-48f7-9469-8ac0bc15fb07" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" - ], - "x-ms-correlation-request-id": [ - "a44bf636-6341-48f7-9469-8ac0bc15fb07" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224923Z:a44bf636-6341-48f7-9469-8ac0bc15fb07" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.Storage/storageAccounts/acrstorage5504/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNTUwNC9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9e4327f3-9e8f-459c-96b9-fdcfb6bb8ec3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"CcTarFkBAdmkq2hr+e5XhRnbVSbAXRJEqgqShcRIIuoVRTiwm3XQakQZO41t6ORwx1eW/GAnOhAhBwwhsL1+ZA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"kWJ+C77dxcIvrLTU34jqwmA9ikgwu089cYQ/YK9Uc7QtiOWouI61dNEVkkYebuUoSwJ6/4aqNKsbB16Jx5Fbdw==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:49:22 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "764eb048-0ba4-453b-99e4-69537a258557" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" - ], - "x-ms-correlation-request-id": [ - "764eb048-0ba4-453b-99e4-69537a258557" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224923Z:764eb048-0ba4-453b-99e4-69537a258557" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.ContainerRegistry/registries/acrregistry7860?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5504\",\r\n \"accessKey\": \"CcTarFkBAdmkq2hr+e5XhRnbVSbAXRJEqgqShcRIIuoVRTiwm3XQakQZO41t6ORwx1eW/GAnOhAhBwwhsL1+ZA==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "363" - ], - "x-ms-client-request-id": [ - "419a2c64-5f87-4bef-83de-b45bf61cd020" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg9767/providers/Microsoft.ContainerRegistry/registries/acrregistry7860\",\r\n \"name\": \"acrregistry7860\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry7860.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:49:24.046258Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage5504\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:49:24 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" - ], - "x-ms-request-id": [ - "08e44122-b633-4a9f-b7ce-f098fd90b06b" - ], - "x-ms-correlation-request-id": [ - "08e44122-b633-4a9f-b7ce-f098fd90b06b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224925Z:08e44122-b633-4a9f-b7ce-f098fd90b06b" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.ContainerRegistry/registries/acrregistry7860/listCredentials?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2MC9saXN0Q3JlZGVudGlhbHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMQ==", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "47c12f2d-2ab3-4272-b913-f79231c5c559" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"username\": \"acrregistry7860\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"Bd+hJVF=i7dBCF12/r/p8=hRxXuUL+2R\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"/L/09Og4HHkNaYQKScvKbJ8c=NPhdVCq\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:49:24 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" - ], - "x-ms-request-id": [ - "f0af3d4c-647e-4a84-ae7f-ac1a046e8e2b" - ], - "x-ms-correlation-request-id": [ - "f0af3d4c-647e-4a84-ae7f-ac1a046e8e2b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224925Z:f0af3d4c-647e-4a84-ae7f-ac1a046e8e2b" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.ContainerRegistry/registries/acrregistry7860/regenerateCredential?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2MC9yZWdlbmVyYXRlQ3JlZGVudGlhbD9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"password\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "26" - ], - "x-ms-client-request-id": [ - "15401c4f-e3cc-4c1f-a545-11d3f2f7f379" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"username\": \"acrregistry7860\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"On=E=3/+=/G+q+b5o70/J5+S9Hmc9+WG\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"/L/09Og4HHkNaYQKScvKbJ8c=NPhdVCq\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:49:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" - ], - "x-ms-request-id": [ - "1e66959d-6110-4476-96a6-4618437ff956" - ], - "x-ms-correlation-request-id": [ - "1e66959d-6110-4476-96a6-4618437ff956" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224926Z:1e66959d-6110-4476-96a6-4618437ff956" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg9767/providers/Microsoft.ContainerRegistry/registries/acrregistry7860/regenerateCredential?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk3NjcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5Nzg2MC9yZWdlbmVyYXRlQ3JlZGVudGlhbD9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"password2\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "27" - ], - "x-ms-client-request-id": [ - "40133206-7312-49b7-aaa5-67213f5ba086" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"username\": \"acrregistry7860\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"On=E=3/+=/G+q+b5o70/J5+S9Hmc9+WG\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"=K+F++=W/=Yj+MoHtkix=7+e5Md3h=LW\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:49:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" - ], - "x-ms-request-id": [ - "f47fc31f-ef0b-46af-bd72-1bfb3ba4cdf2" - ], - "x-ms-correlation-request-id": [ - "f47fc31f-ef0b-46af-bd72-1bfb3ba4cdf2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20170316T224926Z:f47fc31f-ef0b-46af-bd72-1bfb3ba4cdf2" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "acr_rg9767" - ], - "CreateStorageAccount": [ - "acrstorage5504" - ], - "ContainerRegistryRegenerateCredentialTest": [ - "acrregistry7860" - ] - }, - "Variables": { - "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" - } -} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryReplicationTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryReplicationTest.json new file mode 100644 index 000000000000..f515c3f08f6b --- /dev/null +++ b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryReplicationTest.json @@ -0,0 +1,2474 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6f8d5ceb-da72-4052-a09f-9f545922e0e2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/ping\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/getCallbackConfig\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/listEvents\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listUsages\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/replications\",\r\n \"locations\": [\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:33:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14867" + ], + "x-ms-request-id": [ + "28b11cb9-4167-4e13-9c19-fccb40d213bb" + ], + "x-ms-correlation-request-id": [ + "28b11cb9-4167-4e13-9c19-fccb40d213bb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003324Z:28b11cb9-4167-4e13-9c19-fccb40d213bb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d08d5062-a023-44ec-a7cd-0960bd37a364" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/ping\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/getCallbackConfig\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/listEvents\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listUsages\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/replications\",\r\n \"locations\": [\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:33:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14866" + ], + "x-ms-request-id": [ + "a633f747-66a0-424f-adf1-ece9f9d75035" + ], + "x-ms-correlation-request-id": [ + "a633f747-66a0-424f-adf1-ece9f9d75035" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003325Z:a633f747-66a0-424f-adf1-ece9f9d75035" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg7953?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzc5NTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "c5613ec3-be43-4965-b01d-d48dcf04c014" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953\",\r\n \"name\": \"acr_rg7953\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:33:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "b458d09e-1f4b-468c-b5b1-8ea8fe65374e" + ], + "x-ms-correlation-request-id": [ + "b458d09e-1f4b-468c-b5b1-8ea8fe65374e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003325Z:b458d09e-1f4b-468c-b5b1-8ea8fe65374e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0ND9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\"\r\n },\r\n \"location\": \"East US\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "134" + ], + "x-ms-client-request-id": [ + "ee57564d-adaf-498c-9543-f28ec6058c7b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444\",\r\n \"name\": \"acrregistry9444\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry9444.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:33:28.2027638Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:33:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "78a10c7a-7995-4b5d-b422-8ca63491a176" + ], + "x-ms-correlation-request-id": [ + "78a10c7a-7995-4b5d-b422-8ca63491a176" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003329Z:78a10c7a-7995-4b5d-b422-8ca63491a176" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "92" + ], + "x-ms-client-request-id": [ + "a46f8487-48dd-4a49-a65a-87e7bfec01d9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/replications\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus\",\r\n \"name\": \"westus\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"status\": {\r\n \"timestamp\": \"2017-10-20T00:33:32.1762484Z\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:33:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "f4b51321-4de2-46ef-bae3-59850d0fafc1" + ], + "x-ms-correlation-request-id": [ + "f4b51321-4de2-46ef-bae3-59850d0fafc1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003333Z:f4b51321-4de2-46ef-bae3-59850d0fafc1" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:33:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14864" + ], + "x-ms-request-id": [ + "b28f2863-274a-4c9e-bafd-1831c1e7c332" + ], + "x-ms-correlation-request-id": [ + "b28f2863-274a-4c9e-bafd-1831c1e7c332" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003344Z:b28f2863-274a-4c9e-bafd-1831c1e7c332" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:33:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14862" + ], + "x-ms-request-id": [ + "e99f1225-e33c-4fe5-94f7-01f19dc40f65" + ], + "x-ms-correlation-request-id": [ + "e99f1225-e33c-4fe5-94f7-01f19dc40f65" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003354Z:e99f1225-e33c-4fe5-94f7-01f19dc40f65" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:34:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14858" + ], + "x-ms-request-id": [ + "0f4c132f-7f4e-45e8-bea3-fc941cdecf22" + ], + "x-ms-correlation-request-id": [ + "0f4c132f-7f4e-45e8-bea3-fc941cdecf22" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003408Z:0f4c132f-7f4e-45e8-bea3-fc941cdecf22" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:34:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14857" + ], + "x-ms-request-id": [ + "2b26dabd-99ed-40f1-9fc3-6d8248f153b7" + ], + "x-ms-correlation-request-id": [ + "2b26dabd-99ed-40f1-9fc3-6d8248f153b7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003418Z:2b26dabd-99ed-40f1-9fc3-6d8248f153b7" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:34:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14852" + ], + "x-ms-request-id": [ + "d6f399c5-d6ea-4298-b29b-8f2a2f9a45cd" + ], + "x-ms-correlation-request-id": [ + "d6f399c5-d6ea-4298-b29b-8f2a2f9a45cd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003428Z:d6f399c5-d6ea-4298-b29b-8f2a2f9a45cd" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:34:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14850" + ], + "x-ms-request-id": [ + "34638d98-709b-4f07-9106-8bb7fea4dbd4" + ], + "x-ms-correlation-request-id": [ + "34638d98-709b-4f07-9106-8bb7fea4dbd4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003438Z:34638d98-709b-4f07-9106-8bb7fea4dbd4" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:34:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14848" + ], + "x-ms-request-id": [ + "25ae02b6-31f5-4387-a825-0776d3e1837e" + ], + "x-ms-correlation-request-id": [ + "25ae02b6-31f5-4387-a825-0776d3e1837e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003448Z:25ae02b6-31f5-4387-a825-0776d3e1837e" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:34:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14847" + ], + "x-ms-request-id": [ + "c9b0978c-4b0d-4b63-80b9-afb7d95f91e2" + ], + "x-ms-correlation-request-id": [ + "c9b0978c-4b0d-4b63-80b9-afb7d95f91e2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003458Z:c9b0978c-4b0d-4b63-80b9-afb7d95f91e2" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:35:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14845" + ], + "x-ms-request-id": [ + "100a40bc-24e9-44a9-a815-0ce3c4a6b176" + ], + "x-ms-correlation-request-id": [ + "100a40bc-24e9-44a9-a815-0ce3c4a6b176" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003508Z:100a40bc-24e9-44a9-a815-0ce3c4a6b176" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:35:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14844" + ], + "x-ms-request-id": [ + "072bfc79-a93e-4638-b13d-62a21fba3900" + ], + "x-ms-correlation-request-id": [ + "072bfc79-a93e-4638-b13d-62a21fba3900" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003519Z:072bfc79-a93e-4638-b13d-62a21fba3900" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:35:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14843" + ], + "x-ms-request-id": [ + "02df52c1-7be0-460a-9c62-4a9a86860fa1" + ], + "x-ms-correlation-request-id": [ + "02df52c1-7be0-460a-9c62-4a9a86860fa1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003529Z:02df52c1-7be0-460a-9c62-4a9a86860fa1" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:35:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14840" + ], + "x-ms-request-id": [ + "78d1c5bc-b6e5-47b6-a057-23361cd4bd50" + ], + "x-ms-correlation-request-id": [ + "78d1c5bc-b6e5-47b6-a057-23361cd4bd50" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003539Z:78d1c5bc-b6e5-47b6-a057-23361cd4bd50" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:35:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14839" + ], + "x-ms-request-id": [ + "b94f8567-2049-4918-bf6b-67d3e8e92b33" + ], + "x-ms-correlation-request-id": [ + "b94f8567-2049-4918-bf6b-67d3e8e92b33" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003549Z:b94f8567-2049-4918-bf6b-67d3e8e92b33" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:35:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14838" + ], + "x-ms-request-id": [ + "a7826d77-7459-4315-8871-4ef99913373c" + ], + "x-ms-correlation-request-id": [ + "a7826d77-7459-4315-8871-4ef99913373c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003559Z:a7826d77-7459-4315-8871-4ef99913373c" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:36:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14835" + ], + "x-ms-request-id": [ + "72cc276b-741b-4e4d-807d-8be0d253e376" + ], + "x-ms-correlation-request-id": [ + "72cc276b-741b-4e4d-807d-8be0d253e376" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003609Z:72cc276b-741b-4e4d-807d-8be0d253e376" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:36:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14832" + ], + "x-ms-request-id": [ + "ed03cf43-e53b-470f-987b-aabd586fc099" + ], + "x-ms-correlation-request-id": [ + "ed03cf43-e53b-470f-987b-aabd586fc099" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003619Z:ed03cf43-e53b-470f-987b-aabd586fc099" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:36:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14830" + ], + "x-ms-request-id": [ + "95fd6614-f5cf-4d9e-899b-cd9549416dd8" + ], + "x-ms-correlation-request-id": [ + "95fd6614-f5cf-4d9e-899b-cd9549416dd8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003630Z:95fd6614-f5cf-4d9e-899b-cd9549416dd8" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:36:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14828" + ], + "x-ms-request-id": [ + "5a8d2000-334b-4718-8032-dcd99e069ca0" + ], + "x-ms-correlation-request-id": [ + "5a8d2000-334b-4718-8032-dcd99e069ca0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003640Z:5a8d2000-334b-4718-8032-dcd99e069ca0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:36:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14827" + ], + "x-ms-request-id": [ + "97689794-d816-4c76-a07f-cf56860beeb9" + ], + "x-ms-correlation-request-id": [ + "97689794-d816-4c76-a07f-cf56860beeb9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003653Z:97689794-d816-4c76-a07f-cf56860beeb9" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Creating\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:37:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14824" + ], + "x-ms-request-id": [ + "7db15da7-945a-4ef0-9ec2-2cbe13605c5a" + ], + "x-ms-correlation-request-id": [ + "7db15da7-945a-4ef0-9ec2-2cbe13605c5a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003703Z:7db15da7-945a-4ef0-9ec2-2cbe13605c5a" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzL29wZXJhdGlvblN0YXR1c2VzL3JlcGxpY2F0aW9ucy1mNGI1MTMyMS00ZGUyLTQ2ZWYtYmFlMy01OTg1MGQwZmFmYzE/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:37:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus/operationStatuses/replications-f4b51321-4de2-46ef-bae3-59850d0fafc1?api-version=2017-10-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14823" + ], + "x-ms-request-id": [ + "dc965af2-44cb-4e89-beb1-74448987c5f7" + ], + "x-ms-correlation-request-id": [ + "dc965af2-44cb-4e89-beb1-74448987c5f7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003713Z:dc965af2-44cb-4e89-beb1-74448987c5f7" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/replications\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus\",\r\n \"name\": \"westus\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"status\": {\r\n \"displayStatus\": \"Syncing\",\r\n \"timestamp\": \"2017-10-20T00:36:53.0238739Z\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:37:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14822" + ], + "x-ms-request-id": [ + "fe41d80b-2ccf-40f8-b15c-180910f46293" + ], + "x-ms-correlation-request-id": [ + "fe41d80b-2ccf-40f8-b15c-180910f46293" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003713Z:fe41d80b-2ccf-40f8-b15c-180910f46293" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9cbb4f04-9b15-44bf-8624-ddf16882aa9a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/replications\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus\",\r\n \"name\": \"westus\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"status\": {\r\n \"displayStatus\": \"Ready\",\r\n \"timestamp\": \"2017-10-20T00:37:14.7124844Z\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:37:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14820" + ], + "x-ms-request-id": [ + "2089a7d9-267d-4cfa-ae3d-041d019d585b" + ], + "x-ms-correlation-request-id": [ + "2089a7d9-267d-4cfa-ae3d-041d019d585b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003715Z:2089a7d9-267d-4cfa-ae3d-041d019d585b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnM/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9856ac77-e0eb-46f8-9b49-15eefc1a9fe9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries/replications\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus\",\r\n \"name\": \"westus\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"status\": {\r\n \"displayStatus\": \"Ready\",\r\n \"timestamp\": \"2017-10-20T00:37:14.7124844Z\"\r\n }\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries/replications\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/eastus\",\r\n \"name\": \"eastus\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"status\": {\r\n \"displayStatus\": \"Ready\",\r\n \"timestamp\": \"2017-10-20T00:36:21.0007206Z\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:37:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14821" + ], + "x-ms-request-id": [ + "7ba4ee22-0ba4-4f6a-8cbe-19a17c5c84f0" + ], + "x-ms-correlation-request-id": [ + "7ba4ee22-0ba4-4f6a-8cbe-19a17c5c84f0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003715Z:7ba4ee22-0ba4-4f6a-8cbe-19a17c5c84f0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "90" + ], + "x-ms-client-request-id": [ + "645c21b5-bb1f-499f-9a8f-80291123ed8c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/replications\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus\",\r\n \"name\": \"westus\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"status\": {\r\n \"displayStatus\": \"Ready\",\r\n \"timestamp\": \"2017-10-20T00:37:14.7124844Z\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:37:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "2812b09e-59d1-4693-922f-cb5e202542d0" + ], + "x-ms-correlation-request-id": [ + "2812b09e-59d1-4693-922f-cb5e202542d0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003716Z:2812b09e-59d1-4693-922f-cb5e202542d0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0c0c06ff-1e5c-4169-af22-3dfe39cd7b4c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "null", + "ResponseHeaders": { + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:37:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "f7af5d40-235e-4f71-bd17-adee6b9e0559" + ], + "x-ms-correlation-request-id": [ + "f7af5d40-235e-4f71-bd17-adee6b9e0559" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003717Z:f7af5d40-235e-4f71-bd17-adee6b9e0559" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444/replications/westus?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0NC9yZXBsaWNhdGlvbnMvd2VzdHVzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9377bd59-6eca-45d5-b7c9-98477640edaa" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:38:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-request-id": [ + "28794d41-3cf2-40f2-97aa-d9874a79616e" + ], + "x-ms-correlation-request-id": [ + "28794d41-3cf2-40f2-97aa-d9874a79616e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003835Z:28794d41-3cf2-40f2-97aa-d9874a79616e" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25SZXN1bHRzL3JlcGxpY2F0aW9ucy1mN2FmNWQ0MC0yMzVlLTRmNzEtYmQxNy1hZGVlNmI5ZTA1NTk/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "null", + "ResponseHeaders": { + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:37:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14819" + ], + "x-ms-request-id": [ + "faed164f-147b-4e2f-bc96-1126a8d41154" + ], + "x-ms-correlation-request-id": [ + "faed164f-147b-4e2f-bc96-1126a8d41154" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003727Z:faed164f-147b-4e2f-bc96-1126a8d41154" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25SZXN1bHRzL3JlcGxpY2F0aW9ucy1mN2FmNWQ0MC0yMzVlLTRmNzEtYmQxNy1hZGVlNmI5ZTA1NTk/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "null", + "ResponseHeaders": { + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:37:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14817" + ], + "x-ms-request-id": [ + "4932653c-6428-4619-b765-292852df589a" + ], + "x-ms-correlation-request-id": [ + "4932653c-6428-4619-b765-292852df589a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003738Z:4932653c-6428-4619-b765-292852df589a" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25SZXN1bHRzL3JlcGxpY2F0aW9ucy1mN2FmNWQ0MC0yMzVlLTRmNzEtYmQxNy1hZGVlNmI5ZTA1NTk/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "null", + "ResponseHeaders": { + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:37:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14814" + ], + "x-ms-request-id": [ + "3c691167-48f6-4c25-b4c8-4ac333f39f3b" + ], + "x-ms-correlation-request-id": [ + "3c691167-48f6-4c25-b4c8-4ac333f39f3b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003754Z:3c691167-48f6-4c25-b4c8-4ac333f39f3b" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25SZXN1bHRzL3JlcGxpY2F0aW9ucy1mN2FmNWQ0MC0yMzVlLTRmNzEtYmQxNy1hZGVlNmI5ZTA1NTk/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "null", + "ResponseHeaders": { + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:38:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14812" + ], + "x-ms-request-id": [ + "c36fab84-507d-4769-8b2c-051b3d0996de" + ], + "x-ms-correlation-request-id": [ + "c36fab84-507d-4769-8b2c-051b3d0996de" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003804Z:c36fab84-507d-4769-8b2c-051b3d0996de" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25SZXN1bHRzL3JlcGxpY2F0aW9ucy1mN2FmNWQ0MC0yMzVlLTRmNzEtYmQxNy1hZGVlNmI5ZTA1NTk/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "null", + "ResponseHeaders": { + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:38:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14811" + ], + "x-ms-request-id": [ + "3d3207d2-c409-4e00-8a4e-7b9159ee6713" + ], + "x-ms-correlation-request-id": [ + "3d3207d2-c409-4e00-8a4e-7b9159ee6713" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003814Z:3d3207d2-c409-4e00-8a4e-7b9159ee6713" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25SZXN1bHRzL3JlcGxpY2F0aW9ucy1mN2FmNWQ0MC0yMzVlLTRmNzEtYmQxNy1hZGVlNmI5ZTA1NTk/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "null", + "ResponseHeaders": { + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:38:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14809" + ], + "x-ms-request-id": [ + "a4918edd-f557-469f-bb8c-e6b572e19f97" + ], + "x-ms-correlation-request-id": [ + "a4918edd-f557-469f-bb8c-e6b572e19f97" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003824Z:a4918edd-f557-469f-bb8c-e6b572e19f97" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/westus/operationResults/replications-f7af5d40-235e-4f71-bd17-adee6b9e0559?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25SZXN1bHRzL3JlcGxpY2F0aW9ucy1mN2FmNWQ0MC0yMzVlLTRmNzEtYmQxNy1hZGVlNmI5ZTA1NTk/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:38:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14807" + ], + "x-ms-request-id": [ + "df1c9e74-3f1f-47d0-bc73-27a4785ddf81" + ], + "x-ms-correlation-request-id": [ + "df1c9e74-3f1f-47d0-bc73-27a4785ddf81" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003834Z:df1c9e74-3f1f-47d0-bc73-27a4785ddf81" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzc5NTMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5OTQ0ND9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cb0272f4-0755-49f4-9fd7-52e26da29419" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg7953/providers/Microsoft.ContainerRegistry/registries/acrregistry9444\",\r\n \"name\": \"acrregistry9444\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry9444.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:33:28.2027638Z\",\r\n \"provisioningState\": \"Deleting\",\r\n \"adminUserEnabled\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "487" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:38:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/eastus/operationResults/registries-9c5cef0c-6a1f-436a-a18e-3f9053810f9d?api-version=2017-10-01" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-request-id": [ + "9c5cef0c-6a1f-436a-a18e-3f9053810f9d" + ], + "x-ms-correlation-request-id": [ + "9c5cef0c-6a1f-436a-a18e-3f9053810f9d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003841Z:9c5cef0c-6a1f-436a-a18e-3f9053810f9d" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry/locations/eastus/operationResults/registries-9c5cef0c-6a1f-436a-a18e-3f9053810f9d?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnkvbG9jYXRpb25zL2Vhc3R1cy9vcGVyYXRpb25SZXN1bHRzL3JlZ2lzdHJpZXMtOWM1Y2VmMGMtNmExZi00MzZhLWExOGUtM2Y5MDUzODEwZjlkP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:38:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14803" + ], + "x-ms-request-id": [ + "5f3c8598-ebe8-402c-b10f-2a136d1f099e" + ], + "x-ms-correlation-request-id": [ + "5f3c8598-ebe8-402c-b10f-2a136d1f099e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T003851Z:5f3c8598-ebe8-402c-b10f-2a136d1f099e" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "acr_rg7953" + ], + "CreateManagedContainerRegistry": [ + "acrregistry9444" + ] + }, + "Variables": { + "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" + } +} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryUpdateTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryUpdateTest.json deleted file mode 100644 index 2633cb759a16..000000000000 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryUpdateTest.json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "867e8947-6783-43b8-9483-3e526f4be40b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:52:31 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" - ], - "x-ms-request-id": [ - "94e45637-2897-4c96-903a-c1cbd1fc483d" - ], - "x-ms-correlation-request-id": [ - "94e45637-2897-4c96-903a-c1cbd1fc483d" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225232Z:94e45637-2897-4c96-903a-c1cbd1fc483d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzUwNDM/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], - "x-ms-client-request-id": [ - "245a2b4c-f0aa-42f9-b9ca-395776af1aac" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043\",\r\n \"name\": \"acr_rg5043\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:52:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" - ], - "x-ms-request-id": [ - "9773bfae-7ff8-498f-b4c8-76791b5aa3a3" - ], - "x-ms-correlation-request-id": [ - "9773bfae-7ff8-498f-b4c8-76791b5aa3a3" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225233Z:9773bfae-7ff8-498f-b4c8-76791b5aa3a3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage4157?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNDE1Nz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "8b95ddc1-a5d0-4b66-ba5c-773cbd7f293d" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:52:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/79595b7e-15a5-4551-bbe6-eb6bf2aefe74?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" - ], - "x-ms-request-id": [ - "c12f0539-9f8a-4471-a9a2-8b72fde12dbb" - ], - "x-ms-correlation-request-id": [ - "c12f0539-9f8a-4471-a9a2-8b72fde12dbb" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225234Z:c12f0539-9f8a-4471-a9a2-8b72fde12dbb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/79595b7e-15a5-4551-bbe6-eb6bf2aefe74?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zLzc5NTk1YjdlLTE1YTUtNDU1MS1iYmU2LWViNmJmMmFlZmU3ND9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage4157\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage4157\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:52:34.5321114Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage4157.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage4157.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage4157.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage4157.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:04 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "6e3a2784-3bee-47b5-9dec-bf84aad3bdd2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" - ], - "x-ms-correlation-request-id": [ - "6e3a2784-3bee-47b5-9dec-bf84aad3bdd2" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225304Z:6e3a2784-3bee-47b5-9dec-bf84aad3bdd2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage4157/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlNDE1Ny9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "67b80cc7-7078-4eec-94fa-76b46fa1a0da" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"9bhNt87DdLdgaZ7096JMmv5Yi2TaJsniovbvQ+v83dnS5/F9SXuTrSfzpn4j1w0TFQF/rC2m0tL00hM+wQYGwA==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"kztjPf+VNTsW0UAIX2VE1tbyCs/R+/38T8iWD0btzxsrQZWq+vswi9nA06ySz6t33VTPhCl3lROOXOZWBQtnHg==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:04 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "f210b42f-2903-48b9-90c4-e3aa646cb89f" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" - ], - "x-ms-correlation-request-id": [ - "f210b42f-2903-48b9-90c4-e3aa646cb89f" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225304Z:f210b42f-2903-48b9-90c4-e3aa646cb89f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage8166?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODE2Nj9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "96" - ], - "x-ms-client-request-id": [ - "c4a342d2-1245-4b7d-99c0-86e969964d7b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:05 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/af8a6249-23dc-4aa8-8ed6-ad3471047460?monitor=true&api-version=2016-01-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" - ], - "x-ms-request-id": [ - "6b4fb9d2-eed3-4732-9be5-feca59f23a10" - ], - "x-ms-correlation-request-id": [ - "6b4fb9d2-eed3-4732-9be5-feca59f23a10" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225305Z:6b4fb9d2-eed3-4732-9be5-feca59f23a10" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/providers/Microsoft.Storage/operations/af8a6249-23dc-4aa8-8ed6-ad3471047460?monitor=true&api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9vcGVyYXRpb25zL2FmOGE2MjQ5LTIzZGMtNGFhOC04ZWQ2LWFkMzQ3MTA0NzQ2MD9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxNi0wMS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage8166\",\r\n \"kind\": \"Storage\",\r\n \"location\": \"westus\",\r\n \"name\": \"acrstorage8166\",\r\n \"properties\": {\r\n \"creationTime\": \"2017-03-16T22:53:05.7132655Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://acrstorage8166.blob.core.windows.net/\",\r\n \"file\": \"https://acrstorage8166.file.core.windows.net/\",\r\n \"queue\": \"https://acrstorage8166.queue.core.windows.net/\",\r\n \"table\": \"https://acrstorage8166.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"statusOfPrimary\": \"available\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:34 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "a229b466-ed56-4798-bec2-27b067794dc8" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" - ], - "x-ms-correlation-request-id": [ - "a229b466-ed56-4798-bec2-27b067794dc8" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225335Z:a229b466-ed56-4798-bec2-27b067794dc8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.Storage/storageAccounts/acrstorage8166/listKeys?api-version=2016-01-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9hY3JzdG9yYWdlODE2Ni9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE2LTAxLTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "21a832de-e2ec-4977-8983-ed08321525dc" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/5.0.2-preview" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"dFTFkScyPclsrr6A38Jh63b5Xp+HvbYUARSCIyeicR21wb102wAYiB56SdHuOdlu/LtHBKy7ExuoWBtCH4RLaQ==\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"permissions\": \"Full\",\r\n \"value\": \"fprEc7QQilhgljeRzpeIwGq1Hk2RT7/JIckos588ja8WiSyNwVoHmJ+IqkxdHv1xB8wps/R1PsqC59hpA3PdmA==\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:35 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "6d5da9e3-430d-48ae-9ac1-f1f7513b8fa4" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" - ], - "x-ms-correlation-request-id": [ - "6d5da9e3-430d-48ae-9ac1-f1f7513b8fa4" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225335Z:6d5da9e3-430d-48ae-9ac1-f1f7513b8fa4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\",\r\n \"accessKey\": \"9bhNt87DdLdgaZ7096JMmv5Yi2TaJsniovbvQ+v83dnS5/F9SXuTrSfzpn4j1w0TFQF/rC2m0tL00hM+wQYGwA==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "332" - ], - "x-ms-client-request-id": [ - "194e6fd4-b8dc-4e4c-a902-10b137e0c716" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:38.2330036Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:38 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" - ], - "x-ms-request-id": [ - "43c40b84-0778-4aac-a4f8-2fbc11366414" - ], - "x-ms-correlation-request-id": [ - "43c40b84-0778-4aac-a4f8-2fbc11366414" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225339Z:43c40b84-0778-4aac-a4f8-2fbc11366414" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"properties\": {\r\n \"adminUserEnabled\": true\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "58" - ], - "x-ms-client-request-id": [ - "4319fce5-2e9d-4441-bc22-39871997580e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:39.6364043Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1188" - ], - "x-ms-request-id": [ - "d63229d2-e79a-45fb-945c-d6ef160d4cf0" - ], - "x-ms-correlation-request-id": [ - "d63229d2-e79a-45fb-945c-d6ef160d4cf0" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225339Z:d63229d2-e79a-45fb-945c-d6ef160d4cf0" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "90" - ], - "x-ms-client-request-id": [ - "1fb96481-4c54-4725-b4ba-909fa6e374df" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:40.3335375Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" - ], - "x-ms-request-id": [ - "28e91691-3728-4524-8d7e-cd5b005e0641" - ], - "x-ms-correlation-request-id": [ - "28e91691-3728-4524-8d7e-cd5b005e0641" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225340Z:28e91691-3728-4524-8d7e-cd5b005e0641" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8166\",\r\n \"accessKey\": \"dFTFkScyPclsrr6A38Jh63b5Xp+HvbYUARSCIyeicR21wb102wAYiB56SdHuOdlu/LtHBKy7ExuoWBtCH4RLaQ==\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "204" - ], - "x-ms-client-request-id": [ - "672efab8-04f4-4193-885c-a4dffb6ec6ac" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:40.7318181Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8166\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" - ], - "x-ms-request-id": [ - "e1897ab9-c32c-4276-b4d5-72158e174d8b" - ], - "x-ms-correlation-request-id": [ - "e1897ab9-c32c-4276-b4d5-72158e174d8b" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225341Z:e1897ab9-c32c-4276-b4d5-72158e174d8b" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "7c0393d3-3fce-4ce8-8527-6cb3c457d855" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:40.3335375Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" - ], - "x-ms-request-id": [ - "c1572aac-bed8-424a-9132-eaa0b46c81f9" - ], - "x-ms-correlation-request-id": [ - "c1572aac-bed8-424a-9132-eaa0b46c81f9" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225340Z:c1572aac-bed8-424a-9132-eaa0b46c81f9" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ff52fe0d-8b1a-4760-b824-536cc41c73cf" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:40.7318181Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage4157\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" - ], - "x-ms-request-id": [ - "badb73fe-7184-4608-8086-805dffb5e9d6" - ], - "x-ms-correlation-request-id": [ - "badb73fe-7184-4608-8086-805dffb5e9d6" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225340Z:badb73fe-7184-4608-8086-805dffb5e9d6" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourceGroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087?api-version=2017-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvM2ViMzFkOGQtMjg3OS00NzA2LTg5YjQtNGRjNDA0NzcyNmM2L3Jlc291cmNlR3JvdXBzL2Fjcl9yZzUwNDMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5MTA4Nz9hcGktdmVyc2lvbj0yMDE3LTAzLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "47c4b517-a846-4b77-a52a-23ada037e93b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.24410.01", - "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/1.2.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/3eb31d8d-2879-4706-89b4-4dc4047726c6/resourcegroups/acr_rg5043/providers/Microsoft.ContainerRegistry/registries/acrregistry1087\",\r\n \"name\": \"acrregistry1087\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry1087.azurecr.io\",\r\n \"creationDate\": \"2017-03-16T22:53:41.6154453Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true,\r\n \"storageAccount\": {\r\n \"name\": \"acrstorage8166\"\r\n }\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 16 Mar 2017 22:53:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" - ], - "x-ms-request-id": [ - "e2be2807-a8bb-4b10-9689-6798e3de57db" - ], - "x-ms-correlation-request-id": [ - "e2be2807-a8bb-4b10-9689-6798e3de57db" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20170316T225341Z:e2be2807-a8bb-4b10-9689-6798e3de57db" - ] - }, - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "acr_rg5043" - ], - "CreateStorageAccount": [ - "acrstorage4157", - "acrstorage8166" - ], - "CreateContainerRegistry": [ - "acrregistry1087" - ] - }, - "Variables": { - "SubscriptionId": "3eb31d8d-2879-4706-89b4-4dc4047726c6" - } -} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryWebhookTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryWebhookTest.json new file mode 100644 index 000000000000..d8b471688de6 --- /dev/null +++ b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ContainerRegistryWebhookTest.json @@ -0,0 +1,799 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "95791a09-138c-411c-819c-0cc76bca827f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/ping\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/getCallbackConfig\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/listEvents\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listUsages\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/replications\",\r\n \"locations\": [\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14871" + ], + "x-ms-request-id": [ + "03556183-0e44-45df-9a4a-c5cfc5b0ac91" + ], + "x-ms-correlation-request-id": [ + "03556183-0e44-45df-9a4a-c5cfc5b0ac91" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004049Z:03556183-0e44-45df-9a4a-c5cfc5b0ac91" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg9933?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzk5MzM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "22738141-32f1-4ecb-9bf9-9bc978a93cb9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933\",\r\n \"name\": \"acr_rg9933\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "44ec9a72-9897-4a02-a23d-07895ace446c" + ], + "x-ms-correlation-request-id": [ + "44ec9a72-9897-4a02-a23d-07895ace446c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004057Z:44ec9a72-9897-4a02-a23d-07895ace446c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk5MzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTM5NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "133" + ], + "x-ms-client-request-id": [ + "6ffe7dcc-889e-4641-8ffe-e78a9941bea5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395\",\r\n \"name\": \"acrregistry5395\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry5395.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:40:58.8471589Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:41:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "4fe8a020-e4b2-4c2f-a2b3-ff73170a62f7" + ], + "x-ms-correlation-request-id": [ + "4fe8a020-e4b2-4c2f-a2b3-ff73170a62f7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004100Z:4fe8a020-e4b2-4c2f-a2b3-ff73170a62f7" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk5MzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTM5NS93ZWJob29rcy9hY3J3ZWJob29rNDcwOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"serviceUri\": \"http://www.microsoft.com\",\r\n \"actions\": [\r\n \"push\"\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "203" + ], + "x-ms-client-request-id": [ + "17e93e45-5942-4107-a0e9-e8d8d74e3c32" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/webhooks\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708\",\r\n \"name\": \"acrwebhook4708\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"status\": \"enabled\",\r\n \"actions\": [\r\n \"push\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:41:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "da50f4b9-f9e9-4769-9975-bba7ec712b4c" + ], + "x-ms-correlation-request-id": [ + "da50f4b9-f9e9-4769-9975-bba7ec712b4c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004104Z:da50f4b9-f9e9-4769-9975-bba7ec712b4c" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk5MzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTM5NS93ZWJob29rcz9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "831fc175-cc25-4487-9985-284bd4e6b3b9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ContainerRegistry/registries/webhooks\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708\",\r\n \"name\": \"acrwebhook4708\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"status\": \"enabled\",\r\n \"actions\": [\r\n \"push\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:41:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14870" + ], + "x-ms-request-id": [ + "8fdfd76e-d346-4c44-bd66-8e0531c0d30f" + ], + "x-ms-correlation-request-id": [ + "8fdfd76e-d346-4c44-bd66-8e0531c0d30f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004104Z:8fdfd76e-d346-4c44-bd66-8e0531c0d30f" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk5MzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTM5NS93ZWJob29rcy9hY3J3ZWJob29rNDcwOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9b7b82b7-e8d2-4c7e-a9c4-69c89e9153d1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/webhooks\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708\",\r\n \"name\": \"acrwebhook4708\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"status\": \"enabled\",\r\n \"actions\": [\r\n \"push\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:41:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14869" + ], + "x-ms-request-id": [ + "21342e48-2d20-4c6f-a7e6-1347fe584b2e" + ], + "x-ms-correlation-request-id": [ + "21342e48-2d20-4c6f-a7e6-1347fe584b2e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004104Z:21342e48-2d20-4c6f-a7e6-1347fe584b2e" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk5MzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTM5NS93ZWJob29rcy9hY3J3ZWJob29rNDcwOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"customHeaders\": {\r\n \"key\": \"value\"\r\n },\r\n \"status\": \"disabled\",\r\n \"scope\": \"hello-world\",\r\n \"actions\": [\r\n \"push\",\r\n \"delete\"\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "281" + ], + "x-ms-client-request-id": [ + "7afdbcc8-e5a1-4b0f-891e-b0c704a9c690" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.ContainerRegistry/registries/webhooks\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708\",\r\n \"name\": \"acrwebhook4708\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"status\": \"disabled\",\r\n \"scope\": \"hello-world\",\r\n \"actions\": [\r\n \"push\",\r\n \"delete\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:41:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "3db65b7b-68f2-426d-8d80-2ac11a2b7bee" + ], + "x-ms-correlation-request-id": [ + "3db65b7b-68f2-426d-8d80-2ac11a2b7bee" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004105Z:3db65b7b-68f2-426d-8d80-2ac11a2b7bee" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708/getCallbackConfig?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk5MzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTM5NS93ZWJob29rcy9hY3J3ZWJob29rNDcwOC9nZXRDYWxsYmFja0NvbmZpZz9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7eef3f3b-5c83-4a15-b38e-cb35a332faae" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"serviceUri\": \"http://www.microsoft.com\",\r\n \"customHeaders\": {\r\n \"key\": \"value\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:41:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-request-id": [ + "7565a407-9605-4b64-bd26-1fafbb655b8b" + ], + "x-ms-correlation-request-id": [ + "7565a407-9605-4b64-bd26-1fafbb655b8b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004105Z:7565a407-9605-4b64-bd26-1fafbb655b8b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708/ping?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk5MzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTM5NS93ZWJob29rcy9hY3J3ZWJob29rNDcwOC9waW5nP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "daaa28f4-0026-4468-b3fb-8b9ba1e87837" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"a5531b1c-1209-4e94-85b4-3a2e5f897c3b\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:41:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-request-id": [ + "a5531b1c-1209-4e94-85b4-3a2e5f897c3b" + ], + "x-ms-correlation-request-id": [ + "a5531b1c-1209-4e94-85b4-3a2e5f897c3b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004105Z:a5531b1c-1209-4e94-85b4-3a2e5f897c3b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708/listEvents?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk5MzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTM5NS93ZWJob29rcy9hY3J3ZWJob29rNDcwOC9saXN0RXZlbnRzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c6f0c09-1a8b-4238-9051-734d422e214f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"eventRequestMessage\": {\r\n \"content\": {\r\n \"id\": \"a5531b1c-1209-4e94-85b4-3a2e5f897c3b\",\r\n \"timestamp\": \"2017-10-20T00:41:06.7794234Z\",\r\n \"action\": \"ping\"\r\n },\r\n \"headers\": {\r\n \"key\": \"value\",\r\n \"Content-Type\": \"application/json; charset=utf-8\",\r\n \"Content-Length\": \"121\"\r\n },\r\n \"method\": \"POST\",\r\n \"requestUri\": \"http://www.microsoft.com/\",\r\n \"version\": \"1.1\"\r\n },\r\n \"eventResponseMessage\": {\r\n \"content\": \"\\nAccess Denied\\n\\n

Access Denied

\\n \\nYou don't have permission to access \\\"http://www.microsoft.com/\\\" on this server.

\\nReference #18.1fb7efc7.1508460065.8df71cd0\\n\\n\\n\",\r\n \"headers\": {\r\n \"Mime-Version\": \"1.0\",\r\n \"Connection\": \"close\",\r\n \"X-RTag\": \"1\",\r\n \"Date\": \"Fri, 20 Oct 2017 00:41:05 GMT\",\r\n \"Content-Length\": \"267\",\r\n \"Content-Type\": \"text/html\",\r\n \"Expires\": \"Fri, 20 Oct 2017 00:41:05 GMT\"\r\n },\r\n \"reasonPhrase\": \"Forbidden\",\r\n \"statusCode\": \"403\",\r\n \"version\": \"1.1\"\r\n },\r\n \"id\": \"a5531b1c-1209-4e94-85b4-3a2e5f897c3b\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:41:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "76b3e263-8ced-4a8d-a9fe-5f4ea0157f0d" + ], + "x-ms-correlation-request-id": [ + "76b3e263-8ced-4a8d-a9fe-5f4ea0157f0d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004106Z:76b3e263-8ced-4a8d-a9fe-5f4ea0157f0d" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk5MzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTM5NS93ZWJob29rcy9hY3J3ZWJob29rNDcwOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "559dff43-f2f9-400d-80df-f75db9e2e8f6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:41:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "3bd1cf3e-1029-49af-a2e3-caed5eed66ce" + ], + "x-ms-correlation-request-id": [ + "3bd1cf3e-1029-49af-a2e3-caed5eed66ce" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004108Z:3bd1cf3e-1029-49af-a2e3-caed5eed66ce" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395/webhooks/acrwebhook4708?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk5MzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTM5NS93ZWJob29rcy9hY3J3ZWJob29rNDcwOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "abca4fc6-363d-4eaa-8053-e8ce2738ac0b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:41:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-request-id": [ + "6b1a4844-a2f6-4780-8305-0cb44f0fd6e6" + ], + "x-ms-correlation-request-id": [ + "6b1a4844-a2f6-4780-8305-0cb44f0fd6e6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004108Z:6b1a4844-a2f6-4780-8305-0cb44f0fd6e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg9933/providers/Microsoft.ContainerRegistry/registries/acrregistry5395?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzk5MzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJSZWdpc3RyeS9yZWdpc3RyaWVzL2FjcnJlZ2lzdHJ5NTM5NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ee4f61e-625f-4384-aa91-8a3cd1062867" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:41:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1188" + ], + "x-ms-request-id": [ + "9d0ff9ae-2fbf-4b01-be46-9f6819c67176" + ], + "x-ms-correlation-request-id": [ + "9d0ff9ae-2fbf-4b01-be46-9f6819c67176" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004111Z:9d0ff9ae-2fbf-4b01-be46-9f6819c67176" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "acr_rg9933" + ], + "CreateManagedContainerRegistry": [ + "acrregistry5395" + ], + "CreatedContainerRegistryWebhook": [ + "acrwebhook4708" + ] + }, + "Variables": { + "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" + } +} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ManagedContainerRegistryTest.json b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ManagedContainerRegistryTest.json new file mode 100644 index 000000000000..b0eb905dfdc1 --- /dev/null +++ b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/SessionRecords/ContainerRegistry.Tests.ContainerRegistryTests/ManagedContainerRegistryTest.json @@ -0,0 +1,744 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVyUmVnaXN0cnk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4ca7f411-d5be-47a5-be83-d5e4059d9203" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/providers/Microsoft.ContainerRegistry\",\r\n \"namespace\": \"Microsoft.ContainerRegistry\",\r\n \"authorization\": {\r\n \"applicationId\": \"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26\",\r\n \"roleDefinitionId\": \"78e18383-93eb-418a-9887-bc9271046576\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"registries\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/ping\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/getCallbackConfig\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/webhooks/listEvents\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/GetCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listCredentials\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredential\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"West US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/listUsages\",\r\n \"locations\": [\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"Central US EUAP\",\r\n \"South Central US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/regenerateCredentials\",\r\n \"locations\": [\r\n \"West US\",\r\n \"East US\",\r\n \"South Central US\",\r\n \"West Europe\",\r\n \"West Central US\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"registries/replications\",\r\n \"locations\": [\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"South Central US\",\r\n \"West Central US\",\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"Japan East\",\r\n \"North Europe\",\r\n \"Southeast Asia\",\r\n \"North Central US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Central India\",\r\n \"Central US\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia Southeast\",\r\n \"East Asia\",\r\n \"Japan West\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\"\r\n ],\r\n \"capabilities\": \"None\"\r\n },\r\n {\r\n \"resourceType\": \"swagger\",\r\n \"locations\": [\r\n \"South Central US\",\r\n \"East US\",\r\n \"West US\",\r\n \"Central US\",\r\n \"East US 2\",\r\n \"North Central US\",\r\n \"West Central US\",\r\n \"West US 2\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\",\r\n \"Brazil South\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"East Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Southeast Asia\",\r\n \"South India\"\r\n ],\r\n \"apiVersions\": [\r\n \"2017-10-01\",\r\n \"2017-06-01-preview\",\r\n \"2017-03-01\",\r\n \"2016-06-27-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14892" + ], + "x-ms-request-id": [ + "3e0c48ad-8a0d-418d-86ed-c965c95680d4" + ], + "x-ms-correlation-request-id": [ + "3e0c48ad-8a0d-418d-86ed-c965c95680d4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004014Z:3e0c48ad-8a0d-418d-86ed-c965c95680d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourcegroups/acr_rg934?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlZ3JvdXBzL2Fjcl9yZzkzND9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "48096939-dff1-41b1-9e92-ab52c0323fd5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934\",\r\n \"name\": \"acr_rg934\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "171" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "f763e1c3-c10a-4166-b677-9f140a46aa4f" + ], + "x-ms-correlation-request-id": [ + "f763e1c3-c10a-4166-b677-9f140a46aa4f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004018Z:f763e1c3-c10a-4166-b677-9f140a46aa4f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkzNC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXMvYWNycmVnaXN0cnkyNjI4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "133" + ], + "x-ms-client-request-id": [ + "61fb2dcd-55e6-442d-b75d-4ec7b53658e8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628\",\r\n \"name\": \"acrregistry2628\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry2628.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:40:26.9051411Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "6b0b40e5-4515-4bb8-8ed7-a883e6bf049b" + ], + "x-ms-correlation-request-id": [ + "6b0b40e5-4515-4bb8-8ed7-a883e6bf049b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004030Z:6b0b40e5-4515-4bb8-8ed7-a883e6bf049b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkzNC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXM/YXBpLXZlcnNpb249MjAxNy0xMC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "48323b18-5cad-4edf-a33e-9e75e4d97314" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628\",\r\n \"name\": \"acrregistry2628\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry2628.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:40:26.9051411Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14890" + ], + "x-ms-request-id": [ + "ba3b0f4c-f325-4c16-96c7-22f3716f00ea" + ], + "x-ms-correlation-request-id": [ + "ba3b0f4c-f325-4c16-96c7-22f3716f00ea" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004031Z:ba3b0f4c-f325-4c16-96c7-22f3716f00ea" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkzNC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXMvYWNycmVnaXN0cnkyNjI4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7278bdd0-2cf7-4e7e-bfec-715ba0aade34" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628\",\r\n \"name\": \"acrregistry2628\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry2628.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:40:26.9051411Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": false\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14889" + ], + "x-ms-request-id": [ + "0fda106f-d4da-418f-b5c3-a51d37a65eff" + ], + "x-ms-correlation-request-id": [ + "0fda106f-d4da-418f-b5c3-a51d37a65eff" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004031Z:0fda106f-d4da-418f-b5c3-a51d37a65eff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628/listCredentials?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkzNC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXMvYWNycmVnaXN0cnkyNjI4L2xpc3RDcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f2d61367-07c5-4dd9-8fd9-f03ba79dea43" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"UnAuthorizedForCredentialOperations\",\r\n \"message\": \"Cannot perform credential operations for /subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628 as admin user is disabled. Enable admin user and try again.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "311" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "cce39e6f-fb3f-48f5-a21d-2e29b28826f6" + ], + "x-ms-correlation-request-id": [ + "cce39e6f-fb3f-48f5-a21d-2e29b28826f6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004031Z:cce39e6f-fb3f-48f5-a21d-2e29b28826f6" + ] + }, + "StatusCode": 400 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628/listCredentials?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkzNC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXMvYWNycmVnaXN0cnkyNjI4L2xpc3RDcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ddaac9f6-b2e6-44a4-a164-3aa21dff65ff" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"username\": \"acrregistry2628\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"g+Js6GZdBxkgWgKd=qpOz6im6wa9H4jK\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"m97zxdIu8TnQf/uNPBKZcf9dUJP2Idnk\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "058aa041-ecb7-4e9c-b72a-6ce66dde109e" + ], + "x-ms-correlation-request-id": [ + "058aa041-ecb7-4e9c-b72a-6ce66dde109e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004033Z:058aa041-ecb7-4e9c-b72a-6ce66dde109e" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkzNC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXMvYWNycmVnaXN0cnkyNjI4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"adminUserEnabled\": true\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "184" + ], + "x-ms-client-request-id": [ + "6089b4a0-4aa5-4aa2-978f-fa8f6a5f9735" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\"\r\n },\r\n \"type\": \"Microsoft.ContainerRegistry/registries\",\r\n \"id\": \"/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628\",\r\n \"name\": \"acrregistry2628\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key2\": \"value2\",\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"properties\": {\r\n \"loginServer\": \"acrregistry2628.azurecr.io\",\r\n \"creationDate\": \"2017-10-20T00:40:26.9051411Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"adminUserEnabled\": true\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "1591a10a-7343-4b11-a64c-5b5ccc956786" + ], + "x-ms-correlation-request-id": [ + "1591a10a-7343-4b11-a64c-5b5ccc956786" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004033Z:1591a10a-7343-4b11-a64c-5b5ccc956786" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628/regenerateCredential?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkzNC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXMvYWNycmVnaXN0cnkyNjI4L3JlZ2VuZXJhdGVDcmVkZW50aWFsP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"password\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "26" + ], + "x-ms-client-request-id": [ + "8ac50ca6-d710-4fc2-a87d-54647d5b5eb9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"username\": \"acrregistry2628\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"Hzlb1clN7ElVTxoYoXP7293=H2t8tBDo\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"m97zxdIu8TnQf/uNPBKZcf9dUJP2Idnk\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-request-id": [ + "dad69030-d351-4687-9249-b9a3694fd705" + ], + "x-ms-correlation-request-id": [ + "dad69030-d351-4687-9249-b9a3694fd705" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004033Z:dad69030-d351-4687-9249-b9a3694fd705" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628/regenerateCredential?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkzNC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXMvYWNycmVnaXN0cnkyNjI4L3JlZ2VuZXJhdGVDcmVkZW50aWFsP2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"password2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "27" + ], + "x-ms-client-request-id": [ + "fd4baf08-90b3-4509-ae81-cc92ef9b553c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"username\": \"acrregistry2628\",\r\n \"passwords\": [\r\n {\r\n \"name\": \"password\",\r\n \"value\": \"Hzlb1clN7ElVTxoYoXP7293=H2t8tBDo\"\r\n },\r\n {\r\n \"name\": \"password2\",\r\n \"value\": \"agiPvgJ+JWki1qw0uDMY7imZ6ImeqFbL\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-request-id": [ + "f74cc1b3-3279-45ed-86db-167c9142fa9b" + ], + "x-ms-correlation-request-id": [ + "f74cc1b3-3279-45ed-86db-167c9142fa9b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004034Z:f74cc1b3-3279-45ed-86db-167c9142fa9b" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkzNC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXMvYWNycmVnaXN0cnkyNjI4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "92f916b7-40fb-443f-b0e1-c54a8ce8e8a0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "642103fa-79f2-4f11-8fe4-87c7eb8d8a70" + ], + "x-ms-correlation-request-id": [ + "642103fa-79f2-4f11-8fe4-87c7eb8d8a70" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004037Z:642103fa-79f2-4f11-8fe4-87c7eb8d8a70" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/84c559c6-30a0-417c-ba06-8a2253b388c3/resourceGroups/acr_rg934/providers/Microsoft.ContainerRegistry/registries/acrregistry2628?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODRjNTU5YzYtMzBhMC00MTdjLWJhMDYtOGEyMjUzYjM4OGMzL3Jlc291cmNlR3JvdXBzL2Fjcl9yZzkzNC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lclJlZ2lzdHJ5L3JlZ2lzdHJpZXMvYWNycmVnaXN0cnkyNjI4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f303d2cf-0a41-4219-9a12-37dc0b7a395a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ContainerRegistry.ContainerRegistryManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 20 Oct 2017 00:40:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-request-id": [ + "dd5ac8f2-0cd3-4b5b-9630-46505436d6a9" + ], + "x-ms-correlation-request-id": [ + "dd5ac8f2-0cd3-4b5b-9630-46505436d6a9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171020T004037Z:dd5ac8f2-0cd3-4b5b-9630-46505436d6a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 204 + } + ], + "Names": { + "CreateResourceGroup": [ + "acr_rg934" + ], + "CreateManagedContainerRegistry": [ + "acrregistry2628" + ] + }, + "Variables": { + "SubscriptionId": "84c559c6-30a0-417c-ba06-8a2253b388c3" + } +} \ No newline at end of file diff --git a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs index 0a5361652236..34afd5a7aebb 100644 --- a/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs +++ b/src/SDKs/ContainerRegistry/ContainerRegistry.Tests/Tests/ContainerRegistryTests.cs @@ -1,18 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -using System; -using System.Linq; -using System.Net; -using System.Collections.Generic; -using Microsoft.Azure.Management.Resources; -using Microsoft.Azure.Management.Resources.Models; -using Microsoft.Azure.Management.Storage; using Microsoft.Azure.Management.ContainerRegistry; using Microsoft.Azure.Management.ContainerRegistry.Models; +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.Storage; using Microsoft.Rest.Azure; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Threading.Tasks; using Xunit; +using Sku = Microsoft.Azure.Management.ContainerRegistry.Models.Sku; namespace ContainerRegistry.Tests { @@ -26,16 +28,13 @@ public void ContainerRegistryCheckNameTest() using (MockContext context = MockContext.Start(this.GetType().FullName)) { var resourceClient = ContainerRegistryTestUtilities.GetResourceManagementClient(context, handler); - var storageClient = ContainerRegistryTestUtilities.GetStorageManagementClient(context, handler); var registryClient = ContainerRegistryTestUtilities.GetContainerRegistryManagementClient(context, handler); - // Create resource group and storage account - ResourceGroup resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - string storageName = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); - string storageKey = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName); + // Create resource group + var resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); // Check valid name - string registryName = TestUtilities.GenerateName("acrregistry"); + var registryName = TestUtilities.GenerateName("acrregistry"); var checkNameRequest = registryClient.Registries.CheckNameAvailability(registryName); Assert.True(checkNameRequest.NameAvailable); Assert.Null(checkNameRequest.Reason); @@ -46,10 +45,10 @@ public void ContainerRegistryCheckNameTest() checkNameRequest = registryClient.Registries.CheckNameAvailability(registryName); Assert.False(checkNameRequest.NameAvailable); Assert.Equal("Invalid", checkNameRequest.Reason); - Assert.Equal("The specified registry name is disallowed", checkNameRequest.Message); + Assert.Equal("The specified resource name is disallowed", checkNameRequest.Message); // Check name of container registry that already exists - registryName = ContainerRegistryTestUtilities.CreateContainerRegistry(registryClient, resourceGroup, storageName, storageKey); + registryName = ContainerRegistryTestUtilities.CreateManagedContainerRegistry(registryClient, resourceGroup.Name, resourceGroup.Location).Name; checkNameRequest = registryClient.Registries.CheckNameAvailability(registryName); Assert.False(checkNameRequest.NameAvailable); Assert.Equal("AlreadyExists", checkNameRequest.Reason); @@ -58,7 +57,7 @@ public void ContainerRegistryCheckNameTest() } [Fact] - public void ContainerRegistryCreateTest() + public void ClassicContainerRegistryTest() { var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; @@ -69,356 +68,297 @@ public void ContainerRegistryCreateTest() var registryClient = ContainerRegistryTestUtilities.GetContainerRegistryManagementClient(context, handler); // Create resource group and storage account - ResourceGroup resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - string storageName = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); - string storageKey = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName); + var resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); + var storageAccount = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); // Create container registry - string registryName = TestUtilities.GenerateName("acrregistry"); - RegistryCreateParameters parameters = ContainerRegistryTestUtilities.GetDefaultRegistryCreateParameters(resourceGroup, storageName, storageKey); - Registry registry = registryClient.Registries.Create(resourceGroup.Name, registryName, parameters); - ContainerRegistryTestUtilities.VerifyRegistryProperties(registry, storageName, true); - - // Create container registry with optional parameters - registryName = TestUtilities.GenerateName("acrregistry"); - parameters = new RegistryCreateParameters - { - Location = resourceGroup.Location, - Sku = new Microsoft.Azure.Management.ContainerRegistry.Models.Sku - { - Name = "Basic" - }, - StorageAccount = new StorageAccountParameters - { - Name = storageName, - AccessKey = storageKey - }, - Tags = ContainerRegistryTestUtilities.DefaultTags, - AdminUserEnabled = true - }; - registry = registryClient.Registries.Create(resourceGroup.Name, registryName, parameters); - ContainerRegistryTestUtilities.VerifyRegistryProperties(registry, storageName, false); - Assert.True(registry.AdminUserEnabled); + var registry = ContainerRegistryTestUtilities.CreateClassicContainerRegistry(registryClient, resourceGroup, storageAccount); + + ContainerRegistryCoreScenario(registryClient, resourceGroup, registry, false); } } [Fact] - public void ContainerRegistryListBySubscriptionTest() + public void ManagedContainerRegistryTest() { var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; using (MockContext context = MockContext.Start(this.GetType().FullName)) { var resourceClient = ContainerRegistryTestUtilities.GetResourceManagementClient(context, handler); - var storageClient = ContainerRegistryTestUtilities.GetStorageManagementClient(context, handler); var registryClient = ContainerRegistryTestUtilities.GetContainerRegistryManagementClient(context, handler); - // Create resource group, storage account, and container registry - ResourceGroup resourceGroup1 = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - string storageName1 = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup1); - string storageKey1 = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup1, storageName1); - string registryName1 = ContainerRegistryTestUtilities.CreateContainerRegistry(registryClient, resourceGroup1, storageName1, storageKey1); - - // Create different resource group, storage account, and container registry - ResourceGroup resourceGroup2 = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - string storageName2 = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup2); - string storageKey2 = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup2, storageName2); - string registryName2 = ContainerRegistryTestUtilities.CreateContainerRegistry(registryClient, resourceGroup2, storageName2, storageKey2); - - var registries = registryClient.Registries.List(); + // Create resource group + var resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - Registry registry1 = registries.First( - r => StringComparer.OrdinalIgnoreCase.Equals(r.Name, registryName1)); - ContainerRegistryTestUtilities.VerifyRegistryProperties(registry1, storageName1, true); + // Create container registry + var registry = ContainerRegistryTestUtilities.CreateManagedContainerRegistry(registryClient, resourceGroup.Name, resourceGroup.Location); - Registry registry2 = registries.First( - r => StringComparer.OrdinalIgnoreCase.Equals(r.Name, registryName2)); - ContainerRegistryTestUtilities.VerifyRegistryProperties(registry2, storageName2, true); + ContainerRegistryCoreScenario(registryClient, resourceGroup, registry, true); } } - [Fact] - public void ContainerRegistryListByResourceGroupTest() + private void ContainerRegistryCoreScenario(ContainerRegistryManagementClient registryClient, ResourceGroup resourceGroup, Registry registry, bool isManaged) { - var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; - - using (MockContext context = MockContext.Start(this.GetType().FullName)) + // Validate the created registry + ContainerRegistryTestUtilities.ValidateResourceDefaultTags(registry); + Assert.NotNull(registry.Sku); + if (isManaged) { - var resourceClient = ContainerRegistryTestUtilities.GetResourceManagementClient(context, handler); - var storageClient = ContainerRegistryTestUtilities.GetStorageManagementClient(context, handler); - var registryClient = ContainerRegistryTestUtilities.GetContainerRegistryManagementClient(context, handler); - - // Create resource group and storage account - ResourceGroup resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - string storageName = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); - string storageKey = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName); + Assert.Equal(SkuName.Premium, registry.Sku.Name); + Assert.Equal(SkuName.Premium, registry.Sku.Tier); + } + else + { + Assert.Equal(SkuName.Classic, registry.Sku.Name); + Assert.Equal(SkuTier.Classic, registry.Sku.Tier); + } + Assert.NotNull(registry.LoginServer); + Assert.NotNull(registry.CreationDate); + Assert.Equal(ProvisioningState.Succeeded, registry.ProvisioningState); + Assert.False(registry.AdminUserEnabled); + if (isManaged) + { + Assert.Null(registry.StorageAccount); + } + else + { + Assert.NotNull(registry.StorageAccount); + } - // Create container registries - string registryName1 = ContainerRegistryTestUtilities.CreateContainerRegistry(registryClient, resourceGroup, storageName, storageKey); - string registryName2 = ContainerRegistryTestUtilities.CreateContainerRegistry(registryClient, resourceGroup, storageName, storageKey); + // List container registries by resource group + var registriesByResourceGroup = registryClient.Registries.ListByResourceGroup(resourceGroup.Name); + registry = registriesByResourceGroup.First( + r => StringComparer.OrdinalIgnoreCase.Equals(r.Name, registry.Name)); + Assert.Equal(1, registriesByResourceGroup.Count()); + ContainerRegistryTestUtilities.ValidateResourceDefaultTags(registry); - var registries = registryClient.Registries.ListByResourceGroup(resourceGroup.Name); - Assert.Equal(2, registries.Count()); + // Get the container registry + registry = registryClient.Registries.Get(resourceGroup.Name, registry.Name); + ContainerRegistryTestUtilities.ValidateResourceDefaultTags(registry); - ContainerRegistryTestUtilities.VerifyRegistryProperties(registries.First(), storageName, true); - ContainerRegistryTestUtilities.VerifyRegistryProperties(registries.ToArray()[1], storageName, true); + // Try to list credentials, should fail when admin user is disabled + try + { + registryClient.Registries.ListCredentials(resourceGroup.Name, registry.Name); + Assert.True(false); } - } - - [Fact] - public void ContainerRegistryGetTest() - { - var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; - - using (MockContext context = MockContext.Start(this.GetType().FullName)) + catch (CloudException ex) { - var resourceClient = ContainerRegistryTestUtilities.GetResourceManagementClient(context, handler); - var storageClient = ContainerRegistryTestUtilities.GetStorageManagementClient(context, handler); - var registryClient = ContainerRegistryTestUtilities.GetContainerRegistryManagementClient(context, handler); - - // Create resource group and storage account - ResourceGroup resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - string storageName = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); - string storageKey = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName); - - // Get default registry properties - RegistryCreateParameters parameters = ContainerRegistryTestUtilities.GetDefaultRegistryCreateParameters(resourceGroup, storageName, storageKey); - - // Create container registry with admin enabled - string registryName = TestUtilities.GenerateName("acrregistry"); - parameters.AdminUserEnabled = true; - registryClient.Registries.Create(resourceGroup.Name, registryName, parameters); - Registry registry = registryClient.Registries.Get(resourceGroup.Name, registryName); - ContainerRegistryTestUtilities.VerifyRegistryProperties(registry, storageName, false); - Assert.True(registry.AdminUserEnabled); - - // Create container registry with admin disabled - registryName = TestUtilities.GenerateName("acrregistry"); - parameters.AdminUserEnabled = false; - registryClient.Registries.Create(resourceGroup.Name, registryName, parameters); - registry = registryClient.Registries.Get(resourceGroup.Name, registryName); - ContainerRegistryTestUtilities.VerifyRegistryProperties(registry, storageName, true); + Assert.NotNull(ex); + Assert.Equal(HttpStatusCode.BadRequest, ex.Response.StatusCode); } - } - [Fact] - public void ContainerRegistryUpdateTest() - { - var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + // Update the container registry + registry = registryClient.Registries.Update(resourceGroup.Name, registry.Name, new RegistryUpdateParameters + { + Tags = ContainerRegistryTestUtilities.DefaultNewTags, + AdminUserEnabled = true, + Sku = new Sku + { + Name = isManaged ? SkuName.Basic : SkuName.Classic + } + }); - using (MockContext context = MockContext.Start(this.GetType().FullName)) + // Validate the updated registry + ContainerRegistryTestUtilities.ValidateResourceDefaultNewTags(registry); + Assert.NotNull(registry.Sku); + if (isManaged) { - var resourceClient = ContainerRegistryTestUtilities.GetResourceManagementClient(context, handler); - var storageClient = ContainerRegistryTestUtilities.GetStorageManagementClient(context, handler); - var registryClient = ContainerRegistryTestUtilities.GetContainerRegistryManagementClient(context, handler); + Assert.Equal(SkuName.Basic, registry.Sku.Name); + Assert.Equal(SkuName.Basic, registry.Sku.Tier); + } + else + { + Assert.Equal(SkuName.Classic, registry.Sku.Name); + Assert.Equal(SkuTier.Classic, registry.Sku.Tier); + } + Assert.NotNull(registry.LoginServer); + Assert.NotNull(registry.CreationDate); + Assert.Equal(ProvisioningState.Succeeded, registry.ProvisioningState); + Assert.True(registry.AdminUserEnabled); + if (isManaged) + { + Assert.Null(registry.StorageAccount); + } + else + { + Assert.NotNull(registry.StorageAccount); + } - // Create resource group and storage account - ResourceGroup resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - string storageName1 = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); - string storageKey1 = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName1); + // List credentials + var credentials = registryClient.Registries.ListCredentials(resourceGroup.Name, registry.Name); - // Create a different storage account - string storageName2 = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); - string storageKey2 = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName2); + // Validate username and password + Assert.NotNull(credentials); + Assert.NotNull(credentials.Username); + Assert.Equal(2, credentials.Passwords.Count); + var password1 = credentials.Passwords[0].Value; + var password2 = credentials.Passwords[1].Value; + Assert.NotNull(password1); + Assert.NotNull(password2); - // Create container registry - string registryName = ContainerRegistryTestUtilities.CreateContainerRegistry(registryClient, resourceGroup, storageName1, storageKey1); + // Regenerate credential + credentials = registryClient.Registries.RegenerateCredential(resourceGroup.Name, registry.Name, PasswordName.Password); - // Enable admin - RegistryUpdateParameters registryUpdateParameters = new RegistryUpdateParameters - { - AdminUserEnabled = true - }; - registryClient.Registries.Update(resourceGroup.Name, registryName, registryUpdateParameters); + // Validate if generated password is different + var newPassword1 = credentials.Passwords[0].Value; + var newPassword2 = credentials.Passwords[1].Value; + Assert.NotEqual(password1, newPassword1); + Assert.Equal(password2, newPassword2); - // Validate - Registry registry = registryClient.Registries.Get(resourceGroup.Name, registryName); - Assert.True(registry.AdminUserEnabled); + credentials = registryClient.Registries.RegenerateCredential(resourceGroup.Name, registry.Name, PasswordName.Password2); - // Update tags - registryUpdateParameters = new RegistryUpdateParameters - { - Tags = new Dictionary - { - {"key2","value2"}, - {"key3","value3"}, - {"key4","value4"} - } - }; - registryClient.Registries.Update(resourceGroup.Name, registryName, registryUpdateParameters); - - // Validate - registry = registryClient.Registries.Get(resourceGroup.Name, registryName); - Assert.Equal(registry.Tags.Count, registryUpdateParameters.Tags.Count); - Assert.Equal(registry.Tags["key2"], "value2"); - Assert.Equal(registry.Tags["key3"], "value3"); - Assert.Equal(registry.Tags["key4"], "value4"); - - // Update storage account - registryUpdateParameters = new RegistryUpdateParameters - { - StorageAccount = new StorageAccountParameters - { - Name = storageName2, - AccessKey = storageKey2 - } - }; - registryClient.Registries.Update(resourceGroup.Name, registryName, registryUpdateParameters); + // Validate if generated password is different + Assert.Equal(newPassword1, credentials.Passwords[0].Value); + Assert.NotEqual(newPassword2, credentials.Passwords[1].Value); - // Validate - registry = registryClient.Registries.Get(resourceGroup.Name, registryName); - Assert.Equal(registry.StorageAccount.Name, storageName2); - } + // Delete the container registry + registryClient.Registries.Delete(resourceGroup.Name, registry.Name); + + // Delete the container registry again + registryClient.Registries.Delete(resourceGroup.Name, registry.Name); } [Fact] - public void ContainerRegistryListCredentialsTest() + public void ContainerRegistryWebhookTest() { var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; using (MockContext context = MockContext.Start(this.GetType().FullName)) { var resourceClient = ContainerRegistryTestUtilities.GetResourceManagementClient(context, handler); - var storageClient = ContainerRegistryTestUtilities.GetStorageManagementClient(context, handler); var registryClient = ContainerRegistryTestUtilities.GetContainerRegistryManagementClient(context, handler); - // Create resource group and storage account - ResourceGroup resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - string storageName = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); - string storageKey = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName); - - // Create container registry with admin disabled - string registryName = ContainerRegistryTestUtilities.CreateContainerRegistry(registryClient, resourceGroup, storageName, storageKey); - - // Get credentials should fail when admin is disabled - try - { - registryClient.Registries.ListCredentials(resourceGroup.Name, registryName); - Assert.True(false); - } - catch (CloudException ex) + // Create resource group + var resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); + + // Create container registry and webhook + var registry = ContainerRegistryTestUtilities.CreateManagedContainerRegistry(registryClient, resourceGroup.Name, resourceGroup.Location); + var webhook = ContainerRegistryTestUtilities.CreatedContainerRegistryWebhook(registryClient, resourceGroup.Name, registry.Name, resourceGroup.Location); + + // Validate the created webhook + ContainerRegistryTestUtilities.ValidateResourceDefaultTags(webhook); + Assert.Equal(WebhookStatus.Enabled, webhook.Status); + Assert.True(string.IsNullOrEmpty(webhook.Scope)); + Assert.Equal(1, webhook.Actions.Count); + Assert.True(webhook.Actions.Contains(WebhookAction.Push)); + Assert.Equal(ProvisioningState.Succeeded, webhook.ProvisioningState); + + // List webhooks by container registry + var webhooks = registryClient.Webhooks.List(resourceGroup.Name, registry.Name); + webhook = webhooks.First( + w => StringComparer.OrdinalIgnoreCase.Equals(w.Name, webhook.Name)); + Assert.Equal(1, webhooks.Count()); + ContainerRegistryTestUtilities.ValidateResourceDefaultTags(webhook); + + // Get the webhook + webhook = registryClient.Webhooks.Get(resourceGroup.Name, registry.Name, webhook.Name); + ContainerRegistryTestUtilities.ValidateResourceDefaultTags(webhook); + + // Update the webhook + webhook = registryClient.Webhooks.Update(resourceGroup.Name, registry.Name, webhook.Name, new WebhookUpdateParameters { - Assert.NotNull(ex); - Assert.Equal(HttpStatusCode.BadRequest, ex.Response.StatusCode); - } + Tags = ContainerRegistryTestUtilities.DefaultNewTags, + Status = WebhookStatus.Disabled, + Scope = ContainerRegistryTestUtilities.DefaultWebhookScope, + Actions = new List + { + WebhookAction.Push, WebhookAction.Delete + }, + CustomHeaders = new Dictionary + { + {"key","value" } + } + }); + + // Validate the updated webhook + ContainerRegistryTestUtilities.ValidateResourceDefaultNewTags(webhook); + Assert.Equal(WebhookStatus.Disabled, webhook.Status); + Assert.Equal(ContainerRegistryTestUtilities.DefaultWebhookScope, webhook.Scope); + Assert.Equal(2, webhook.Actions.Count); + Assert.True(webhook.Actions.Contains(WebhookAction.Push)); + Assert.True(webhook.Actions.Contains(WebhookAction.Delete)); + Assert.Equal(ProvisioningState.Succeeded, webhook.ProvisioningState); + + // Get the webhook call back config + var webhookConfig = registryClient.Webhooks.GetCallbackConfig(resourceGroup.Name, registry.Name, webhook.Name); + Assert.NotNull(webhookConfig); + Assert.Equal(ContainerRegistryTestUtilities.DefaultWebhookServiceUri, webhookConfig.ServiceUri); + Assert.Equal(1, webhookConfig.CustomHeaders.Count); + Assert.Equal("value", webhookConfig.CustomHeaders["key"]); + + // Ping the webhook + var eventInfo = registryClient.Webhooks.Ping(resourceGroup.Name, registry.Name, webhook.Name); + Assert.NotNull(eventInfo); + Assert.NotNull(eventInfo.Id); + + var events = registryClient.Webhooks.ListEvents(resourceGroup.Name, registry.Name, webhook.Name); + Assert.NotNull(events); + + // Delete the webhook + registryClient.Webhooks.Delete(resourceGroup.Name, registry.Name, webhook.Name); + + // Delete the webhook again + registryClient.Webhooks.Delete(resourceGroup.Name, registry.Name, webhook.Name); - // Enable admin - RegistryUpdateParameters registryUpdateParameters = new RegistryUpdateParameters - { - AdminUserEnabled = true - }; - registryClient.Registries.Update(resourceGroup.Name, registryName, registryUpdateParameters); - - RegistryListCredentialsResult credentials = registryClient.Registries.ListCredentials(resourceGroup.Name, registryName); - Assert.NotNull(credentials); - - // Validate username and password - string username = credentials.Username; - Assert.True(credentials.Passwords.Count > 1); - string password1 = credentials.Passwords[0].Value; - string password2 = credentials.Passwords[1].Value; - Assert.NotNull(username); - Assert.NotNull(password1); - Assert.NotNull(password2); + // Delete the container registry + registryClient.Registries.Delete(resourceGroup.Name, registry.Name); } } [Fact] - public void ContainerRegistryRegenerateCredentialTest() + public void ContainerRegistryReplicationTest() { var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; using (MockContext context = MockContext.Start(this.GetType().FullName)) { var resourceClient = ContainerRegistryTestUtilities.GetResourceManagementClient(context, handler); - var storageClient = ContainerRegistryTestUtilities.GetStorageManagementClient(context, handler); var registryClient = ContainerRegistryTestUtilities.GetContainerRegistryManagementClient(context, handler); - // Create resource group and storage account - ResourceGroup resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - string storageName = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); - string storageKey = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName); - - string registryName = TestUtilities.GenerateName("acrregistry"); - RegistryCreateParameters parameters = ContainerRegistryTestUtilities.GetDefaultRegistryCreateParameters(resourceGroup, storageName, storageKey); - parameters.AdminUserEnabled = true; - Registry registry = registryClient.Registries.Create(resourceGroup.Name, registryName, parameters); - - RegistryListCredentialsResult credentials = registryClient.Registries.ListCredentials(resourceGroup.Name, registryName); - Assert.NotNull(credentials); - - // Validate username and password - string username_1 = credentials.Username; - Assert.True(credentials.Passwords.Count > 1); - string password1_1 = credentials.Passwords[0].Value; - string password2_1 = credentials.Passwords[1].Value; - Assert.NotNull(username_1); - Assert.NotNull(password1_1); - Assert.NotNull(password2_1); - - credentials = registryClient.Registries.RegenerateCredential(resourceGroup.Name, registryName, PasswordName.Password); - Assert.NotNull(credentials); - - // Validate username and password - string username_2 = credentials.Username; - Assert.True(credentials.Passwords.Count > 1); - string password1_2 = credentials.Passwords[0].Value; - string password2_2 = credentials.Passwords[1].Value; - Assert.NotNull(username_2); - Assert.NotNull(password1_2); - Assert.NotNull(password2_2); - - // Validate if generated password is different - Assert.Equal(username_1, username_2); - Assert.NotEqual(password1_1, password1_2); - Assert.Equal(password2_1, password2_2); - - credentials = registryClient.Registries.RegenerateCredential(resourceGroup.Name, registryName, PasswordName.Password2); - Assert.NotNull(credentials); - - // Validate username and password - string username_3 = credentials.Username; - Assert.True(credentials.Passwords.Count > 1); - string password1_3 = credentials.Passwords[0].Value; - string password2_3 = credentials.Passwords[1].Value; - Assert.NotNull(username_2); - Assert.NotNull(password1_2); - Assert.NotNull(password2_2); - - // Validate if generated password is different - Assert.Equal(username_2, username_3); - Assert.Equal(password1_2, password1_3); - Assert.NotEqual(password2_2, password2_3); - } - } + // Create resource group + var resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); + var nonDefaultLocation = ContainerRegistryTestUtilities.GetNonDefaultRegistryLocation(resourceClient, resourceGroup.Location); - [Fact] - public void ContainerRegistryDeleteTest() - { - var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + // Create container registry and replication + var registry = ContainerRegistryTestUtilities.CreateManagedContainerRegistry(registryClient, resourceGroup.Name, nonDefaultLocation); + var replication = ContainerRegistryTestUtilities.CreatedContainerRegistryReplication(registryClient, resourceGroup.Name, registry.Name, resourceGroup.Location); - using (MockContext context = MockContext.Start(this.GetType().FullName)) - { - var resourceClient = ContainerRegistryTestUtilities.GetResourceManagementClient(context, handler); - var storageClient = ContainerRegistryTestUtilities.GetStorageManagementClient(context, handler); - var registryClient = ContainerRegistryTestUtilities.GetContainerRegistryManagementClient(context, handler); + // Validate the created replication + ContainerRegistryTestUtilities.ValidateResourceDefaultTags(replication); + Assert.Equal(ProvisioningState.Succeeded, replication.ProvisioningState); + Assert.NotNull(replication.Status); + Assert.NotNull(replication.Status.DisplayStatus); - // Create resource group and storage account - ResourceGroup resourceGroup = ContainerRegistryTestUtilities.CreateResourceGroup(resourceClient); - string storageName = ContainerRegistryTestUtilities.CreateStorageAccount(storageClient, resourceGroup); - string storageKey = ContainerRegistryTestUtilities.GetStorageAccessKey(storageClient, resourceGroup, storageName); + // List replications by container registry + var replications = registryClient.Replications.List(resourceGroup.Name, registry.Name); + replication = replications.First( + r => StringComparer.OrdinalIgnoreCase.Equals(r.Name, replication.Name)); + Assert.Equal(2, replications.Count()); // 2 because a replication in home region is auto created + ContainerRegistryTestUtilities.ValidateResourceDefaultTags(replication); - // Delete a container registry which does not exist - registryClient.Registries.Delete(resourceGroup.Name, "doesnotexist"); + // Get the replication + replication = registryClient.Replications.Get(resourceGroup.Name, registry.Name, replication.Name); + ContainerRegistryTestUtilities.ValidateResourceDefaultTags(replication); - // Create a container registry - string registryName = ContainerRegistryTestUtilities.CreateContainerRegistry(registryClient, resourceGroup, storageName, storageKey); + // Update the replication + replication = registryClient.Replications.Update(resourceGroup.Name, registry.Name, replication.Name, ContainerRegistryTestUtilities.DefaultNewTags); - // Delete the container registry - registryClient.Registries.Delete(resourceGroup.Name, registryName); + // Validate the updated replication + ContainerRegistryTestUtilities.ValidateResourceDefaultNewTags(replication); + Assert.Equal(ProvisioningState.Succeeded, replication.ProvisioningState); + Assert.NotNull(replication.Status); + Assert.NotNull(replication.Status.DisplayStatus); - // Delete the container registry again - registryClient.Registries.Delete(resourceGroup.Name, registryName); + // Delete the replication + registryClient.Replications.Delete(resourceGroup.Name, registry.Name, replication.Name); + + // Delete the replication again + registryClient.Replications.Delete(resourceGroup.Name, registry.Name, replication.Name); + + // Delete the container registry + registryClient.Registries.Delete(resourceGroup.Name, registry.Name); } } } diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs index 56ba592f51c2..3c13160d2809 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ContainerRegistryManagementClient.cs @@ -1,18 +1,18 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry { - using Azure; - using Management; - using Rest; - using Rest.Azure; - using Rest.Serialization; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; using Models; using Newtonsoft.Json; using System.Collections; @@ -80,13 +80,23 @@ public partial class ContainerRegistryManagementClient : ServiceClient public virtual IOperations Operations { get; private set; } + ///

+ /// Gets the IReplicationsOperations. + /// + public virtual IReplicationsOperations Replications { get; private set; } + + /// + /// Gets the IWebhooksOperations. + /// + public virtual IWebhooksOperations Webhooks { get; private set; } + /// /// Initializes a new instance of the ContainerRegistryManagementClient class. /// /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected ContainerRegistryManagementClient(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers) + protected ContainerRegistryManagementClient(params DelegatingHandler[] handlers) : base(handlers) { Initialize(); } @@ -100,7 +110,7 @@ protected ContainerRegistryManagementClient(params System.Net.Http.DelegatingHan /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected ContainerRegistryManagementClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers) + protected ContainerRegistryManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { Initialize(); } @@ -117,7 +127,7 @@ protected ContainerRegistryManagementClient(System.Net.Http.HttpClientHandler ro /// /// Thrown when a required parameter is null /// - protected ContainerRegistryManagementClient(System.Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + protected ContainerRegistryManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { @@ -141,7 +151,7 @@ protected ContainerRegistryManagementClient(System.Uri baseUri, params System.Ne /// /// Thrown when a required parameter is null /// - protected ContainerRegistryManagementClient(System.Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + protected ContainerRegistryManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { @@ -162,7 +172,7 @@ protected ContainerRegistryManagementClient(System.Uri baseUri, System.Net.Http. /// /// Thrown when a required parameter is null /// - public ContainerRegistryManagementClient(ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public ContainerRegistryManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (credentials == null) { @@ -190,7 +200,7 @@ public ContainerRegistryManagementClient(ServiceClientCredentials credentials, p /// /// Thrown when a required parameter is null /// - public ContainerRegistryManagementClient(ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public ContainerRegistryManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (credentials == null) { @@ -218,7 +228,7 @@ public ContainerRegistryManagementClient(ServiceClientCredentials credentials, S /// /// Thrown when a required parameter is null /// - public ContainerRegistryManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public ContainerRegistryManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { @@ -254,7 +264,7 @@ public ContainerRegistryManagementClient(System.Uri baseUri, ServiceClientCreden /// /// Thrown when a required parameter is null /// - public ContainerRegistryManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public ContainerRegistryManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { @@ -283,18 +293,20 @@ private void Initialize() { Registries = new RegistriesOperations(this); Operations = new Operations(this); + Replications = new ReplicationsOperations(this); + Webhooks = new WebhooksOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2017-03-01"; + ApiVersion = "2017-10-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; SerializationSettings = new JsonSerializerSettings { - Formatting = Formatting.Indented, - DateFormatHandling = DateFormatHandling.IsoDateFormat, - DateTimeZoneHandling = DateTimeZoneHandling.Utc, - NullValueHandling = NullValueHandling.Ignore, - ReferenceLoopHandling = ReferenceLoopHandling.Serialize, + 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 { @@ -304,10 +316,10 @@ private void Initialize() SerializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings = new JsonSerializerSettings { - DateFormatHandling = DateFormatHandling.IsoDateFormat, - DateTimeZoneHandling = DateTimeZoneHandling.Utc, - NullValueHandling = NullValueHandling.Ignore, - ReferenceLoopHandling = ReferenceLoopHandling.Serialize, + 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 { @@ -320,4 +332,3 @@ private void Initialize() } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs index 1c2fb24cbb56..3bf1369ec30a 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IContainerRegistryManagementClient.cs @@ -1,17 +1,17 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; @@ -77,6 +77,15 @@ public partial interface IContainerRegistryManagementClient : System.IDisposable /// IOperations Operations { get; } + /// + /// Gets the IReplicationsOperations. + /// + IReplicationsOperations Replications { get; } + + /// + /// Gets the IWebhooksOperations. + /// + IWebhooksOperations Webhooks { get; } + } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IOperations.cs index fe492faa736b..0dc45521af3b 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IOperations.cs @@ -1,17 +1,17 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -68,4 +68,3 @@ public partial interface IOperations Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IRegistriesOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IRegistriesOperations.cs index f6bd71c4c17b..0d8fad6a6de3 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IRegistriesOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IRegistriesOperations.cs @@ -1,17 +1,17 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -26,7 +26,7 @@ public partial interface IRegistriesOperations /// /// Checks whether the container registry name is available for use. /// The name must contain only alphanumeric characters, be globally - /// unique, and between 5 and 60 characters in length. + /// unique, and between 5 and 50 characters in length. /// /// /// The name of the container registry. @@ -83,7 +83,7 @@ public partial interface IRegistriesOperations /// /// The name of the container registry. /// - /// + /// /// The parameters for creating a container registry. /// /// @@ -101,7 +101,7 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a container registry. /// @@ -257,6 +257,32 @@ public partial interface IRegistriesOperations /// Task> RegenerateCredentialWithHttpMessagesAsync(string resourceGroupName, string registryName, PasswordName name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Gets the quota usages for the specified container registry. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// 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> ListUsagesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Creates a container registry with the specified parameters. /// /// @@ -266,7 +292,7 @@ public partial interface IRegistriesOperations /// /// The name of the container registry. /// - /// + /// /// The parameters for creating a container registry. /// /// @@ -284,7 +310,59 @@ public partial interface IRegistriesOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a container registry. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a container registry with the specified parameters. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The parameters for updating a container registry. + /// + /// + /// 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 registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all the container registries under the specified resource /// group. @@ -333,4 +411,3 @@ public partial interface IRegistriesOperations Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IReplicationsOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IReplicationsOperations.cs new file mode 100644 index 000000000000..698157edb01c --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IReplicationsOperations.cs @@ -0,0 +1,296 @@ +// +// 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.ContainerRegistry +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ReplicationsOperations operations. + /// + public partial interface IReplicationsOperations + { + /// + /// Gets the properties of the specified replication. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The location of the resource. This cannot be changed after the + /// resource is created. + /// + /// + /// The tags of the resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a replication from a container registry. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// 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 registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The tags for the replication. + /// + /// + /// 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 registryName, string replicationName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the replications for the specified container registry. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// 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 registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The location of the resource. This cannot be changed after the + /// resource is created. + /// + /// + /// The tags of the resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a replication from a container registry. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The tags for the replication. + /// + /// + /// 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 registryName, string replicationName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the replications for the specified container registry. + /// + /// + /// 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/ContainerRegistry/Management.ContainerRegistry/Generated/IWebhooksOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IWebhooksOperations.cs new file mode 100644 index 000000000000..7e41edaa9f64 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/IWebhooksOperations.cs @@ -0,0 +1,396 @@ +// +// 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.ContainerRegistry +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// WebhooksOperations operations. + /// + public partial interface IWebhooksOperations + { + /// + /// Gets the properties of the specified webhook. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a webhook for a container registry with the specified + /// parameters. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for creating a webhook. + /// + /// + /// 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> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a webhook from a container registry. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// 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 registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a webhook with the specified parameters. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for updating a webhook. + /// + /// + /// 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 registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the webhooks for the specified container registry. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// 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 registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Triggers a ping event to be sent to the webhook. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// 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> PingWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the configuration of service URI and custom headers for the + /// webhook. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// 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> GetCallbackConfigWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists recent events for the specified webhook. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// 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>> ListEventsWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a webhook for a container registry with the specified + /// parameters. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for creating a webhook. + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a webhook from a container registry. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a webhook with the specified parameters. + /// + /// + /// The name of the resource group to which the container registry + /// belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for updating a webhook. + /// + /// + /// 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 registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the webhooks for the specified container registry. + /// + /// + /// 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)); + /// + /// Lists recent events for the specified webhook. + /// + /// + /// 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>> ListEventsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Actor.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Actor.cs new file mode 100644 index 000000000000..38b93b5a36f8 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Actor.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.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The agent that initiated the event. For most situations, this could be + /// from the authorization context of the request. + /// + public partial class Actor + { + /// + /// Initializes a new instance of the Actor class. + /// + public Actor() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Actor class. + /// + /// The subject or username associated with the + /// request context that generated the event. + public Actor(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the subject or username associated with the request + /// context that generated the event. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/CallbackConfig.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/CallbackConfig.cs new file mode 100644 index 000000000000..8d47c4ed4f77 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/CallbackConfig.cs @@ -0,0 +1,78 @@ +// +// 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.ContainerRegistry.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The configuration of service URI and custom headers for the webhook. + /// + public partial class CallbackConfig + { + /// + /// Initializes a new instance of the CallbackConfig class. + /// + public CallbackConfig() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CallbackConfig class. + /// + /// The service URI for the webhook to post + /// notifications. + /// Custom headers that will be added to + /// the webhook notifications. + public CallbackConfig(string serviceUri, IDictionary customHeaders = default(IDictionary)) + { + ServiceUri = serviceUri; + CustomHeaders = customHeaders; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the service URI for the webhook to post notifications. + /// + [JsonProperty(PropertyName = "serviceUri")] + public string ServiceUri { get; set; } + + /// + /// Gets or sets custom headers that will be added to the webhook + /// notifications. + /// + [JsonProperty(PropertyName = "customHeaders")] + public IDictionary CustomHeaders { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ServiceUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServiceUri"); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventContent.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventContent.cs new file mode 100644 index 000000000000..52143480c376 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventContent.cs @@ -0,0 +1,109 @@ +// +// 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.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The content of the event request message. + /// + public partial class EventContent + { + /// + /// Initializes a new instance of the EventContent class. + /// + public EventContent() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventContent class. + /// + /// The event ID. + /// The time at which the event + /// occurred. + /// The action that encompasses the provided + /// event. + /// The target of the event. + /// The request that generated the event. + /// The agent that initiated the event. For most + /// situations, this could be from the authorization context of the + /// request. + /// The registry node that generated the event. + /// Put differently, while the actor initiates the event, the source + /// generates it. + public EventContent(string id = default(string), System.DateTime? timestamp = default(System.DateTime?), string action = default(string), Target target = default(Target), Request request = default(Request), Actor actor = default(Actor), Source source = default(Source)) + { + Id = id; + Timestamp = timestamp; + Action = action; + Target = target; + Request = request; + Actor = actor; + Source = source; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the event ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the time at which the event occurred. + /// + [JsonProperty(PropertyName = "timestamp")] + public System.DateTime? Timestamp { get; set; } + + /// + /// Gets or sets the action that encompasses the provided event. + /// + [JsonProperty(PropertyName = "action")] + public string Action { get; set; } + + /// + /// Gets or sets the target of the event. + /// + [JsonProperty(PropertyName = "target")] + public Target Target { get; set; } + + /// + /// Gets or sets the request that generated the event. + /// + [JsonProperty(PropertyName = "request")] + public Request Request { get; set; } + + /// + /// Gets or sets the agent that initiated the event. For most + /// situations, this could be from the authorization context of the + /// request. + /// + [JsonProperty(PropertyName = "actor")] + public Actor Actor { get; set; } + + /// + /// Gets or sets the registry node that generated the event. Put + /// differently, while the actor initiates the event, the source + /// generates it. + /// + [JsonProperty(PropertyName = "source")] + public Source Source { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventInfo.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventInfo.cs new file mode 100644 index 000000000000..dcbaba4b37c7 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventInfo.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.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The basic information of an event. + /// + public partial class EventInfo + { + /// + /// Initializes a new instance of the EventInfo class. + /// + public EventInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventInfo class. + /// + /// The event ID. + public EventInfo(string id = default(string)) + { + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the event ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventModel.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventModel.cs new file mode 100644 index 000000000000..a3b2be1711db --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventModel.cs @@ -0,0 +1,64 @@ +// +// 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.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The event for a webhook. + /// + public partial class EventModel : EventInfo + { + /// + /// Initializes a new instance of the EventModel class. + /// + public EventModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventModel class. + /// + /// The event ID. + /// The event request message sent to + /// the service URI. + /// The event response message + /// received from the service URI. + public EventModel(string id = default(string), EventRequestMessage eventRequestMessage = default(EventRequestMessage), EventResponseMessage eventResponseMessage = default(EventResponseMessage)) + : base(id) + { + EventRequestMessage = eventRequestMessage; + EventResponseMessage = eventResponseMessage; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the event request message sent to the service URI. + /// + [JsonProperty(PropertyName = "eventRequestMessage")] + public EventRequestMessage EventRequestMessage { get; set; } + + /// + /// Gets or sets the event response message received from the service + /// URI. + /// + [JsonProperty(PropertyName = "eventResponseMessage")] + public EventResponseMessage EventResponseMessage { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventRequestMessage.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventRequestMessage.cs new file mode 100644 index 000000000000..f9c61c2d3929 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventRequestMessage.cs @@ -0,0 +1,90 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The event request message sent to the service URI. + /// + public partial class EventRequestMessage + { + /// + /// Initializes a new instance of the EventRequestMessage class. + /// + public EventRequestMessage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventRequestMessage class. + /// + /// The content of the event request + /// message. + /// The headers of the event request + /// message. + /// The HTTP method used to send the event request + /// message. + /// The URI used to send the event request + /// message. + /// The HTTP message version. + public EventRequestMessage(EventContent content = default(EventContent), IDictionary headers = default(IDictionary), string method = default(string), string requestUri = default(string), string version = default(string)) + { + Content = content; + Headers = headers; + Method = method; + RequestUri = requestUri; + Version = version; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the content of the event request message. + /// + [JsonProperty(PropertyName = "content")] + public EventContent Content { get; set; } + + /// + /// Gets or sets the headers of the event request message. + /// + [JsonProperty(PropertyName = "headers")] + public IDictionary Headers { get; set; } + + /// + /// Gets or sets the HTTP method used to send the event request + /// message. + /// + [JsonProperty(PropertyName = "method")] + public string Method { get; set; } + + /// + /// Gets or sets the URI used to send the event request message. + /// + [JsonProperty(PropertyName = "requestUri")] + public string RequestUri { get; set; } + + /// + /// Gets or sets the HTTP message version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventResponseMessage.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventResponseMessage.cs new file mode 100644 index 000000000000..40b8dc382d57 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/EventResponseMessage.cs @@ -0,0 +1,89 @@ +// +// 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.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The event response message received from the service URI. + /// + public partial class EventResponseMessage + { + /// + /// Initializes a new instance of the EventResponseMessage class. + /// + public EventResponseMessage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventResponseMessage class. + /// + /// The content of the event response + /// message. + /// The headers of the event response + /// message. + /// The reason phrase of the event response + /// message. + /// The status code of the event response + /// message. + /// The HTTP message version. + public EventResponseMessage(string content = default(string), IDictionary headers = default(IDictionary), string reasonPhrase = default(string), string statusCode = default(string), string version = default(string)) + { + Content = content; + Headers = headers; + ReasonPhrase = reasonPhrase; + StatusCode = statusCode; + Version = version; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the content of the event response message. + /// + [JsonProperty(PropertyName = "content")] + public string Content { get; set; } + + /// + /// Gets or sets the headers of the event response message. + /// + [JsonProperty(PropertyName = "headers")] + public IDictionary Headers { get; set; } + + /// + /// Gets or sets the reason phrase of the event response message. + /// + [JsonProperty(PropertyName = "reasonPhrase")] + public string ReasonPhrase { get; set; } + + /// + /// Gets or sets the status code of the event response message. + /// + [JsonProperty(PropertyName = "statusCode")] + public string StatusCode { get; set; } + + /// + /// Gets or sets the HTTP message version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OperationDefinition.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OperationDefinition.cs index cd62c95514d2..ffc6aff0c879 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OperationDefinition.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OperationDefinition.cs @@ -1,16 +1,15 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; using Newtonsoft.Json; using System.Linq; @@ -22,7 +21,10 @@ public partial class OperationDefinition /// /// Initializes a new instance of the OperationDefinition class. /// - public OperationDefinition() { } + public OperationDefinition() + { + CustomInit(); + } /// /// Initializes a new instance of the OperationDefinition class. @@ -35,8 +37,14 @@ public OperationDefinition() { } { Name = name; Display = display; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets operation name: {provider}/{resource}/{operation}. /// @@ -52,4 +60,3 @@ public OperationDefinition() { } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OperationDisplayDefinition.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OperationDisplayDefinition.cs index 2fa2ea440fae..940c4c964aa7 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OperationDisplayDefinition.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/OperationDisplayDefinition.cs @@ -1,16 +1,15 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; using Newtonsoft.Json; using System.Linq; @@ -22,7 +21,10 @@ public partial class OperationDisplayDefinition /// /// Initializes a new instance of the OperationDisplayDefinition class. /// - public OperationDisplayDefinition() { } + public OperationDisplayDefinition() + { + CustomInit(); + } /// /// Initializes a new instance of the OperationDisplayDefinition class. @@ -41,8 +43,14 @@ public OperationDisplayDefinition() { } Resource = resource; Operation = operation; Description = description; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the resource provider name: /// Microsoft.ContainerRegistry. @@ -70,4 +78,3 @@ public OperationDisplayDefinition() { } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Page.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Page.cs index 340cb48bfbf3..e077d4d2c295 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Page.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Page.cs @@ -1,18 +1,17 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; - using Rest; - using Rest.Azure; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -52,4 +51,3 @@ IEnumerator IEnumerable.GetEnumerator() } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/PasswordName.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/PasswordName.cs index ff0a1e4a001b..73ce8c752cec 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/PasswordName.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/PasswordName.cs @@ -1,16 +1,15 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -27,5 +26,35 @@ public enum PasswordName [EnumMember(Value = "password2")] Password2 } -} + internal static class PasswordNameEnumExtension + { + internal static string ToSerializedValue(this PasswordName? value) + { + return value == null ? null : ((PasswordName)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this PasswordName value) + { + switch( value ) + { + case PasswordName.Password: + return "password"; + case PasswordName.Password2: + return "password2"; + } + return null; + } + internal static PasswordName? ParsePasswordName(this string value) + { + switch( value ) + { + case "password": + return PasswordName.Password; + case "password2": + return PasswordName.Password2; + } + return null; + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ProvisioningState.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ProvisioningState.cs index 55732aafd329..512cf9ec0f3f 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ProvisioningState.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ProvisioningState.cs @@ -1,31 +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 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime; - using System.Runtime.Serialization; /// /// Defines values for ProvisioningState. /// - [JsonConverter(typeof(StringEnumConverter))] - public enum ProvisioningState + public static class ProvisioningState { - [EnumMember(Value = "Creating")] - Creating, - [EnumMember(Value = "Succeeded")] - Succeeded + public const string Creating = "Creating"; + public const string Updating = "Updating"; + public const string Deleting = "Deleting"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Canceled = "Canceled"; } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegenerateCredentialParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegenerateCredentialParameters.cs index 59380552d62d..a659385e6f8f 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegenerateCredentialParameters.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegenerateCredentialParameters.cs @@ -1,16 +1,15 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; using Newtonsoft.Json; using System.Linq; @@ -23,7 +22,10 @@ public partial class RegenerateCredentialParameters /// Initializes a new instance of the RegenerateCredentialParameters /// class. /// - public RegenerateCredentialParameters() { } + public RegenerateCredentialParameters() + { + CustomInit(); + } /// /// Initializes a new instance of the RegenerateCredentialParameters @@ -35,8 +37,14 @@ public RegenerateCredentialParameters() { } public RegenerateCredentialParameters(PasswordName name) { Name = name; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets specifies name of the password which should be /// regenerated -- password or password2. Possible values include: @@ -56,4 +64,3 @@ public virtual void Validate() } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Registry.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Registry.cs index b9d67624db26..8a026118c2a7 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Registry.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Registry.cs @@ -1,18 +1,17 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; - using Rest; - using Rest.Serialization; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +20,16 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models /// /// An object that represents a container registry. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class Registry : Resource { /// /// Initializes a new instance of the Registry class. /// - public Registry() { } + public Registry() + { + CustomInit(); + } /// /// Initializes a new instance of the Registry class. @@ -43,24 +45,34 @@ public Registry() { } /// container registry. /// The creation date of the container /// registry in ISO8601 format. - /// The status of the container - /// registry at the time the operation was called. Possible values - /// include: 'Creating', 'Succeeded' + /// The provisioning state of the + /// container registry at the time the operation was called. Possible + /// values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', + /// 'Failed', 'Canceled' + /// The status of the container registry at the + /// time the operation was called. /// The value that indicates whether the - /// admin user is enabled. This value is false by default. + /// admin user is enabled. /// The properties of the storage account - /// for the container registry. - public Registry(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string loginServer = default(string), System.DateTime? creationDate = default(System.DateTime?), ProvisioningState? provisioningState = default(ProvisioningState?), bool? adminUserEnabled = default(bool?), StorageAccountProperties storageAccount = default(StorageAccountProperties)) + /// for the container registry. Only applicable to Classic SKU. + public Registry(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string loginServer = default(string), System.DateTime? creationDate = default(System.DateTime?), string provisioningState = default(string), Status status = default(Status), bool? adminUserEnabled = default(bool?), StorageAccountProperties storageAccount = default(StorageAccountProperties)) : base(location, id, name, type, tags) { Sku = sku; LoginServer = loginServer; CreationDate = creationDate; ProvisioningState = provisioningState; + Status = status; AdminUserEnabled = adminUserEnabled; StorageAccount = storageAccount; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the SKU of the container registry. /// @@ -71,31 +83,39 @@ public Registry() { } /// Gets the URL that can be used to log into the container registry. /// [JsonProperty(PropertyName = "properties.loginServer")] - public string LoginServer { get; protected set; } + public string LoginServer { get; private set; } /// /// Gets the creation date of the container registry in ISO8601 format. /// [JsonProperty(PropertyName = "properties.creationDate")] - public System.DateTime? CreationDate { get; protected set; } + public System.DateTime? CreationDate { get; private set; } /// - /// Gets the status of the container registry at the time the operation - /// was called. Possible values include: 'Creating', 'Succeeded' + /// Gets the provisioning state of the container registry at the time + /// the operation was called. Possible values include: 'Creating', + /// 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public ProvisioningState? ProvisioningState { get; protected set; } + public string ProvisioningState { get; private set; } + + /// + /// Gets the status of the container registry at the time the operation + /// was called. + /// + [JsonProperty(PropertyName = "properties.status")] + public Status Status { get; private set; } /// /// Gets or sets the value that indicates whether the admin user is - /// enabled. This value is false by default. + /// enabled. /// [JsonProperty(PropertyName = "properties.adminUserEnabled")] public bool? AdminUserEnabled { get; set; } /// /// Gets or sets the properties of the storage account for the - /// container registry. + /// container registry. Only applicable to Classic SKU. /// [JsonProperty(PropertyName = "properties.storageAccount")] public StorageAccountProperties StorageAccount { get; set; } @@ -117,7 +137,10 @@ public override void Validate() { Sku.Validate(); } + if (StorageAccount != null) + { + StorageAccount.Validate(); + } } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryCreateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryCreateParameters.cs deleted file mode 100644 index e276ab32cad2..000000000000 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryCreateParameters.cs +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Microsoft.Azure.Management.ContainerRegistry.Models -{ - using Azure; - using Management; - using ContainerRegistry; - using Rest; - using Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The parameters for creating a container registry. - /// - [JsonTransformation] - public partial class RegistryCreateParameters - { - /// - /// Initializes a new instance of the RegistryCreateParameters class. - /// - public RegistryCreateParameters() { } - - /// - /// Initializes a new instance of the RegistryCreateParameters class. - /// - /// The location of the container registry. This - /// cannot be changed after the resource is created. - /// The SKU of the container registry. - /// The parameters of a storage account - /// for the container registry. If specified, the storage account must - /// be in the same physical location as the container registry. - /// The tags for the container registry. - /// The value that indicates whether the - /// admin user is enabled. This value is false by default. - public RegistryCreateParameters(string location, Sku sku, StorageAccountParameters storageAccount, IDictionary tags = default(IDictionary), bool? adminUserEnabled = default(bool?)) - { - Tags = tags; - Location = location; - Sku = sku; - AdminUserEnabled = adminUserEnabled; - StorageAccount = storageAccount; - } - - /// - /// Gets or sets the tags for the container registry. - /// - [JsonProperty(PropertyName = "tags")] - public IDictionary Tags { get; set; } - - /// - /// Gets or sets the location of the container registry. This cannot be - /// changed after the resource is created. - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; set; } - - /// - /// Gets or sets the SKU of the container registry. - /// - [JsonProperty(PropertyName = "sku")] - public Sku Sku { get; set; } - - /// - /// Gets or sets the value that indicates whether the admin user is - /// enabled. This value is false by default. - /// - [JsonProperty(PropertyName = "properties.adminUserEnabled")] - public bool? AdminUserEnabled { get; set; } - - /// - /// Gets or sets the parameters of a storage account for the container - /// registry. If specified, the storage account must be in the same - /// physical location as the container registry. - /// - [JsonProperty(PropertyName = "properties.storageAccount")] - public StorageAccountParameters StorageAccount { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Location == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Location"); - } - if (Sku == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Sku"); - } - if (StorageAccount == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageAccount"); - } - if (Sku != null) - { - Sku.Validate(); - } - if (StorageAccount != null) - { - StorageAccount.Validate(); - } - } - } -} - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryListCredentialsResult.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryListCredentialsResult.cs index 401d552b21c6..678f267c9c15 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryListCredentialsResult.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryListCredentialsResult.cs @@ -1,16 +1,15 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -25,7 +24,10 @@ public partial class RegistryListCredentialsResult /// Initializes a new instance of the RegistryListCredentialsResult /// class. /// - public RegistryListCredentialsResult() { } + public RegistryListCredentialsResult() + { + CustomInit(); + } /// /// Initializes a new instance of the RegistryListCredentialsResult @@ -39,8 +41,14 @@ public RegistryListCredentialsResult() { } { Username = username; Passwords = passwords; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the username for a container registry. /// @@ -55,4 +63,3 @@ public RegistryListCredentialsResult() { } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryNameCheckRequest.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryNameCheckRequest.cs index 17b2aaba2f98..187c6c9ca93a 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryNameCheckRequest.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryNameCheckRequest.cs @@ -1,17 +1,16 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; - using Rest; + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -23,7 +22,10 @@ public partial class RegistryNameCheckRequest /// /// Initializes a new instance of the RegistryNameCheckRequest class. /// - public RegistryNameCheckRequest() { } + public RegistryNameCheckRequest() + { + CustomInit(); + } /// /// Initializes a new instance of the RegistryNameCheckRequest class. @@ -32,6 +34,7 @@ public RegistryNameCheckRequest() { } public RegistryNameCheckRequest(string name) { Name = name; + CustomInit(); } /// /// Static constructor for RegistryNameCheckRequest class. @@ -41,6 +44,11 @@ static RegistryNameCheckRequest() Type = "Microsoft.ContainerRegistry/registries"; } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the name of the container registry. /// @@ -49,7 +57,7 @@ static RegistryNameCheckRequest() /// /// The resource type of the container registry. This field must be set - /// to "Microsoft.ContainerRegistry/registries". + /// to 'Microsoft.ContainerRegistry/registries'. /// [JsonProperty(PropertyName = "type")] public static string Type { get; private set; } @@ -84,4 +92,3 @@ public virtual void Validate() } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryNameStatus.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryNameStatus.cs index 274e4470eac4..bc4e910a00a0 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryNameStatus.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryNameStatus.cs @@ -1,16 +1,15 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; using Newtonsoft.Json; using System.Linq; @@ -23,7 +22,10 @@ public partial class RegistryNameStatus /// /// Initializes a new instance of the RegistryNameStatus class. /// - public RegistryNameStatus() { } + public RegistryNameStatus() + { + CustomInit(); + } /// /// Initializes a new instance of the RegistryNameStatus class. @@ -39,8 +41,14 @@ public RegistryNameStatus() { } NameAvailable = nameAvailable; Reason = reason; Message = message; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the value that indicates whether the name is /// available. @@ -63,4 +71,3 @@ public RegistryNameStatus() { } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryPassword.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryPassword.cs index 2ac4f6c4dbc8..4d63ba5a0335 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryPassword.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryPassword.cs @@ -1,16 +1,15 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; using Newtonsoft.Json; using System.Linq; @@ -22,7 +21,10 @@ public partial class RegistryPassword /// /// Initializes a new instance of the RegistryPassword class. /// - public RegistryPassword() { } + public RegistryPassword() + { + CustomInit(); + } /// /// Initializes a new instance of the RegistryPassword class. @@ -34,8 +36,14 @@ public RegistryPassword() { } { Name = name; Value = value; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the password name. Possible values include: /// 'password', 'password2' @@ -51,4 +59,3 @@ public RegistryPassword() { } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUpdateParameters.cs index 932bf9cd3763..97010163a9ac 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUpdateParameters.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUpdateParameters.cs @@ -1,18 +1,17 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; - using Rest; - using Rest.Serialization; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,50 +20,69 @@ namespace Microsoft.Azure.Management.ContainerRegistry.Models /// /// The parameters for updating a container registry. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class RegistryUpdateParameters { /// /// Initializes a new instance of the RegistryUpdateParameters class. /// - public RegistryUpdateParameters() { } + public RegistryUpdateParameters() + { + CustomInit(); + } /// /// Initializes a new instance of the RegistryUpdateParameters class. /// /// The tags for the container registry. + /// The SKU of the container registry. /// The value that indicates whether the - /// admin user is enabled. This value is false by default. + /// admin user is enabled. /// The parameters of a storage account - /// for the container registry. If specified, the storage account must - /// be in the same physical location as the container registry. - public RegistryUpdateParameters(IDictionary tags = default(IDictionary), bool? adminUserEnabled = default(bool?), StorageAccountParameters storageAccount = default(StorageAccountParameters)) + /// for the container registry. Only applicable to Classic SKU. If + /// specified, the storage account must be in the same physical + /// location as the container registry. + public RegistryUpdateParameters(IDictionary tags = default(IDictionary), Sku sku = default(Sku), bool? adminUserEnabled = default(bool?), StorageAccountProperties storageAccount = default(StorageAccountProperties)) { Tags = tags; + Sku = sku; AdminUserEnabled = adminUserEnabled; StorageAccount = storageAccount; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the tags for the container registry. /// [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } + /// + /// Gets or sets the SKU of the container registry. + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + /// /// Gets or sets the value that indicates whether the admin user is - /// enabled. This value is false by default. + /// enabled. /// [JsonProperty(PropertyName = "properties.adminUserEnabled")] public bool? AdminUserEnabled { get; set; } /// /// Gets or sets the parameters of a storage account for the container - /// registry. If specified, the storage account must be in the same - /// physical location as the container registry. + /// registry. Only applicable to Classic SKU. If specified, the storage + /// account must be in the same physical location as the container + /// registry. /// [JsonProperty(PropertyName = "properties.storageAccount")] - public StorageAccountParameters StorageAccount { get; set; } + public StorageAccountProperties StorageAccount { get; set; } /// /// Validate the object. @@ -74,6 +92,10 @@ public RegistryUpdateParameters() { } /// public virtual void Validate() { + if (Sku != null) + { + Sku.Validate(); + } if (StorageAccount != null) { StorageAccount.Validate(); @@ -81,4 +103,3 @@ public virtual void Validate() } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUsage.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUsage.cs new file mode 100644 index 000000000000..f7f0e1d02416 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUsage.cs @@ -0,0 +1,77 @@ +// +// 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.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The quota usage for a container registry. + /// + public partial class RegistryUsage + { + /// + /// Initializes a new instance of the RegistryUsage class. + /// + public RegistryUsage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RegistryUsage class. + /// + /// The name of the usage. + /// The limit of the usage. + /// The current value of the usage. + /// The unit of measurement. Possible values + /// include: 'Count', 'Bytes' + public RegistryUsage(string name = default(string), long? limit = default(long?), long? currentValue = default(long?), string unit = default(string)) + { + Name = name; + Limit = limit; + CurrentValue = currentValue; + Unit = unit; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the usage. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the limit of the usage. + /// + [JsonProperty(PropertyName = "limit")] + public long? Limit { get; set; } + + /// + /// Gets or sets the current value of the usage. + /// + [JsonProperty(PropertyName = "currentValue")] + public long? CurrentValue { get; set; } + + /// + /// Gets or sets the unit of measurement. Possible values include: + /// 'Count', 'Bytes' + /// + [JsonProperty(PropertyName = "unit")] + public string Unit { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUsageListResult.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUsageListResult.cs new file mode 100644 index 000000000000..2863f2ca79e7 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUsageListResult.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.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The result of a request to get container registry quota usages. + /// + public partial class RegistryUsageListResult + { + /// + /// Initializes a new instance of the RegistryUsageListResult class. + /// + public RegistryUsageListResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RegistryUsageListResult class. + /// + /// The list of container registry quota + /// usages. + public RegistryUsageListResult(IList value = default(IList)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the list of container registry quota usages. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUsageUnit.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUsageUnit.cs new file mode 100644 index 000000000000..f9ab9ce3cf06 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/RegistryUsageUnit.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.ContainerRegistry.Models +{ + + /// + /// Defines values for RegistryUsageUnit. + /// + public static class RegistryUsageUnit + { + public const string Count = "Count"; + public const string Bytes = "Bytes"; + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Replication.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Replication.cs new file mode 100644 index 000000000000..09cca0fdaf99 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Replication.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.ContainerRegistry.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An object that represents a replication for a container registry. + /// + [Rest.Serialization.JsonTransformation] + public partial class Replication : Resource + { + /// + /// Initializes a new instance of the Replication class. + /// + public Replication() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Replication class. + /// + /// The location of the resource. This cannot be + /// changed after the resource is created. + /// The resource ID. + /// The name of the resource. + /// The type of the resource. + /// The tags of the resource. + /// The provisioning state of the + /// replication at the time the operation was called. Possible values + /// include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', + /// 'Canceled' + /// The status of the replication at the time the + /// operation was called. + public Replication(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), Status status = default(Status)) + : base(location, id, name, type, tags) + { + ProvisioningState = provisioningState; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the provisioning state of the replication at the time the + /// operation was called. Possible values include: 'Creating', + /// 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets the status of the replication at the time the operation was + /// called. + /// + [JsonProperty(PropertyName = "properties.status")] + public Status Status { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ReplicationUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ReplicationUpdateParameters.cs new file mode 100644 index 000000000000..33ae86bcc87d --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/ReplicationUpdateParameters.cs @@ -0,0 +1,55 @@ +// +// 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.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters for updating a replication. + /// + public partial class ReplicationUpdateParameters + { + /// + /// Initializes a new instance of the ReplicationUpdateParameters + /// class. + /// + public ReplicationUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ReplicationUpdateParameters + /// class. + /// + /// The tags for the replication. + public ReplicationUpdateParameters(IDictionary tags = default(IDictionary)) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tags for the replication. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Request.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Request.cs new file mode 100644 index 000000000000..48479d1aabf1 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Request.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.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The request that generated the event. + /// + public partial class Request + { + /// + /// Initializes a new instance of the Request class. + /// + public Request() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Request class. + /// + /// The ID of the request that initiated the + /// event. + /// The IP or hostname and possibly port of the + /// client connection that initiated the event. This is the RemoteAddr + /// from the standard http request. + /// The externally accessible hostname of the + /// registry instance, as specified by the http host header on incoming + /// requests. + /// The request method that generated the + /// event. + /// The user agent header of the + /// request. + public Request(string id = default(string), string addr = default(string), string host = default(string), string method = default(string), string useragent = default(string)) + { + Id = id; + Addr = addr; + Host = host; + Method = method; + Useragent = useragent; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID of the request that initiated the event. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the IP or hostname and possibly port of the client + /// connection that initiated the event. This is the RemoteAddr from + /// the standard http request. + /// + [JsonProperty(PropertyName = "addr")] + public string Addr { get; set; } + + /// + /// Gets or sets the externally accessible hostname of the registry + /// instance, as specified by the http host header on incoming + /// requests. + /// + [JsonProperty(PropertyName = "host")] + public string Host { get; set; } + + /// + /// Gets or sets the request method that generated the event. + /// + [JsonProperty(PropertyName = "method")] + public string Method { get; set; } + + /// + /// Gets or sets the user agent header of the request. + /// + [JsonProperty(PropertyName = "useragent")] + public string Useragent { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Resource.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Resource.cs index b4439285a546..d391546c45b6 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Resource.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Resource.cs @@ -1,18 +1,17 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; - using Rest; - using Rest.Azure; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,10 @@ public partial class Resource : IResource /// /// Initializes a new instance of the Resource class. /// - public Resource() { } + public Resource() + { + CustomInit(); + } /// /// Initializes a new instance of the Resource class. @@ -44,25 +46,31 @@ public Resource() { } Type = type; Location = location; Tags = tags; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the resource ID. /// [JsonProperty(PropertyName = "id")] - public string Id { get; protected set; } + public string Id { get; private set; } /// /// Gets the name of the resource. /// [JsonProperty(PropertyName = "name")] - public string Name { get; protected set; } + public string Name { get; private set; } /// /// Gets the type of the resource. /// [JsonProperty(PropertyName = "type")] - public string Type { get; protected set; } + public string Type { get; private set; } /// /// Gets or sets the location of the resource. This cannot be changed @@ -92,4 +100,3 @@ public virtual void Validate() } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Sku.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Sku.cs index f5277084f27e..c4a7603d4953 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Sku.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Sku.cs @@ -1,17 +1,16 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; - using Rest; + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -23,34 +22,45 @@ public partial class Sku /// /// Initializes a new instance of the Sku class. /// - public Sku() { } + public Sku() + { + CustomInit(); + } /// /// Initializes a new instance of the Sku class. /// - /// The SKU name of the the container registry. - /// Required for registry creation. Allowed value: Basic. + /// The SKU name of the container registry. Required + /// for registry creation. Possible values include: 'Classic', 'Basic', + /// 'Standard', 'Premium' /// The SKU tier based on the SKU name. Possible - /// values include: 'Basic' + /// values include: 'Classic', 'Basic', 'Standard', 'Premium' public Sku(string name, string tier = default(string)) { Name = name; Tier = tier; + CustomInit(); } /// - /// Gets or sets the SKU name of the the container registry. Required - /// for registry creation. Allowed value: Basic. + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the SKU name of the container registry. Required for + /// registry creation. Possible values include: 'Classic', 'Basic', + /// 'Standard', 'Premium' /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets the SKU tier based on the SKU name. Possible values include: - /// 'Basic' + /// 'Classic', 'Basic', 'Standard', 'Premium' /// [JsonProperty(PropertyName = "tier")] - public string Tier { get; protected set; } + public string Tier { get; private set; } /// /// Validate the object. @@ -67,4 +77,3 @@ public virtual void Validate() } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SkuName.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SkuName.cs new file mode 100644 index 000000000000..6a14f95fe829 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SkuName.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + + /// + /// Defines values for SkuName. + /// + public static class SkuName + { + public const string Classic = "Classic"; + public const string Basic = "Basic"; + public const string Standard = "Standard"; + public const string Premium = "Premium"; + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SkuTier.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SkuTier.cs index ae2956290ea9..3dd130e8e545 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SkuTier.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/SkuTier.cs @@ -1,23 +1,24 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; /// /// Defines values for SkuTier. /// public static class SkuTier { + public const string Classic = "Classic"; public const string Basic = "Basic"; + public const string Standard = "Standard"; + public const string Premium = "Premium"; } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Source.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Source.cs new file mode 100644 index 000000000000..c7327d47b658 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Source.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.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The registry node that generated the event. Put differently, while the + /// actor initiates the event, the source generates it. + /// + public partial class Source + { + /// + /// Initializes a new instance of the Source class. + /// + public Source() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Source class. + /// + /// The IP or hostname and the port of the registry + /// node that generated the event. Generally, this will be resolved by + /// os.Hostname() along with the running port. + /// The running instance of an application. + /// Changes after each restart. + public Source(string addr = default(string), string instanceID = default(string)) + { + Addr = addr; + InstanceID = instanceID; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the IP or hostname and the port of the registry node + /// that generated the event. Generally, this will be resolved by + /// os.Hostname() along with the running port. + /// + [JsonProperty(PropertyName = "addr")] + public string Addr { get; set; } + + /// + /// Gets or sets the running instance of an application. Changes after + /// each restart. + /// + [JsonProperty(PropertyName = "instanceID")] + public string InstanceID { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Status.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Status.cs new file mode 100644 index 000000000000..41032fd63519 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Status.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The status of an Azure resource at the time the operation was called. + /// + public partial class Status + { + /// + /// Initializes a new instance of the Status class. + /// + public Status() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Status class. + /// + /// The short label for the status. + /// The detailed message for the status, + /// including alerts and error messages. + /// The timestamp when the status was changed + /// to the current value. + public Status(string displayStatus = default(string), string message = default(string), System.DateTime? timestamp = default(System.DateTime?)) + { + DisplayStatus = displayStatus; + Message = message; + Timestamp = timestamp; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the short label for the status. + /// + [JsonProperty(PropertyName = "displayStatus")] + public string DisplayStatus { get; private set; } + + /// + /// Gets the detailed message for the status, including alerts and + /// error messages. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + + /// + /// Gets the timestamp when the status was changed to the current + /// value. + /// + [JsonProperty(PropertyName = "timestamp")] + public System.DateTime? Timestamp { get; private set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/StorageAccountParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/StorageAccountParameters.cs deleted file mode 100644 index 16b63a13e41e..000000000000 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/StorageAccountParameters.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Microsoft.Azure.Management.ContainerRegistry.Models -{ - using Azure; - using Management; - using ContainerRegistry; - using Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// The parameters of a storage account for a container registry. - /// - public partial class StorageAccountParameters - { - /// - /// Initializes a new instance of the StorageAccountParameters class. - /// - public StorageAccountParameters() { } - - /// - /// Initializes a new instance of the StorageAccountParameters class. - /// - /// The name of the storage account. - /// The access key to the storage - /// account. - public StorageAccountParameters(string name, string accessKey) - { - Name = name; - AccessKey = accessKey; - } - - /// - /// Gets or sets the name of the storage account. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets the access key to the storage account. - /// - [JsonProperty(PropertyName = "accessKey")] - public string AccessKey { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (AccessKey == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AccessKey"); - } - } - } -} - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/StorageAccountProperties.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/StorageAccountProperties.cs index 2bab8ed7def9..3443b6f75794 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/StorageAccountProperties.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/StorageAccountProperties.cs @@ -1,44 +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 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. +// namespace Microsoft.Azure.Management.ContainerRegistry.Models { - using Azure; - using Management; - using ContainerRegistry; + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; /// - /// The properties of a storage account for a container registry. + /// The properties of a storage account for a container registry. Only + /// applicable to Classic SKU. /// public partial class StorageAccountProperties { /// /// Initializes a new instance of the StorageAccountProperties class. /// - public StorageAccountProperties() { } + public StorageAccountProperties() + { + CustomInit(); + } /// /// Initializes a new instance of the StorageAccountProperties class. /// - /// The name of the storage account. - public StorageAccountProperties(string name = default(string)) + /// The resource ID of the storage account. + public StorageAccountProperties(string id) { - Name = name; + Id = id; + CustomInit(); } /// - /// Gets or sets the name of the storage account. + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource ID of the storage account. /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Id == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Id"); + } + } } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Target.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Target.cs new file mode 100644 index 000000000000..a84a98d81fd6 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Target.cs @@ -0,0 +1,106 @@ +// +// 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.ContainerRegistry.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The target of the event. + /// + public partial class Target + { + /// + /// Initializes a new instance of the Target class. + /// + public Target() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Target class. + /// + /// The MIME type of the referenced + /// object. + /// The number of bytes of the content. Same as + /// Length field. + /// The digest of the content, as defined by the + /// Registry V2 HTTP API Specificiation. + /// The number of bytes of the content. Same as + /// Size field. + /// The repository name. + /// The direct URL to the content. + /// The tag name. + public Target(string mediaType = default(string), long? size = default(long?), string digest = default(string), long? length = default(long?), string repository = default(string), string url = default(string), string tag = default(string)) + { + MediaType = mediaType; + Size = size; + Digest = digest; + Length = length; + Repository = repository; + Url = url; + Tag = tag; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the MIME type of the referenced object. + /// + [JsonProperty(PropertyName = "mediaType")] + public string MediaType { get; set; } + + /// + /// Gets or sets the number of bytes of the content. Same as Length + /// field. + /// + [JsonProperty(PropertyName = "size")] + public long? Size { get; set; } + + /// + /// Gets or sets the digest of the content, as defined by the Registry + /// V2 HTTP API Specificiation. + /// + [JsonProperty(PropertyName = "digest")] + public string Digest { get; set; } + + /// + /// Gets or sets the number of bytes of the content. Same as Size + /// field. + /// + [JsonProperty(PropertyName = "length")] + public long? Length { get; set; } + + /// + /// Gets or sets the repository name. + /// + [JsonProperty(PropertyName = "repository")] + public string Repository { get; set; } + + /// + /// Gets or sets the direct URL to the content. + /// + [JsonProperty(PropertyName = "url")] + public string Url { get; set; } + + /// + /// Gets or sets the tag name. + /// + [JsonProperty(PropertyName = "tag")] + public string Tag { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Webhook.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Webhook.cs new file mode 100644 index 000000000000..4d4b1278c712 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/Webhook.cs @@ -0,0 +1,117 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerRegistry.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An object that represents a webhook for a container registry. + /// + [Rest.Serialization.JsonTransformation] + public partial class Webhook : Resource + { + /// + /// Initializes a new instance of the Webhook class. + /// + public Webhook() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Webhook class. + /// + /// The location of the resource. This cannot be + /// changed after the resource is created. + /// The list of actions that trigger the webhook + /// to post notifications. + /// The resource ID. + /// The name of the resource. + /// The type of the resource. + /// The tags of the resource. + /// The status of the webhook at the time the + /// operation was called. Possible values include: 'enabled', + /// 'disabled' + /// The scope of repositories where the event can + /// be triggered. For example, 'foo:*' means events for all tags under + /// repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' + /// is equivalent to 'foo:latest'. Empty means all events. + /// The provisioning state of the + /// webhook at the time the operation was called. Possible values + /// include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', + /// 'Canceled' + public Webhook(string location, IList actions, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string status = default(string), string scope = default(string), string provisioningState = default(string)) + : base(location, id, name, type, tags) + { + Status = status; + Scope = scope; + Actions = actions; + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the status of the webhook at the time the operation + /// was called. Possible values include: 'enabled', 'disabled' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; set; } + + /// + /// Gets or sets the scope of repositories where the event can be + /// triggered. For example, 'foo:*' means events for all tags under + /// repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' + /// is equivalent to 'foo:latest'. Empty means all events. + /// + [JsonProperty(PropertyName = "properties.scope")] + public string Scope { get; set; } + + /// + /// Gets or sets the list of actions that trigger the webhook to post + /// notifications. + /// + [JsonProperty(PropertyName = "properties.actions")] + public IList Actions { get; set; } + + /// + /// Gets the provisioning state of the webhook at the time the + /// operation was called. Possible values include: 'Creating', + /// 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Actions == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Actions"); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookAction.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookAction.cs new file mode 100644 index 000000000000..14e2b6f9353c --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookAction.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.ContainerRegistry.Models +{ + + /// + /// Defines values for WebhookAction. + /// + public static class WebhookAction + { + public const string Push = "push"; + public const string Delete = "delete"; + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookCreateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookCreateParameters.cs new file mode 100644 index 000000000000..7db108977181 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookCreateParameters.cs @@ -0,0 +1,141 @@ +// +// 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.ContainerRegistry.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters for creating a webhook. + /// + [Rest.Serialization.JsonTransformation] + public partial class WebhookCreateParameters + { + /// + /// Initializes a new instance of the WebhookCreateParameters class. + /// + public WebhookCreateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WebhookCreateParameters class. + /// + /// The location of the webhook. This cannot be + /// changed after the resource is created. + /// The service URI for the webhook to post + /// notifications. + /// The list of actions that trigger the webhook + /// to post notifications. + /// The tags for the webhook. + /// Custom headers that will be added to + /// the webhook notifications. + /// The status of the webhook at the time the + /// operation was called. Possible values include: 'enabled', + /// 'disabled' + /// The scope of repositories where the event can + /// be triggered. For example, 'foo:*' means events for all tags under + /// repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' + /// is equivalent to 'foo:latest'. Empty means all events. + public WebhookCreateParameters(string location, string serviceUri, IList actions, IDictionary tags = default(IDictionary), IDictionary customHeaders = default(IDictionary), string status = default(string), string scope = default(string)) + { + Tags = tags; + Location = location; + ServiceUri = serviceUri; + CustomHeaders = customHeaders; + Status = status; + Scope = scope; + Actions = actions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tags for the webhook. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the location of the webhook. This cannot be changed + /// after the resource is created. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the service URI for the webhook to post notifications. + /// + [JsonProperty(PropertyName = "properties.serviceUri")] + public string ServiceUri { get; set; } + + /// + /// Gets or sets custom headers that will be added to the webhook + /// notifications. + /// + [JsonProperty(PropertyName = "properties.customHeaders")] + public IDictionary CustomHeaders { get; set; } + + /// + /// Gets or sets the status of the webhook at the time the operation + /// was called. Possible values include: 'enabled', 'disabled' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; set; } + + /// + /// Gets or sets the scope of repositories where the event can be + /// triggered. For example, 'foo:*' means events for all tags under + /// repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' + /// is equivalent to 'foo:latest'. Empty means all events. + /// + [JsonProperty(PropertyName = "properties.scope")] + public string Scope { get; set; } + + /// + /// Gets or sets the list of actions that trigger the webhook to post + /// notifications. + /// + [JsonProperty(PropertyName = "properties.actions")] + public IList Actions { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + if (ServiceUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServiceUri"); + } + if (Actions == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Actions"); + } + } + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookStatus.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookStatus.cs new file mode 100644 index 000000000000..ad9201b5f7af --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookStatus.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.ContainerRegistry.Models +{ + + /// + /// Defines values for WebhookStatus. + /// + public static class WebhookStatus + { + public const string Enabled = "enabled"; + public const string Disabled = "disabled"; + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookUpdateParameters.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookUpdateParameters.cs new file mode 100644 index 000000000000..e504a5b1041e --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Models/WebhookUpdateParameters.cs @@ -0,0 +1,110 @@ +// +// 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.ContainerRegistry.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters for updating a webhook. + /// + [Rest.Serialization.JsonTransformation] + public partial class WebhookUpdateParameters + { + /// + /// Initializes a new instance of the WebhookUpdateParameters class. + /// + public WebhookUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WebhookUpdateParameters class. + /// + /// The tags for the webhook. + /// The service URI for the webhook to post + /// notifications. + /// Custom headers that will be added to + /// the webhook notifications. + /// The status of the webhook at the time the + /// operation was called. Possible values include: 'enabled', + /// 'disabled' + /// The scope of repositories where the event can + /// be triggered. For example, 'foo:*' means events for all tags under + /// repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' + /// is equivalent to 'foo:latest'. Empty means all events. + /// The list of actions that trigger the webhook + /// to post notifications. + public WebhookUpdateParameters(IDictionary tags = default(IDictionary), string serviceUri = default(string), IDictionary customHeaders = default(IDictionary), string status = default(string), string scope = default(string), IList actions = default(IList)) + { + Tags = tags; + ServiceUri = serviceUri; + CustomHeaders = customHeaders; + Status = status; + Scope = scope; + Actions = actions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tags for the webhook. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the service URI for the webhook to post notifications. + /// + [JsonProperty(PropertyName = "properties.serviceUri")] + public string ServiceUri { get; set; } + + /// + /// Gets or sets custom headers that will be added to the webhook + /// notifications. + /// + [JsonProperty(PropertyName = "properties.customHeaders")] + public IDictionary CustomHeaders { get; set; } + + /// + /// Gets or sets the status of the webhook at the time the operation + /// was called. Possible values include: 'enabled', 'disabled' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; set; } + + /// + /// Gets or sets the scope of repositories where the event can be + /// triggered. For example, 'foo:*' means events for all tags under + /// repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' + /// is equivalent to 'foo:latest'. Empty means all events. + /// + [JsonProperty(PropertyName = "properties.scope")] + public string Scope { get; set; } + + /// + /// Gets or sets the list of actions that trigger the webhook to post + /// notifications. + /// + [JsonProperty(PropertyName = "properties.actions")] + public IList Actions { get; set; } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Operations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Operations.cs index b5e1430067cd..4c73bc7aa21f 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Operations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/Operations.cs @@ -1,17 +1,17 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -103,9 +103,9 @@ internal Operations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -276,9 +276,9 @@ internal Operations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -398,4 +398,3 @@ internal Operations(ContainerRegistryManagementClient client) } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/OperationsExtensions.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/OperationsExtensions.cs index 20d1611c0215..54914d3e1b6b 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/OperationsExtensions.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/OperationsExtensions.cs @@ -1,17 +1,17 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Threading; using System.Threading.Tasks; @@ -85,4 +85,3 @@ public static IPage ListNext(this IOperations operations, s } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperations.cs index 82e665821d49..10a7e0942f0b 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperations.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperations.cs @@ -1,17 +1,17 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -53,7 +53,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// Checks whether the container registry name is available for use. The name /// must contain only alphanumeric characters, be globally unique, and between - /// 5 and 60 characters in length. + /// 5 and 50 characters in length. /// /// /// The name of the container registry. @@ -138,9 +138,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + 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) @@ -174,7 +174,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) if(registryNameCheckRequest != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(registryNameCheckRequest, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _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 @@ -355,9 +355,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -484,7 +484,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// + /// /// The parameters for creating a container registry. /// /// @@ -493,10 +493,10 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The cancellation token. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, registryCreateParameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, registry, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -510,6 +510,50 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// The name of the container registry. /// /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a container registry with the specified parameters. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The parameters for updating a container registry. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, registryUpdateParameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists all the container registries under the specified resource group. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// /// Headers that will be added to request. /// /// @@ -518,6 +562,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -527,7 +574,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -541,25 +588,186 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (registryName == null) + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) { - throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); } - if (registryName != null) + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries").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) { - if (registryName.Length > 50) + _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")) { - throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + _httpRequest.Headers.Remove("accept-language"); } - if (registryName.Length < 5) + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) { - throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); } - if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try { - throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the container registries under the specified subscription. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.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; @@ -567,17 +775,13 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("registryName", registryName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Delete", 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.ContainerRegistry/registries/{registryName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -588,9 +792,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + 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) @@ -641,14 +845,22 @@ internal RegistriesOperations(ContainerRegistryManagementClient 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)); - if (_httpResponse.Content != null) { + 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; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -668,13 +880,31 @@ internal RegistriesOperations(ContainerRegistryManagementClient 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); @@ -683,7 +913,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) } /// - /// Updates a container registry with the specified parameters. + /// Lists the login credentials for the specified container registry. /// /// /// The name of the resource group to which the container registry belongs. @@ -691,9 +921,6 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The parameters for updating a container registry. - /// /// /// Headers that will be added to request. /// @@ -715,7 +942,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -748,10 +975,6 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (registryUpdateParameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "registryUpdateParameters"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -761,13 +984,12 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); - tracingParameters.Add("registryUpdateParameters", registryUpdateParameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListCredentials", 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.ContainerRegistry/registries/{registryName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); @@ -781,9 +1003,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + 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) @@ -814,12 +1036,6 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; - if(registryUpdateParameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(registryUpdateParameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -875,7 +1091,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient 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")) @@ -888,7 +1104,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient 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) { @@ -908,11 +1124,19 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) } /// - /// Lists all the container registries under the specified resource group. + /// Regenerates one of the login credentials for the specified container + /// registry. /// /// /// The name of the resource group to which the container registry belongs. /// + /// + /// The name of the container registry. + /// + /// + /// Specifies name of the password which should be regenerated -- password or + /// password2. Possible values include: 'password', 'password2' + /// /// /// Headers that will be added to request. /// @@ -934,7 +1158,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> RegenerateCredentialWithHttpMessagesAsync(string resourceGroupName, string registryName, PasswordName name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -948,6 +1172,27 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + RegenerateCredentialParameters regenerateCredentialParameters = new RegenerateCredentialParameters(); + regenerateCredentialParameters.Name = name; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -956,14 +1201,17 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("regenerateCredentialParameters", regenerateCredentialParameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "RegenerateCredential", 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.ContainerRegistry/registries").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -974,9 +1222,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -1007,6 +1255,12 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; + if(regenerateCredentialParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(regenerateCredentialParameters, 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) { @@ -1062,7 +1316,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient 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")) @@ -1075,7 +1329,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient 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) { @@ -1095,8 +1349,14 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) } /// - /// Lists all the container registries under the specified subscription. + /// Gets the quota usages for the specified container registry. /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// /// /// Headers that will be added to request. /// @@ -1118,7 +1378,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListUsagesWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1128,6 +1388,29 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1135,13 +1418,17 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListUsages", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listUsages").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -1152,9 +1439,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -1240,7 +1527,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient 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")) @@ -1253,7 +1540,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient 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) { @@ -1273,7 +1560,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) } /// - /// Lists the login credentials for the specified container registry. + /// Creates a container registry with the specified parameters. /// /// /// The name of the resource group to which the container registry belongs. @@ -1281,6 +1568,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// + /// + /// The parameters for creating a container registry. + /// /// /// Headers that will be added to request. /// @@ -1302,7 +1592,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListCredentialsWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, Registry registry, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1335,6 +1625,14 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } + if (registry == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registry"); + } + if (registry != null) + { + registry.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1344,12 +1642,13 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); + tracingParameters.Add("registry", registry); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListCredentials", tracingParameters); + 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.ContainerRegistry/registries/{registryName}/listCredentials").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); @@ -1363,9 +1662,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + 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) @@ -1396,6 +1695,12 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; + if(registry != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(registry, 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) { @@ -1416,7 +1721,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1451,7 +1756,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient 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")) @@ -1464,7 +1769,25 @@ internal RegistriesOperations(ContainerRegistryManagementClient 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) + { + _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) { @@ -1484,8 +1807,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) } /// - /// Regenerates one of the login credentials for the specified container - /// registry. + /// Deletes a container registry. /// /// /// The name of the resource group to which the container registry belongs. @@ -1493,10 +1815,6 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// Specifies name of the password which should be regenerated -- password or - /// password2. Possible values include: 'password', 'password2' - /// /// /// Headers that will be added to request. /// @@ -1506,9 +1824,6 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -1518,7 +1833,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> RegenerateCredentialWithHttpMessagesAsync(string resourceGroupName, string registryName, PasswordName name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1551,8 +1866,6 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - RegenerateCredentialParameters regenerateCredentialParameters = new RegenerateCredentialParameters(); - regenerateCredentialParameters.Name = name; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1562,13 +1875,12 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); - tracingParameters.Add("regenerateCredentialParameters", regenerateCredentialParameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "RegenerateCredential", tracingParameters); + 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.ContainerRegistry/registries/{registryName}/regenerateCredential").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); @@ -1582,9 +1894,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + 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) @@ -1615,12 +1927,6 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; - if(regenerateCredentialParameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(regenerateCredentialParameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -1641,7 +1947,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1676,31 +1982,13 @@ internal RegistriesOperations(ContainerRegistryManagementClient 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); @@ -1709,7 +1997,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) } /// - /// Creates a container registry with the specified parameters. + /// Updates a container registry with the specified parameters. /// /// /// The name of the resource group to which the container registry belongs. @@ -1717,8 +2005,8 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// The name of the container registry. /// - /// - /// The parameters for creating a container registry. + /// + /// The parameters for updating a container registry. /// /// /// Headers that will be added to request. @@ -1741,7 +2029,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1774,13 +2062,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); } } - if (registryCreateParameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "registryCreateParameters"); - } - if (registryCreateParameters != null) + if (registryUpdateParameters == null) { - registryCreateParameters.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "registryUpdateParameters"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -1791,9 +2075,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("registryName", registryName); - tracingParameters.Add("registryCreateParameters", registryCreateParameters); + tracingParameters.Add("registryUpdateParameters", registryUpdateParameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -1811,9 +2095,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + 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) @@ -1844,10 +2128,10 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) // Serialize Request string _requestContent = null; - if(registryCreateParameters != null) + if(registryUpdateParameters != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(registryCreateParameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(registryUpdateParameters, 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 @@ -1870,7 +2154,7 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1930,6 +2214,24 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) 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); @@ -1990,9 +2292,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -2163,9 +2465,9 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -2285,4 +2587,3 @@ internal RegistriesOperations(ContainerRegistryManagementClient client) } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs index 9bbc03855c49..6b8975aff035 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/RegistriesOperationsExtensions.cs @@ -1,17 +1,17 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// 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.ContainerRegistry { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Threading; using System.Threading.Tasks; @@ -24,7 +24,7 @@ public static partial class RegistriesOperationsExtensions /// /// Checks whether the container registry name is available for use. The name /// must contain only alphanumeric characters, be globally unique, and between - /// 5 and 60 characters in length. + /// 5 and 50 characters in length. /// /// /// The operations group for this extension method. @@ -40,7 +40,7 @@ public static RegistryNameStatus CheckNameAvailability(this IRegistriesOperation /// /// Checks whether the container registry name is available for use. The name /// must contain only alphanumeric characters, be globally unique, and between - /// 5 and 60 characters in length. + /// 5 and 50 characters in length. /// /// /// The operations group for this extension method. @@ -111,12 +111,12 @@ public static Registry Get(this IRegistriesOperations operations, string resourc /// /// The name of the container registry. /// - /// + /// /// The parameters for creating a container registry. /// - public static Registry Create(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters) + public static Registry Create(this IRegistriesOperations operations, string resourceGroupName, string registryName, Registry registry) { - return operations.CreateAsync(resourceGroupName, registryName, registryCreateParameters).GetAwaiter().GetResult(); + return operations.CreateAsync(resourceGroupName, registryName, registry).GetAwaiter().GetResult(); } /// @@ -131,15 +131,15 @@ public static Registry Create(this IRegistriesOperations operations, string reso /// /// The name of the container registry. /// - /// + /// /// The parameters for creating a container registry. /// /// /// The cancellation token. /// - public static async Task CreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, Registry registry, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, registryCreateParameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, registry, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -179,7 +179,7 @@ public static void Delete(this IRegistriesOperations operations, string resource /// public static async Task DeleteAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.DeleteWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -380,6 +380,46 @@ public static RegistryListCredentialsResult RegenerateCredential(this IRegistrie } } + /// + /// Gets the quota usages for the specified container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + public static RegistryUsageListResult ListUsages(this IRegistriesOperations operations, string resourceGroupName, string registryName) + { + return operations.ListUsagesAsync(resourceGroupName, registryName).GetAwaiter().GetResult(); + } + + /// + /// Gets the quota usages for the specified container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The cancellation token. + /// + public static async Task ListUsagesAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListUsagesWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Creates a container registry with the specified parameters. /// @@ -392,12 +432,12 @@ public static RegistryListCredentialsResult RegenerateCredential(this IRegistrie /// /// The name of the container registry. /// - /// + /// /// The parameters for creating a container registry. /// - public static Registry BeginCreate(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters) + public static Registry BeginCreate(this IRegistriesOperations operations, string resourceGroupName, string registryName, Registry registry) { - return operations.BeginCreateAsync(resourceGroupName, registryName, registryCreateParameters).GetAwaiter().GetResult(); + return operations.BeginCreateAsync(resourceGroupName, registryName, registry).GetAwaiter().GetResult(); } /// @@ -412,15 +452,98 @@ public static Registry BeginCreate(this IRegistriesOperations operations, string /// /// The name of the container registry. /// - /// + /// /// The parameters for creating a container registry. /// /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryCreateParameters registryCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, Registry registry, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, registry, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + public static void BeginDelete(this IRegistriesOperations operations, string resourceGroupName, string registryName) + { + operations.BeginDeleteAsync(resourceGroupName, registryName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, registryCreateParameters, null, cancellationToken).ConfigureAwait(false)) + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a container registry with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The parameters for updating a container registry. + /// + public static Registry BeginUpdate(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters) + { + return operations.BeginUpdateAsync(resourceGroupName, registryName, registryUpdateParameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a container registry with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The parameters for updating a container registry. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryUpdateParameters registryUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, registryUpdateParameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -496,4 +619,3 @@ public static IPage ListNext(this IRegistriesOperations operations, st } } - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperations.cs new file mode 100644 index 000000000000..6eae4726208d --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperations.cs @@ -0,0 +1,1521 @@ +// +// 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.ContainerRegistry +{ + 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; + + /// + /// ReplicationsOperations operations. + /// + internal partial class ReplicationsOperations : IServiceOperations, IReplicationsOperations + { + /// + /// Initializes a new instance of the ReplicationsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ReplicationsOperations(ContainerRegistryManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ContainerRegistryManagementClient + /// + public ContainerRegistryManagementClient Client { get; private set; } + + /// + /// Gets the properties of the specified replication. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (replicationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "replicationName"); + } + if (replicationName != null) + { + if (replicationName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "replicationName", 50); + } + if (replicationName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "replicationName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(replicationName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "replicationName", "^[a-zA-Z0-9]*$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("replicationName", replicationName); + 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.ContainerRegistry/registries/{registryName}/replications/{replicationName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + _url = _url.Replace("{replicationName}", System.Uri.EscapeDataString(replicationName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The location of the resource. This cannot be changed after the resource is + /// created. + /// + /// + /// The tags of the resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, location, tags, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a replication from a container registry. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The tags for the replication. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, tags, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists all the replications for the specified container registry. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// 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 registryName, 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + 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.ContainerRegistry/registries/{registryName}/replications").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The location of the resource. This cannot be changed after the resource is + /// created. + /// + /// + /// The tags of the resource. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (replicationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "replicationName"); + } + if (replicationName != null) + { + if (replicationName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "replicationName", 50); + } + if (replicationName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "replicationName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(replicationName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "replicationName", "^[a-zA-Z0-9]*$"); + } + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + Replication replication = new Replication(); + if (location != null || tags != null) + { + replication.Location = location; + replication.Tags = tags; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("replicationName", replicationName); + tracingParameters.Add("replication", replication); + 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.ContainerRegistry/registries/{registryName}/replications/{replicationName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + _url = _url.Replace("{replicationName}", System.Uri.EscapeDataString(replicationName)); + 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(replication != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(replication, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a replication from a container registry. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string replicationName, 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (replicationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "replicationName"); + } + if (replicationName != null) + { + if (replicationName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "replicationName", 50); + } + if (replicationName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "replicationName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(replicationName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "replicationName", "^[a-zA-Z0-9]*$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("replicationName", replicationName); + 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.ContainerRegistry/registries/{registryName}/replications/{replicationName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + _url = _url.Replace("{replicationName}", System.Uri.EscapeDataString(replicationName)); + 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) + { + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The tags for the replication. + /// + /// + /// 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 registryName, string replicationName, IDictionary tags = default(IDictionary), 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (replicationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "replicationName"); + } + if (replicationName != null) + { + if (replicationName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "replicationName", 50); + } + if (replicationName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "replicationName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(replicationName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "replicationName", "^[a-zA-Z0-9]*$"); + } + } + ReplicationUpdateParameters replicationUpdateParameters = new ReplicationUpdateParameters(); + if (tags != null) + { + replicationUpdateParameters.Tags = tags; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("replicationName", replicationName); + tracingParameters.Add("replicationUpdateParameters", replicationUpdateParameters); + 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.ContainerRegistry/registries/{registryName}/replications/{replicationName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + _url = _url.Replace("{replicationName}", System.Uri.EscapeDataString(replicationName)); + 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(replicationUpdateParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(replicationUpdateParameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the replications for the specified container registry. + /// + /// + /// 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperationsExtensions.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperationsExtensions.cs new file mode 100644 index 000000000000..b781e2821415 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/ReplicationsOperationsExtensions.cs @@ -0,0 +1,465 @@ +// +// 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.ContainerRegistry +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ReplicationsOperations. + /// + public static partial class ReplicationsOperationsExtensions + { + /// + /// Gets the properties of the specified replication. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + public static Replication Get(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName) + { + return operations.GetAsync(resourceGroupName, registryName, replicationName).GetAwaiter().GetResult(); + } + + /// + /// Gets the properties of the specified replication. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The location of the resource. This cannot be changed after the resource is + /// created. + /// + /// + /// The tags of the resource. + /// + public static Replication Create(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary)) + { + return operations.CreateAsync(resourceGroupName, registryName, replicationName, location, tags).GetAwaiter().GetResult(); + } + + /// + /// Creates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The location of the resource. This cannot be changed after the resource is + /// created. + /// + /// + /// The tags of the resource. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, location, tags, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a replication from a container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + public static void Delete(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName) + { + operations.DeleteAsync(resourceGroupName, registryName, replicationName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a replication from a container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The tags for the replication. + /// + public static Replication Update(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary)) + { + return operations.UpdateAsync(resourceGroupName, registryName, replicationName, tags).GetAwaiter().GetResult(); + } + + /// + /// Updates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The tags for the replication. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, tags, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the replications for the specified container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + public static IPage List(this IReplicationsOperations operations, string resourceGroupName, string registryName) + { + return operations.ListAsync(resourceGroupName, registryName).GetAwaiter().GetResult(); + } + + /// + /// Lists all the replications for the specified container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The location of the resource. This cannot be changed after the resource is + /// created. + /// + /// + /// The tags of the resource. + /// + public static Replication BeginCreate(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary)) + { + return operations.BeginCreateAsync(resourceGroupName, registryName, replicationName, location, tags).GetAwaiter().GetResult(); + } + + /// + /// Creates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The location of the resource. This cannot be changed after the resource is + /// created. + /// + /// + /// The tags of the resource. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, string location, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, location, tags, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a replication from a container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + public static void BeginDelete(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName) + { + operations.BeginDeleteAsync(resourceGroupName, registryName, replicationName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a replication from a container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The tags for the replication. + /// + public static Replication BeginUpdate(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary)) + { + return operations.BeginUpdateAsync(resourceGroupName, registryName, replicationName, tags).GetAwaiter().GetResult(); + } + + /// + /// Updates a replication for a container registry with the specified + /// parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the replication. + /// + /// + /// The tags for the replication. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, tags, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the replications for the specified container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IReplicationsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all the replications for the specified container registry. + /// + /// + /// 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 IReplicationsOperations 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/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperations.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperations.cs new file mode 100644 index 000000000000..b7b659e0f544 --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperations.cs @@ -0,0 +1,2384 @@ +// +// 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.ContainerRegistry +{ + 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; + + /// + /// WebhooksOperations operations. + /// + internal partial class WebhooksOperations : IServiceOperations, IWebhooksOperations + { + /// + /// Initializes a new instance of the WebhooksOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal WebhooksOperations(ContainerRegistryManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ContainerRegistryManagementClient + /// + public ContainerRegistryManagementClient Client { get; private set; } + + /// + /// Gets the properties of the specified webhook. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (webhookName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "webhookName"); + } + if (webhookName != null) + { + if (webhookName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "webhookName", 50); + } + if (webhookName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "webhookName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(webhookName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "webhookName", "^[a-zA-Z0-9]*$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("webhookName", webhookName); + 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + _url = _url.Replace("{webhookName}", System.Uri.EscapeDataString(webhookName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a webhook for a container registry with the specified parameters. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for creating a webhook. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookCreateParameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a webhook from a container registry. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a webhook with the specified parameters. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for updating a webhook. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookUpdateParameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists all the webhooks for the specified container registry. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// 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 registryName, 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + 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.ContainerRegistry/registries/{registryName}/webhooks").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Triggers a ping event to be sent to the webhook. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// 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> PingWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (webhookName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "webhookName"); + } + if (webhookName != null) + { + if (webhookName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "webhookName", 50); + } + if (webhookName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "webhookName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(webhookName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "webhookName", "^[a-zA-Z0-9]*$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("webhookName", webhookName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Ping", 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/ping").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + _url = _url.Replace("{webhookName}", System.Uri.EscapeDataString(webhookName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the configuration of service URI and custom headers for the webhook. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// 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> GetCallbackConfigWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (webhookName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "webhookName"); + } + if (webhookName != null) + { + if (webhookName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "webhookName", 50); + } + if (webhookName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "webhookName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(webhookName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "webhookName", "^[a-zA-Z0-9]*$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("webhookName", webhookName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetCallbackConfig", 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/getCallbackConfig").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + _url = _url.Replace("{webhookName}", System.Uri.EscapeDataString(webhookName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists recent events for the specified webhook. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// 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>> ListEventsWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (webhookName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "webhookName"); + } + if (webhookName != null) + { + if (webhookName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "webhookName", 50); + } + if (webhookName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "webhookName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(webhookName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "webhookName", "^[a-zA-Z0-9]*$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("webhookName", webhookName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListEvents", 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/listEvents").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + _url = _url.Replace("{webhookName}", System.Uri.EscapeDataString(webhookName)); + 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 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; + } + + /// + /// Creates a webhook for a container registry with the specified parameters. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for creating a webhook. + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (webhookName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "webhookName"); + } + if (webhookName != null) + { + if (webhookName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "webhookName", 50); + } + if (webhookName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "webhookName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(webhookName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "webhookName", "^[a-zA-Z0-9]*$"); + } + } + if (webhookCreateParameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "webhookCreateParameters"); + } + if (webhookCreateParameters != null) + { + webhookCreateParameters.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("webhookName", webhookName); + tracingParameters.Add("webhookCreateParameters", webhookCreateParameters); + 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + _url = _url.Replace("{webhookName}", System.Uri.EscapeDataString(webhookName)); + 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(webhookCreateParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(webhookCreateParameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a webhook from a container registry. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string registryName, string webhookName, 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (webhookName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "webhookName"); + } + if (webhookName != null) + { + if (webhookName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "webhookName", 50); + } + if (webhookName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "webhookName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(webhookName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "webhookName", "^[a-zA-Z0-9]*$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("webhookName", webhookName); + 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + _url = _url.Replace("{webhookName}", System.Uri.EscapeDataString(webhookName)); + 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) + { + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates a webhook with the specified parameters. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for updating a webhook. + /// + /// + /// 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 registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, 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 (registryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "registryName"); + } + if (registryName != null) + { + if (registryName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "registryName", 50); + } + if (registryName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "registryName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(registryName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "registryName", "^[a-zA-Z0-9]*$"); + } + } + if (webhookName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "webhookName"); + } + if (webhookName != null) + { + if (webhookName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "webhookName", 50); + } + if (webhookName.Length < 5) + { + throw new ValidationException(ValidationRules.MinLength, "webhookName", 5); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(webhookName, "^[a-zA-Z0-9]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "webhookName", "^[a-zA-Z0-9]*$"); + } + } + if (webhookUpdateParameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "webhookUpdateParameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("registryName", registryName); + tracingParameters.Add("webhookName", webhookName); + tracingParameters.Add("webhookUpdateParameters", webhookUpdateParameters); + 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{registryName}", System.Uri.EscapeDataString(registryName)); + _url = _url.Replace("{webhookName}", System.Uri.EscapeDataString(webhookName)); + 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(webhookUpdateParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(webhookUpdateParameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the webhooks for the specified container registry. + /// + /// + /// 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists recent events for the specified webhook. + /// + /// + /// 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>> ListEventsNextWithHttpMessagesAsync(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, "ListEventsNext", 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperationsExtensions.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperationsExtensions.cs new file mode 100644 index 000000000000..8d8d9df08e8f --- /dev/null +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Generated/WebhooksOperationsExtensions.cs @@ -0,0 +1,611 @@ +// +// 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.ContainerRegistry +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for WebhooksOperations. + /// + public static partial class WebhooksOperationsExtensions + { + /// + /// Gets the properties of the specified webhook. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + public static Webhook Get(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName) + { + return operations.GetAsync(resourceGroupName, registryName, webhookName).GetAwaiter().GetResult(); + } + + /// + /// Gets the properties of the specified webhook. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a webhook for a container registry with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for creating a webhook. + /// + public static Webhook Create(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters) + { + return operations.CreateAsync(resourceGroupName, registryName, webhookName, webhookCreateParameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a webhook for a container registry with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for creating a webhook. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookCreateParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a webhook from a container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + public static void Delete(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName) + { + operations.DeleteAsync(resourceGroupName, registryName, webhookName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a webhook from a container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a webhook with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for updating a webhook. + /// + public static Webhook Update(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters) + { + return operations.UpdateAsync(resourceGroupName, registryName, webhookName, webhookUpdateParameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a webhook with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for updating a webhook. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookUpdateParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the webhooks for the specified container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + public static IPage List(this IWebhooksOperations operations, string resourceGroupName, string registryName) + { + return operations.ListAsync(resourceGroupName, registryName).GetAwaiter().GetResult(); + } + + /// + /// Lists all the webhooks for the specified container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Triggers a ping event to be sent to the webhook. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + public static EventInfo Ping(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName) + { + return operations.PingAsync(resourceGroupName, registryName, webhookName).GetAwaiter().GetResult(); + } + + /// + /// Triggers a ping event to be sent to the webhook. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The cancellation token. + /// + public static async Task PingAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PingWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the configuration of service URI and custom headers for the webhook. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + public static CallbackConfig GetCallbackConfig(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName) + { + return operations.GetCallbackConfigAsync(resourceGroupName, registryName, webhookName).GetAwaiter().GetResult(); + } + + /// + /// Gets the configuration of service URI and custom headers for the webhook. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The cancellation token. + /// + public static async Task GetCallbackConfigAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetCallbackConfigWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists recent events for the specified webhook. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + public static IPage ListEvents(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName) + { + return operations.ListEventsAsync(resourceGroupName, registryName, webhookName).GetAwaiter().GetResult(); + } + + /// + /// Lists recent events for the specified webhook. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The cancellation token. + /// + public static async Task> ListEventsAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListEventsWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a webhook for a container registry with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for creating a webhook. + /// + public static Webhook BeginCreate(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters) + { + return operations.BeginCreateAsync(resourceGroupName, registryName, webhookName, webhookCreateParameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a webhook for a container registry with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for creating a webhook. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookCreateParameters webhookCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookCreateParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a webhook from a container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + public static void BeginDelete(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName) + { + operations.BeginDeleteAsync(resourceGroupName, registryName, webhookName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a webhook from a container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a webhook with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for updating a webhook. + /// + public static Webhook BeginUpdate(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters) + { + return operations.BeginUpdateAsync(resourceGroupName, registryName, webhookName, webhookUpdateParameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a webhook with the specified parameters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to which the container registry belongs. + /// + /// + /// The name of the container registry. + /// + /// + /// The name of the webhook. + /// + /// + /// The parameters for updating a webhook. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookUpdateParameters webhookUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookUpdateParameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the webhooks for the specified container registry. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IWebhooksOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all the webhooks for the specified container registry. + /// + /// + /// 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 IWebhooksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists recent events for the specified webhook. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListEventsNext(this IWebhooksOperations operations, string nextPageLink) + { + return operations.ListEventsNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists recent events for the specified webhook. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListEventsNextAsync(this IWebhooksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListEventsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry.csproj b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry.csproj index 0c7393827483..c22dd8b329ae 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry.csproj +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Microsoft.Azure.Management.ContainerRegistry.csproj @@ -1,62 +1,21 @@  - Microsoft Azure Container Registry Management Library - 1.1.0-preview - Microsoft.Azure.Management.ContainerRegistry - Microsoft.Azure.Management.ContainerRegistry - Microsoft Azure Container Registry Management;Container Registry;REST HTTP client;azureofficial;windowsazureofficial;netcore451511 - http://go.microsoft.com/fwlink/?LinkID=288890 - https://github.com/Azure/azure-sdk-for-net - https://raw.githubusercontent.com/Microsoft/dotnet/master/LICENSE - true - - false - false - false - false - false - false - false - false - false + Provides management capabilities for Azure Container Registry. + 2.0.0 + Microsoft.Azure.Management.ContainerRegistry + Microsoft Azure Container Registry;Container Registry;REST HTTP client;windowsazureofficial;netcore451511 + + + + net452;netstandard1.4 - - - diff --git a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Properties/AssemblyInfo.cs b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Properties/AssemblyInfo.cs index a294c3d6e03d..4e98df7687e8 100644 --- a/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Properties/AssemblyInfo.cs +++ b/src/SDKs/ContainerRegistry/Management.ContainerRegistry/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure Container Registry Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Container Registry.")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.0.0")] +[assembly: AssemblyVersion("2.0.0.0")] +[assembly: AssemblyFileVersion("2.0.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] diff --git a/src/SDKs/_metadata/containerregistry_resource-manager.txt b/src/SDKs/_metadata/containerregistry_resource-manager.txt new file mode 100644 index 000000000000..3108be2d85f6 --- /dev/null +++ b/src/SDKs/_metadata/containerregistry_resource-manager.txt @@ -0,0 +1,11 @@ +2017-10-12 19:25:10 UTC + +1) azure-rest-api-specs repository information +GitHub user: Azure +Branch: current +Commit: 55813058b0105edaf813acaaf734487fcdc8e46d + +2) AutoRest information +Requested version: latest +Bootstrapper version: C:\Users\doyou\AppData\Roaming\npm `-- autorest@2.0.4166 +Latest installed version: 2.0.4168