diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/Marketplace.json index f9ebba4b3ace..3614928252c9 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/Marketplace.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/Marketplace.json @@ -2,7 +2,8 @@ "swagger": "2.0", "info": { "version": "2020-01-01", - "title": "Marketplace RP Service" + "title": "MarketplaceManagementClient", + "description": "REST APIs for Azure Marketplace" }, "host": "management.azure.com", "schemes": [ @@ -223,8 +224,8 @@ } }, "x-ms-examples": { - "GetPrivateStoreByName": { - "$ref": "./examples/GetPrivateStoreByName.json" + "GetPrivateStore": { + "$ref": "./examples/GetPrivateStore.json" } } }, @@ -277,10 +278,7 @@ ], "responses": { "200": { - "description": "Change successful", - "schema": { - "$ref": "#/definitions/PrivateStoreProperties" - } + "description": "Change successful" }, "default": { "description": "Microsoft.Marketplace error response describing why the operation failed.", @@ -431,8 +429,12 @@ "modelAsString": true } }, - "name": { - "description": "Private Store name", + "privateStoreId": { + "description": "Private Store id", + "type": "string" + }, + "eTag": { + "description": "Identifier for purposes of race condition", "type": "string" } } @@ -455,12 +457,12 @@ "Offer": { "type": "object", "properties": { - "id": { + "uniqueOfferId": { "description": "Offers unique id", "type": "string", "readOnly": true }, - "displayName": { + "offerDisplayName": { "description": "It will be displayed prominently in the marketplace", "type": "string", "readOnly": true @@ -470,43 +472,45 @@ "type": "string", "readOnly": true }, - "summary": { - "description": "Brief purpose or function of offer", - "type": "string", - "readOnly": true - }, - "longSummary": { - "description": "Purpose or function of offer", - "type": "string", - "readOnly": true - }, - "description": { - "description": "Description of offer", - "type": "string", - "readOnly": true - }, "eTag": { "description": "Identifier for purposes of race condition", "type": "string" }, + "privateStoreId": { + "readOnly": true, + "description": "Private store unique id", + "type": "string" + }, "plans": { "type": "array", "readOnly": true, "items": { "$ref": "#/definitions/Plan" } + }, + "specificPlanIdsLimitation": { + "description": "Plan ids limitation for this offer", + "type": "array", + "items": { + "type": "string" + } } } }, "Plan": { "type": "object", "properties": { - "planId": { + "skuId": { "description": "Identifier for this plan", "type": "string", "readOnly": true }, - "displayName": { + "planId": { + "description": "Text identifier for this plan", + "type": "string", + "readOnly": true + }, + "planDisplayName": { "description": "Friendly name for the plan for display in the marketplace", "type": "string", "readOnly": true diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/DeletePrivateStore.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/DeletePrivateStore.json index 805bcb659285..8bc56777425c 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/DeletePrivateStore.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/DeletePrivateStore.json @@ -1,6 +1,6 @@ { "parameters": { - "PrivateStoreId": "MyFirstPrivateStore", + "PrivateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "api-version": "2020-01-01" }, "responses": { diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/DeletePrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/DeletePrivateStoreOffer.json index 496c33fcfe8c..8939579051a0 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/DeletePrivateStoreOffer.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/DeletePrivateStoreOffer.json @@ -1,6 +1,6 @@ { "parameters": { - "PrivateStoreId": "myPrivateStore", + "PrivateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "OfferId": "marketplacetestthirdparty.md-test-third-party-2", "api-version": "2020-01-01" }, diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStore.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStore.json new file mode 100644 index 000000000000..9a4363e7764f --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStore.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "PrivateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2020-01-01" + }, + "responses": { + "200": { + "body": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "availability": "enabled", + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350345\"" + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStoreByName.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStoreByName.json deleted file mode 100644 index b290c421fc77..000000000000 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStoreByName.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "PrivateStoreId": "MyFirstPrivateStore", - "api-version": "2020-01-01" - }, - "responses": { - "200": { - "body": { - "name": "MyFirstPrivateStore", - "availability": "enabled" - } - } - } -} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStoreOffer.json index 3e6ba84bc930..2695c6be26c3 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStoreOffer.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStoreOffer.json @@ -1,27 +1,32 @@ { "parameters": { - "PrivateStoreId": "myPrivateStore", + "PrivateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "OfferId": "marketplacetestthirdparty.md-test-third-party-2", "api-version": "2020-01-01" }, "responses": { "200": { "body": { - "id": "marketplacetestthirdparty.md-test-third-party-2", - "displayName": "md-test-third-party-2", + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-2", + "offerDisplayName": "md-test-third-party-2", "publisherDisplayName": "Marketplace Test Third Party", - "summary": "summary-md-test-third-party-2", - "longSummary": "longSummry-md-test-third-party-2", - "description": "description-longSummry-md-test-third-party-2", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "eTag": "\"9301f4fd-0000-0100-0000-5e248b350000\"", + "specificPlanIdsLimitation": [ + "0001", + "0002", + "0003" + ], "plans": [ { - "planId": "0001", - "displayName": "Text IQ Deep Concept Analysis" + "skuId": "0001", + "planId": "text-iq-deep-concept-analysis", + "planDisplayName": "Text IQ Deep Concept Analysis" }, { - "planId": "0002", - "displayName": "new-md-sku-4" + "skuId": "0002", + "planId": "new-md-sku-4", + "planDisplayName": "New Medic Solution" } ] } diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStoreOffers.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStoreOffers.json index 5b98d626239f..48d67af2d602 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStoreOffers.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStoreOffers.json @@ -1,6 +1,6 @@ { "parameters": { - "PrivateStoreId": "myPrivateStore", + "PrivateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "api-version": "2020-01-01" }, "responses": { @@ -9,40 +9,49 @@ "nextLink": "", "value": [ { - "id": "marketplacetestthirdparty.md-test-third-party-2", - "displayName": "md-test-third-party-2", + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-2", + "offerDisplayName": "md-test-third-party-2", "publisherDisplayName": "Marketplace Test Third Party", - "summary": "summary-md-test-third-party-2", - "longSummary": "longSummry-md-test-third-party-2", - "description": "description-longSummry-md-test-third-party-2", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "eTag": "\"9301f4fd-0000-0100-0000-5e248b350000\"", + "specificPlanIdsLimitation": [ + "0001", + "0002", + "0003" + ], "plans": [ { - "planId": "0001", - "displayName": "Text IQ Deep Concept Analysis" + "skuId": "0001", + "planId": "text-iq-deep-concept-analysis", + "planDisplayName": "Text IQ Deep Concept Analysis" }, { - "planId": "0002", - "displayName": "new-md-sku-4" + "skuId": "0002", + "planId": "new-md-sku-4", + "planDisplayName": "New Medic Solution" } ] }, { - "id": "marketplacetestthirdparty.md-test-third-party-3", - "displayName": "md-test-third-party-3", + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-3", + "offerDisplayName": "md-test-third-party-3", "publisherDisplayName": "Marketplace Test Third Party", - "summary": "summary-md-test-third-party-3", - "longSummary": "longSummry-md-test-third-party-3", - "description": "description-longSummry-md-test-third-party-3", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "eTag": "\"9301f4fd-0000-0100-0304-5e248b350043\"", + "specificPlanIdsLimitation": [ + "0001", + "0002" + ], "plans": [ { - "planId": "0001", - "displayName": "test-planId" + "skuId": "0001", + "planId": "test-planId", + "planDisplayName": "Test Plan Id" }, { - "planId": "0002", - "displayName": "new-md-sku-6" + "skuId": "0001", + "planId": "new-md-sku-6", + "planDisplayName": "New Medic Solution Sixth Generation" } ] } diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStores.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStores.json index e1bc5b549c34..d9f26cc0e047 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStores.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/GetPrivateStores.json @@ -8,12 +8,14 @@ "nextLink": "", "value": [ { - "name": "MyFirstPrivateStore", - "availability": "enabled" + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "availability": "enabled", + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350332\"" }, { - "name": "MySecondPrivateStore", - "availability": "disabled" + "privateStoreId": "f4528e55-98c4-4328-8e34-bb7ef7775345", + "availability": "disabled", + "eTag": "\"9301f4fd-0000-0100-0000-5e234b350345\"" } ] } diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/UpdatePrivateStore.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/UpdatePrivateStore.json index 8a17d587cd60..884633dcd1cc 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/UpdatePrivateStore.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/UpdatePrivateStore.json @@ -1,20 +1,15 @@ { "parameters": { - "PrivateStoreId": "MyFirstPrivateStore", + "PrivateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "api-version": "2020-01-01", "parameters": { "properties": { "availability": "disabled", - "name": "MyNewFirstPrivateStore" + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350345\"" } } }, "responses": { - "200": { - "body": { - "name": "MyNewFirstPrivateStore", - "availability": "disabled" - } - } + "200": {} } } diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/UpdatePrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/UpdatePrivateStoreOffer.json index 69bf299abc9e..f4f0d5285737 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/UpdatePrivateStoreOffer.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-01-01/examples/UpdatePrivateStoreOffer.json @@ -1,10 +1,14 @@ { "parameters": { - "PrivateStoreId": "myPrivateStore", + "PrivateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "OfferId": "marketplacetestthirdparty.md-test-third-party-2", "api-version": "2020-01-01", "parameters": { "properties": { + "specificPlanIdsLimitation": [ + "0001", + "0002" + ], "eTag": "\"9301f4fd-0000-0100-0000-5e248b350666\"" } } @@ -12,21 +16,25 @@ "responses": { "200": { "body": { - "id": "marketplacetestthirdparty.md-test-third-party-2", - "displayName": "md-test-third-party-2", + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-2", + "offerDisplayName": "md-test-third-party-2", "publisherDisplayName": "Marketplace Test Third Party", - "summary": "summary-md-test-third-party-2", - "longSummary": "longSummry-md-test-third-party-2", - "description": "description-longSummry-md-test-third-party-2", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", "eTag": "\"9301f4fd-0000-0100-0000-5e248b350666\"", + "specificPlanIdsLimitation": [ + "0001", + "0002" + ], "plans": [ { - "planId": "0001", - "displayName": "Text IQ Deep Concept Analysis" + "skuId": "0001", + "planId": "text-iq-deep-concept-analysis", + "planDisplayName": "Text IQ Deep Concept Analysis" }, { - "planId": "0002", - "displayName": "new-md-sku-4" + "skuId": "0002", + "planId": "new-md-sku-4", + "planDisplayName": "New Medic Solution" } ] } diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index 31470a735b7f..b6bbc15fc914 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -34,6 +34,34 @@ input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json ``` +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-net + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_marketplace'] +``` + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.Azure.Management.Marketplace + output-folder: $(csharp-sdks-folder)/marketplace/Microsoft.Azure.Management.Marketplace/src/Generated + clear-output-folder: true +``` + ## Multi-API/Profile support for AutoRest v3 generators AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. @@ -57,5 +85,4 @@ uncomment the `exclude-file` section below and add the file paths. ``` yaml $(tag) == 'all-api-versions' #exclude-file: # - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json -``` - +``` \ No newline at end of file