Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.Marketplace to add versi…
Browse files Browse the repository at this point in the history
…on stable/2020-01-01 (#8956)

* change title

* Update swagger for new api

* response to validation comments

* adding swagger to sdk

* prettier

* update

* prettier test

* prettier fix

* adding for deletr

* delete

* title change

* adding description

* remove title

* return title

* fix read.md
  • Loading branch information
olrakovs-zz authored Apr 15, 2020
1 parent 0cd0fca commit b929095
Show file tree
Hide file tree
Showing 11 changed files with 148 additions and 97 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -223,8 +224,8 @@
}
},
"x-ms-examples": {
"GetPrivateStoreByName": {
"$ref": "./examples/GetPrivateStoreByName.json"
"GetPrivateStore": {
"$ref": "./examples/GetPrivateStore.json"
}
}
},
Expand Down Expand Up @@ -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.",
Expand Down Expand Up @@ -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"
}
}
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"PrivateStoreId": "MyFirstPrivateStore",
"PrivateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
"api-version": "2020-01-01"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -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\""
}
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"PrivateStoreId": "myPrivateStore",
"PrivateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
"api-version": "2020-01-01"
},
"responses": {
Expand All @@ -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"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
{
"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\""
}
}
},
"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"
}
]
}
Expand Down
Loading

0 comments on commit b929095

Please sign in to comment.