From 6528d5f5f49626b76068546c3b4aba16743a4e01 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Tue, 26 Jan 2021 12:33:34 +0200 Subject: [PATCH] adding all existing apis to new api version --- .../stable/2020-12-01/Marketplace.json | 699 ++++++++++++++++++ .../examples/DeletePrivateStore.json | 9 + .../examples/DeletePrivateStoreOffer.json | 10 + .../2020-12-01/examples/GetPrivateStore.json | 20 + .../examples/GetPrivateStoreOffer.json | 30 + .../examples/GetPrivateStoreOffers.json | 52 ++ .../examples/GetPrivateStorePrivateOffer.json | 31 + .../GetPrivateStorePrivateOffers.json | 53 ++ .../2020-12-01/examples/GetPrivateStores.json | 48 ++ .../examples/PostPrivateStoreOffer.json | 11 + .../examples/UpdatePrivateStore.json | 17 + .../examples/UpdatePrivateStoreOffer.json | 40 + .../UpdatePrivateStorePrivateOffer.json | 41 + 13 files changed, 1061 insertions(+) create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/DeletePrivateStore.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/DeletePrivateStoreOffer.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStore.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStoreOffer.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStoreOffers.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStorePrivateOffer.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStorePrivateOffers.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStores.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/PostPrivateStoreOffer.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStore.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStoreOffer.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStorePrivateOffer.json diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/Marketplace.json index 511e7f2102e3..3e93082b39a1 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/Marketplace.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/Marketplace.json @@ -334,6 +334,465 @@ } } } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/offers": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreOffers_List", + "description": "Get a list of all private offers in the given private store", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OfferListResponse" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GetPrivateStoreOffers": { + "$ref": "./examples/GetPrivateStoreOffers.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/offers": { + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStorePrivateOffers_List", + "description": "Get a list of all private offers in the given private store", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OfferListResponse" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GetPrivateStoreOffers": { + "$ref": "./examples/GetPrivateStorePrivateOffers.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/offers/{offerId}": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/OfferIdPathParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "delete": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreOffer_Delete", + "description": "Deletes an offer from the given private store.", + "responses": { + "200": { + "description": "Offer was deleted successfully" + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeletePrivateStoreOffer": { + "$ref": "./examples/DeletePrivateStoreOffer.json" + } + } + }, + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreOffer_Get", + "description": "Gets information about a specific offer.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "Offer information retrieved", + "schema": { + "$ref": "#/definitions/Offer" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetPrivateStoreOffer": { + "$ref": "./examples/GetPrivateStoreOffer.json" + } + } + }, + "put": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreOffer_CreateOrUpdate", + "description": "Update or add an offer to the default collection of the private store.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/Offer" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Offer" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "UpdatePrivateStoreOffer": { + "$ref": "./examples/UpdatePrivateStoreOffer.json" + } + } + }, + "post": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreOffer_Post", + "description": "Delete Private store offer. This is a workaround.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/PrivateStoreOperation" + } + } + ], + "responses": { + "200": { + "description": "Operation succeeded" + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PostPrivateStoreOffer": { + "$ref": "./examples/PostPrivateStoreOffer.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/offers/{offerId}": { + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/OfferIdPathParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStorePrivateOffer_Get", + "description": "Gets information about a specific private offer.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "Private offer information retrieved", + "schema": { + "$ref": "#/definitions/Offer" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetPrivateStoreOffer": { + "$ref": "./examples/GetPrivateStorePrivateOffer.json" + } + } + }, + "put": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStorePrivateOffer_CreateOrUpdate", + "description": "Update or add a private offer to the default collection of the private store.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/Offer" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Offer" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "UpdatePrivateStoreOffer": { + "$ref": "./examples/UpdatePrivateStorePrivateOffer.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores": { + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/UseCacheParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_List", + "description": "Gets the list of available private stores", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/PrivateStoreList" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GetPrivateStores": { + "$ref": "./examples/GetPrivateStores.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_Get", + "description": "Get information about the private store", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/PrivateStore" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetPrivateStore": { + "$ref": "./examples/GetPrivateStore.json" + } + } + }, + "delete": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_Delete", + "description": "Deletes the private store. All that is not saved will be lost.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "Private store was deleted successfully ." + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeletePrivateStores": { + "$ref": "./examples/DeletePrivateStore.json" + } + } + }, + "put": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_CreateOrUpdate", + "description": "Changes private store properties", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/PrivateStore" + } + } + ], + "responses": { + "200": { + "description": "Change successful" + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "UpdatePrivateStores": { + "$ref": "./examples/UpdatePrivateStore.json" + } + } + } } }, "parameters": { @@ -889,6 +1348,246 @@ } } }, + "PrivateStoreList": { + "description": "Describes the json payload for the list of available private stores (between zero and one, inclusive)", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateStore" + } + }, + "nextLink": { + "description": "URL to get the next set of PrivateStore list results if there are any.", + "type": "string" + } + } + }, + "PrivateStoreOperation": { + "description": "Set the Operation for the POST method. Ping or Delete", + "type": "string", + "enum": [ + "DeletePrivateStoreOffer", + "Ping" + ], + "x-ms-enum": { + "name": "Operation", + "modelAsString": true + } + }, + "PrivateStore": { + "description": "The PrivateStore data structure.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PrivateStoreProperties", + "description": "The PrivateStore data structure.", + "x-ms-client-flatten": true + } + } + }, + "PrivateStoreProperties": { + "description": "Describes the json payload on whether or not the private store is enabled for a given tenant", + "type": "object", + "properties": { + "availability": { + "description": "Indicates private store availability", + "type": "string", + "enum": [ + "enabled", + "disabled" + ], + "x-ms-enum": { + "name": "Availability", + "modelAsString": true + } + }, + "privateStoreId": { + "description": "Private Store id", + "type": "string" + }, + "eTag": { + "description": "Identifier for purposes of race condition", + "type": "string" + }, + "privateStoreName": { + "description": "Private Store Name", + "type": "string" + }, + "tenantTag": { + "description": "Tenant Tag", + "type": "string" + }, + "tenantIds": { + "description": "Tenant ids", + "type": "array", + "items": { + "type": "string" + } + }, + "customerTag": { + "description": "Customer tag", + "type": "string" + }, + "hasCommercialAssociation": { + "description": "Indicating whether private store has association with Commercial's Billing Account (through billing account's customer tag retrieved from GSM for a subscription", + "type": "boolean" + }, + "hasMultiTenantAssociation": { + "description": "Indicating whether private store has association with multiple tenants (through tenant's tag retrieved from AAD", + "type": "boolean" + }, + "isGov": { + "description": "Is government", + "type": "boolean" + } + } + }, + "OfferListResponse": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Offer" + } + }, + "nextLink": { + "description": "URL to get the next set of offer list results if there are any.", + "type": "string" + } + } + }, + "Offer": { + "description": "The privateStore offer data structure.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/OfferProperties", + "description": "The privateStore offer data structure.", + "x-ms-client-flatten": true + } + } + }, + "OfferProperties": { + "type": "object", + "properties": { + "uniqueOfferId": { + "description": "Offers unique id", + "type": "string", + "readOnly": true + }, + "offerDisplayName": { + "description": "It will be displayed prominently in the marketplace", + "type": "string", + "readOnly": true + }, + "publisherDisplayName": { + "description": "Publisher name that will be displayed prominently in the marketplace", + "type": "string", + "readOnly": true + }, + "eTag": { + "description": "Identifier for purposes of race condition", + "type": "string" + }, + "privateStoreId": { + "readOnly": true, + "description": "Private store unique id", + "type": "string" + }, + "createdAt": { + "readOnly": true, + "description": "Private store offer creation date", + "type": "string" + }, + "modifiedAt": { + "readOnly": true, + "description": "Private store offer modification date", + "type": "string" + }, + "specificPlanIdsLimitation": { + "description": "Plan ids limitation for this offer", + "type": "array", + "items": { + "type": "string" + } + }, + "updateSuppressedDueIdempotence": { + "description": "Indicating whether the offer was not updated to db (true = not updated). If the allow list is identical to the existed one in db, the offer would not be updated.", + "type": "boolean" + }, + "iconFileUris": { + "description": "Icon File Uris", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "plans": { + "description": "Offer plans", + "type": "array", + "items": { + "$ref": "#/definitions/Plan" + } + } + } + }, + "Plan": { + "type": "object", + "properties": { + "skuId": { + "description": "Identifier for this plan", + "type": "string", + "readOnly": true + }, + "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 + }, + "accessibility": { + "description": "Plan accessibility", + "type": "string", + "enum": [ + "Unknown", + "Public", + "PrivateTenantOnLevel", + "PrivateSubscriptionOnLevel" + ], + "x-ms-enum": { + "name": "accessibility", + "modelAsString": true + } + }, + "altStackReference": { + "description": "Alternative stack type", + "type": "string", + "readOnly": true + }, + "stackType": { + "description": "Stack type (classic or arm)", + "type": "string", + "readOnly": true + } + } + }, "Operation": { "description": "Microsoft.Marketplace REST API operation", "type": "object", diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/DeletePrivateStore.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/DeletePrivateStore.json new file mode 100644 index 000000000000..41971972c647 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/DeletePrivateStore.json @@ -0,0 +1,9 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2020-12-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/DeletePrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/DeletePrivateStoreOffer.json new file mode 100644 index 000000000000..48c8458448d7 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/DeletePrivateStoreOffer.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2020-12-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStore.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStore.json new file mode 100644 index 000000000000..4e36956bd358 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStore.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2020-12-01" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "type": "Microsoft.Marketplace/privateStores", + "name": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "properties": { + "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-12-01/examples/GetPrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStoreOffer.json new file mode 100644 index 000000000000..9ebd96108bc6 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStoreOffer.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2020-12-01" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/offers/marketplacetestthirdparty.md-test-third-party-2", + "type": "Microsoft.Marketplace/privateStores/offers", + "name": "marketplacetestthirdparty.md-test-third-party-2", + "properties": { + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-2", + "offerDisplayName": "md-test-third-party-2", + "publisherDisplayName": "Marketplace Test Third Party", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350000\"", + "specificPlanIdsLimitation": [ + "0001", + "0002", + "0003" + ], + "modifiedAt": "05/29/2015 5:50", + "createdAt": "05/28/2015 5:50" + } + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStoreOffers.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStoreOffers.json new file mode 100644 index 000000000000..310f30cca770 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStoreOffers.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2020-12-01" + }, + "responses": { + "200": { + "body": { + "nextLink": "", + "value": [ + { + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/offers/marketplacetestthirdparty.md-test-third-party-2", + "type": "Microsoft.Marketplace/privateStores/offers", + "name": "marketplacetestthirdparty.md-test-third-party-2", + "properties": { + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-2", + "offerDisplayName": "md-test-third-party-2", + "publisherDisplayName": "Marketplace Test Third Party", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350000\"", + "specificPlanIdsLimitation": [ + "0001", + "0002", + "0003" + ], + "modifiedAt": "05/29/2015 5:50", + "createdAt": "05/28/2015 5:50" + } + }, + { + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/offers/marketplacetestthirdparty.md-test-third-party-3", + "type": "Microsoft.Marketplace/privateStores/offers", + "name": "marketplacetestthirdparty.md-test-third-party-2", + "properties": { + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-3", + "offerDisplayName": "md-test-third-party-3", + "publisherDisplayName": "Marketplace Test Third Party", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "eTag": "\"9301f4fd-0000-0100-0304-5e248b350043\"", + "specificPlanIdsLimitation": [ + "0001", + "0002" + ], + "modifiedAt": "05/29/2015 5:50", + "createdAt": "05/28/2015 5:50" + } + } + ] + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStorePrivateOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStorePrivateOffer.json new file mode 100644 index 000000000000..61ad20223af8 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStorePrivateOffer.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "bc17bb69-1264-4f90-a9f6-0e51e29d5281", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "offerId": "marketplacetestthirdparty.md-test-third-party-pr-2", + "api-version": "2020-12-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/bc17bb69-1264-4f90-a9f6-0e51e29d5281/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/offers/marketplacetestthirdparty.md-test-third-party-pr-2", + "type": "Microsoft.Marketplace/privateStores/offers", + "name": "marketplacetestthirdparty.md-test-third-party-pr-2", + "properties": { + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-pr-2", + "offerDisplayName": "md-test-third-party-pr-2", + "publisherDisplayName": "Marketplace Test Third Party", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350000\"", + "specificPlanIdsLimitation": [ + "0001", + "0002", + "0003" + ], + "modifiedAt": "05/29/2015 5:50", + "createdAt": "05/28/2015 5:50" + } + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStorePrivateOffers.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStorePrivateOffers.json new file mode 100644 index 000000000000..ac86cf9add16 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStorePrivateOffers.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "bc17bb69-1264-4f90-a9f6-0e51e29d5281", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2020-12-01" + }, + "responses": { + "200": { + "body": { + "nextLink": "", + "value": [ + { + "id": "/subscriptions/bc17bb69-1264-4f90-a9f6-0e51e29d5281/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/offers/marketplacetestthirdparty.md-test-third-party-pr-2", + "type": "Microsoft.Marketplace/privateStores/offers", + "name": "marketplacetestthirdparty.md-test-third-party-pr-2", + "properties": { + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-pr-2", + "offerDisplayName": "md-test-third-party-pr-2", + "publisherDisplayName": "Marketplace Test Third Party", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350000\"", + "specificPlanIdsLimitation": [ + "0001", + "0002", + "0003" + ], + "modifiedAt": "05/29/2015 5:50", + "createdAt": "05/28/2015 5:50" + } + }, + { + "id": "/subscriptions/bc17bb69-1264-4f90-a9f6-0e51e29d5281/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/offers/marketplacetestthirdparty.md-test-third-party-pr-3", + "type": "Microsoft.Marketplace/privateStores/offers", + "name": "marketplacetestthirdparty.md-test-third-party-pr-3", + "properties": { + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-pr-3", + "offerDisplayName": "md-test-third-party-pr-3", + "publisherDisplayName": "Marketplace Test Third Party", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "eTag": "\"9301f4fd-0000-0100-0304-5e248b350043\"", + "specificPlanIdsLimitation": [ + "0001", + "0002" + ], + "modifiedAt": "05/29/2015 5:50", + "createdAt": "05/28/2015 5:50" + } + } + ] + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStores.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStores.json new file mode 100644 index 000000000000..8ca78ab0ff13 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/GetPrivateStores.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2020-12-01" + }, + "responses": { + "200": { + "body": { + "nextLink": "", + "value": [ + { + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "type": "Microsoft.Marketplace/privateStores", + "name": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "properties": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "availability": "enabled", + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350332\"", + "tenantIds": [], + "tenantTag": "a02807d4-c5de-4593-b3c1-c46d4a3a56c7", + "customerTag": "", + "hasCommercialAssociation": false, + "hasMultiTenantAssociation": true, + "isGov": false + } + }, + { + "id": "/providers/Microsoft.Marketplace/privateStores/f4528e55-98c4-4328-8e34-bb7ef7775345", + "type": "Microsoft.Marketplace/privateStores", + "name": "f4528e55-98c4-4328-8e34-bb7ef7775345", + "properties": { + "privateStoreId": "f4528e55-98c4-4328-8e34-bb7ef7775345", + "availability": "disabled", + "eTag": "\"9301f4fd-0000-0100-0000-5e234b350345\"", + "tenantIds": [ + "f686d426-123a-42db-81b7-ab578e110ccd" + ], + "tenantTag": "", + "customerTag": "ABC", + "hasCommercialAssociation": true, + "hasMultiTenantAssociation": false, + "isGov": false + } + } + ] + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/PostPrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/PostPrivateStoreOffer.json new file mode 100644 index 000000000000..27037e59c32b --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/PostPrivateStoreOffer.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2020-12-01", + "Operation": "DeletePrivateStoreOffer" + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStore.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStore.json new file mode 100644 index 000000000000..79cb67921e61 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStore.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2020-12-01", + "PrivateStore": { + "parameters": { + "properties": { + "availability": "disabled", + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350345\"" + } + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStoreOffer.json new file mode 100644 index 000000000000..ba4afb4f4be8 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStoreOffer.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2020-12-01", + "Offer": { + "parameters": { + "properties": { + "specificPlanIdsLimitation": [ + "0001", + "0002" + ], + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350666\"" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/offers/marketplacetestthirdparty.md-test-third-party-2", + "type": "Microsoft.Marketplace/privateStores/offers", + "name": "marketplacetestthirdparty.md-test-third-party-2", + "properties": { + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-2", + "offerDisplayName": "md-test-third-party-2", + "publisherDisplayName": "Marketplace Test Third Party", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350666\"", + "specificPlanIdsLimitation": [ + "0001", + "0002" + ], + "modifiedAt": "05/29/2015 5:50", + "createdAt": "05/28/2015 5:50" + } + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStorePrivateOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStorePrivateOffer.json new file mode 100644 index 000000000000..9771d957b7e0 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2020-12-01/examples/UpdatePrivateStorePrivateOffer.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "bc17bb69-1264-4f90-a9f6-0e51e29d5281", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "offerId": "marketplacetestthirdparty.md-test-third-party-pr-2", + "api-version": "2020-12-01", + "Offer": { + "parameters": { + "properties": { + "specificPlanIdsLimitation": [ + "0001", + "0002" + ], + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350666\"" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/bc17bb69-1264-4f90-a9f6-0e51e29d5281/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/offers/marketplacetestthirdparty.md-test-third-party-pr-2", + "type": "Microsoft.Marketplace/privateStores/offers", + "name": "marketplacetestthirdparty.md-test-third-party-pr-2", + "properties": { + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-pr-2", + "offerDisplayName": "md-test-third-party-pr-2", + "publisherDisplayName": "Marketplace Test Third Party", + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350666\"", + "specificPlanIdsLimitation": [ + "0001", + "0002" + ], + "modifiedAt": "05/29/2015 5:50", + "createdAt": "05/28/2015 5:50" + } + } + } + } +}