diff --git a/Directory.Build.props b/Directory.Build.props index 8a6b2b883e4b..40488b6123fe 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -36,13 +36,13 @@ $(BuildAssetsDir)\targets $(SdkBuildToolsDir)\targets - $(LibraryToolsFolder)\buildTargets + $(BuildAssetsDir) $(SdkBuildToolsDir) - $(LibraryToolsFolder)\buildTargets + - - + + diff --git a/build.proj b/build.proj index e3c0abed258f..3de0c40fa1e6 100644 --- a/build.proj +++ b/build.proj @@ -1,4 +1,4 @@ - + @@ -11,6 +11,6 @@ - + diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/APIKeysTests.cs b/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/APIKeysTests.cs new file mode 100644 index 000000000000..59ec9cc469da --- /dev/null +++ b/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/APIKeysTests.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + + +using ApplicationInsights.Tests.Helpers; +using Microsoft.Azure.Management.ApplicationInsights.Management.Models; +using Microsoft.Rest.Azure; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System.Linq; +using System.Net; +using Xunit; + +namespace ApplicationInsights.Tests.Scenarios +{ + public class APIKeysTests : TestBase + { + private const string ResourceGroupName = "swaggertest"; + private RecordedDelegatingHandler handler; + + + public APIKeysTests() + : base() + { + handler = new RecordedDelegatingHandler { SubsequentStatusCodeToReturn = HttpStatusCode.OK }; + } + + [Fact] + [Trait("Category", "Scenario")] + public void CreateGetListUpdateDeleteAPIKeys() + { + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var insightsClient = this.GetAppInsightsManagementClient(context, handler); + + //prepare a component + this.CreateAComponent(insightsClient, ResourceGroupName, nameof(CreateGetListUpdateDeleteAPIKeys)); + + //create an API key + var apiKeyProperties = GetCreateAPIKeyProperties(ResourceGroupName, nameof(CreateGetListUpdateDeleteAPIKeys)); + var createAPIKeyResponse = insightsClient + .APIKeys + .CreateWithHttpMessagesAsync( + ResourceGroupName, + nameof(CreateGetListUpdateDeleteAPIKeys), + apiKeyProperties) + .GetAwaiter() + .GetResult(); + AreEqual(apiKeyProperties, createAPIKeyResponse.Body); + + //get all API keys + var getAllAPIKeys = insightsClient + .APIKeys + .ListWithHttpMessagesAsync( + ResourceGroupName, + nameof(CreateGetListUpdateDeleteAPIKeys)) + .GetAwaiter() + .GetResult(); + + Assert.Equal(1, getAllAPIKeys.Body.Count()); + AreEqual(apiKeyProperties, getAllAPIKeys.Body.ElementAt(0)); + + string fullkeyId = getAllAPIKeys.Body.ElementAt(0).Id; + string keyId = fullkeyId.Split('/')[10]; + + //get specif API key + var getAPIKey = insightsClient + .APIKeys + .GetWithHttpMessagesAsync( + ResourceGroupName, + nameof(CreateGetListUpdateDeleteAPIKeys), + keyId) + .GetAwaiter() + .GetResult(); + + AreEqual(apiKeyProperties, getAPIKey.Body); + + //delete the API key + var deleteAPIKeyResponse = insightsClient + .APIKeys + .DeleteWithHttpMessagesAsync( + ResourceGroupName, + nameof(CreateGetListUpdateDeleteAPIKeys), + keyId) + .GetAwaiter() + .GetResult(); + + //get API again, should get an NOT found exception + Assert.Throws(typeof(CloudException), () => + { + getAPIKey = insightsClient + .APIKeys + .GetWithHttpMessagesAsync( + ResourceGroupName, + nameof(CreateGetListUpdateDeleteAPIKeys), + keyId) + .GetAwaiter() + .GetResult(); + }); + + //clean up component + this.DeleteAComponent(insightsClient, ResourceGroupName, nameof(CreateGetListUpdateDeleteAPIKeys)); + } + } + + private static void AreEqual(APIKeyRequest request, ApplicationInsightsComponentAPIKey response) + { + Assert.Equal(request.Name, response.Name, ignoreCase: true); + Assert.True(response.LinkedReadProperties.Count >= request.LinkedReadProperties.Count); + Assert.True(response.LinkedWriteProperties.Count >= request.LinkedWriteProperties.Count); + foreach (var readaccess in request.LinkedReadProperties) + { + Assert.True(response.LinkedReadProperties.Any(r => r == readaccess)); + } + + foreach (var writeaccess in request.LinkedWriteProperties) + { + Assert.True(response.LinkedWriteProperties.Any(w => w == writeaccess)); + } + } + + private APIKeyRequest GetCreateAPIKeyProperties(string resourceGroupName, string componentName) + { + return new APIKeyRequest() + { + Name = "test", + LinkedReadProperties = new string[] { + $"/subscriptions/{this.SubscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{componentName}/api", + $"/subscriptions/{this.SubscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{componentName}/agentconfig" + }, + LinkedWriteProperties = new string[] + { + $"/subscriptions/{this.SubscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{componentName}/annotations" + } + }; + } + + private static ApplicationInsightsComponent GetCreateComponentProperties() + { + return new ApplicationInsightsComponent( + name: nameof(CreateGetListUpdateDeleteAPIKeys), + location: "South Central US", + kind: "web", + applicationType: "web", + applicationId: nameof(CreateGetListUpdateDeleteAPIKeys), + flowType: "Bluefield", + requestSource: "rest" + ); + } + + } +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/TestBase.cs b/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/TestBase.cs index b6d34b7b83fe..b96aabab8e3e 100644 --- a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/TestBase.cs +++ b/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/TestBase.cs @@ -16,11 +16,10 @@ namespace ApplicationInsights.Tests.Scenarios { public class TestBase { - protected bool IsRecording { get; set; } + protected string SubscriptionId { get; set; } public TestBase() { - this.IsRecording = false; } @@ -36,10 +35,9 @@ protected ApplicationInsightsManagementClient GetAppInsightsManagementClient(Moc if (string.Equals(testMode, "record", StringComparison.OrdinalIgnoreCase)) { - this.IsRecording = true; string subId = Environment.GetEnvironmentVariable("AZURE_TEST_SUBSCRIPTIONID"); - subId = string.IsNullOrWhiteSpace(subId) ? "b90b0dec-9b9a-4778-a84e-4ffb73bb17f6" : subId; + this.SubscriptionId = subId; TestEnvironment env = new TestEnvironment(connectionString: "SubscriptionId=" + subId); client = context.GetServiceClient( @@ -48,6 +46,7 @@ protected ApplicationInsightsManagementClient GetAppInsightsManagementClient(Moc } else { + this.SubscriptionId = "b90b0dec-9b9a-4778-a84e-4ffb73bb17f6"; client = context.GetServiceClient( handlers: handler ?? new RecordedDelegatingHandler { SubsequentStatusCodeToReturn = System.Net.HttpStatusCode.OK }); } diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.APIKeysTests/CreateGetListUpdateDeleteAPIKeys.json b/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.APIKeysTests/CreateGetListUpdateDeleteAPIKeys.json new file mode 100644 index 000000000000..afdfea541c68 --- /dev/null +++ b/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.APIKeysTests/CreateGetListUpdateDeleteAPIKeys.json @@ -0,0 +1,525 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys?api-version=2015-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjkwYjBkZWMtOWI5YS00Nzc4LWE4NGUtNGZmYjczYmIxN2Y2L3Jlc291cmNlR3JvdXBzL3N3YWdnZXJ0ZXN0L3Byb3ZpZGVycy9taWNyb3NvZnQuaW5zaWdodHMvY29tcG9uZW50cy9DcmVhdGVHZXRMaXN0VXBkYXRlRGVsZXRlQVBJS2V5cz9hcGktdmVyc2lvbj0yMDE1LTA1LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"web\",\r\n \"properties\": {\r\n \"Application_Type\": \"web\",\r\n \"Flow_Type\": \"Bluefield\",\r\n \"Request_Source\": \".NET SDK test\"\r\n },\r\n \"location\": \"South Central US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "5d0f5e66-8124-460f-8452-8098531a3809" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.7.2110.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.15063", + "Microsoft.Azure.Management.ApplicationInsights.Management.ApplicationInsightsManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys\",\r\n \"name\": \"CreateGetListUpdateDeleteAPIKeys\",\r\n \"type\": \"microsoft.insights/components\",\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"kind\": \"web\",\r\n \"etag\": \"\\\"0100083f-0000-0000-0000-59ce76050000\\\"\",\r\n \"properties\": {\r\n \"Ver\": \"v2\",\r\n \"ApplicationId\": \"CreateGetListUpdateDeleteAPIKeys\",\r\n \"AppId\": \"74705cc0-5827-4b4f-b175-bb2d0aa9e78c\",\r\n \"Application_Type\": \"web\",\r\n \"Flow_Type\": \"Bluefield\",\r\n \"Request_Source\": \".NET SDK test\",\r\n \"InstrumentationKey\": \"b4152481-3765-49a5-8fea-91820b001631\",\r\n \"Name\": \"CreateGetListUpdateDeleteAPIKeys\",\r\n \"CreationDate\": \"2017-09-29T09:34:13.4813939-07:00\",\r\n \"PackageId\": null,\r\n \"TenantId\": \"8b41dbed-3445-4071-893b-0d78932d36df\",\r\n \"HockeyAppId\": null,\r\n \"HockeyAppToken\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"SamplingPercentage\": null\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "867" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5d0f5e66-8124-460f-8452-8098531a3809" + ], + "x-content-type-options": [ + "nosniff", + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "801a305d-8094-4aee-ba97-f7c9fa33a399" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170929T163415Z:801a305d-8094-4aee-ba97-f7c9fa33a399" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 29 Sep 2017 16:34:15 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/ApiKeys?api-version=2015-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjkwYjBkZWMtOWI5YS00Nzc4LWE4NGUtNGZmYjczYmIxN2Y2L3Jlc291cmNlR3JvdXBzL3N3YWdnZXJ0ZXN0L3Byb3ZpZGVycy9taWNyb3NvZnQuaW5zaWdodHMvY29tcG9uZW50cy9DcmVhdGVHZXRMaXN0VXBkYXRlRGVsZXRlQVBJS2V5cy9BcGlLZXlzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDE=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"test\",\r\n \"linkedReadProperties\": [\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/api\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/agentconfig\"\r\n ],\r\n \"linkedWriteProperties\": [\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/annotations\"\r\n ]\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "599" + ], + "x-ms-client-request-id": [ + "e2d0ecf2-18c0-47a4-b97e-617e84b132bf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.7.2110.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.15063", + "Microsoft.Azure.Management.ApplicationInsights.Management.ApplicationInsightsManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourcegroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/apikeys/c3a0c744-356e-4463-a91a-4dddd1496a42\",\r\n \"name\": \"test\",\r\n \"linkedReadProperties\": [\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/api\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/agentconfig\"\r\n ],\r\n \"linkedWriteProperties\": [\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/annotations\"\r\n ],\r\n \"apiKey\": \"hrra68sd0xpaivnhy313doyjufjh83h7d6lzdpap\",\r\n \"createdDate\": \"Fri, 29 Sep 2017 16:34:16 GMT\",\r\n \"integrationType\": null,\r\n \"integrationProperty\": null\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "908" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e2d0ecf2-18c0-47a4-b97e-617e84b132bf" + ], + "x-content-type-options": [ + "nosniff", + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "02e714cd-aa18-406f-a5dc-c6c7a3377c0a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170929T163416Z:02e714cd-aa18-406f-a5dc-c6c7a3377c0a" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 29 Sep 2017 16:34:15 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/ApiKeys?api-version=2015-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjkwYjBkZWMtOWI5YS00Nzc4LWE4NGUtNGZmYjczYmIxN2Y2L3Jlc291cmNlR3JvdXBzL3N3YWdnZXJ0ZXN0L3Byb3ZpZGVycy9taWNyb3NvZnQuaW5zaWdodHMvY29tcG9uZW50cy9DcmVhdGVHZXRMaXN0VXBkYXRlRGVsZXRlQVBJS2V5cy9BcGlLZXlzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "43e6c25b-cf43-43ba-b2b7-43d460c5bb50" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.7.2110.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.15063", + "Microsoft.Azure.Management.ApplicationInsights.Management.ApplicationInsightsManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourcegroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/apikeys/c3a0c744-356e-4463-a91a-4dddd1496a42\",\r\n \"name\": \"test\",\r\n \"linkedReadProperties\": [\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/api\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/draft\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/extendqueries\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/search\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/aggregate\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/agentconfig\"\r\n ],\r\n \"linkedWriteProperties\": [\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/annotations\"\r\n ],\r\n \"createdDate\": \"Fri, 29 Sep 2017 16:34:16 GMT\",\r\n \"integrationType\": null,\r\n \"integrationProperty\": null\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1521" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "43e6c25b-cf43-43ba-b2b7-43d460c5bb50" + ], + "x-content-type-options": [ + "nosniff", + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "16353fe6-4415-42bf-8c82-41a18144f63b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170929T163416Z:16353fe6-4415-42bf-8c82-41a18144f63b" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 29 Sep 2017 16:34:16 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/APIKeys/c3a0c744-356e-4463-a91a-4dddd1496a42?api-version=2015-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjkwYjBkZWMtOWI5YS00Nzc4LWE4NGUtNGZmYjczYmIxN2Y2L3Jlc291cmNlR3JvdXBzL3N3YWdnZXJ0ZXN0L3Byb3ZpZGVycy9taWNyb3NvZnQuaW5zaWdodHMvY29tcG9uZW50cy9DcmVhdGVHZXRMaXN0VXBkYXRlRGVsZXRlQVBJS2V5cy9BUElLZXlzL2MzYTBjNzQ0LTM1NmUtNDQ2My1hOTFhLTRkZGRkMTQ5NmE0Mj9hcGktdmVyc2lvbj0yMDE1LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7d3ae039-e42b-4510-80c8-b9a848d62985" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.7.2110.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.15063", + "Microsoft.Azure.Management.ApplicationInsights.Management.ApplicationInsightsManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourcegroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/apikeys/c3a0c744-356e-4463-a91a-4dddd1496a42\",\r\n \"name\": \"test\",\r\n \"linkedReadProperties\": [\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/api\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/draft\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/extendqueries\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/search\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/aggregate\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/agentconfig\"\r\n ],\r\n \"linkedWriteProperties\": [\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/annotations\"\r\n ],\r\n \"createdDate\": \"Fri, 29 Sep 2017 16:34:16 GMT\",\r\n \"integrationType\": null,\r\n \"integrationProperty\": null\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1509" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7d3ae039-e42b-4510-80c8-b9a848d62985" + ], + "x-content-type-options": [ + "nosniff", + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "14f6375e-1350-4593-b750-f0bd37768089" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170929T163416Z:14f6375e-1350-4593-b750-f0bd37768089" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 29 Sep 2017 16:34:16 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/APIKeys/c3a0c744-356e-4463-a91a-4dddd1496a42?api-version=2015-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjkwYjBkZWMtOWI5YS00Nzc4LWE4NGUtNGZmYjczYmIxN2Y2L3Jlc291cmNlR3JvdXBzL3N3YWdnZXJ0ZXN0L3Byb3ZpZGVycy9taWNyb3NvZnQuaW5zaWdodHMvY29tcG9uZW50cy9DcmVhdGVHZXRMaXN0VXBkYXRlRGVsZXRlQVBJS2V5cy9BUElLZXlzL2MzYTBjNzQ0LTM1NmUtNDQ2My1hOTFhLTRkZGRkMTQ5NmE0Mj9hcGktdmVyc2lvbj0yMDE1LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "30d88cfa-38f9-4eb7-8c65-1d78c2170796" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.7.2110.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.15063", + "Microsoft.Azure.Management.ApplicationInsights.Management.ApplicationInsightsManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "30d88cfa-38f9-4eb7-8c65-1d78c2170796" + ], + "x-content-type-options": [ + "nosniff", + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "85c36705-e5d1-430d-bc5f-d194661a2bc9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170929T163417Z:85c36705-e5d1-430d-bc5f-d194661a2bc9" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 29 Sep 2017 16:34:16 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/APIKeys/c3a0c744-356e-4463-a91a-4dddd1496a42?api-version=2015-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjkwYjBkZWMtOWI5YS00Nzc4LWE4NGUtNGZmYjczYmIxN2Y2L3Jlc291cmNlR3JvdXBzL3N3YWdnZXJ0ZXN0L3Byb3ZpZGVycy9taWNyb3NvZnQuaW5zaWdodHMvY29tcG9uZW50cy9DcmVhdGVHZXRMaXN0VXBkYXRlRGVsZXRlQVBJS2V5cy9BUElLZXlzL2MzYTBjNzQ0LTM1NmUtNDQ2My1hOTFhLTRkZGRkMTQ5NmE0Mj9hcGktdmVyc2lvbj0yMDE1LTA1LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a6f7f68-328f-4705-92b4-385a606c1ce5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.7.2110.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.15063", + "Microsoft.Azure.Management.ApplicationInsights.Management.ApplicationInsightsManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourcegroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/apikeys/c3a0c744-356e-4463-a91a-4dddd1496a42\",\r\n \"name\": \"test\",\r\n \"linkedReadProperties\": [\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/api\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/draft\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/extendqueries\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/search\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/aggregate\",\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/agentconfig\"\r\n ],\r\n \"linkedWriteProperties\": [\r\n \"/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys/annotations\"\r\n ],\r\n \"createdDate\": \"Fri, 29 Sep 2017 16:34:16 GMT\",\r\n \"integrationType\": null,\r\n \"integrationProperty\": null\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1509" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6a6f7f68-328f-4705-92b4-385a606c1ce5" + ], + "x-content-type-options": [ + "nosniff", + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "718d8f47-b323-4adb-9ca6-894508c80c8b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170929T163417Z:718d8f47-b323-4adb-9ca6-894508c80c8b" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 29 Sep 2017 16:34:16 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys?api-version=2015-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjkwYjBkZWMtOWI5YS00Nzc4LWE4NGUtNGZmYjczYmIxN2Y2L3Jlc291cmNlR3JvdXBzL3N3YWdnZXJ0ZXN0L3Byb3ZpZGVycy9taWNyb3NvZnQuaW5zaWdodHMvY29tcG9uZW50cy9DcmVhdGVHZXRMaXN0VXBkYXRlRGVsZXRlQVBJS2V5cz9hcGktdmVyc2lvbj0yMDE1LTA1LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "85327b76-8566-4a8b-a757-352c1653f0ad" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.7.2110.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.15063", + "Microsoft.Azure.Management.ApplicationInsights.Management.ApplicationInsightsManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "85327b76-8566-4a8b-a757-352c1653f0ad" + ], + "x-content-type-options": [ + "nosniff", + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "5c575c5f-4b37-42d2-884e-50df44a2e31c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170929T163418Z:5c575c5f-4b37-42d2-884e-50df44a2e31c" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 29 Sep 2017 16:34:18 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b90b0dec-9b9a-4778-a84e-4ffb73bb17f6/resourceGroups/swaggertest/providers/microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys?api-version=2015-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjkwYjBkZWMtOWI5YS00Nzc4LWE4NGUtNGZmYjczYmIxN2Y2L3Jlc291cmNlR3JvdXBzL3N3YWdnZXJ0ZXN0L3Byb3ZpZGVycy9taWNyb3NvZnQuaW5zaWdodHMvY29tcG9uZW50cy9DcmVhdGVHZXRMaXN0VXBkYXRlRGVsZXRlQVBJS2V5cz9hcGktdmVyc2lvbj0yMDE1LTA1LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4b10c116-5ea9-4ef8-8d21-b0db9cacb37f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.7.2110.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.15063", + "Microsoft.Azure.Management.ApplicationInsights.Management.ApplicationInsightsManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'microsoft.insights/components/CreateGetListUpdateDeleteAPIKeys' under resource group 'swaggertest' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "177" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "7224e2b9-0e53-40be-87e6-dcd7ec7aafbb" + ], + "x-ms-correlation-request-id": [ + "7224e2b9-0e53-40be-87e6-dcd7ec7aafbb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170929T163419Z:7224e2b9-0e53-40be-87e6-dcd7ec7aafbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 29 Sep 2017 16:34:18 GMT" + ] + }, + "StatusCode": 404 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "b90b0dec-9b9a-4778-a84e-4ffb73bb17f6" + } +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/APIKeysOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/APIKeysOperations.cs new file mode 100644 index 000000000000..083df0b101d1 --- /dev/null +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/APIKeysOperations.cs @@ -0,0 +1,871 @@ +// +// 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.ApplicationInsights.Management +{ + 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; + + /// + /// APIKeysOperations operations. + /// + internal partial class APIKeysOperations : IServiceOperations, IAPIKeysOperations + { + /// + /// Initializes a new instance of the APIKeysOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal APIKeysOperations(ApplicationInsightsManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ApplicationInsightsManagementClient + /// + public ApplicationInsightsManagementClient Client { get; private set; } + + /// + /// Gets a list of API keys of an Application Insights component. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component 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>> ListWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceName", resourceName); + 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.insights/components/{resourceName}/ApiKeys").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create an API Key of an Application Insights component. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// Properties that need to be specified to create an API key of a Application + /// Insights component. + /// + /// + /// 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> CreateWithHttpMessagesAsync(string resourceGroupName, string resourceName, APIKeyRequest aPIKeyProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (aPIKeyProperties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "aPIKeyProperties"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("aPIKeyProperties", aPIKeyProperties); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Create", 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.insights/components/{resourceName}/ApiKeys").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(aPIKeyProperties != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(aPIKeyProperties, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete an API Key of an Application Insights component. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// The API Key ID. This is unique within a Application Insights component. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, string keyId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (keyId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "keyId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("keyId", keyId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/APIKeys/{keyId}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{keyId}", System.Uri.EscapeDataString(keyId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get the API Key for this key id. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// The API Key ID. This is unique within a Application Insights component. + /// + /// + /// 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 resourceName, string keyId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (keyId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "keyId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("keyId", keyId); + 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.insights/components/{resourceName}/APIKeys/{keyId}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{keyId}", System.Uri.EscapeDataString(keyId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/APIKeysOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/APIKeysOperationsExtensions.cs new file mode 100644 index 000000000000..3e07f175b878 --- /dev/null +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/APIKeysOperationsExtensions.cs @@ -0,0 +1,207 @@ +// +// 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.ApplicationInsights.Management +{ + 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 APIKeysOperations. + /// + public static partial class APIKeysOperationsExtensions + { + /// + /// Gets a list of API keys of an Application Insights component. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + public static IEnumerable List(this IAPIKeysOperations operations, string resourceGroupName, string resourceName) + { + return operations.ListAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of API keys of an Application Insights component. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create an API Key of an Application Insights component. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// Properties that need to be specified to create an API key of a Application + /// Insights component. + /// + public static ApplicationInsightsComponentAPIKey Create(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, APIKeyRequest aPIKeyProperties) + { + return operations.CreateAsync(resourceGroupName, resourceName, aPIKeyProperties).GetAwaiter().GetResult(); + } + + /// + /// Create an API Key of an Application Insights component. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// Properties that need to be specified to create an API key of a Application + /// Insights component. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, APIKeyRequest aPIKeyProperties, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, resourceName, aPIKeyProperties, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete an API Key of an Application Insights component. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// The API Key ID. This is unique within a Application Insights component. + /// + public static ApplicationInsightsComponentAPIKey Delete(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, string keyId) + { + return operations.DeleteAsync(resourceGroupName, resourceName, keyId).GetAwaiter().GetResult(); + } + + /// + /// Delete an API Key of an Application Insights component. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// The API Key ID. This is unique within a Application Insights component. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, string keyId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, resourceName, keyId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get the API Key for this key id. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// The API Key ID. This is unique within a Application Insights component. + /// + public static ApplicationInsightsComponentAPIKey Get(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, string keyId) + { + return operations.GetAsync(resourceGroupName, resourceName, keyId).GetAwaiter().GetResult(); + } + + /// + /// Get the API Key for this key id. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// The API Key ID. This is unique within a Application Insights component. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IAPIKeysOperations operations, string resourceGroupName, string resourceName, string keyId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, resourceName, keyId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ApplicationInsightsManagementClient.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ApplicationInsightsManagementClient.cs index 008963a7d507..a950fd6a57d8 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ApplicationInsightsManagementClient.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ApplicationInsightsManagementClient.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; @@ -104,6 +103,11 @@ public partial class ApplicationInsightsManagementClient : ServiceClient public virtual IComponentQuotaStatusOperations ComponentQuotaStatus { get; private set; } + /// + /// Gets the IAPIKeysOperations. + /// + public virtual IAPIKeysOperations APIKeys { get; private set; } + /// /// Initializes a new instance of the ApplicationInsightsManagementClient class. /// @@ -311,6 +315,7 @@ private void Initialize() ExportConfigurations = new ExportConfigurationsOperations(this); ComponentCurrentBillingFeatures = new ComponentCurrentBillingFeaturesOperations(this); ComponentQuotaStatus = new ComponentQuotaStatusOperations(this); + APIKeys = new APIKeysOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2015-05-01"; AcceptLanguage = "en-US"; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperations.cs index 405e698aaf1f..a1f2abbe1505 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperationsExtensions.cs index fc51a12a0125..955160463b76 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperationsExtensions.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperations.cs index 9b9358e82dff..0ee8eec96f7a 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperationsExtensions.cs index 72cff8be4db5..1ca721fde700 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperationsExtensions.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperations.cs index dd468f266e1c..95f9618ff910 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperationsExtensions.cs index 04552f76ec9b..7424d44af57e 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperationsExtensions.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperations.cs index 83fcded0d639..2c0470176aff 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperationsExtensions.cs index 7cbb4d272eb7..cc57dd04065e 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperationsExtensions.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IAPIKeysOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IAPIKeysOperations.cs new file mode 100644 index 000000000000..1e20fa3661af --- /dev/null +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IAPIKeysOperations.cs @@ -0,0 +1,139 @@ +// +// 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.ApplicationInsights.Management +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// APIKeysOperations operations. + /// + public partial interface IAPIKeysOperations + { + /// + /// Gets a list of API keys of an Application Insights component. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component 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>> ListWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create an API Key of an Application Insights component. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// Properties that need to be specified to create an API key of a + /// Application Insights component. + /// + /// + /// 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 resourceName, APIKeyRequest aPIKeyProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete an API Key of an Application Insights component. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// The API Key ID. This is unique within a Application Insights + /// component. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, string keyId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get the API Key for this key id. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Application Insights component resource. + /// + /// + /// The API Key ID. This is unique within a Application Insights + /// component. + /// + /// + /// 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 resourceName, string keyId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IApplicationInsightsManagementClient.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IApplicationInsightsManagementClient.cs index ef6dd58fa60e..0b322245755c 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IApplicationInsightsManagementClient.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IApplicationInsightsManagementClient.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -99,5 +98,10 @@ public partial interface IApplicationInsightsManagementClient : System.IDisposab /// IComponentQuotaStatusOperations ComponentQuotaStatus { get; } + /// + /// Gets the IAPIKeysOperations. + /// + IAPIKeysOperations APIKeys { get; } + } } diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentCurrentBillingFeaturesOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentCurrentBillingFeaturesOperations.cs index e4d9c05dfb35..3aef9880b7d4 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentCurrentBillingFeaturesOperations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentCurrentBillingFeaturesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentQuotaStatusOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentQuotaStatusOperations.cs index 72ab97356fb4..9e7b866b57c4 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentQuotaStatusOperations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentQuotaStatusOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentsOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentsOperations.cs index 255feac501fc..8f1ebf111b0a 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentsOperations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IExportConfigurationsOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IExportConfigurationsOperations.cs index 4858877a0c92..16a8a8d64a8b 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IExportConfigurationsOperations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IExportConfigurationsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IOperations.cs index 5356cbf957b3..fc3ceb0ca2bd 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IOperations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IWebTestsOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IWebTestsOperations.cs index 1e1d95902b9b..d182e2015a9f 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IWebTestsOperations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IWebTestsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/APIKeyRequest.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/APIKeyRequest.cs new file mode 100644 index 000000000000..f880624f2f1e --- /dev/null +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/APIKeyRequest.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.ApplicationInsights.Management.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An Application Insights component API Key createion request definition. + /// + public partial class APIKeyRequest + { + /// + /// Initializes a new instance of the APIKeyRequest class. + /// + public APIKeyRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the APIKeyRequest class. + /// + /// The name of the API Key. + /// The read access rights of this + /// API Key. + /// The write access rights of this + /// API Key. + public APIKeyRequest(string name = default(string), IList linkedReadProperties = default(IList), IList linkedWriteProperties = default(IList)) + { + Name = name; + LinkedReadProperties = linkedReadProperties; + LinkedWriteProperties = linkedWriteProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the API Key. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the read access rights of this API Key. + /// + [JsonProperty(PropertyName = "linkedReadProperties")] + public IList LinkedReadProperties { get; set; } + + /// + /// Gets or sets the write access rights of this API Key. + /// + [JsonProperty(PropertyName = "linkedWriteProperties")] + public IList LinkedWriteProperties { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponent.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponent.cs index eda135e2cc13..53b528f18881 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponent.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponent.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -31,7 +29,7 @@ public partial class ApplicationInsightsComponent : Resource /// public ApplicationInsightsComponent() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentAPIKey.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentAPIKey.cs new file mode 100644 index 000000000000..caad635fd13e --- /dev/null +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentAPIKey.cs @@ -0,0 +1,102 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ApplicationInsights.Management.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Properties that define an API key of an Application Insights Component. + /// + public partial class ApplicationInsightsComponentAPIKey + { + /// + /// Initializes a new instance of the + /// ApplicationInsightsComponentAPIKey class. + /// + public ApplicationInsightsComponentAPIKey() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ApplicationInsightsComponentAPIKey class. + /// + /// The unique ID of the API key inside an Applciation + /// Insights component. It is auto generated when the API key is + /// created. + /// The API key value. It will be only return once + /// when the API Key was created. + /// The create date of this API key. + /// The name of the API key. + /// The read access rights of this + /// API Key. + /// The write access rights of this + /// API Key. + public ApplicationInsightsComponentAPIKey(string id = default(string), string apiKey = default(string), string createdDate = default(string), string name = default(string), IList linkedReadProperties = default(IList), IList linkedWriteProperties = default(IList)) + { + Id = id; + ApiKey = apiKey; + CreatedDate = createdDate; + Name = name; + LinkedReadProperties = linkedReadProperties; + LinkedWriteProperties = linkedWriteProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the unique ID of the API key inside an Applciation Insights + /// component. It is auto generated when the API key is created. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the API key value. It will be only return once when the API + /// Key was created. + /// + [JsonProperty(PropertyName = "apiKey")] + public string ApiKey { get; private set; } + + /// + /// Gets or sets the create date of this API key. + /// + [JsonProperty(PropertyName = "createdDate")] + public string CreatedDate { get; set; } + + /// + /// Gets or sets the name of the API key. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the read access rights of this API Key. + /// + [JsonProperty(PropertyName = "linkedReadProperties")] + public IList LinkedReadProperties { get; set; } + + /// + /// Gets or sets the write access rights of this API Key. + /// + [JsonProperty(PropertyName = "linkedWriteProperties")] + public IList LinkedWriteProperties { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs index 5af7b8618792..4672eb5c9396 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -28,7 +26,7 @@ public partial class ApplicationInsightsComponentBillingFeatures /// public ApplicationInsightsComponentBillingFeatures() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentDataVolumeCap.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentDataVolumeCap.cs index c56f815c5783..4c37e314c25c 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentDataVolumeCap.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentDataVolumeCap.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using System.Linq; @@ -26,7 +24,7 @@ public partial class ApplicationInsightsComponentDataVolumeCap /// public ApplicationInsightsComponentDataVolumeCap() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportConfiguration.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportConfiguration.cs index 91fa3617933c..4d1054bf586b 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportConfiguration.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportConfiguration.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using System.Linq; @@ -26,7 +24,7 @@ public partial class ApplicationInsightsComponentExportConfiguration /// public ApplicationInsightsComponentExportConfiguration() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportRequest.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportRequest.cs index 91e030e458d8..103e9334fde2 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportRequest.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportRequest.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using System.Linq; @@ -27,7 +25,7 @@ public partial class ApplicationInsightsComponentExportRequest /// public ApplicationInsightsComponentExportRequest() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentQuotaStatus.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentQuotaStatus.cs index 3b89c118fa90..8fe7951dc36e 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentQuotaStatus.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentQuotaStatus.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using System.Linq; @@ -26,7 +24,7 @@ public partial class ApplicationInsightsComponentQuotaStatus /// public ApplicationInsightsComponentQuotaStatus() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationType.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationType.cs index 99af082e5c38..d381307a1069 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationType.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; /// /// Defines values for ApplicationType. diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponse.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponse.cs index ea36104d4e17..e63c66dacfec 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponse.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponse.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using System.Linq; @@ -26,7 +24,7 @@ public partial class ErrorResponse /// public ErrorResponse() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponseException.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponseException.cs index f4c67971228d..7ebc57e52964 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponseException.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponseException.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Microsoft.Rest; /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/FlowType.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/FlowType.cs index 684058388079..f16f6c5caf29 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/FlowType.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/FlowType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; /// /// Defines values for FlowType. diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Operation.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Operation.cs index d45a1dd45118..4a28c2e8724a 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Operation.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Operation.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using System.Linq; @@ -25,7 +23,7 @@ public partial class Operation /// public Operation() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/OperationDisplay.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/OperationDisplay.cs index fce7c84bce33..60452c458c9f 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/OperationDisplay.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/OperationDisplay.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using System.Linq; @@ -25,7 +23,7 @@ public partial class OperationDisplay /// public OperationDisplay() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Page.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Page.cs index 58816b2d0c6d..b4a80108bd88 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Page.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Page.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Page1.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Page1.cs new file mode 100644 index 000000000000..bfbe0bc45ecd --- /dev/null +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Page1.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ApplicationInsights.Management.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page1 : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/RequestSource.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/RequestSource.cs index e8c52397265e..f660747e7420 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/RequestSource.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/RequestSource.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; /// /// Defines values for RequestSource. diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Resource.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Resource.cs index d4b43525b89b..4d7f97c9a68b 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Resource.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Resource.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; @@ -29,7 +27,7 @@ public partial class Resource : IResource /// public Resource() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/TagsResource.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/TagsResource.cs index ba4c0782d6e8..748400d45cc7 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/TagsResource.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/TagsResource.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -28,7 +26,7 @@ public partial class TagsResource /// public TagsResource() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTest.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTest.cs index 49bf2af0b533..73ea8a7ba870 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTest.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTest.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -30,7 +28,7 @@ public partial class WebTest : Resource /// public WebTest() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestGeolocation.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestGeolocation.cs index c8f3681a621b..62c4065a616d 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestGeolocation.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestGeolocation.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using System.Linq; @@ -26,7 +24,7 @@ public partial class WebTestGeolocation /// public WebTestGeolocation() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestKind.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestKind.cs index ccc73acdcb56..07afe0084b30 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestKind.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestKind.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -30,8 +28,10 @@ public enum WebTestKind } internal static class WebTestKindEnumExtension { - internal static string ToSerializedValue(this WebTestKind? value) => - value == null ? null : ((WebTestKind)value).ToSerializedValue(); + internal static string ToSerializedValue(this WebTestKind? value) + { + return value == null ? null : ((WebTestKind)value).ToSerializedValue(); + } internal static string ToSerializedValue(this WebTestKind value) { diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestPropertiesConfiguration.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestPropertiesConfiguration.cs index 818748ed49c6..82adbd44dd34 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestPropertiesConfiguration.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestPropertiesConfiguration.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,13 +6,10 @@ // 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.ApplicationInsights.Management.Models { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; - using Microsoft.Azure.Management.ApplicationInsights.Management; using Newtonsoft.Json; using System.Linq; @@ -26,7 +24,7 @@ public partial class WebTestPropertiesConfiguration /// public WebTestPropertiesConfiguration() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Operations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Operations.cs index 755cc7d34c33..8cf0a6a65662 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Operations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Operations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/OperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/OperationsExtensions.cs index c52645dc5aac..75d869166e9b 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/OperationsExtensions.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/OperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperations.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperations.cs index 9718710f8712..9949a4ca9093 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperations.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperationsExtensions.cs index e851d005aa8d..871a2686edfe 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperationsExtensions.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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.ApplicationInsights.Management { - using Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.ApplicationInsights; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Microsoft.Azure.Management.ApplicationInsights.csproj b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Microsoft.Azure.Management.ApplicationInsights.csproj index caa4137e8605..c51a0542629b 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Microsoft.Azure.Management.ApplicationInsights.csproj +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Microsoft.Azure.Management.ApplicationInsights.csproj @@ -2,7 +2,7 @@ Microsoft Azure Application Insights Library - 0.1.0-preview + 0.1.1-preview Microsoft.Azure.Management.ApplicationInsights Microsoft.Azure.Management.ApplicationInsights Management.ApplicationInsights; diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Properties/AssemblyInfo.cs b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Properties/AssemblyInfo.cs index 6b332942fcf0..ffbe2af78e90 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Properties/AssemblyInfo.cs +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Properties/AssemblyInfo.cs @@ -5,11 +5,11 @@ using System.Resources; using System.Runtime.InteropServices; -[assembly: AssemblyTitle("Microsoft Azure Monitor Library")] -[assembly: AssemblyDescription("Provides Microsoft Azure Monitor operations.")] +[assembly: AssemblyTitle("Microsoft Azure Management Application Insights Library")] +[assembly: AssemblyDescription("Provides Microsoft Azure Management Application Insights operations.")] -[assembly: AssemblyVersion("0.1.0.0")] -[assembly: AssemblyFileVersion("0.1.0.0")] +[assembly: AssemblyVersion("0.1.0.1")] +[assembly: AssemblyFileVersion("0.1.0.1")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/generate.cmd b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/generate.cmd index cbbc4dc9ba74..5f5d9191cb9e 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/generate.cmd +++ b/src/SDKs/ApplicationInsights/Management.ApplicationInsights/generate.cmd @@ -4,4 +4,4 @@ :: @echo off -call %~dp0..\..\..\..\tools\generate.cmd ApplicationInsights/resource-manager %* +call %~dp0..\..\..\..\tools\generate.cmd applicationinsights/resource-manager %* diff --git a/src/SDKs/Batch/DataPlane/changelog.md b/src/SDKs/Batch/DataPlane/changelog.md index 30602e362e9d..793c52e8b603 100644 --- a/src/SDKs/Batch/DataPlane/changelog.md +++ b/src/SDKs/Batch/DataPlane/changelog.md @@ -1,10 +1,7 @@ -## Azure.Batch release notes +# Azure.Batch release notes -### Upcoming changes -These changes are planned but haven't been published yet. - -### Changes in 8.0.0 -#### Features +## Changes in 8.0.0 +### Features - Added the ability to get a discount on Windows VM pricing if you have on-premises licenses for the OS SKUs you are deploying, via `LicenseType` on `VirtualMachineConfiguration`. - Added support for attaching empty data drives to `VirtualMachineConfiguration` based pools, via the new `DataDisks` property on `VirtualMachineConfiguration`. - **[Breaking]** Custom images must now be deployed using a reference to an ARM Image, instead of pointing to .vhd files in blobs directly. @@ -13,33 +10,33 @@ These changes are planned but haven't been published yet. - **[Breaking]** Multi-instance tasks (created using `MultiInstanceSettings`) must now specify a `CoordinationCommandLine`, and `NumberOfInstances` is now optional and defaults to 1. - Added support for tasks run using Docker containers. To run a task using a Docker container you must specify a `ContainerConfiguration` on the `VirtualMachineConfiguration` for a pool, and then add `TaskContainerSettings` on the Task. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2017-09-01.6.0 of the Azure Batch REST API. -### Changes in 7.1.0 -#### Features +## Changes in 7.1.0 +### Features - Added support for detailed aggregate task counts via a new `JobOperations.GetJobTaskCounts` API. Also available on `CloudJob.GetTaskCounts`. - Added support for specifying inbound endpoints on pool compute nodes, via a new `CloudPool.PoolEndpointConfiguration` property. This allows specific ports on the node to be addressed externally. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2017-06-01.5.1 of the Azure Batch REST API. -### Changes in 7.0.1 -#### Bug fixes +## Changes in 7.0.1 +### Bug fixes - Fixed a bug where requests using HTTP DELETE (for example, `DeletePool` and `DeleteJob`) failed with an authentication error in the netstandard package. This was due to a change made to `HttpClient` in netcore. - This bug impacted the 6.1.0 release as well. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2017-05-01.5.0 of the Azure Batch REST API. -### Changes in 7.0.0 -#### License +## Changes in 7.0.0 +### License Moved source code and NuGet package from Apache 2.0 license to MIT license. This is more consistent with the other Azure SDKs as well as other open source projects from Microsoft such as .NET. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2017-05-01.5.0 of the Azure Batch REST API. -#### Features +### Features - Added support for the new low-priority node type. - **[Breaking]** `TargetDedicated` and `CurrentDedicated` on `CloudPool` and `PoolSpecification` have been renamed to `TargetDedicatedComputeNodes` and `CurrentDedicatedComputeNodes`. - **[Breaking]** `ResizeError` on `CloudPool` is now a collection called `ResizeErrors`. @@ -60,98 +57,98 @@ This version of the Batch .NET client library targets version 2017-05-01.5.0 of - Added support for provisioning application licenses be your pool, via a new `ApplicationLicenses` property on `CloudPool` and `PoolSpecification`. - Please note that this feature is in gated public preview, and you must request access to it via a support ticket. -#### Bug fixes +### Bug fixes - **[Breaking]** Removed `Unmapped` enum state from `AddTaskStatus`, `CertificateFormat`, `CertificateVisibility`, `CertStoreLocation`, `ComputeNodeFillType`, `OSType`, and `PoolLifetimeOption` as they were not ever used. -#### Documentation +### Documentation - Improved and clarified documentation. -#### Packaging +### Packaging - The package now includes a `netstandard1.4` assembly instead of the previous `netstandard1.5`. -### Changes in 6.1.0 -#### REST API version +## Changes in 6.1.0 +### REST API version This version of the Batch .NET client library targets version 2017-01-01.4.0 of the Azure Batch REST API. -#### Packaging +### Packaging - The client library is now supported on .NET Core. The package now includes a `netstandard1.5` assembly in addition to the `net45` assembly. -### Changes in 6.0.0 -#### REST API version +## Changes in 6.0.0 +### REST API version This version of the Batch .NET client library targets version 2017-01-01.4.0 of the Azure Batch REST API. -#### Features -##### Breaking changes +### Features +#### Breaking changes - Added support for running a task under a configurable user identity via the `UserIdentity` property on all task objects (`CloudTask`, `JobPreparationTask`, `StartTask`, etc). `UserIdentity` replaces `RunElevated`. `UserIdentity` supports running a task as a predefined named user (via `UserIdentity.UserName`) or an automatically created user. The `AutoUserSpecification` specifies an automatically created user account under which to run the task. To translate existing code, change `RunElevated = true` to `UserIdentity = new UserIdentity(new AutoUserSpecification(elevationLevel: ElevationLevel.Admin))` and `RunElevated = false` to `UserIdentity = new UserIdentity(new AutoUserSpecification(elevationLevel: ElevationLevel.NonAdmin))`. - Moved `FileToStage` implementation to the [Azure.Batch.FileStaging](https://www.nuget.org/packages/Azure.Batch.FileStaging) NuGet package and removed the dependency on `WindowsAzure.Storage` from the `Azure.Batch` package. This gives more flexibility on what version of `WindowsAzure.Storage` to use for users who do not use the `FileToStage` features. -##### Non-breaking changes +#### Non-breaking changes - Added support for defining pool-wide users, via the `UserAccounts` property on `CloudPool` and `PoolSpecification`. You can run a task as such a user using the `UserIdentity` constructor that takes a user name. - Added support for requesting the Batch service provide an authentication token to the task when it runs. This is done using the `AuthenticationTokenSettings` on `CloudTask` and `JobManagerTask`. This avoids the need to pass Batch account keys to the task in order to issue requests to the Batch service. - Added support for specifying an action to take on a task's dependencies if the task fails using the `DependencyAction` property of `ExitOptions`. - Added support for deploying nodes using custom VHDs, via the `OSDisk` property of `VirtualMachineConfiguration`. Note that the Batch account being used must have been created with `PoolAllocationMode = UserSubscription` to allow this. - Added support for Azure Active Directory based authentication. Use `BatchClient.Open/OpenAsync(BatchTokenCredentials)` to use this form of authentication. This is mandatory for accounts with `PoolAllocationMode = UserSubscription`. -#### Package dependencies +### Package dependencies - Removed the dependency on `WindowsAzure.Storage`. - Updated to use version 3.3.5 of `Microsoft.Rest.ClientRuntime.Azure`. -#### Documentation +### Documentation - Improved and clarified documentation. -### Changes in 5.1.2 -#### Bug fixes +## Changes in 5.1.2 +### Bug fixes - Fixed a bug where performing `JobOperations.GetNodeFile` and `PoolOperations.GetNodeFile` could throw an `OutOfMemoryException` if the file that was being examined was large. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2016-07-01.3.1 of the Azure Batch REST API. -### Changes in 5.1.1 -#### Bug fixes +## Changes in 5.1.1 +### Bug fixes - Fixed a bug where certificates with a signing algorithm other than SHA1 were incorrectly imported, causing the Batch service to reject them. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2016-07-01.3.1 of the Azure Batch REST API. -### Changes in 5.1.0 -#### Features +## Changes in 5.1.0 +### Features - Added support for a new operation `JobOperations.ReactivateTask` (or `CloudTask.Reactivate`) which allows users to reactivate a previously failed task. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2016-07-01.3.1 of the Azure Batch REST API. -### Changes in 5.0.2 -#### Bug fixes +## Changes in 5.0.2 +### Bug fixes - Fixed bug where `CommitChanges` would incorrectly include elements in the request which did not actually change. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2016-07-01.3.1 of the Azure Batch REST API. -### Changes in 5.0.1 -#### Bug fixes +## Changes in 5.0.1 +### Bug fixes - Fixed bug where `CloudJob.Commit` and `CloudJob.CommitChanges` would hit an exception when attempting to commit a job which had previously been gotten using an `ODataDetail` select clause. -#### Documentation +### Documentation - Improved comments for `ExitCode` on all task execution information objects (`TaskExecutionInformation`, `JobPreparationTaskExecutionInformation`, `JobReleaseTaskExecutionInformation`, `StartTaskInformation`, etc) - Improved documentation on `ocp-range` header format. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2016-07-01.3.1 of the Azure Batch REST API. -### Changes in 5.0.0 -#### Features +## Changes in 5.0.0 +### Features - Added `CommitChanges` method on `CloudJob`, `CloudJobSchedule` and `CloudPool`, which use the HTTP PATCH verb to perform partial updates, which can be safer if multiple clients are making concurrent changes). - Added support for joining a `CloudPool` to a virtual network on using the `NetworkConfiguration` property. - Added support for automatically terminating jobs when all tasks complete or when a task fails, via the `CloudJob.OnAllTasksComplete` and `CloudJob.OnAllTasksFailure` properties, and the `CloudTask.ExitConditions` property. - Added support for application package references on `CloudTask` and `JobManagerTask`. -#### Documentation +### Documentation - Improved documentation across various classes in the `Microsoft.Azure.Batch` namespace as well as the `Microsoft.Azure.Batch.Protocol` namespaces. - Improved documentation for `AddTask` overload which takes a collection of `CloudTask` objects to include details about possible exceptions. - Improved documentation for the `WhenAll`/`WaitAll` methods of `TaskStateMonitor`. -#### Other +### Other - Updated constructors for the following types to more clearly convey their required properties: - `JobManagerTask` - `JobPreparationTask` @@ -165,27 +162,27 @@ This version of the Batch .NET client library targets version 2016-07-01.3.1 of - `WhenAll` overloads now have a consistent return type. - Refactored existing methods to provide an overload which takes a `CancellationToken`, and an overload which takes a timeout. Removed the overload which takes both. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2016-07-01.3.1 of the Azure Batch REST API. -### Changes in 4.0.1 -#### Bug fixes +## Changes in 4.0.1 +### Bug fixes - Fixed a bug where specifying a `DetailLevel` on a list operation would fail if the Batch service returned a list spanning multiple pages. - Fixed a bug where `TaskDependencies` and `ApplicationPackageSummary` could throw a `NullReferenceException` if the Batch service returned a collection that was null. - Fixed a bug where `PoolOperations.ListNodeAgentSkus` and `PoolOperations.ListPoolUsageMetrics` were missing support for `DetailLevel`. - Updated `FileMode` comment to clarify that the default is `0770` instead of `0600`. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2016-02-01.3.0 of the Azure Batch REST API. -### Changes in 4.0.0 -#### Package dependencies +## Changes in 4.0.0 +### Package dependencies - Removed Hyak.Common dependency. - Removed Microsoft.Azure.Common dependency. - Added Microsoft.Rest.ClientRuntime.Azure dependency. - Updated Azure.Storage 4.x to 6.x. -#### Features +### Features - Azure Batch now supports Linux compute nodes (you can see which Linux distributions and versions are supported by using the new `ListNodeAgentSkus` API). - New API `ListNodeAgentSkus`. - New API `GetRemoteLoginSettings`. @@ -197,12 +194,12 @@ This version of the Batch .NET client library targets version 2016-02-01.3.0 of - Changed various properties which had a type of `IEnumerable` to `IReadOnlyList` because they are explicitly read-only. - Changed `CloudJob.CommonEnvironmentSettings` type from `IEnumerable` to `IList`. -#### Bug fixes +### Bug fixes - Fixed bug where `Enable` and `Disable` scheduling APIs weren't correctly inheriting the behaviors of their parent objects. - Fixed bug in signing which breaks some requests issued with custom conditional headers such as If-Match. - Fixed a few possible memory leaks. -#### Breaking and default behavior changes +### Breaking and default behavior changes - Changed the default exception thrown from all synchronous methods. Previously, all synchronous methods threw an `AggregateException`, which usually contained a single inner exception. Now that inner exception will be thrown directly and it will not be wrapped in an outer `AggregateException`. - Changed `AddTask(IEnumerable)` to always wrap exceptions from its many parallel REST requests in a `ParallelOperationsException`. Note that in some cases (such as when performing validation before issuing requests) this method can throw exceptions other than a `ParallelOperationsException`. - The `CloudPool` class has changed to support the creation and management of Linux pools based on the virtual machine compute infrastructure as well as Windows pools based on the Azure cloud services platform. @@ -234,5 +231,5 @@ This version of the Batch .NET client library targets version 2016-02-01.3.0 of - Removed `ResourceStatistics.DiskWriteIOps` setter. - Removed `TaskInformation.JobScheduleId` property. -#### REST API version +### REST API version This version of the Batch .NET client library targets version 2016-02-01.3.0 of the Azure Batch REST API. \ No newline at end of file diff --git a/src/SDKs/Batch/DataPlane/upcomingchanges.md b/src/SDKs/Batch/DataPlane/upcomingchanges.md new file mode 100644 index 000000000000..42c5a4560246 --- /dev/null +++ b/src/SDKs/Batch/DataPlane/upcomingchanges.md @@ -0,0 +1,2 @@ +## Upcoming changes +These changes are planned but haven't been published yet. diff --git a/src/SDKs/_metadata/ApplicationInsights_resource-manager.txt b/src/SDKs/_metadata/ApplicationInsights_resource-manager.txt new file mode 100644 index 000000000000..19d4e63c74d9 --- /dev/null +++ b/src/SDKs/_metadata/ApplicationInsights_resource-manager.txt @@ -0,0 +1,16 @@ +2017-10-09 22:52:13 UTC + +1) azure-rest-api-specs repository information +GitHub user: Azure +Branch: current +Commit: 7aa3a5247895ba34d6cfec73e036bb66dc907d20 + +2) AutoRest information +Requested version: latest +You cannot call a method on a null-valued expression. +At D:\Repo\Github\azure-sdk-for-net\tools\generateMetadata.ps1:19 char:1 ++ Write-Host "Latest version: " (autorest --list-installed | Where {$ ... ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + CategoryInfo : InvalidOperation: (:) [], RuntimeException + + FullyQualifiedErrorId : InvokeMethodOnNull + diff --git a/tools/autogenForSwaggers/sdkinfo.lock.json b/tools/autogenForSwaggers/sdkinfo.lock.json deleted file mode 100644 index 2b0ae05af758..000000000000 --- a/tools/autogenForSwaggers/sdkinfo.lock.json +++ /dev/null @@ -1,839 +0,0 @@ -[ - { - "name": "arm-analysisservices", - "sources": [ - "2016-05-16/swagger/analysisservices.json" - ], - "dotNet": { - "name": "Analysis", - "folder": "AnalysisServices", - "test": "AnalysisServices.Tests/AnalysisServices.Tests.csproj", - "ft": 0, - "output": "Management.Analysis\\Generated", - "namespace": "Microsoft.Azure.Management.Analysis", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-authorization", - "sources": [ - "2015-07-01/swagger/authorization.json" - ], - "isArm": true, - "isComposite": null, - "dotNet": { - "ft": 0, - "name": "Authorization", - "folder": "Authorization", - "output": "Management.Authorization\\Generated", - "test": "Authorization.Tests\\Authorization.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Authorization", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - } - }, - { - "name": "arm-automation", - "sources": [ - "compositeAutomation.json" - ], - "isArm": true, - "isComposite": "compositeAutomation.json", - "dotNet": { - "ft": 0, - "name": "Automation", - "folder": "Automation", - "output": "Management.Automation\\Generated", - "test": "Automation.Tests\\Automation.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Automation", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - } - }, - { - "name": "batch", - "sources": [ - "2017-05-01.5.0/swagger/BatchService.json" - ], - "dotNet": { - "output": "dataPlane/Azure.batch/Generated", - "ft": 0, - "name": "Batch", - "folder": "Batch", - "test": "Batch.Tests\\Batch.Tests.csproj", - "namespace": "Microsoft.Azure.Batch", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": false, - "isComposite": null - }, - { - "name": "arm-batch", - "sources": [ - "2017-05-01/swagger/BatchManagement.json" - ], - "dotNet": { - "folder": "Batch/Management", - "test": "Management.Batch.Tests/Management.Batch.Tests.csproj", - "ft": 1, - "commit": "19f63015ea5a8a0fc64b9d7e2cdfeac447d93eaf", - "autorest": "AutoRest.1.0.0-Nightly20170129", - "name": "Batch", - "output": "Management.Batch\\Generated", - "namespace": "Microsoft.Azure.Management.Batch" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-billing", - "sources": [ - "2017-04-24-preview/swagger/billing.json" - ], - "isArm": true, - "isComposite": null, - "dotNet": { - "ft": 0, - "name": "Billing", - "folder": "Billing", - "output": "Management.Billing\\Generated", - "test": "Billing.Tests\\Billing.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Billing", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - } - }, - { - "name": "arm-cdn", - "sources": [ - "2016-10-02/swagger/cdn.json" - ], - "dotNet": { - "ft": 2, - "autorest": "AutoRest.1.0.0-Nightly20170212", - "name": "Cdn", - "folder": "Cdn", - "output": "Management.Cdn\\Generated", - "test": "Cdn.Tests\\Cdn.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Cdn", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-cognitiveservices", - "sources": [ - "2017-04-18/swagger/cognitiveservices.json" - ], - "dotNet": { - "name": "CognitiveServices", - "ft": 0, - "folder": "CognitiveServices", - "output": "Management.CognitiveServices\\Generated", - "test": "CognitiveServices.Tests\\CognitiveServices.Tests.csproj", - "namespace": "Microsoft.Azure.Management.CognitiveServices", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-compute", - "sources": [ - "compositeComputeClient.json" - ], - "dotNet": { - "ft": 1, - "autorest": "AutoRest.1.0.0-Nightly20170126", - "name": "Compute", - "folder": "Compute", - "output": "Management.Compute\\Generated", - "test": "Compute.Tests\\Compute.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Compute", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": "compositeComputeClient.json" - }, - { - "name": "arm-consumption", - "sources": [ - "2017-04-24-preview/swagger/consumption.json" - ], - "isArm": true, - "isComposite": null, - "dotNet": { - "ft": 0, - "name": "Consumption", - "folder": "Consumption", - "output": "Management.Consumption\\Generated", - "test": "Consumption.Tests\\Consumption.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Consumption", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - } - }, - { - "name": "arm-containerregistry", - "sources": [ - "2017-03-01/swagger/containerregistry.json" - ], - "dotNet": { - "name": "ContainerRegistry", - "ft": 2, - "commit": "3b0b26b4b6e3bc5e7cf3610b0866d310abb5b814", - "autorest": "AutoRest.1.0.0-Nightly20170212", - "folder": "ContainerRegistry", - "output": "Management.ContainerRegistry\\Generated", - "test": "ContainerRegistry.Tests\\ContainerRegistry.Tests.csproj", - "namespace": "Microsoft.Azure.Management.ContainerRegistry" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-customer-insights", - "sources": [ - "2017-01-01/swagger/customer-insights.json" - ], - "dotNet": { - "name": "CustomerInsights", - "ft": 0, - "folder": "CustomerInsights", - "output": "Management.CustomerInsights\\Generated", - "test": "CustomerInsights.Tests\\CustomerInsights.Tests.csproj", - "namespace": "Microsoft.Azure.Management.CustomerInsights", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-datalake-analytics", - "sources": [ - "account/2016-11-01/swagger/account.json", - "job/2016-11-01/swagger/job.json", - "catalog/2016-11-01/swagger/catalog.json" - ], - "isLegacy": true, - "dotNet": { - "name": "DataLake.Analytics", - "test": "DataLakeAnalytics.Tests/DataLakeAnalytics.Tests.csproj", - "ft": 0, - "folder": "DataLake.Analytics", - "output": "Management.DataLake.Analytics\\Generated", - "namespace": "Microsoft.Azure.Management.DataLake.Analytics", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-datalake-store", - "sources": [ - "account/2016-11-01/swagger/account.json", - "filesystem/2016-11-01/swagger/filesystem.json" - ], - "isLegacy": true, - "dotNet": { - "name": "DataLake.Store", - "test": "DataLakeStore.Tests/DataLakeStore.Tests.csproj", - "ft": 0, - "folder": "DataLake.Store", - "output": "Management.DataLake.Store\\Generated", - "namespace": "Microsoft.Azure.Management.DataLake.Store", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-devtestlabs", - "sources": [ - "2016-05-15/swagger/DTL.json" - ], - "dotNet": { - "name": "DevTestLabs", - "ft": 0, - "folder": "DevTestLabs", - "output": "Management.DevTestLabs\\Generated", - "test": "DevTestLabs.Tests\\DevTestLabs.Tests.csproj", - "namespace": "Microsoft.Azure.Management.DevTestLabs", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-dns", - "sources": [ - "2016-04-01/swagger/dns.json" - ], - "dotNet": { - "ft": 2, - "name": "Dns", - "folder": "Dns", - "output": "Management.Dns\\Generated", - "test": "Dns.Tests\\Dns.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Dns", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-eventhub", - "sources": [ - "2017-04-01/swagger/EventHub.json" - ], - "dotNet": { - "name": "EventHub", - "ft": 0, - "folder": "EventHub", - "output": "Management.EventHub\\Generated", - "test": "EventHub.Tests\\EventHub.Tests.csproj", - "namespace": "Microsoft.Azure.Management.EventHub", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-graphrbac", - "sources": [ - "compositeGraphRbacManagementClient.json" - ], - "dotNet": { - "name": "Graph.RBAC", - "namespace": "Microsoft.Azure.Graph.RBAC", - "output": "Graph.RBAC/Generated", - "ft": 0, - "folder": "Graph.RBAC", - "test": "Graph.RBAC.Tests\\Graph.RBAC.Tests.csproj", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": "compositeGraphRbacManagementClient.json" - }, - { - "name": "insights", - "sources": [ - "compositeInsightsClient.json" - ], - "dotNet": { - "output": "Microsoft.Azure.Insights/Generated/Insights", - "ft": 0, - "name": "Insights", - "folder": "Insights", - "test": "Insights.Tests\\Insights.Tests.csproj", - "namespace": "Microsoft.Azure.Insights", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": false, - "isComposite": "compositeInsightsClient.json" - }, - { - "name": "arm-insights", - "sources": [ - "compositeInsightsManagementClient.json" - ], - "dotNet": { - "output": "Microsoft.Azure.Insights/Generated/Management/Insights", - "ft": 1, - "name": "Insights", - "folder": "Insights", - "test": "Insights.Tests\\Insights.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Insights", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": "compositeInsightsManagementClient.json" - }, - { - "name": "arm-iothub", - "sources": [ - "2017-01-19/swagger/iothub.json" - ], - "dotNet": { - "name": "IotHub", - "ft": 0, - "folder": "IotHub", - "output": "Management.IotHub\\Generated", - "test": "IotHub.Tests\\IotHub.Tests.csproj", - "namespace": "Microsoft.Azure.Management.IotHub", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "keyvault", - "sources": [ - "2016-10-01/swagger/keyvault.json" - ], - "isArm": false, - "isComposite": null, - "dotNet": { - "ft": 0, - "name": "Keyvault", - "folder": "Keyvault", - "output": "dataPlane\\Microsoft.Azure.Keyvault\\Generated", - "test": "Keyvault.Tests\\Keyvault.Tests.csproj", - "namespace": "Microsoft.Azure.Keyvault", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - } - }, - { - "name": "arm-keyvault", - "sources": [ - "2016-10-01/swagger/keyvault.json" - ], - "dotNet": { - "name": "KeyVault", - "folder": "KeyVault/Management", - "test": "KeyVaultManagement.Tests/KeyVaultManagement.Tests.csproj", - "ft": 0, - "output": "Management.KeyVault\\Generated", - "namespace": "Microsoft.Azure.Management.KeyVault", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-logic", - "sources": [ - "2016-06-01/swagger/logic.json" - ], - "isArm": true, - "isComposite": null, - "dotNet": { - "ft": 0, - "name": "Logic", - "folder": "Logic", - "output": "Management.Logic\\Generated", - "test": "Logic.Tests\\Logic.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Logic", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - } - }, - { - "name": "arm-machinelearning/2017-01-01", - "sources": [ - "swagger/webservices.json" - ], - "dotNet": { - "name": "MachineLearning", - "namespace": "Microsoft.Azure.Management.MachineLearning.WebServices", - "output": "Management.MachineLearning/Generated/WebServices", - "ft": 0, - "folder": "MachineLearning", - "test": "MachineLearning.Tests\\MachineLearning.Tests.csproj", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-machinelearning/2016-05-01-preview", - "sources": [ - "swagger/commitmentPlans.json" - ], - "dotNet": { - "name": "MachineLearning", - "namespace": "Microsoft.Azure.Management.MachineLearning.CommitmentPlans", - "output": "Management.MachineLearning/Generated/CommitmentPlans", - "ft": 0, - "folder": "MachineLearning", - "test": "MachineLearning.Tests\\MachineLearning.Tests.csproj", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-mediaservices", - "sources": [ - "2015-10-01/swagger/media.json" - ], - "dotNet": { - "name": "Media", - "commit": "3586e2989d502434c4f607dd38d40e46aabede5c", - "ft": 0, - "folder": "Media", - "output": "Management.Media\\Generated", - "test": "Media.Tests\\Media.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Media" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "monitor", - "sources": [ - "compositeMonitorClient.json" - ], - "dotNet": { - "namespace": "Microsoft.Azure.Management.Monitor", - "output": "Management.Monitor/Generated/Monitor", - "ft": 0, - "name": "Monitor", - "folder": "Monitor", - "test": "Monitor.Tests\\Monitor.Tests.csproj", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": false, - "isComposite": "compositeMonitorClient.json" - }, - { - "name": "arm-monitor", - "sources": [ - "compositeMonitorManagementClient.json" - ], - "dotNet": { - "namespace": "Microsoft.Azure.Management.Monitor.Management", - "output": "Management.Monitor/Generated/Management/Monitor", - "ft": 0, - "name": "Monitor", - "folder": "Monitor", - "test": "Monitor.Tests\\Monitor.Tests.csproj", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": "compositeMonitorManagementClient.json" - }, - { - "name": "arm-network", - "sources": [ - "compositeNetworkClient.json" - ], - "isArm": true, - "isComposite": "compositeNetworkClient.json", - "dotNet": { - "ft": 0, - "name": "Network", - "folder": "Network", - "output": "Management.Network\\Generated", - "test": "Network.Tests\\Network.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Network", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - } - }, - { - "name": "arm-notificationhubs", - "sources": [ - "2017-04-01/swagger/notificationhubs.json" - ], - "dotNet": { - "name": "NotificationHubs", - "ft": 0, - "folder": "NotificationHubs", - "output": "Management.NotificationHubs\\Generated", - "test": "NotificationHubs.Tests\\NotificationHubs.Tests.csproj", - "namespace": "Microsoft.Azure.Management.NotificationHubs", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-operationalinsights", - "sources": [ - "compositeOperationalInsights.json" - ], - "dotNet": { - "name": "OperationalInsights", - "test": "OperationalInsights.Test/OperationalInsights.Test.csproj", - "client": "OperationalInsightsManagementClient", - "ft": 1, - "autorest": "AutoRest.1.0.0-Nightly20170126", - "folder": "OperationalInsights", - "output": "Management.OperationalInsights\\Generated", - "namespace": "Microsoft.Azure.Management.OperationalInsights", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": "compositeOperationalInsights.json" - }, - { - "name": "arm-powerbiembedded", - "sources": [ - "2016-01-29/swagger/powerbiembedded.json" - ], - "dotNet": { - "name": "PowerBIEmbedded", - "ft": 0, - "folder": "PowerBIEmbedded", - "output": "Management.PowerBIEmbedded\\Generated", - "test": "PowerBIEmbedded.Tests\\PowerBIEmbedded.Tests.csproj", - "namespace": "Microsoft.Azure.Management.PowerBIEmbedded", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-recoveryservices", - "sources": [ - "compositeRecoveryServicesClient.json" - ], - "dotNet": { - "name": "RecoveryServices", - "ft": 0, - "folder": "RecoveryServices", - "output": "Management.RecoveryServices\\Generated", - "test": "RecoveryServices.Tests\\RecoveryServices.Tests.csproj", - "namespace": "Microsoft.Azure.Management.RecoveryServices", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": "compositeRecoveryServicesClient.json" - }, - { - "name": "arm-recoveryservicesbackup", - "sources": [ - "2016-08-10/swagger/operations.json", - "2016-12-01/swagger/backupManagement.json" - ], - "dotNet": { - "ft": 1, - "name": "RecoveryServices.Backup", - "client": "RecoveryServicesBackupClient", - "folder": "RecoveryServices.Backup", - "output": "Management.RecoveryServices.Backup\\Generated", - "test": "RecoveryServices.Backup.Tests\\RecoveryServices.Backup.Tests.csproj", - "namespace": "Microsoft.Azure.Management.RecoveryServices.Backup", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-redis", - "sources": [ - "2016-04-01/swagger/redis.json" - ], - "dotNet": { - "name": "Redis", - "folder": "RedisCache", - "test": "RedisCache.Tests/RedisCache.Tests.csproj", - "autorest": "AutoRest.0.17.3", - "ft": 0, - "output": "Management.Redis\\Generated", - "namespace": "Microsoft.Azure.Management.Redis", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-relay", - "sources": [ - "2016-07-01/swagger/relay.json" - ], - "isArm": true, - "isComposite": null, - "dotNet": { - "ft": 0, - "name": "Relay", - "folder": "Relay", - "output": "Management.Relay\\Generated", - "test": "Relay.Tests\\Relay.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Relay", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - } - }, - { - "name": "arm-resources", - "sources": [ - "resources/2017-05-10/swagger/resources.json", - "locks/2016-09-01/swagger/locks.json", - "features/2015-12-01/swagger/features.json", - "subscriptions/2016-06-01/swagger/subscriptions.json", - "policy/2016-04-01/swagger/policy.json", - "links/2016-09-01/swagger/links.json" - ], - "isLegacy": true, - "dotNet": { - "name": "ResourceManager", - "folder": "Resource", - "test": "Resource.Tests/Resource.Tests.csproj", - "ft": 0, - "output": "Management.ResourceManager\\Generated", - "namespace": "Microsoft.Azure.Management.ResourceManager", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-scheduler", - "sources": [ - "2016-03-01/swagger/scheduler.json" - ], - "dotNet": { - "test": "Scheduler.Test/Scheduler.Test.csproj", - "ft": 0, - "name": "Scheduler", - "folder": "Scheduler", - "output": "Management.Scheduler\\Generated", - "namespace": "Microsoft.Azure.Management.Scheduler", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "search", - "sources": [ - "2016-09-01/swagger/searchindex.json", - "2016-09-01/swagger/searchservice.json" - ], - "dotNet": { - "name": "Search", - "folder": "Search/DataPlane", - "output": "Microsoft.Azure.Search/GeneratedSearchIndex", - "ft": 0, - "test": "Search.Tests\\Search.Tests.csproj", - "namespace": "Microsoft.Azure.Search", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": false, - "isComposite": null - }, - { - "name": "arm-search", - "sources": [ - "2015-08-19/swagger/search.json" - ], - "dotNet": { - "name": "Search", - "folder": "Search/Management", - "test": "Search.Management.Tests/Search.Management.Tests.csproj", - "ft": 0, - "output": "Management.Search\\Generated", - "namespace": "Microsoft.Azure.Management.Search", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-servermanagement", - "sources": [ - "2016-07-01-preview/swagger/servermanagement.json" - ], - "dotNet": { - "name": "ServerManagement", - "ft": 0, - "folder": "ServerManagement", - "output": "Management.ServerManagement\\Generated", - "test": "ServerManagement.Tests\\ServerManagement.Tests.csproj", - "namespace": "Microsoft.Azure.Management.ServerManagement", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-servicebus", - "sources": [ - "2017-04-01/swagger/servicebus.json" - ], - "dotNet": { - "name": "ServiceBus", - "ft": 0, - "folder": "ServiceBus", - "output": "Management.ServiceBus\\Generated", - "test": "ServiceBus.Tests\\ServiceBus.Tests.csproj", - "namespace": "Microsoft.Azure.Management.ServiceBus", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-servicefabric", - "sources": [ - "2016-09-01/swagger/servicefabric.json" - ], - "dotNet": { - "name": "ServiceFabric", - "test": "ServiceFabric.Test/ServiceFabric.Test.csproj", - "ft": 0, - "folder": "ServiceFabric", - "output": "Management.ServiceFabric\\Generated", - "namespace": "Microsoft.Azure.Management.ServiceFabric", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-sql", - "sources": [ - "compositeSql.json" - ], - "dotNet": { - "folder": "SqlManagement", - "ft": 0, - "name": "Sql", - "output": "Management.Sql\\Generated", - "test": "Sql.Tests\\Sql.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Sql", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": "compositeSql.json" - }, - { - "name": "arm-storage", - "sources": [ - "2017-06-01/swagger/storage.json" - ], - "dotNet": { - "ft": 2, - "name": "Storage", - "folder": "Storage", - "output": "Management.Storage\\Generated", - "test": "Storage.Tests\\Storage.Tests.csproj", - "namespace": "Microsoft.Azure.Management.Storage", - "commit": "dc561017f36fd5176929aa8c864f74004e88ed36" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-trafficmanager", - "sources": [ - "2017-05-01/swagger/trafficmanager.json" - ], - "dotNet": { - "name": "TrafficManager", - "ft": 1, - "commit": "9e35e9c1e14dc46fcb1837ad108bba185ccaf9a9", - "folder": "TrafficManager", - "output": "Management.TrafficManager\\Generated", - "test": "TrafficManager.Tests\\TrafficManager.Tests.csproj", - "namespace": "Microsoft.Azure.Management.TrafficManager" - }, - "isArm": true, - "isComposite": null - }, - { - "name": "arm-web", - "sources": [ - "compositeWebAppClient.json" - ], - "dotNet": { - "name": "WebSites", - "commit": "e416af734666d658a04530df605f60480c01cc10", - "ft": 0, - "folder": "WebSites", - "output": "Management.WebSites\\Generated", - "test": "WebSites.Tests\\WebSites.Tests.csproj", - "namespace": "Microsoft.Azure.Management.WebSites" - }, - "isArm": true, - "isComposite": "compositeWebAppClient.json" - } -] diff --git a/tools/bootstrapTools/bootstrap.targets b/tools/bootstrapTools/bootstrap.targets index aee724092a2e..76e7b518a222 100644 --- a/tools/bootstrapTools/bootstrap.targets +++ b/tools/bootstrapTools/bootstrap.targets @@ -1,8 +1,12 @@ - + - + - + + + + + diff --git a/tools/bootstrapTools/taskBinaries/Microsoft.Azure.Build.BootstrapTasks.dll b/tools/bootstrapTools/taskBinaries/Microsoft.Azure.Build.BootstrapTasks.dll new file mode 100644 index 000000000000..65aaa417bffe Binary files /dev/null and b/tools/bootstrapTools/taskBinaries/Microsoft.Azure.Build.BootstrapTasks.dll differ diff --git a/tools/bootstrapTools/taskBinaries/Microsoft.Build.Framework.dll b/tools/bootstrapTools/taskBinaries/Microsoft.Build.Framework.dll new file mode 100644 index 000000000000..709e75a9faa7 Binary files /dev/null and b/tools/bootstrapTools/taskBinaries/Microsoft.Build.Framework.dll differ diff --git a/tools/bootstrapTools/taskBinaries/Microsoft.Build.Tasks.Core.dll b/tools/bootstrapTools/taskBinaries/Microsoft.Build.Tasks.Core.dll new file mode 100644 index 000000000000..a0e09d5d54e5 Binary files /dev/null and b/tools/bootstrapTools/taskBinaries/Microsoft.Build.Tasks.Core.dll differ diff --git a/tools/bootstrapTools/taskBinaries/Microsoft.Build.Utilities.Core.dll b/tools/bootstrapTools/taskBinaries/Microsoft.Build.Utilities.Core.dll new file mode 100644 index 000000000000..e9fd61b50b43 Binary files /dev/null and b/tools/bootstrapTools/taskBinaries/Microsoft.Build.Utilities.Core.dll differ diff --git a/tools/bootstrapTools/taskBinaries/Microsoft.Build.dll b/tools/bootstrapTools/taskBinaries/Microsoft.Build.dll new file mode 100644 index 000000000000..f0418158741b Binary files /dev/null and b/tools/bootstrapTools/taskBinaries/Microsoft.Build.dll differ diff --git a/tools/bootstrapTools/taskBinaries/System.Collections.Immutable.dll b/tools/bootstrapTools/taskBinaries/System.Collections.Immutable.dll new file mode 100644 index 000000000000..ce6fc0e8d0d4 Binary files /dev/null and b/tools/bootstrapTools/taskBinaries/System.Collections.Immutable.dll differ diff --git a/tools/bootstrapTools/taskBinaries/System.Reflection.Metadata.dll b/tools/bootstrapTools/taskBinaries/System.Reflection.Metadata.dll new file mode 100644 index 000000000000..accf84dd5d75 Binary files /dev/null and b/tools/bootstrapTools/taskBinaries/System.Reflection.Metadata.dll differ diff --git a/tools/bootstrapTools/taskBinaries/System.Runtime.InteropServices.RuntimeInformation.dll b/tools/bootstrapTools/taskBinaries/System.Runtime.InteropServices.RuntimeInformation.dll new file mode 100644 index 000000000000..360e92aa6970 Binary files /dev/null and b/tools/bootstrapTools/taskBinaries/System.Runtime.InteropServices.RuntimeInformation.dll differ diff --git a/tools/bootstrapTools/taskBinaries/System.Threading.Thread.dll b/tools/bootstrapTools/taskBinaries/System.Threading.Thread.dll new file mode 100644 index 000000000000..6c4083137afe Binary files /dev/null and b/tools/bootstrapTools/taskBinaries/System.Threading.Thread.dll differ diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/Build.Tasks.Tests.csproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/Build.Tasks.Tests.csproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/Build.Tasks.Tests.csproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/Build.Tasks.Tests.csproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/CategorizeProjectTaskTest.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/CategorizeProjectTaskTest.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/CategorizeProjectTaskTest.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/CategorizeProjectTaskTest.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/PublishNugetTests/PublishTests.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/PublishNugetTests/PublishTests.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/PublishNugetTests/PublishTests.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/PublishNugetTests/PublishTests.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/SampleProjFiles/sdkMultiTarget.proj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/SampleProjFiles/sdkMultiTarget.proj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/SampleProjFiles/sdkMultiTarget.proj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/SampleProjFiles/sdkMultiTarget.proj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/sdkProjectTaskItem.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/sdkProjectTaskItem.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/sdkProjectTaskItem.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks.Tests/sdkProjectTaskItem.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/BuildProjectTemplatesTask.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/BuildProjectTemplatesTask.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/BuildProjectTemplatesTask.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/BuildProjectTemplatesTask.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/DebugTask.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/DebugTask.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/DebugTask.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/DebugTask.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/NugetExec.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/NugetExec.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/NugetExec.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/NugetExec.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/ShellExec.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/ShellExec.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/ShellExec.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/ShellExec.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/FilterOutAutoRestLibraries.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/FilterOutAutoRestLibraries.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/FilterOutAutoRestLibraries.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/FilterOutAutoRestLibraries.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Microsoft.WindowsAzure.Build.Tasks.csproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Microsoft.WindowsAzure.Build.Tasks.csproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Microsoft.WindowsAzure.Build.Tasks.csproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Microsoft.WindowsAzure.Build.Tasks.csproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Properties/AssemblyInfo.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Properties/AssemblyInfo.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Properties/AssemblyInfo.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Properties/AssemblyInfo.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/PublishSDKNuget.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/PublishSDKNuget.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/PublishSDKNuget.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/PublishSDKNuget.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/RegexReplacementTask.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/RegexReplacementTask.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/RegexReplacementTask.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/RegexReplacementTask.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/SDKCategorizeProjects.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/SDKCategorizeProjects.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/SDKCategorizeProjects.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/SDKCategorizeProjects.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/StrongNameUtility.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/StrongNameUtility.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/StrongNameUtility.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/StrongNameUtility.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/Check.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/Check.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/Check.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/Check.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/Constants.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/Constants.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/Constants.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/Constants.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/ObjectComparer.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/ObjectComparer.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/ObjectComparer.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/ObjectComparer.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/ProjectSearchUtility.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/ProjectSearchUtility.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/ProjectSearchUtility.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/Utilities/ProjectSearchUtility.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ValidateStrongNameSignatureTask.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ValidateStrongNameSignatureTask.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ValidateStrongNameSignatureTask.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ValidateStrongNameSignatureTask.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Microsoft.WindowsAzure.Build.Tasks.sln b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Microsoft.WindowsAzure.Build.Tasks.sln similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/Microsoft.WindowsAzure.Build.Tasks.sln rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/Microsoft.WindowsAzure.Build.Tasks.sln diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.csproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.csproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.csproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.csproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.nuget.proj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.nuget.proj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.nuget.proj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.nuget.proj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.nuspec b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.nuspec similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.nuspec rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.nuspec diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.sln b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.sln similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.sln rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/CSProjTestPublish.sln diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/Class1.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/Class1.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/Class1.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/Class1.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/Properties/AssemblyInfo.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/Properties/AssemblyInfo.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/Properties/AssemblyInfo.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/CSProjTestPublish/Properties/AssemblyInfo.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/Class1.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/Class1.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/Class1.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/Class1.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.csproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.csproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.csproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.csproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.sln b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.sln similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.sln rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.sln diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.xproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.xproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.xproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/NetCoreTestPublish.xproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/Properties/AssemblyInfo.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/Properties/AssemblyInfo.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/Properties/AssemblyInfo.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/Properties/AssemblyInfo.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/project.json b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/project.json similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/project.json rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectMultiSln/NetCoreTestPublish/project.json diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/MultiProjectSingleSolution.sln b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/MultiProjectSingleSolution.sln similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/MultiProjectSingleSolution.sln rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/MultiProjectSingleSolution.sln diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/Class1.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/Class1.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/Class1.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/Class1.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/Properties/AssemblyInfo.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/Properties/AssemblyInfo.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/Properties/AssemblyInfo.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/Properties/AssemblyInfo.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/RP1_DataPlane.csproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/RP1_DataPlane.csproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/RP1_DataPlane.csproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/RP1_DataPlane.csproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/RP1_DataPlane.xproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/RP1_DataPlane.xproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/RP1_DataPlane.xproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/RP1_DataPlane.xproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/project.json b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/project.json similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/project.json rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_DataPlane/project.json diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/Class1.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/Class1.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/Class1.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/Class1.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/Properties/AssemblyInfo.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/Properties/AssemblyInfo.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/Properties/AssemblyInfo.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/Properties/AssemblyInfo.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/RP1_MgmtPlane.csproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/RP1_MgmtPlane.csproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/RP1_MgmtPlane.csproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/RP1_MgmtPlane.csproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/RP1_MgmtPlane.xproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/RP1_MgmtPlane.xproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/RP1_MgmtPlane.xproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/RP1_MgmtPlane.xproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/project.json b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/project.json similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/project.json rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP1_MgmtPlane/project.json diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/Class1.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/Class1.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/Class1.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/Class1.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/Properties/AssemblyInfo.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/Properties/AssemblyInfo.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/Properties/AssemblyInfo.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/Properties/AssemblyInfo.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/RP2_SDK.Test.csproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/RP2_SDK.Test.csproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/RP2_SDK.Test.csproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/RP2_SDK.Test.csproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/RP2_SDK.Test.xproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/RP2_SDK.Test.xproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/RP2_SDK.Test.xproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/RP2_SDK.Test.xproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/project.json b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/project.json similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/project.json rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/RP2_SDK.Test/project.json diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/Class1.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/Class1.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/Class1.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/Class1.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/Properties/AssemblyInfo.cs b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/Properties/AssemblyInfo.cs similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/Properties/AssemblyInfo.cs rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/Properties/AssemblyInfo.cs diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/RP2_Sdk.csproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/RP2_Sdk.csproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/RP2_Sdk.csproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/RP2_Sdk.csproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/RP2_Sdk.xproj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/RP2_Sdk.xproj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/RP2_Sdk.xproj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/RP2_Sdk.xproj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/project.json b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/project.json similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/project.json rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/TestPublishProjects/MultiProjectSingleSln/RP2_Sdk/Sdk/project.json diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/msbuildProjTests/BuildTasksTest.BuildProjectTemplates.proj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/msbuildProjTests/BuildTasksTest.BuildProjectTemplates.proj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/msbuildProjTests/BuildTasksTest.BuildProjectTemplates.proj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/msbuildProjTests/BuildTasksTest.BuildProjectTemplates.proj diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/msbuildProjTests/PublishNugetPackageTests.proj b/tools/legacy/Microsoft.WindowsAzure.Build.Tasks/msbuildProjTests/PublishNugetPackageTests.proj similarity index 100% rename from tools/Microsoft.WindowsAzure.Build.Tasks/msbuildProjTests/PublishNugetPackageTests.proj rename to tools/legacy/Microsoft.WindowsAzure.Build.Tasks/msbuildProjTests/PublishNugetPackageTests.proj diff --git a/tools/AzCopy/AzCopy.exe b/tools/legacy/ScriptBackup/AzCopy/AzCopy.exe similarity index 100% rename from tools/AzCopy/AzCopy.exe rename to tools/legacy/ScriptBackup/AzCopy/AzCopy.exe diff --git a/tools/AzCopy/Microsoft.Data.Edm.dll b/tools/legacy/ScriptBackup/AzCopy/Microsoft.Data.Edm.dll similarity index 100% rename from tools/AzCopy/Microsoft.Data.Edm.dll rename to tools/legacy/ScriptBackup/AzCopy/Microsoft.Data.Edm.dll diff --git a/tools/AzCopy/Microsoft.Data.OData.dll b/tools/legacy/ScriptBackup/AzCopy/Microsoft.Data.OData.dll similarity index 100% rename from tools/AzCopy/Microsoft.Data.OData.dll rename to tools/legacy/ScriptBackup/AzCopy/Microsoft.Data.OData.dll diff --git a/tools/AzCopy/Microsoft.Data.Services.Client.dll b/tools/legacy/ScriptBackup/AzCopy/Microsoft.Data.Services.Client.dll similarity index 100% rename from tools/AzCopy/Microsoft.Data.Services.Client.dll rename to tools/legacy/ScriptBackup/AzCopy/Microsoft.Data.Services.Client.dll diff --git a/tools/AzCopy/Microsoft.WindowsAzure.Storage.DataMovement.dll b/tools/legacy/ScriptBackup/AzCopy/Microsoft.WindowsAzure.Storage.DataMovement.dll similarity index 100% rename from tools/AzCopy/Microsoft.WindowsAzure.Storage.DataMovement.dll rename to tools/legacy/ScriptBackup/AzCopy/Microsoft.WindowsAzure.Storage.DataMovement.dll diff --git a/tools/AzCopy/Microsoft.WindowsAzure.Storage.TableDataMovement.dll b/tools/legacy/ScriptBackup/AzCopy/Microsoft.WindowsAzure.Storage.TableDataMovement.dll similarity index 100% rename from tools/AzCopy/Microsoft.WindowsAzure.Storage.TableDataMovement.dll rename to tools/legacy/ScriptBackup/AzCopy/Microsoft.WindowsAzure.Storage.TableDataMovement.dll diff --git a/tools/AzCopy/Microsoft.WindowsAzure.Storage.dll b/tools/legacy/ScriptBackup/AzCopy/Microsoft.WindowsAzure.Storage.dll similarity index 100% rename from tools/AzCopy/Microsoft.WindowsAzure.Storage.dll rename to tools/legacy/ScriptBackup/AzCopy/Microsoft.WindowsAzure.Storage.dll diff --git a/tools/AzCopy/Newtonsoft.Json.dll b/tools/legacy/ScriptBackup/AzCopy/Newtonsoft.Json.dll similarity index 100% rename from tools/AzCopy/Newtonsoft.Json.dll rename to tools/legacy/ScriptBackup/AzCopy/Newtonsoft.Json.dll diff --git a/tools/AzCopy/System.Spatial.dll b/tools/legacy/ScriptBackup/AzCopy/System.Spatial.dll similarity index 100% rename from tools/AzCopy/System.Spatial.dll rename to tools/legacy/ScriptBackup/AzCopy/System.Spatial.dll diff --git a/tools/CopyGenerated.proj b/tools/legacy/ScriptBackup/CopyGenerated.proj similarity index 100% rename from tools/CopyGenerated.proj rename to tools/legacy/ScriptBackup/CopyGenerated.proj diff --git a/tools/CopySourceToTools.bat b/tools/legacy/ScriptBackup/CopySourceToTools.bat similarity index 100% rename from tools/CopySourceToTools.bat rename to tools/legacy/ScriptBackup/CopySourceToTools.bat diff --git a/tools/Fix-ADLGeneratedCode.ps1 b/tools/legacy/ScriptBackup/Fix-ADLGeneratedCode.ps1 similarity index 100% rename from tools/Fix-ADLGeneratedCode.ps1 rename to tools/legacy/ScriptBackup/Fix-ADLGeneratedCode.ps1 diff --git a/tools/Get-TestMode.ps1 b/tools/legacy/ScriptBackup/Get-TestMode.ps1 similarity index 100% rename from tools/Get-TestMode.ps1 rename to tools/legacy/ScriptBackup/Get-TestMode.ps1 diff --git a/tools/GlobalFilters.xml b/tools/legacy/ScriptBackup/GlobalFilters.xml similarity index 100% rename from tools/GlobalFilters.xml rename to tools/legacy/ScriptBackup/GlobalFilters.xml diff --git a/tools/IncrementVersion.ps1 b/tools/legacy/ScriptBackup/IncrementVersion.ps1 similarity index 100% rename from tools/IncrementVersion.ps1 rename to tools/legacy/ScriptBackup/IncrementVersion.ps1 diff --git a/tools/Library.Settings.targets b/tools/legacy/ScriptBackup/Library.Settings.targets similarity index 100% rename from tools/Library.Settings.targets rename to tools/legacy/ScriptBackup/Library.Settings.targets diff --git a/tools/RunCredScan.ps1 b/tools/legacy/ScriptBackup/RunCredScan.ps1 similarity index 100% rename from tools/RunCredScan.ps1 rename to tools/legacy/ScriptBackup/RunCredScan.ps1 diff --git a/tools/Set-TestMode.ps1 b/tools/legacy/ScriptBackup/Set-TestMode.ps1 similarity index 100% rename from tools/Set-TestMode.ps1 rename to tools/legacy/ScriptBackup/Set-TestMode.ps1 diff --git a/tools/Sync-NuspecDependencies.ps1 b/tools/legacy/ScriptBackup/Sync-NuspecDependencies.ps1 similarity index 100% rename from tools/Sync-NuspecDependencies.ps1 rename to tools/legacy/ScriptBackup/Sync-NuspecDependencies.ps1 diff --git a/tools/Test.Dependencies.target b/tools/legacy/ScriptBackup/Test.Dependencies.target similarity index 100% rename from tools/Test.Dependencies.target rename to tools/legacy/ScriptBackup/Test.Dependencies.target diff --git a/tools/autogenForSwaggers/build.ps1 b/tools/legacy/ScriptBackup/autogenForSwaggers/build.ps1 similarity index 100% rename from tools/autogenForSwaggers/build.ps1 rename to tools/legacy/ScriptBackup/autogenForSwaggers/build.ps1 diff --git a/tools/autogenForSwaggers/jsonrpc.targets b/tools/legacy/ScriptBackup/autogenForSwaggers/jsonrpc.targets similarity index 100% rename from tools/autogenForSwaggers/jsonrpc.targets rename to tools/legacy/ScriptBackup/autogenForSwaggers/jsonrpc.targets diff --git a/tools/autogenForSwaggers/lib.psm1 b/tools/legacy/ScriptBackup/autogenForSwaggers/lib.psm1 similarity index 100% rename from tools/autogenForSwaggers/lib.psm1 rename to tools/legacy/ScriptBackup/autogenForSwaggers/lib.psm1 diff --git a/tools/autogenForSwaggers/readme.md b/tools/legacy/ScriptBackup/autogenForSwaggers/readme.md similarity index 100% rename from tools/autogenForSwaggers/readme.md rename to tools/legacy/ScriptBackup/autogenForSwaggers/readme.md diff --git a/tools/autogenForSwaggers/sdkinfo.json b/tools/legacy/ScriptBackup/autogenForSwaggers/sdkinfo.json similarity index 100% rename from tools/autogenForSwaggers/sdkinfo.json rename to tools/legacy/ScriptBackup/autogenForSwaggers/sdkinfo.json diff --git a/tools/autogenForSwaggers/test.ps1 b/tools/legacy/ScriptBackup/autogenForSwaggers/test.ps1 similarity index 100% rename from tools/autogenForSwaggers/test.ps1 rename to tools/legacy/ScriptBackup/autogenForSwaggers/test.ps1 diff --git a/tools/autogenForSwaggers/update.ps1 b/tools/legacy/ScriptBackup/autogenForSwaggers/update.ps1 similarity index 100% rename from tools/autogenForSwaggers/update.ps1 rename to tools/legacy/ScriptBackup/autogenForSwaggers/update.ps1 diff --git a/tools/autorest.composite.gen.cmd b/tools/legacy/ScriptBackup/autorest.composite.gen.cmd similarity index 100% rename from tools/autorest.composite.gen.cmd rename to tools/legacy/ScriptBackup/autorest.composite.gen.cmd diff --git a/tools/autorest.gen.cmd b/tools/legacy/ScriptBackup/autorest.gen.cmd similarity index 100% rename from tools/autorest.gen.cmd rename to tools/legacy/ScriptBackup/autorest.gen.cmd diff --git a/tools/buildTargets/BuildTests/BasicBuildTest.xml b/tools/legacy/ScriptBackup/buildTargets/BuildTests/BasicBuildTest.xml similarity index 100% rename from tools/buildTargets/BuildTests/BasicBuildTest.xml rename to tools/legacy/ScriptBackup/buildTargets/BuildTests/BasicBuildTest.xml diff --git a/tools/buildTargets/additional.targets b/tools/legacy/ScriptBackup/buildTargets/additional.targets similarity index 100% rename from tools/buildTargets/additional.targets rename to tools/legacy/ScriptBackup/buildTargets/additional.targets diff --git a/tools/buildTargets/common.Build.props b/tools/legacy/ScriptBackup/buildTargets/common.Build.props similarity index 100% rename from tools/buildTargets/common.Build.props rename to tools/legacy/ScriptBackup/buildTargets/common.Build.props diff --git a/tools/buildTargets/common.NugetPackage.props b/tools/legacy/ScriptBackup/buildTargets/common.NugetPackage.props similarity index 100% rename from tools/buildTargets/common.NugetPackage.props rename to tools/legacy/ScriptBackup/buildTargets/common.NugetPackage.props diff --git a/tools/buildTargets/common.targets b/tools/legacy/ScriptBackup/buildTargets/common.targets similarity index 100% rename from tools/buildTargets/common.targets rename to tools/legacy/ScriptBackup/buildTargets/common.targets diff --git a/tools/buildTargets/common.tasks b/tools/legacy/ScriptBackup/buildTargets/common.tasks similarity index 100% rename from tools/buildTargets/common.tasks rename to tools/legacy/ScriptBackup/buildTargets/common.tasks diff --git a/tools/buildTargets/signing.targets b/tools/legacy/ScriptBackup/buildTargets/signing.targets similarity index 100% rename from tools/buildTargets/signing.targets rename to tools/legacy/ScriptBackup/buildTargets/signing.targets diff --git a/tools/buildTargets/testTargets/test.Build.props b/tools/legacy/ScriptBackup/buildTargets/testTargets/test.Build.props similarity index 100% rename from tools/buildTargets/testTargets/test.Build.props rename to tools/legacy/ScriptBackup/buildTargets/testTargets/test.Build.props diff --git a/tools/nuget.targets b/tools/legacy/ScriptBackup/nuget.targets similarity index 100% rename from tools/nuget.targets rename to tools/legacy/ScriptBackup/nuget.targets diff --git a/tools/references.net40.props b/tools/legacy/ScriptBackup/references.net40.props similarity index 100% rename from tools/references.net40.props rename to tools/legacy/ScriptBackup/references.net40.props diff --git a/tools/references.net45.props b/tools/legacy/ScriptBackup/references.net45.props similarity index 100% rename from tools/references.net45.props rename to tools/legacy/ScriptBackup/references.net45.props diff --git a/tools/references.portable.props b/tools/legacy/ScriptBackup/references.portable.props similarity index 100% rename from tools/references.portable.props rename to tools/legacy/ScriptBackup/references.portable.props diff --git a/tools/xunit.runner.msbuild.dll b/tools/legacy/ScriptBackup/xunit.runner.msbuild.dll similarity index 100% rename from tools/xunit.runner.msbuild.dll rename to tools/legacy/ScriptBackup/xunit.runner.msbuild.dll diff --git a/tools/xunit.runner.utility.dll b/tools/legacy/ScriptBackup/xunit.runner.utility.dll similarity index 100% rename from tools/xunit.runner.utility.dll rename to tools/legacy/ScriptBackup/xunit.runner.utility.dll