From cd25aa5c7cf8368da659c5bad7b9ca1a4d2239a6 Mon Sep 17 00:00:00 2001 From: Lucas Yao Date: Tue, 6 Sep 2022 15:24:54 +0800 Subject: [PATCH] [MarketplaceOrdering] deleted sdk cmdlet for merge generate code. --- .../MarketplaceOrdering.Test.csproj | 17 -- .../Properties/AssemblyInfo.cs | 50 ---- .../ScenarioTests/AgreementsTests.cs | 61 ----- .../ScenarioTests/AgreementsTests.ps1 | 112 --------- .../MarketplaceOrderingTestRunner.cs | 51 ---- .../TestGetAgreement.json | 77 ------ .../TestSetAgreementAccepted.json | 152 ------------ .../TestSetAgreementAcceptedPipeline.json | 152 ------------ .../TestSetAgreementNotAccepted.json | 152 ------------ .../TestSetAgreementRejectPipeline.json | 152 ------------ .../MarketplaceOrdering.sln | 67 ------ .../Az.MarketplaceOrdering.psd1 | 134 ----------- .../MarketplaceOrdering/ChangeLog.md | 30 --- .../Agreements/GetAzureRmMarketplaceTerms.cs | 47 ---- .../Agreements/SetAzureRmMarketplaceTerms.cs | 122 ---------- .../AzureMarketplaceOrderingCmdletBase.cs | 44 ---- .../MarketplaceOrdering/Common/Constants.cs | 30 --- .../MarketplaceOrdering.csproj | 19 -- .../MarketplaceOrdering.format.ps1xml | 51 ---- .../Models/PSAgreementTerms.cs | 82 ------- .../Properties/AssemblyInfo.cs | 36 --- .../StartupScripts/sample.ps1 | 1 - .../help/Az.MarketplaceOrdering.md | 19 -- .../help/Get-AzMarketplaceTerms.md | 116 --------- .../help/Set-AzMarketplaceTerms.md | 222 ------------------ .../documentation/current-breaking-changes.md | 41 ---- .../upcoming-breaking-changes.md | 28 --- 27 files changed, 2065 deletions(-) delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering.Test/MarketplaceOrdering.Test.csproj delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering.Test/Properties/AssemblyInfo.cs delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/AgreementsTests.cs delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/AgreementsTests.ps1 delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/MarketplaceOrderingTestRunner.cs delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestGetAgreement.json delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementAccepted.json delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementAcceptedPipeline.json delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementNotAccepted.json delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementRejectPipeline.json delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering.sln delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/Az.MarketplaceOrdering.psd1 delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/ChangeLog.md delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/Cmdlets/Agreements/GetAzureRmMarketplaceTerms.cs delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/Cmdlets/Agreements/SetAzureRmMarketplaceTerms.cs delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/Common/AzureMarketplaceOrderingCmdletBase.cs delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/Common/Constants.cs delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/MarketplaceOrdering.csproj delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/MarketplaceOrdering.format.ps1xml delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/Models/PSAgreementTerms.cs delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/Properties/AssemblyInfo.cs delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/StartupScripts/sample.ps1 delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/help/Az.MarketplaceOrdering.md delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/help/Get-AzMarketplaceTerms.md delete mode 100644 src/MarketplaceOrdering/MarketplaceOrdering/help/Set-AzMarketplaceTerms.md delete mode 100644 src/MarketplaceOrdering/documentation/current-breaking-changes.md delete mode 100644 src/MarketplaceOrdering/documentation/upcoming-breaking-changes.md diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Test/MarketplaceOrdering.Test.csproj b/src/MarketplaceOrdering/MarketplaceOrdering.Test/MarketplaceOrdering.Test.csproj deleted file mode 100644 index 554b7bf7f9a4..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Test/MarketplaceOrdering.Test.csproj +++ /dev/null @@ -1,17 +0,0 @@ - - - - MarketplaceOrdering - - - - - - $(LegacyAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix) - - - - - - - \ No newline at end of file diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Test/Properties/AssemblyInfo.cs b/src/MarketplaceOrdering/MarketplaceOrdering.Test/Properties/AssemblyInfo.cs deleted file mode 100644 index 384bd62a752f..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Test/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,50 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Commands.MarketplaceOrdering.Test")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Commands.MarketplaceOrdering.Test")] -[assembly: AssemblyCopyright("Copyright (c) 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("9a685061-0ef3-4963-ac60-88610f6d309e")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.2.0")] -[assembly: AssemblyFileVersion("0.2.0")] diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/AgreementsTests.cs b/src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/AgreementsTests.cs deleted file mode 100644 index c4a92894a6af..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/AgreementsTests.cs +++ /dev/null @@ -1,61 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Xunit; - -namespace Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests -{ - public class AgreementsTests : MarketplaceOrderingTestRunner - { - public AgreementsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) - { - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestGetAgreement() - { - TestRunner.RunTestScript("Test-GetAgreementTerms"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestSetAgreementNotAccepted() - { - TestRunner.RunTestScript("Test-SetAgreementTermsNotAccepted"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestSetAgreementAccepted() - { - TestRunner.RunTestScript("Test-SetAgreementTermsAccepted"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestSetAgreementAcceptedPipeline() - { - TestRunner.RunTestScript("Test-SetAgreementTermsAcceptedPipelineGet"); - } - - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestSetAgreementRejectPipeline() - { - TestRunner.RunTestScript("Test-SetAgreementTermsRejectedPipelineGet"); - } - } -} diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/AgreementsTests.ps1 b/src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/AgreementsTests.ps1 deleted file mode 100644 index 61157531e390..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/AgreementsTests.ps1 +++ /dev/null @@ -1,112 +0,0 @@ -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.SYNOPSIS -Get Agreement Terms -#> -function Test-GetAgreementTerms -{ - $PublisherId = "microsoft-ads" - $ProductId = "windows-data-science-vm" - $PlanId = "windows2016" - $agreementTerms = Get-AzMarketplaceTerms -Publisher $PublisherId -Product $ProductId -Name $PlanId - - Assert-NotNull $agreementTerms - Assert-NotNull $agreementTerms.LicenseTextLink - Assert-NotNull $agreementTerms.PrivacyPolicyLink - Assert-NotNull $agreementTerms.Signature -} - -<# -.SYNOPSIS -Set Agrement Terms - Reject -#> -function Test-SetAgreementTermsNotAccepted -{ - $PublisherId = "microsoft-ads" - $ProductId = "windows-data-science-vm" - $PlanId = "windows2016" - $agreementTerms = Get-AzMarketplaceTerms -Publisher $PublisherId -Product $ProductId -Name $PlanId - - Assert-NotNull $agreementTerms - Assert-NotNull $agreementTerms.LicenseTextLink - Assert-NotNull $agreementTerms.PrivacyPolicyLink - Assert-NotNull $agreementTerms.Signature - - $newAgreementTerms = Set-AzMarketplaceTerms -Publisher $PublisherId -Product $ProductId -Name $PlanId -Reject - Assert-NotNull $newAgreementTerms - Assert-NotNull $newAgreementTerms.LicenseTextLink - Assert-NotNull $newAgreementTerms.PrivacyPolicyLink - Assert-NotNull $newAgreementTerms.Signature - Assert-AreEqual false $newAgreementTerms.Accepted -} - -<# -.SYNOPSIS -Set Agrement Terms - Accept -#> -function Test-SetAgreementTermsAccepted -{ - $PublisherId = "microsoft-ads" - $ProductId = "windows-data-science-vm" - $PlanId = "windows2016" - $agreementTerms = Get-AzMarketplaceTerms -Publisher $PublisherId -Product $ProductId -Name $PlanId - - Assert-NotNull $agreementTerms - Assert-NotNull $agreementTerms.LicenseTextLink - Assert-NotNull $agreementTerms.PrivacyPolicyLink - Assert-NotNull $agreementTerms.Signature - - $newAgreementTerms = Set-AzMarketplaceTerms -Publisher $PublisherId -Product $ProductId -Name $PlanId -Terms $agreementTerms -Accept - Assert-NotNull $newAgreementTerms - Assert-NotNull $newAgreementTerms.LicenseTextLink - Assert-NotNull $newAgreementTerms.PrivacyPolicyLink - Assert-NotNull $newAgreementTerms.Signature - Assert-AreEqual true $newAgreementTerms.Accepted -} - -<# -.SYNOPSIS -Set Agrement Terms pipeline - Accept -#> -function Test-SetAgreementTermsAcceptedPipelineGet -{ - $PublisherId = "microsoft-ads" - $ProductId = "windows-data-science-vm" - $PlanId = "windows2016" - $newAgreementTerms = Get-AzMarketplaceTerms -Publisher $PublisherId -Product $ProductId -Name $PlanId|Set-AzMarketplaceTerms -Accept - Assert-NotNull $newAgreementTerms - Assert-NotNull $newAgreementTerms.LicenseTextLink - Assert-NotNull $newAgreementTerms.PrivacyPolicyLink - Assert-NotNull $newAgreementTerms.Signature - Assert-AreEqual true $newAgreementTerms.Accepted -} - -<# -.SYNOPSIS -Set Agrement Terms pipeline - Reject -#> -function Test-SetAgreementTermsRejectedPipelineGet -{ - $PublisherId = "microsoft-ads" - $ProductId = "windows-data-science-vm" - $PlanId = "windows2016" - $newAgreementTerms = Get-AzMarketplaceTerms -Publisher $PublisherId -Product $ProductId -Name $PlanId|Set-AzMarketplaceTerms -Reject - Assert-NotNull $newAgreementTerms - Assert-NotNull $newAgreementTerms.LicenseTextLink - Assert-NotNull $newAgreementTerms.PrivacyPolicyLink - Assert-NotNull $newAgreementTerms.Signature - Assert-AreEqual false $newAgreementTerms.Accepted -} \ No newline at end of file diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/MarketplaceOrderingTestRunner.cs b/src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/MarketplaceOrderingTestRunner.cs deleted file mode 100644 index fd51f82630e1..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Test/ScenarioTests/MarketplaceOrderingTestRunner.cs +++ /dev/null @@ -1,51 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections.Generic; -using Microsoft.Azure.Commands.TestFx; -using Xunit.Abstractions; - -namespace Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests -{ - public class MarketplaceOrderingTestRunner - { - protected readonly ITestRunner TestRunner; - - protected MarketplaceOrderingTestRunner(ITestOutputHelper output) - { - TestRunner = TestManager.CreateInstance(output) - .WithNewPsScriptFilename($"{GetType().Name}.ps1") - .WithProjectSubfolderForTests("ScenarioTests") - .WithNewRmModules(helper => new[] - { - helper.RMProfileModule, - helper.GetRMModulePath(@"Az.MarketplaceOrdering.psd1") - }) - .WithNewRecordMatcherArguments( - userAgentsToIgnore: new Dictionary - { - {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} - }, - resourceProviders: new Dictionary - { - {"Microsoft.Resources", null}, - {"Microsoft.Features", null}, - {"Microsoft.Authorization", null}, - {"Microsoft.Compute", null} - } - ) - .Build(); - } - } -} \ No newline at end of file diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestGetAgreement.json b/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestGetAgreement.json deleted file mode 100644 index cd3a44b04116..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestGetAgreement.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offerTypes/virtualmachine/publishers/microsoft-ads/offers/windows-data-science-vm/plans/windows2016/agreements/current?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmFkNjY4ZTItMDRlNC00YTk5LTgyOTItNGRmNGY3NDM2MmFlL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFya2V0cGxhY2VPcmRlcmluZy9vZmZlclR5cGVzL3ZpcnR1YWxtYWNoaW5lL3B1Ymxpc2hlcnMvbWljcm9zb2Z0LWFkcy9vZmZlcnMvd2luZG93cy1kYXRhLXNjaWVuY2Utdm0vcGxhbnMvd2luZG93czIwMTYvYWdyZWVtZW50cy9jdXJyZW50P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "183b4a29-14b2-455e-8818-85486c4b3439" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.7.2110.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.15063", - "Microsoft.Azure.Management.MarketplaceOrdering.MarketplaceOrderingAgreementsClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offertypes/microsoft-ads/offers/windows-data-science-vm/plans/windows2016\",\r\n \"name\": \"windows2016\",\r\n \"type\": \"Microsoft.MarketplaceOrdering/offertypes\",\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:44:59.4730605Z\",\r\n \"signature\": \"7AJJ66ILJKF54PJAXYKEMCRFQWQYHOA5CFPIVNIB3QJGRWNGZDNIPE2ZGXWTDTVIJZWXTCLTLDBJXVXUXASLST2GXB74XQ2B56UPJEI\",\r\n \"accepted\": true\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" - ], - "x-ms-client-request-id": [ - "183b4a29-14b2-455e-8818-85486c4b3439" - ], - "x-ms-request-id": [ - "b5bd7a10-8d20-4792-a72a-db8db89e1ff1" - ], - "DataServiceVersion": [ - "5.2.1.309 (AzureUX-Store:master.9dbea9b4.170911-1246)" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-correlation-request-id": [ - "9ba5f8dd-9ad2-44cc-8bf0-9957569882ae" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20171005T004459Z:9ba5f8dd-9ad2-44cc-8bf0-9957569882ae" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 05 Oct 2017 00:44:58 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "2ad668e2-04e4-4a99-8292-4df4f74362ae" - } -} \ No newline at end of file diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementAccepted.json b/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementAccepted.json deleted file mode 100644 index 1ed65e9d2476..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementAccepted.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offerTypes/virtualmachine/publishers/microsoft-ads/offers/windows-data-science-vm/plans/windows2016/agreements/current?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmFkNjY4ZTItMDRlNC00YTk5LTgyOTItNGRmNGY3NDM2MmFlL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFya2V0cGxhY2VPcmRlcmluZy9vZmZlclR5cGVzL3ZpcnR1YWxtYWNoaW5lL3B1Ymxpc2hlcnMvbWljcm9zb2Z0LWFkcy9vZmZlcnMvd2luZG93cy1kYXRhLXNjaWVuY2Utdm0vcGxhbnMvd2luZG93czIwMTYvYWdyZWVtZW50cy9jdXJyZW50P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "0d0b63bd-f510-40ab-af6a-49a745c5108f" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.7.2110.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.15063", - "Microsoft.Azure.Management.MarketplaceOrdering.MarketplaceOrderingAgreementsClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offertypes/microsoft-ads/offers/windows-data-science-vm/plans/windows2016\",\r\n \"name\": \"windows2016\",\r\n \"type\": \"Microsoft.MarketplaceOrdering/offertypes\",\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:44:49.5135339Z\",\r\n \"signature\": \"4ONCXCM4UNS2NSUQNP5LX2P2VEDT3XHHU5LCZUFGVUZJDL7R2RSI7VEAQMZZ2V3Y2WBCBPDHX45MXHFSUNNBOOU4I33QY2RZP7SXQOI\",\r\n \"accepted\": true\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-client-request-id": [ - "0d0b63bd-f510-40ab-af6a-49a745c5108f" - ], - "x-ms-request-id": [ - "4090aec2-47c4-4829-b650-4878d9c06319" - ], - "DataServiceVersion": [ - "5.2.1.309 (AzureUX-Store:master.9dbea9b4.170911-1246)" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-correlation-request-id": [ - "0e0efd4c-deba-44fb-9ff8-58d6b7d8854b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20171005T004449Z:0e0efd4c-deba-44fb-9ff8-58d6b7d8854b" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 05 Oct 2017 00:44:49 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offerTypes/virtualmachine/publishers/microsoft-ads/offers/windows-data-science-vm/plans/windows2016/agreements/current?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmFkNjY4ZTItMDRlNC00YTk5LTgyOTItNGRmNGY3NDM2MmFlL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFya2V0cGxhY2VPcmRlcmluZy9vZmZlclR5cGVzL3ZpcnR1YWxtYWNoaW5lL3B1Ymxpc2hlcnMvbWljcm9zb2Z0LWFkcy9vZmZlcnMvd2luZG93cy1kYXRhLXNjaWVuY2Utdm0vcGxhbnMvd2luZG93czIwMTYvYWdyZWVtZW50cy9jdXJyZW50P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:44:49.5135339Z\",\r\n \"signature\": \"4ONCXCM4UNS2NSUQNP5LX2P2VEDT3XHHU5LCZUFGVUZJDL7R2RSI7VEAQMZZ2V3Y2WBCBPDHX45MXHFSUNNBOOU4I33QY2RZP7SXQOI\",\r\n \"accepted\": true\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "670" - ], - "x-ms-client-request-id": [ - "ed868437-be48-411c-8801-23560d010bda" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.7.2110.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.15063", - "Microsoft.Azure.Management.MarketplaceOrdering.MarketplaceOrderingAgreementsClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offertypes/microsoft-ads/offers/windows-data-science-vm/plans/windows2016\",\r\n \"name\": \"windows2016\",\r\n \"type\": \"Microsoft.MarketplaceOrdering/offertypes\",\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:44:49.5135339Z\",\r\n \"signature\": \"4ONCXCM4UNS2NSUQNP5LX2P2VEDT3XHHU5LCZUFGVUZJDL7R2RSI7VEAQMZZ2V3Y2WBCBPDHX45MXHFSUNNBOOU4I33QY2RZP7SXQOI\",\r\n \"accepted\": true\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-client-request-id": [ - "ed868437-be48-411c-8801-23560d010bda" - ], - "x-ms-request-id": [ - "6a340638-c51b-48bc-a8a3-b143cf1413c0" - ], - "DataServiceVersion": [ - "5.2.1.309 (AzureUX-Store:master.9dbea9b4.170911-1246)" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-correlation-request-id": [ - "91b38895-d9d9-4669-9c3b-5f55f23157e8" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20171005T004450Z:91b38895-d9d9-4669-9c3b-5f55f23157e8" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 05 Oct 2017 00:44:50 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "2ad668e2-04e4-4a99-8292-4df4f74362ae" - } -} \ No newline at end of file diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementAcceptedPipeline.json b/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementAcceptedPipeline.json deleted file mode 100644 index cb54ad689b57..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementAcceptedPipeline.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offerTypes/virtualmachine/publishers/microsoft-ads/offers/windows-data-science-vm/plans/windows2016/agreements/current?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmFkNjY4ZTItMDRlNC00YTk5LTgyOTItNGRmNGY3NDM2MmFlL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFya2V0cGxhY2VPcmRlcmluZy9vZmZlclR5cGVzL3ZpcnR1YWxtYWNoaW5lL3B1Ymxpc2hlcnMvbWljcm9zb2Z0LWFkcy9vZmZlcnMvd2luZG93cy1kYXRhLXNjaWVuY2Utdm0vcGxhbnMvd2luZG93czIwMTYvYWdyZWVtZW50cy9jdXJyZW50P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "7cf23c96-95f9-43ce-915a-578b43f7fc1f" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.7.2110.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.15063", - "Microsoft.Azure.Management.MarketplaceOrdering.MarketplaceOrderingAgreementsClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offertypes/microsoft-ads/offers/windows-data-science-vm/plans/windows2016\",\r\n \"name\": \"windows2016\",\r\n \"type\": \"Microsoft.MarketplaceOrdering/offertypes\",\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:45:08.9511183Z\",\r\n \"signature\": \"UDZAIFOCYCA2NDN6OT2O4CE2AMG45LFVZB2MHAG5R3SEP4LRKTULCCLO6UJSRTMRXNWPP7BLS2UWRLCRKV5IWYGBVUYAQWZIHR3IUGI\",\r\n \"accepted\": true\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" - ], - "x-ms-client-request-id": [ - "7cf23c96-95f9-43ce-915a-578b43f7fc1f" - ], - "x-ms-request-id": [ - "a2ae63db-5d0c-4348-9c76-6e5a35e19381" - ], - "DataServiceVersion": [ - "5.2.1.309 (AzureUX-Store:master.9dbea9b4.170911-1246)" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-correlation-request-id": [ - "b94949d2-0599-4876-9a02-66f0356bc3f6" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20171005T004508Z:b94949d2-0599-4876-9a02-66f0356bc3f6" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 05 Oct 2017 00:45:08 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offerTypes/virtualmachine/publishers/microsoft-ads/offers/windows-data-science-vm/plans/windows2016/agreements/current?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmFkNjY4ZTItMDRlNC00YTk5LTgyOTItNGRmNGY3NDM2MmFlL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFya2V0cGxhY2VPcmRlcmluZy9vZmZlclR5cGVzL3ZpcnR1YWxtYWNoaW5lL3B1Ymxpc2hlcnMvbWljcm9zb2Z0LWFkcy9vZmZlcnMvd2luZG93cy1kYXRhLXNjaWVuY2Utdm0vcGxhbnMvd2luZG93czIwMTYvYWdyZWVtZW50cy9jdXJyZW50P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:45:08.9511183Z\",\r\n \"signature\": \"UDZAIFOCYCA2NDN6OT2O4CE2AMG45LFVZB2MHAG5R3SEP4LRKTULCCLO6UJSRTMRXNWPP7BLS2UWRLCRKV5IWYGBVUYAQWZIHR3IUGI\",\r\n \"accepted\": true\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "670" - ], - "x-ms-client-request-id": [ - "a8aaca8f-4424-462a-a21d-f3e971fee06e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.7.2110.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.15063", - "Microsoft.Azure.Management.MarketplaceOrdering.MarketplaceOrderingAgreementsClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offertypes/microsoft-ads/offers/windows-data-science-vm/plans/windows2016\",\r\n \"name\": \"windows2016\",\r\n \"type\": \"Microsoft.MarketplaceOrdering/offertypes\",\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:45:08.9511183Z\",\r\n \"signature\": \"UDZAIFOCYCA2NDN6OT2O4CE2AMG45LFVZB2MHAG5R3SEP4LRKTULCCLO6UJSRTMRXNWPP7BLS2UWRLCRKV5IWYGBVUYAQWZIHR3IUGI\",\r\n \"accepted\": true\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-client-request-id": [ - "a8aaca8f-4424-462a-a21d-f3e971fee06e" - ], - "x-ms-request-id": [ - "67abe447-9e75-4ebf-8d05-48098c44a6ef" - ], - "DataServiceVersion": [ - "5.2.1.309 (AzureUX-Store:master.9dbea9b4.170911-1246)" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-correlation-request-id": [ - "fed66436-ced2-4290-8bec-9088a71cabc2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20171005T004509Z:fed66436-ced2-4290-8bec-9088a71cabc2" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 05 Oct 2017 00:45:09 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "2ad668e2-04e4-4a99-8292-4df4f74362ae" - } -} \ No newline at end of file diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementNotAccepted.json b/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementNotAccepted.json deleted file mode 100644 index 2f238986a03a..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementNotAccepted.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offerTypes/virtualmachine/publishers/microsoft-ads/offers/windows-data-science-vm/plans/windows2016/agreements/current?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmFkNjY4ZTItMDRlNC00YTk5LTgyOTItNGRmNGY3NDM2MmFlL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFya2V0cGxhY2VPcmRlcmluZy9vZmZlclR5cGVzL3ZpcnR1YWxtYWNoaW5lL3B1Ymxpc2hlcnMvbWljcm9zb2Z0LWFkcy9vZmZlcnMvd2luZG93cy1kYXRhLXNjaWVuY2Utdm0vcGxhbnMvd2luZG93czIwMTYvYWdyZWVtZW50cy9jdXJyZW50P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "522f446e-5fdc-4569-8d6c-5bf40c90e618" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.7.2110.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.15063", - "Microsoft.Azure.Management.MarketplaceOrdering.MarketplaceOrderingAgreementsClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offertypes/microsoft-ads/offers/windows-data-science-vm/plans/windows2016\",\r\n \"name\": \"windows2016\",\r\n \"type\": \"Microsoft.MarketplaceOrdering/offertypes\",\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:45:19.20199Z\",\r\n \"signature\": \"MRBULAF7BCED733HPMJXBU2PMGDUBOALX3NQLAYIGPLDGT6IT4NVB7XFKPQA4NRNRHKQMW7LNECM22HV5GBZNFX2EFPFR3KL47ARZXA\",\r\n \"accepted\": true\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "845" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-client-request-id": [ - "522f446e-5fdc-4569-8d6c-5bf40c90e618" - ], - "x-ms-request-id": [ - "5d393f80-44a9-4a23-b313-7b6cba62c98e" - ], - "DataServiceVersion": [ - "5.2.1.309 (AzureUX-Store:master.9dbea9b4.170911-1246)" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-correlation-request-id": [ - "e12fd10b-7e63-4090-820a-935a386cc6e8" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20171005T004519Z:e12fd10b-7e63-4090-820a-935a386cc6e8" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 05 Oct 2017 00:45:18 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offerTypes/virtualmachine/publishers/microsoft-ads/offers/windows-data-science-vm/plans/windows2016/agreements/current?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmFkNjY4ZTItMDRlNC00YTk5LTgyOTItNGRmNGY3NDM2MmFlL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFya2V0cGxhY2VPcmRlcmluZy9vZmZlclR5cGVzL3ZpcnR1YWxtYWNoaW5lL3B1Ymxpc2hlcnMvbWljcm9zb2Z0LWFkcy9vZmZlcnMvd2luZG93cy1kYXRhLXNjaWVuY2Utdm0vcGxhbnMvd2luZG93czIwMTYvYWdyZWVtZW50cy9jdXJyZW50P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"accepted\": false\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "51" - ], - "x-ms-client-request-id": [ - "09390b28-349a-4ce8-855a-4b9529b79769" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.7.2110.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.15063", - "Microsoft.Azure.Management.MarketplaceOrdering.MarketplaceOrderingAgreementsClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offertypes/microsoft-ads/offers/windows-data-science-vm/plans/windows2016\",\r\n \"name\": \"windows2016\",\r\n \"type\": \"Microsoft.MarketplaceOrdering/offertypes\",\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:45:08.9511183Z\",\r\n \"signature\": \"UDZAIFOCYCA2NDN6OT2O4CE2AMG45LFVZB2MHAG5R3SEP4LRKTULCCLO6UJSRTMRXNWPP7BLS2UWRLCRKV5IWYGBVUYAQWZIHR3IUGI\",\r\n \"accepted\": false\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "848" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-client-request-id": [ - "09390b28-349a-4ce8-855a-4b9529b79769" - ], - "x-ms-request-id": [ - "2bafb0f2-a15c-4626-8d7b-427e0beb0738" - ], - "DataServiceVersion": [ - "5.2.1.309 (AzureUX-Store:master.9dbea9b4.170911-1246)" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-correlation-request-id": [ - "1fafe3d5-1d93-4d04-9058-697ddc2862f7" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20171005T004519Z:1fafe3d5-1d93-4d04-9058-697ddc2862f7" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 05 Oct 2017 00:45:19 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "2ad668e2-04e4-4a99-8292-4df4f74362ae" - } -} \ No newline at end of file diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementRejectPipeline.json b/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementRejectPipeline.json deleted file mode 100644 index 31919ebb11c4..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.Test/SessionRecords/Microsoft.Azure.Commands.MarketplaceOrdering.Test.ScenarioTests.AgreementsTests/TestSetAgreementRejectPipeline.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offerTypes/virtualmachine/publishers/microsoft-ads/offers/windows-data-science-vm/plans/windows2016/agreements/current?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmFkNjY4ZTItMDRlNC00YTk5LTgyOTItNGRmNGY3NDM2MmFlL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFya2V0cGxhY2VPcmRlcmluZy9vZmZlclR5cGVzL3ZpcnR1YWxtYWNoaW5lL3B1Ymxpc2hlcnMvbWljcm9zb2Z0LWFkcy9vZmZlcnMvd2luZG93cy1kYXRhLXNjaWVuY2Utdm0vcGxhbnMvd2luZG93czIwMTYvYWdyZWVtZW50cy9jdXJyZW50P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a98db15f-baf1-4f79-ae6a-07a8ad63d201" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.7.2110.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.15063", - "Microsoft.Azure.Management.MarketplaceOrdering.MarketplaceOrderingAgreementsClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offertypes/microsoft-ads/offers/windows-data-science-vm/plans/windows2016\",\r\n \"name\": \"windows2016\",\r\n \"type\": \"Microsoft.MarketplaceOrdering/offertypes\",\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:48:41.209093Z\",\r\n \"signature\": \"2ZDIAK3FQJH2FGRMH7HWZRIBSJC6ZX4DWTGCQ3CTVZZW7TF2SABRO3M57O3UL2RNWDT5POMVQHPB7TJQLR6CHG2RXWIW6OSIGS4YLWY\",\r\n \"accepted\": false\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "847" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" - ], - "x-ms-client-request-id": [ - "a98db15f-baf1-4f79-ae6a-07a8ad63d201" - ], - "x-ms-request-id": [ - "ecf68e11-433a-46da-a8ed-ebfe39f0ee0a" - ], - "DataServiceVersion": [ - "5.2.1.309 (AzureUX-Store:master.9dbea9b4.170911-1246)" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-correlation-request-id": [ - "11ea7f9d-61a0-448e-855a-575ae1d76ee2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20171005T004841Z:11ea7f9d-61a0-448e-855a-575ae1d76ee2" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 05 Oct 2017 00:48:41 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offerTypes/virtualmachine/publishers/microsoft-ads/offers/windows-data-science-vm/plans/windows2016/agreements/current?api-version=2015-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmFkNjY4ZTItMDRlNC00YTk5LTgyOTItNGRmNGY3NDM2MmFlL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFya2V0cGxhY2VPcmRlcmluZy9vZmZlclR5cGVzL3ZpcnR1YWxtYWNoaW5lL3B1Ymxpc2hlcnMvbWljcm9zb2Z0LWFkcy9vZmZlcnMvd2luZG93cy1kYXRhLXNjaWVuY2Utdm0vcGxhbnMvd2luZG93czIwMTYvYWdyZWVtZW50cy9jdXJyZW50P2FwaS12ZXJzaW9uPTIwMTUtMDYtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:48:41.209093Z\",\r\n \"signature\": \"2ZDIAK3FQJH2FGRMH7HWZRIBSJC6ZX4DWTGCQ3CTVZZW7TF2SABRO3M57O3UL2RNWDT5POMVQHPB7TJQLR6CHG2RXWIW6OSIGS4YLWY\",\r\n \"accepted\": false\r\n }\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "670" - ], - "x-ms-client-request-id": [ - "ffc11866-d1b8-4fcd-9638-493a1d1e2c5b" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.7.2110.0", - "OSName/Windows10Enterprise", - "OSVersion/6.3.15063", - "Microsoft.Azure.Management.MarketplaceOrdering.MarketplaceOrderingAgreementsClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/2ad668e2-04e4-4a99-8292-4df4f74362ae/providers/Microsoft.MarketplaceOrdering/offertypes/microsoft-ads/offers/windows-data-science-vm/plans/windows2016\",\r\n \"name\": \"windows2016\",\r\n \"type\": \"Microsoft.MarketplaceOrdering/offertypes\",\r\n \"properties\": {\r\n \"publisher\": \"microsoft-ads\",\r\n \"product\": \"windows-data-science-vm\",\r\n \"plan\": \"windows2016\",\r\n \"licenseTextLink\": \"https://106c4.wpc.azureedge.net/80106C4/Gallery-Prod/cdn/2015-02-24/prod20161101-microsoft-windowsazure-gallery/microsoft-ads.windows-data-science-vmwindows2016.1.0.3/Content/LegalTerms0.DEFAULT.txt\",\r\n \"privacyPolicyLink\": \"https://www.microsoft.com/EN-US/privacystatement/OnlineServices/Default.aspx\",\r\n \"retrieveDatetime\": \"2017-10-05T00:45:08.9511183Z\",\r\n \"signature\": \"UDZAIFOCYCA2NDN6OT2O4CE2AMG45LFVZB2MHAG5R3SEP4LRKTULCCLO6UJSRTMRXNWPP7BLS2UWRLCRKV5IWYGBVUYAQWZIHR3IUGI\",\r\n \"accepted\": false\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "848" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-client-request-id": [ - "ffc11866-d1b8-4fcd-9638-493a1d1e2c5b" - ], - "x-ms-request-id": [ - "8f8f019b-cc01-400f-bf24-a49aa0748727" - ], - "DataServiceVersion": [ - "5.2.1.309 (AzureUX-Store:master.9dbea9b4.170911-1246)" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-correlation-request-id": [ - "caa82c1f-d678-4437-a96e-2cc29c5c29c4" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20171005T004841Z:caa82c1f-d678-4437-a96e-2cc29c5c29c4" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 05 Oct 2017 00:48:41 GMT" - ], - "Server": [ - "Microsoft-IIS/8.5" - ] - }, - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "2ad668e2-04e4-4a99-8292-4df4f74362ae" - } -} \ No newline at end of file diff --git a/src/MarketplaceOrdering/MarketplaceOrdering.sln b/src/MarketplaceOrdering/MarketplaceOrdering.sln deleted file mode 100644 index 58de8cf4985f..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering.sln +++ /dev/null @@ -1,67 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27703.2042 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MarketplaceOrdering", "MarketplaceOrdering\MarketplaceOrdering.csproj", "{8C6489F5-0352-4667-8A0D-86B4B399EECC}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{95C16AED-FD57-42A0-86C3-2CF4300A4817}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MarketplaceOrdering.Test", "MarketplaceOrdering.Test\MarketplaceOrdering.Test.csproj", "{9A685061-0EF3-4963-AC60-88610F6D309E}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{3E016018-D65D-4336-9F64-17DA97783AD0}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ScenarioTest.ResourceManager", "..\..\tools\ScenarioTest.ResourceManager\ScenarioTest.ResourceManager.csproj", "{F83FBA8D-732D-437C-A0E2-02E45B01E123}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestFx\TestFx.csproj", "{BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {8C6489F5-0352-4667-8A0D-86B4B399EECC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8C6489F5-0352-4667-8A0D-86B4B399EECC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8C6489F5-0352-4667-8A0D-86B4B399EECC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8C6489F5-0352-4667-8A0D-86B4B399EECC}.Release|Any CPU.Build.0 = Release|Any CPU - {9A685061-0EF3-4963-AC60-88610F6D309E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9A685061-0EF3-4963-AC60-88610F6D309E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9A685061-0EF3-4963-AC60-88610F6D309E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9A685061-0EF3-4963-AC60-88610F6D309E}.Release|Any CPU.Build.0 = Release|Any CPU - {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU - {FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|Any CPU.Build.0 = Release|Any CPU - {3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3E016018-D65D-4336-9F64-17DA97783AD0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3E016018-D65D-4336-9F64-17DA97783AD0}.Release|Any CPU.Build.0 = Release|Any CPU - {F83FBA8D-732D-437C-A0E2-02E45B01E123}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F83FBA8D-732D-437C-A0E2-02E45B01E123}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F83FBA8D-732D-437C-A0E2-02E45B01E123}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F83FBA8D-732D-437C-A0E2-02E45B01E123}.Release|Any CPU.Build.0 = Release|Any CPU - {BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {9A685061-0EF3-4963-AC60-88610F6D309E} = {95C16AED-FD57-42A0-86C3-2CF4300A4817} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {621D5B6D-6D14-4A78-B11C-22F26C503DFE} - EndGlobalSection -EndGlobal diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/Az.MarketplaceOrdering.psd1 b/src/MarketplaceOrdering/MarketplaceOrdering/Az.MarketplaceOrdering.psd1 deleted file mode 100644 index dc30b18601e5..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/Az.MarketplaceOrdering.psd1 +++ /dev/null @@ -1,134 +0,0 @@ -# -# Module manifest for module 'Az.MarketplaceOrdering' -# -# Generated by: Microsoft Corporation -# -# Generated on: 12/11/2019 -# - -@{ - -# Script module or binary module file associated with this manifest. -# RootModule = '' - -# Version number of this module. -ModuleVersion = '1.0.2' - -# Supported PSEditions -CompatiblePSEditions = 'Core', 'Desktop' - -# ID used to uniquely identify this module -GUID = '95b51ba9-b0c9-430e-bab9-69492bc277cf' - -# Author of this module -Author = 'Microsoft Corporation' - -# Company or vendor of this module -CompanyName = 'Microsoft Corporation' - -# Copyright statement for this module -Copyright = 'Microsoft Corporation. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell - Marketplace Ordering agreements service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. - -For more information on Marketplace Ordering, please visit the following: https://docs.microsoft.com/azure/marketplace/' - -# Minimum version of the PowerShell engine required by this module -PowerShellVersion = '5.1' - -# Name of the PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -DotNetFrameworkVersion = '4.7.2' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# CLRVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.7.4'; }) - -# Assemblies that must be loaded prior to importing this module -RequiredAssemblies = 'Microsoft.Azure.Management.MarketplaceOrdering.dll' - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() - -# Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'MarketplaceOrdering.format.ps1xml' - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.dll') - -# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = @() - -# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = 'Get-AzMarketplaceTerms', 'Set-AzMarketplaceTerms' - -# Variables to export from this module -# VariablesToExport = @() - -# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = @() - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -# ModuleList = @() - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - - PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','MarketplaceOrdering' - - # A URL to the license for this module. - LicenseUri = 'https://aka.ms/azps-license' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/Azure/azure-powershell' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - ReleaseNotes = '* Update references in .psd1 to use relative path' - - # Prerelease string of this module - # Prerelease = '' - - # Flag to indicate whether the module requires explicit user acceptance for install/update/save - # RequireLicenseAcceptance = $false - - # External dependent modules of this module - # ExternalModuleDependencies = @() - - } # End of PSData hashtable - - } # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - -} - diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/ChangeLog.md b/src/MarketplaceOrdering/MarketplaceOrdering/ChangeLog.md deleted file mode 100644 index 641391e028ab..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/ChangeLog.md +++ /dev/null @@ -1,30 +0,0 @@ - -## Upcoming Release - -## Version 1.0.2 -* Update references in .psd1 to use relative path - -## Version 1.0.1 -* Fixed documentation typo where "Azure" was all lowercase letters -* Fixed miscellaneous typos across module - -## Version 1.0.0 -* General availability of `Az.MarketplaceOrdering` module diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/Cmdlets/Agreements/GetAzureRmMarketplaceTerms.cs b/src/MarketplaceOrdering/MarketplaceOrdering/Cmdlets/Agreements/GetAzureRmMarketplaceTerms.cs deleted file mode 100644 index 6dd35c00eb77..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/Cmdlets/Agreements/GetAzureRmMarketplaceTerms.cs +++ /dev/null @@ -1,47 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Management.Automation; -using Microsoft.Azure.Commands.MarketplaceOrdering.Common; -using Microsoft.Azure.Commands.MarketplaceOrdering.Models; -using Microsoft.Azure.Management.MarketplaceOrdering; -using Microsoft.Azure.Management.MarketplaceOrdering.Models; - -namespace Microsoft.Azure.Commands.MarketplaceOrdering.Cmdlets.Agreements -{ - [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "MarketplaceTerms", DefaultParameterSetName = Constants.ParameterSetNames.AgreementAcceptParameterSet), OutputType(typeof(PSAgreementTerms))] - public class GetAzureRmMarketplaceTerms : AzureMarketplaceOrderingCmdletBase - { - [Parameter(Mandatory = true, HelpMessage = "Publisher identifier string of image being deployed.", ParameterSetName = Constants.ParameterSetNames.AgreementAcceptParameterSet)] - [ValidateNotNullOrEmpty] - public string Publisher { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "Offer identifier string of image being deployed.", ParameterSetName = Constants.ParameterSetNames.AgreementAcceptParameterSet)] - [ValidateNotNullOrEmpty] - public string Product { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "Plan identifier string of image being deployed.", ParameterSetName = Constants.ParameterSetNames.AgreementAcceptParameterSet)] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - public override void ExecuteCmdlet() - { - if (ParameterSetName.Equals(Constants.ParameterSetNames.AgreementAcceptParameterSet)) - { - var agreementTerms = new PSAgreementTerms(MarketplaceOrderingAgreementsClient.MarketplaceAgreements.Get(Publisher, Product, Name)); - WriteObject(agreementTerms); - } - } - } -} diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/Cmdlets/Agreements/SetAzureRmMarketplaceTerms.cs b/src/MarketplaceOrdering/MarketplaceOrdering/Cmdlets/Agreements/SetAzureRmMarketplaceTerms.cs deleted file mode 100644 index 2406d2d14ce2..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/Cmdlets/Agreements/SetAzureRmMarketplaceTerms.cs +++ /dev/null @@ -1,122 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Management.Automation; -using Microsoft.Azure.Commands.MarketplaceOrdering.Common; -using Microsoft.Azure.Commands.MarketplaceOrdering.Models; -using Microsoft.Azure.Management.MarketplaceOrdering; - -namespace Microsoft.Azure.Commands.MarketplaceOrdering.Cmdlets.Agreements -{ - [Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "MarketplaceTerms", DefaultParameterSetName = Constants.ParameterSetNames.AgreementAcceptParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSAgreementTerms))] - public class SetAzureRmMarketplaceTerms : AzureMarketplaceOrderingCmdletBase - { - [Parameter(Mandatory = true, HelpMessage = "Publisher identifier string of image being deployed.", ParameterSetName = Constants.ParameterSetNames.AgreementAcceptParameterSet)] - [Parameter(Mandatory = true, HelpMessage = "Publisher identifier string of image being deployed.", ParameterSetName = Constants.ParameterSetNames.AgreementRejectParameterSet)] - [ValidateNotNullOrEmpty] - public string Publisher { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "Offer identifier string of image being deployed.", ParameterSetName = Constants.ParameterSetNames.AgreementAcceptParameterSet)] - [Parameter(Mandatory = true, HelpMessage = "Offer identifier string of image being deployed.", ParameterSetName = Constants.ParameterSetNames.AgreementRejectParameterSet)] - [ValidateNotNullOrEmpty] - public string Product { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "Plan identifier string of image being deployed.", ParameterSetName = Constants.ParameterSetNames.AgreementAcceptParameterSet)] - [Parameter(Mandatory = true, HelpMessage = "Plan identifier string of image being deployed.", ParameterSetName = Constants.ParameterSetNames.AgreementRejectParameterSet)] - [ValidateNotNullOrEmpty] - public string Name { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "Pass this to accept the legal terms.", ParameterSetName = Constants.ParameterSetNames.AgreementAcceptParameterSet)] - [Parameter(Mandatory = true, HelpMessage = "Pass this to accept the legal terms.", ParameterSetName = Constants.ParameterSetNames.InputObjectAcceptParametrSet)] - [ValidateNotNullOrEmpty] - public SwitchParameter Accept { get; set; } - - [Parameter(Mandatory = true, HelpMessage = "Pass this to reject the legal terms.", ParameterSetName = Constants.ParameterSetNames.AgreementRejectParameterSet)] - [Parameter(Mandatory = true, HelpMessage = "Pass this to reject the legal terms.", ParameterSetName = Constants.ParameterSetNames.InputObjectRejectParametrSet)] - [ValidateNotNullOrEmpty] - public SwitchParameter Reject { get; set; } - - [Parameter(Mandatory = false, HelpMessage = "Terms object returned in Get-AzMarketplaceTerms cmdlet. This is a mandatory parameter if you accept the legal terms.", ParameterSetName = Constants.ParameterSetNames.AgreementAcceptParameterSet)] - [Parameter(Mandatory = false, HelpMessage = "Terms object returned in Get-AzMarketplaceTerms cmdlet. This is a mandatory parameter if you accept the legal terms.", ParameterSetName = Constants.ParameterSetNames.AgreementRejectParameterSet)] - [ValidateNotNullOrEmpty] - public PSAgreementTerms Terms { get; set; } - - [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0, HelpMessage = "Terms object returned in Get-AzMarketplaceTerms cmdlet. This is a mandatory parameter if Accept parameter is true.", ParameterSetName = Constants.ParameterSetNames.InputObjectAcceptParametrSet)] - [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0, HelpMessage = "Terms object returned in Get-AzMarketplaceTerms cmdlet. This is a mandatory parameter if Accept parameter is true.", ParameterSetName = Constants.ParameterSetNames.InputObjectRejectParametrSet)] - [ValidateNotNullOrEmpty] - public PSAgreementTerms InputObject { get; set; } - - public override void ExecuteCmdlet() - { - if (ShouldProcess("AzureRmMarketplaceTerms", "Set Legal Terms")) - { - switch (ParameterSetName) - { - case Constants.ParameterSetNames.AgreementAcceptParameterSet: - { - if (Terms != null) - { - Terms.Accepted = true; - var agreementTerms = new PSAgreementTerms(MarketplaceOrderingAgreementsClient.MarketplaceAgreements.Create( - Publisher, Product, Name, Terms.ToAgreementTerms())); - WriteObject(agreementTerms); - } - else - {//Accept but there is no terms object - WriteWarning("Terms parameter is mandatory to accept the legal terms."); - } - } - break; - case Constants.ParameterSetNames.AgreementRejectParameterSet: - { - Terms = new PSAgreementTerms - { - Accepted = false - }; - var agreementTerms = new PSAgreementTerms(MarketplaceOrderingAgreementsClient.MarketplaceAgreements.Create( - Publisher, Product, Name, Terms.ToAgreementTerms())); - WriteObject(agreementTerms); - } - break; - case Constants.ParameterSetNames.InputObjectAcceptParametrSet: - if (InputObject != null) - { - InputObject.Accepted = true; - var agreementTerms = new PSAgreementTerms(MarketplaceOrderingAgreementsClient.MarketplaceAgreements.Create( - InputObject.Publisher, InputObject.Product, InputObject.Plan, InputObject.ToAgreementTerms())); - WriteObject(agreementTerms); - } - else - { - WriteWarning("Terms parameter is mandatory when passing it as pipeline."); - } - break; - case Constants.ParameterSetNames.InputObjectRejectParametrSet: - if (InputObject != null) - { - InputObject.Accepted = false; - var agreementTerms = new PSAgreementTerms(MarketplaceOrderingAgreementsClient.MarketplaceAgreements.Create( - InputObject.Publisher, InputObject.Product, InputObject.Plan, InputObject.ToAgreementTerms())); - WriteObject(agreementTerms); - } - else - { - WriteWarning("Terms parameter is mandatory when passing it as pipeline."); - } - break; - } - } - } - } -} diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/Common/AzureMarketplaceOrderingCmdletBase.cs b/src/MarketplaceOrdering/MarketplaceOrdering/Common/AzureMarketplaceOrderingCmdletBase.cs deleted file mode 100644 index 782cbe9062d2..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/Common/AzureMarketplaceOrderingCmdletBase.cs +++ /dev/null @@ -1,44 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using Microsoft.Azure.Commands.Common.Authentication; -using Microsoft.Azure.Commands.ResourceManager.Common; -using Microsoft.Azure.Management.MarketplaceOrdering; -using Microsoft.Azure.Commands.Common.Authentication.Abstractions; - -namespace Microsoft.Azure.Commands.MarketplaceOrdering.Common -{ - /// - /// Base class of Azure Marketplace Ordering Cmdlet. - /// - public abstract class AzureMarketplaceOrderingCmdletBase : AzureRMCmdlet - { - private IMarketplaceOrderingAgreementsClient _marketplaceOrderingAgreementsClient; - - /// - /// Gets or sets the Marketplace Ordering client. - /// - public IMarketplaceOrderingAgreementsClient MarketplaceOrderingAgreementsClient - { - get - { - return _marketplaceOrderingAgreementsClient ?? - (_marketplaceOrderingAgreementsClient = - AzureSession.Instance.ClientFactory.CreateArmClient(DefaultProfile.DefaultContext, - AzureEnvironment.Endpoint.ResourceManager)); - } - set { _marketplaceOrderingAgreementsClient = value; } - } - } -} diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/Common/Constants.cs b/src/MarketplaceOrdering/MarketplaceOrdering/Common/Constants.cs deleted file mode 100644 index 4eb00baab86c..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/Common/Constants.cs +++ /dev/null @@ -1,30 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.MarketplaceOrdering.Common -{ - public class Constants - { - public class ParameterSetNames - { - public const string AgreementAcceptParameterSet = "AgreementAcceptParameterSet"; - - public const string AgreementRejectParameterSet = "AgreementRejectParameterSet"; - - public const string InputObjectRejectParametrSet = "InputObjectRejectParameterSet"; - - public const string InputObjectAcceptParametrSet = "InputObjectAcceptParameterSet"; - } - } -} diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/MarketplaceOrdering.csproj b/src/MarketplaceOrdering/MarketplaceOrdering/MarketplaceOrdering.csproj deleted file mode 100644 index 3f2c4ba78c73..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/MarketplaceOrdering.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - MarketplaceOrdering - - - - - - $(LegacyAssemblyPrefix)$(PsModuleName) - - - - - - - - - diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/MarketplaceOrdering.format.ps1xml b/src/MarketplaceOrdering/MarketplaceOrdering/MarketplaceOrdering.format.ps1xml deleted file mode 100644 index 161f7a37d253..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/MarketplaceOrdering.format.ps1xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - Microsoft.Azure.Commands.MarketplaceOrdering.Models.PSAgreementTerms - - Microsoft.Azure.Commands.MarketplaceOrdering.Models.PSAgreementTerms - - - - - - - - Publisher - - - - Product - - - - Plan - - - - LicenseTextLink - - - - PrivacyPolicyLink - - - - Signature - - - - Accepted - - - - RetrieveDatetime - - - - - - - - diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/Models/PSAgreementTerms.cs b/src/MarketplaceOrdering/MarketplaceOrdering/Models/PSAgreementTerms.cs deleted file mode 100644 index 9edead15d5fd..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/Models/PSAgreementTerms.cs +++ /dev/null @@ -1,82 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using ApiAgreementTerms = Microsoft.Azure.Management.MarketplaceOrdering.Models.AgreementTerms; - -namespace Microsoft.Azure.Commands.MarketplaceOrdering.Models -{ - public class PSAgreementTerms - { - private string Id { get; set; } - - private string Name { get; set; } - - private string Type { get; set; } - - public string Publisher { get; private set; } - - public string Product { get; private set; } - - public string Plan { get; set; } - - public string LicenseTextLink { get; private set; } - - public string PrivacyPolicyLink { get; private set; } - - public string Signature { get; private set; } - - public bool? Accepted { get; set; } - - public DateTime? RetrieveDatetime { get; private set; } - - public PSAgreementTerms() - { - } - - public PSAgreementTerms(ApiAgreementTerms agreementTerms) - { - if (agreementTerms != null) - { - this.Id = agreementTerms.Id; - this.Type = agreementTerms.Type; - this.Name = agreementTerms.Name; - this.Accepted = agreementTerms.Accepted; - this.LicenseTextLink = agreementTerms.LicenseTextLink; - this.PrivacyPolicyLink = agreementTerms.PrivacyPolicyLink; - this.Publisher = agreementTerms.Publisher; - this.Product = agreementTerms.Product; - this.Plan = agreementTerms.Plan; - this.RetrieveDatetime = agreementTerms.RetrieveDatetime; - this.Signature = agreementTerms.Signature; - } - } - - public ApiAgreementTerms ToAgreementTerms() - { - return new ApiAgreementTerms( - this.Id, - this.Name, - this.Type, - this.Publisher, - this.Product, - this.Plan, - this.LicenseTextLink, - this.PrivacyPolicyLink, - this.RetrieveDatetime, - this.Signature, - this.Accepted); - } - } -} diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/Properties/AssemblyInfo.cs b/src/MarketplaceOrdering/MarketplaceOrdering/Properties/AssemblyInfo.cs deleted file mode 100644 index 2ed351f0d198..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Commands.MarketplaceOrdering")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Commands.MarketplaceOrdering")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("fb664582-4176-4fa8-bd73-e5b043516ba4")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.2")] -[assembly: AssemblyVersion("1.0.2")] -[assembly: AssemblyFileVersion("1.0.2")] diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/StartupScripts/sample.ps1 b/src/MarketplaceOrdering/MarketplaceOrdering/StartupScripts/sample.ps1 deleted file mode 100644 index 1a3d1052f460..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/StartupScripts/sample.ps1 +++ /dev/null @@ -1 +0,0 @@ -#Placeholder for future scripts: Please delete this file and uncomment Always within the block in the .csproj file. \ No newline at end of file diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/help/Az.MarketplaceOrdering.md b/src/MarketplaceOrdering/MarketplaceOrdering/help/Az.MarketplaceOrdering.md deleted file mode 100644 index c093fb282dc8..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/help/Az.MarketplaceOrdering.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -Module Name: Az.MarketplaceOrdering -Module Guid: 6e0e216b-1dff-4992-b943-b3a4f14679ab -Download Help Link: https://docs.microsoft.com/powershell/module/az.marketplaceordering -Help Version: 0.1.0.0 -Locale: en-US ---- - -# Az.MarketplaceOrdering Module -## Description -The topics in this section document the Azure PowerShell cmdlets for Azure MarketplaceOrdering in the Azure Resource Manager (ARM) framework. The cmdlets exist in the Microsoft.Azure.Commands.MarketplaceOrdering namespace. These cmdlets allow azure users to accept the legal terms for a marketplace offering further allowing programmatic deployment for these solutions. Users may also reject set of legal terms already accepted. - -## Az.MarketplaceOrdering Cmdlets -### [Get-AzMarketplaceTerms](Get-AzMarketplaceTerms.md) -Get the agreement terms for a given publisher id(Publisher), offer id(Product) and plan id(Name). The terms object which is returned by this command should be passed to Set-AzMarketplaceTerms to accept the legal terms. - -### [Set-AzMarketplaceTerms](Set-AzMarketplaceTerms.md) -Accept or reject terms for a given publisher id(Publisher), offer id(Product) and plan id(Name). Please use Get-AzMarketplaceTerms to get the agreement terms. - diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/help/Get-AzMarketplaceTerms.md b/src/MarketplaceOrdering/MarketplaceOrdering/help/Get-AzMarketplaceTerms.md deleted file mode 100644 index a76c5147d2a6..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/help/Get-AzMarketplaceTerms.md +++ /dev/null @@ -1,116 +0,0 @@ ---- -external help file: Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.dll-Help.xml -Module Name: Az.MarketplaceOrdering -online version: https://docs.microsoft.com/powershell/module/az.marketplaceordering/get-azmarketplaceterms -schema: 2.0.0 ---- - -# Get-AzMarketplaceTerms - -## SYNOPSIS -Get the agreement terms for a given publisher id(Publisher), offer id(Product) and plan id(Name). The terms object which is returned by this command should be passed to Set-AzMarketplaceTerms to accept the legal terms. - -## SYNTAX - -``` -Get-AzMarketplaceTerms -Publisher -Product -Name - [-DefaultProfile ] [] -``` - -## DESCRIPTION -The **Get-AzMarketplaceTerms** cmdlet returns terms for given publisher id(Publisher), offer id(Product) and plan id(Name) tuple. - -## EXAMPLES - -### Example 1 -```powershell -Get-AzMarketplaceTerms -Publisher "microsoft-ads" -Product "windows-data-science-vm" -Name "windows2016" -``` - -```output -Publisher : microsoft-ads -Product : windows-data-science-vm -Plan : windows2016 -LicenseTextLink : -PrivacyPolicyLink : -Signature : -Accepted : True -RetrieveDatetime : -``` - -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -Plan identifier string of image being deployed. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Product -Offer identifier string of image being deployed. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Publisher -Publisher identifier string of image being deployed. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### None - -## OUTPUTS - -### Microsoft.Azure.Commands.MarketplaceOrdering.Models.PSAgreementTerms - -## NOTES - -## RELATED LINKS diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/help/Set-AzMarketplaceTerms.md b/src/MarketplaceOrdering/MarketplaceOrdering/help/Set-AzMarketplaceTerms.md deleted file mode 100644 index 4de8b3ebbbc4..000000000000 --- a/src/MarketplaceOrdering/MarketplaceOrdering/help/Set-AzMarketplaceTerms.md +++ /dev/null @@ -1,222 +0,0 @@ ---- -external help file: Microsoft.Azure.PowerShell.Cmdlets.MarketplaceOrdering.dll-Help.xml -Module Name: Az.MarketplaceOrdering -online version: https://docs.microsoft.com/powershell/module/az.marketplaceordering/set-azmarketplaceterms -schema: 2.0.0 ---- - -# Set-AzMarketplaceTerms - -## SYNOPSIS -Accept or reject terms for a given publisher id(Publisher), offer id(Product) and plan id(Name). Please use Get-AzMarketplaceTerms to get the agreement terms. - -## SYNTAX - -### AgreementAcceptParameterSet (Default) -``` -Set-AzMarketplaceTerms -Publisher -Product -Name [-Accept] - [-Terms ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] -``` - -### AgreementRejectParameterSet -``` -Set-AzMarketplaceTerms -Publisher -Product -Name [-Reject] - [-Terms ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] -``` - -### InputObjectAcceptParameterSet -``` -Set-AzMarketplaceTerms [-Accept] [-InputObject] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] -``` - -### InputObjectRejectParameterSet -``` -Set-AzMarketplaceTerms [-Reject] [-InputObject] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] -``` - -## DESCRIPTION -The **Set-AzMarketplaceTerms** cmdlet saves the terms object for given publisher id(Publisher), offer id(Product) and plan id(Name) tuple. - -## EXAMPLES - -### Example 1 -```powershell -Get-AzMarketplaceTerms -Publisher "microsoft-ads" -Product "windows-data-science-vm" -Name "windows2016" | Set-AzMarketplaceTerms -Accept -``` -This command gets the marketplace publisher agreement -### Example 2 -```powershell -$agreementTerms = Get-AzMarketplaceTerms -Publisher "microsoft-ads" -Product "windows-data-science-vm" -Name "windows2016" -Set-AzMarketplaceTerms -Publisher "microsoft-ads" -Product "windows-data-science-vm" -Name "windows2016" -Terms $agreementTerms -Accept -``` -This command sets the publisher agreement to 'Accept', and it gets the value for the 'Terms' parameter from the 'Get-AzMarketplaceTerms' cmdlet -## PARAMETERS - -### -Accept -Pass this to accept the legal terms. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: AgreementAcceptParameterSet, InputObjectAcceptParameterSet -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -InputObject -Terms object returned in Get-AzMarketplaceTerms cmdlet. This is a mandatory parameter if Accepted parameter is true. - -```yaml -Type: Microsoft.Azure.Commands.MarketplaceOrdering.Models.PSAgreementTerms -Parameter Sets: InputObjectAcceptParameterSet, InputObjectRejectParameterSet -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -Plan identifier string of image being deployed. - -```yaml -Type: System.String -Parameter Sets: AgreementAcceptParameterSet, AgreementRejectParameterSet -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Product -Offer identifier string of image being deployed. - -```yaml -Type: System.String -Parameter Sets: AgreementAcceptParameterSet, AgreementRejectParameterSet -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Publisher -Publisher identifier string of image being deployed. - -```yaml -Type: System.String -Parameter Sets: AgreementAcceptParameterSet, AgreementRejectParameterSet -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Reject -Pass this to reject the legal terms. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: AgreementRejectParameterSet, InputObjectRejectParameterSet -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Terms -Terms object returned in Get-AzMarketplaceTerms cmdlet. This is a mandatory parameter if Accepted parameter is true. - -```yaml -Type: Microsoft.Azure.Commands.MarketplaceOrdering.Models.PSAgreementTerms -Parameter Sets: AgreementAcceptParameterSet, AgreementRejectParameterSet -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -### Microsoft.Azure.Commands.MarketplaceOrdering.Models.PSAgreementTerms - -## OUTPUTS - -### Microsoft.Azure.Commands.MarketplaceOrdering.Models.PSAgreementTerms - -## NOTES - -## RELATED LINKS diff --git a/src/MarketplaceOrdering/documentation/current-breaking-changes.md b/src/MarketplaceOrdering/documentation/current-breaking-changes.md deleted file mode 100644 index 0f0cb267c941..000000000000 --- a/src/MarketplaceOrdering/documentation/current-breaking-changes.md +++ /dev/null @@ -1,41 +0,0 @@ - - -## Current Breaking Changes \ No newline at end of file diff --git a/src/MarketplaceOrdering/documentation/upcoming-breaking-changes.md b/src/MarketplaceOrdering/documentation/upcoming-breaking-changes.md deleted file mode 100644 index e01c405de7a3..000000000000 --- a/src/MarketplaceOrdering/documentation/upcoming-breaking-changes.md +++ /dev/null @@ -1,28 +0,0 @@ - - -# Upcoming Breaking Changes \ No newline at end of file