From 98dded27ec5629631790fbe516777024cb216559 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Wed, 14 Apr 2021 14:07:33 +0300 Subject: [PATCH 01/22] New version apis documentation --- .../stable/2021-06-01/Marketplace.json | 1958 +++++++++++++++++ .../examples/AcknowledgeNotification.json | 21 + .../examples/AdminRequestApprovalsList.json | 65 + .../examples/CreateApprovalRequest.json | 70 + .../CreatePrivateStoreCollection.json | 44 + .../examples/DeletePrivateStore.json | 9 + .../DeletePrivateStoreCollection.json | 10 + .../examples/DeletePrivateStoreOffer.json | 11 + .../examples/GetAdminRequestApproval.json | 63 + .../examples/GetApprovalRequestsList.json | 53 + .../2021-06-01/examples/GetPrivateStore.json | 30 + .../examples/GetPrivateStoreCollection.json | 31 + .../GetPrivateStoreCollectionsList.json | 57 + .../examples/GetPrivateStoreOffer.json | 31 + .../examples/GetPrivateStoreOffers.json | 53 + .../2021-06-01/examples/GetPrivateStores.json | 34 + .../examples/GetRequestApproval.json | 49 + .../examples/NotificationsState.json | 69 + .../examples/PostPrivateStoreOffer.json | 12 + .../examples/PrivateStoreOffer_update.json | 39 + .../examples/PrivateStores_update.json | 15 + .../examples/QueryRequestApproval.json | 52 + .../examples/UpdateAdminRequestApproval.json | 54 + .../2021-06-01/examples/WithdrawPlan.json | 16 + .../readme.azureresourceschema.md | 12 + .../marketplace/resource-manager/readme.md | 12 + 26 files changed, 2870 insertions(+) create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/AcknowledgeNotification.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/AdminRequestApprovalsList.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CreateApprovalRequest.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CreatePrivateStoreCollection.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStore.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreCollection.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreOffer.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetAdminRequestApproval.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetApprovalRequestsList.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStore.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreCollection.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreCollectionsList.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreOffer.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreOffers.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStores.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetRequestApproval.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/NotificationsState.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreOffer.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PrivateStoreOffer_update.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PrivateStores_update.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/QueryRequestApproval.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/UpdateAdminRequestApproval.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/WithdrawPlan.json diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json new file mode 100644 index 000000000000..6f3a8d0727d1 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json @@ -0,0 +1,1958 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-04-01", + "title": "MarketplaceManagementClient", + "description": "REST APIs for Private Marketplace" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/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.", + "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", + "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" + } + } + }, + "put": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_CreateOrUpdate", + "description": "Changes private store properties", + "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": { + "PrivateStores_update": { + "$ref": "./examples/PrivateStores_update.json" + } + } + }, + "delete": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_Delete", + "description": "Deletes the private store. All that is not saved will be lost.", + "responses": { + "200": { + "description": "Private store was deleted successfully." + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeletePrivateStores": { + "$ref": "./examples/DeletePrivateStore.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreCollection_List", + "description": "Gets private store collections list", + "responses": { + "200": { + "description": "Collections list information retrieved", + "schema": { + "$ref": "#/definitions/CollectionsList" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetPrivateStoreOffer": { + "$ref": "./examples/GetPrivateStoreCollectionsList.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/CollectionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreCollection_Get", + "description": "Gets private store collection", + "responses": { + "200": { + "description": "Collection information retrieved", + "schema": { + "$ref": "#/definitions/Collection" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetPrivateStoreOffer": { + "$ref": "./examples/GetPrivateStoreCollection.json" + } + } + }, + "put": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreCollection_CreateOrUpdate", + "description": "Create or update private store collection", + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/Collection" + } + } + ], + "responses": { + "200": { + "description": "Create or update collection properties", + "schema": { + "$ref": "#/definitions/Collection" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetPrivateStoreOffer": { + "$ref": "./examples/CreatePrivateStoreCollection.json" + } + } + }, + "delete": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreCollection_Delete", + "description": "Delete a collection from the given private store.", + "responses": { + "200": { + "description": "Collection was deleted successfully" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeletePrivateStoreOffer": { + "$ref": "./examples/DeletePrivateStoreCollection.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/CollectionIdParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreOffer_List", + "description": "Get a list of all private offers in the given private store and collection", + "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" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/OfferIdPathParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/CollectionIdParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreOffer_Get", + "description": "Gets information about a specific offer.", + "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 a specific collection of the private store.", + "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": { + "PrivateStoreOffer_update": { + "$ref": "./examples/PrivateStoreOffer_update.json" + } + } + }, + "delete": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreOffer_Delete", + "description": "Deletes an offer from the given collection of private store.", + "responses": { + "200": { + "description": "Offer was deleted successfully" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeletePrivateStoreOffer": { + "$ref": "./examples/DeletePrivateStoreOffer.json" + } + } + }, + "post": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreOffer_Post", + "description": "Delete Private store offer. This is a workaround.", + "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" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/requestApprovals": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_GetApprovalRequestsList", + "description": "Get all open approval requests of current user", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RequestApprovalsList" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetApprovalRequestsList": { + "$ref": "./examples/GetApprovalRequestsList.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/requestApprovals/{requestApprovalId}": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/RequestApprovalIdPathParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_GetRequestApproval", + "description": "Get open request approval details", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RequestApprovalResource" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetApprovalRequest": { + "$ref": "./examples/GetRequestApproval.json" + } + } + }, + "put": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_CreateApprovalRequest", + "description": "Create approval request", + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/RequestApprovalResource" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RequestApprovalResource" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreateApprovalRequest": { + "$ref": "./examples/CreateApprovalRequest.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/requestApprovals/{requestApprovalId}/query": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/RequestApprovalIdPathParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "post": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_QueryRequestApproval", + "description": "Get request statuses foreach plan, this api is used as a complex GET action.", + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/QueryRequestApprovalProperties" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/QueryRequestApproval" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "QueryRequestApproval": { + "$ref": "./examples/QueryRequestApproval.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/adminRequestApprovals": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_AdminRequestApprovalsList", + "description": "Get list of admin request approvals", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AdminRequestApprovalsList" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AdminRequestApprovalsList": { + "$ref": "./examples/AdminRequestApprovalsList.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/adminRequestApprovals/{adminRequestApprovalId}": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/AdminRequestApprovalIdPathParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "get": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_GetAdminRequestApproval", + "description": "Get open approval requests", + "parameters": [ + { + "$ref": "#/parameters/PublisherIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AdminRequestApprovalsResource" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetAdminRequestApproval": { + "$ref": "./examples/GetAdminRequestApproval.json" + } + } + }, + "put": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_UpdateAdminRequestApproval", + "description": "Update the admin action, weather the request is approved or rejected and the approved plans", + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/AdminRequestApprovalsResource" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AdminRequestApprovalsResource" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "UpdateAdminRequestApproval": { + "$ref": "./examples/UpdateAdminRequestApproval.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/queryNotificationsState": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "post": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_QueryNotificationsState", + "description": "Get private store notifications state", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PrivateStoreNotificationsState" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "NotificationsState": { + "$ref": "./examples/NotificationsState.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/offers/{offerId}/acknowledgeNotification": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/OfferIdPathParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "post": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_AcknowledgeOfferNotification", + "description": "Acknowledge notification for offer", + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/AcknowledgeOfferNotificationProperties" + } + } + ], + "responses": { + "200": { + "description": "OK, notification was acknowledged by the RP" + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AcknowledgeNotification": { + "$ref": "./examples/AcknowledgeNotification.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/requestApprovals/{requestApprovalId}/withdrawPlan": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/RequestApprovalIdPathParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "post": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_WithdrawPlan", + "description": "Withdraw a user request approval on specific plan", + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/WithdrawProperties" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "WithdrawPlan": { + "$ref": "./examples/WithdrawPlan.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available Microsoft.Marketplace REST API operations.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "parameters": { + "PrivateStoreIdParameter": { + "name": "privateStoreId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The store ID - must use the tenant ID" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the request." + }, + "CollectionIdParameter": { + "name": "collectionId", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The collection ID" + }, + "OfferIdPathParameter": { + "in": "path", + "name": "offerId", + "type": "string", + "x-ms-parameter-location": "method", + "required": true, + "description": "The offer ID to update or delete" + }, + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "type": "string", + "x-ms-parameter-location": "method", + "required": true, + "description": "Subscription id of the private offers" + }, + "UseCacheParameter": { + "name": "use-cache", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Determines if to use cache or DB for serving this request" + }, + "AdminRequestApprovalIdPathParameter": { + "in": "path", + "name": "adminRequestApprovalId", + "type": "string", + "x-ms-parameter-location": "method", + "required": true, + "description": "The admin request approval ID to get create or update" + }, + "RequestApprovalIdPathParameter": { + "in": "path", + "name": "requestApprovalId", + "type": "string", + "x-ms-parameter-location": "method", + "required": true, + "description": "The request approval ID to get create or update" + }, + "PublisherIdParameter": { + "name": "publisherId", + "in": "query", + "required": true, + "x-ms-parameter-location": "method", + "type": "string", + "description": "The publisher id of this offer." + } + }, + "definitions": { + "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" + } + } + }, + "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", + "readOnly": true + }, + "eTag": { + "description": "Identifier for purposes of race condition", + "type": "string" + }, + "privateStoreName": { + "description": "Private Store Name", + "type": "string" + }, + "tenantId": { + "description": "Tenant id", + "type": "string" + }, + "isGov": { + "description": "Is government", + "type": "boolean" + }, + "collectionIds": { + "description": "Gets or sets list of associated collection ids", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "branding": { + "description": "Gets or sets list of branding characteristics", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "CollectionsList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Collection" + } + }, + "nextLink": { + "description": "URL to get the next set of offer list results if there are any.", + "type": "string" + } + } + }, + "Collection": { + "description": "The Collection data structure.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/CollectionProperties", + "description": "The collection data structure.", + "x-ms-client-flatten": true + } + } + }, + "CollectionProperties": { + "description": "The collection details", + "type": "object", + "properties": { + "collectionId": { + "description": "Gets or sets collection Id.", + "type": "string", + "readOnly": true + }, + "collectionName": { + "description": "Gets or sets collection name.", + "type": "string" + }, + "claim": { + "description": "Gets or sets the association with Commercial's Billing Account.", + "type": "string" + }, + "allSubscriptions": { + "description": "Indicating whether all subscriptions are selected (=true) or not (=false).", + "type": "boolean" + }, + "subscriptionsList": { + "description": "Gets or sets subscription ids list. Empty list indicates all subscriptions are selected, null indicates no update is done, explicit list indicates the explicit selected subscriptions. On insert, null is considered as bad request", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "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 + } + } + }, + "AdminRequestApprovalsList": { + "description": "List of admin request approval resources", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AdminRequestApprovalsResource" + } + }, + "nextLink": { + "description": "URL to get the next set of notifications list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "AdminRequestApprovalsResource": { + "description": "Admin request approval resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AdminRequestApprovalProperties", + "description": "The privateStore admin Approval request data structure.", + "x-ms-client-flatten": true + } + } + }, + "AdminRequestApprovalProperties": { + "description": "Admin approval request resource properties", + "type": "object", + "properties": { + "offerId": { + "description": "Gets or sets offer Id", + "type": "string" + }, + "displayName": { + "description": "Gets display name", + "type": "string", + "readOnly": true + }, + "publisherId": { + "description": "Gets or sets publisher Id", + "type": "string" + }, + "adminAction": { + "description": "Gets or sets admin action", + "type": "string", + "enum": [ + "Approved", + "Rejected" + ], + "x-ms-enum": { + "name": "adminAction", + "modelAsString": true + } + }, + "approvedPlans": { + "description": "Gets or sets Approved plans ids, empty in case of rejected", + "type": "array", + "items": { + "type": "string" + } + }, + "comment": { + "description": "Gets or sets admin comment", + "type": "string" + }, + "administrator": { + "description": "Gets or sets admin details", + "type": "string" + }, + "plans": { + "description": "Gets list of plans with requesters details", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/PlanRequesterDetails" + } + }, + "collectionIds": { + "description": "Gets or sets list of associated collection ids", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "PlanRequesterDetails": { + "description": "Plan with requesters details", + "properties": { + "planId": { + "description": "Gets the plan id", + "type": "string", + "readOnly": true + }, + "planDisplayName": { + "description": "Gets the plan display name", + "type": "string", + "readOnly": true + }, + "requesters": { + "description": "Gets requesters details list", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/UserRequestDetails" + } + } + } + }, + "UserRequestDetails": { + "description": "user request details", + "type": "object", + "properties": { + "user": { + "description": "Gets user id", + "type": "string", + "readOnly": true + }, + "date": { + "description": "Gets request date", + "type": "string", + "readOnly": true + }, + "justification": { + "description": "Gets justification", + "type": "string", + "readOnly": true + }, + "subscriptionId": { + "description": "Gets the subscription id that the user is requesting to add the plan to", + "type": "string" + }, + "subscriptionName": { + "description": "Gets the subscription name that the user is requesting to add the plan to", + "type": "string" + } + } + }, + "RequestApprovalsList": { + "description": "List of admin request approval resources", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RequestApprovalResource" + } + }, + "nextLink": { + "description": "URL to get the next set of notifications list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "RequestApprovalResource": { + "description": "Request approval resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/RequestApprovalProperties", + "description": "The privateStore approval request data structure.", + "x-ms-client-flatten": true + } + } + }, + "RequestApprovalProperties": { + "description": "Approval request resource properties", + "type": "object", + "properties": { + "offerId": { + "description": "Gets or sets unique offer id.", + "type": "string" + }, + "offerDisplayName": { + "description": "Gets offer display name", + "type": "string", + "readOnly": true + }, + "publisherId": { + "description": "The offer's publisher id", + "type": "string" + }, + "plansDetails": { + "description": "Gets or sets the plans details", + "type": "array", + "items": { + "$ref": "#/definitions/planDetails" + } + }, + "isClosed": { + "description": "Gets a value indicating whether the request is closed", + "type": "boolean", + "readOnly": true + }, + "messageCode": { + "description": "Gets or sets the request approval message code", + "type": "integer", + "format": "int64" + } + } + }, + "planDetails": { + "description": "Return plan with request details", + "type": "object", + "properties": { + "planId": { + "description": "Gets or sets Plan Id ", + "type": "string" + }, + "status": { + "description": "Gets the plan status", + "type": "string", + "readOnly": true, + "enum": [ + "Pending", + "Rejected", + "Approved", + "None" + ], + "x-ms-enum": { + "name": "status", + "modelAsString": true + } + }, + "requestDate": { + "description": "Gets request date", + "format": "date-time", + "readOnly": true + }, + "justification": { + "description": "Gets or sets user's justification for the plan's request", + "type": "string" + }, + "subscriptionId": { + "description": "Gets or sets the subscription id that the user is requesting to add the plan to", + "type": "string" + }, + "subscriptionName": { + "description": "Gets or sets the subscription name that the user is requesting to add the plan to", + "type": "string" + } + } + }, + "QueryRequestApproval": { + "description": "Gets the request plans with indication on each plan whether is approved by the admin, has pending request or not requested yet", + "type": "object", + "properties": { + "uniqueOfferId": { + "description": "Gets or sets unique offer id.", + "type": "string" + }, + "plansDetails": { + "description": "Gets or sets the plans details", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/planDetails" + } + }, + "etag": { + "description": "Gets or sets e-tag field ", + "type": "string" + }, + "messageCode": { + "description": "Gets or sets the notification message id", + "type": "integer", + "format": "int64" + } + } + }, + "QueryRequestApprovalProperties": { + "description": "The details to get the request plans statuses", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/RequestDetails", + "description": "The details to get the request plans statuses" + } + } + }, + "RequestDetails": { + "description": "Request details needed to get the plans statuses", + "type": "object", + "properties": { + "publisherId": { + "description": "The offer's publisher id", + "type": "string" + }, + "planIds": { + "description": "Current plans list", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "PrivateStoreNotificationsState": { + "description": "Get private store notifications state", + "type": "object", + "properties": { + "stopSellNotifications": { + "type": "array", + "items": { + "$ref": "#/definitions/StopSellNotifications" + } + }, + "newNotifications": { + "type": "array", + "items": { + "$ref": "#/definitions/NewNotifications" + } + }, + "approvalRequests": { + "type": "array", + "items": { + "$ref": "#/definitions/RequestApprovalsDetails" + } + } + } + }, + "NewNotifications": { + "description": "New plans notification details", + "type": "object", + "properties": { + "offerId": { + "description": "Gets offer id", + "type": "string" + }, + "displayName": { + "description": "Gets offer display name", + "type": "string" + }, + "isFuturePlansEnabled": { + "description": "Gets a value indicating whether future plans is enabled.", + "type": "boolean" + }, + "messageCode": { + "description": "Gets or sets the notification message id", + "type": "integer", + "format": "int64" + }, + "icon": { + "description": "Gets or sets the icon url", + "type": "string" + }, + "plans": { + "description": "Gets or sets removed plans notifications", + "type": "array", + "items": { + "$ref": "#/definitions/PlanNotificationDetails" + } + } + } + }, + "StopSellNotifications": { + "description": "Stop sell notification details", + "type": "object", + "properties": { + "offerId": { + "description": "Gets offer id", + "type": "string" + }, + "displayName": { + "description": "Gets offer display name", + "type": "string" + }, + "isEntire": { + "description": "Gets a value indicating whether entire offer is in stop sell or only few of its plans", + "type": "boolean" + }, + "messageCode": { + "description": "Gets or sets the notification message id", + "type": "integer", + "format": "int64" + }, + "icon": { + "description": "Gets or sets the icon url", + "type": "string" + }, + "plans": { + "description": "Gets or sets removed plans notifications", + "type": "array", + "items": { + "$ref": "#/definitions/PlanNotificationDetails" + } + } + } + }, + "PlanNotificationDetails": { + "description": "Plan notification details", + "type": "object", + "properties": { + "planId": { + "description": "Gets or sets the plan id", + "type": "string" + }, + "planDisplayName": { + "description": "Gets or sets the plan display name", + "type": "string" + } + } + }, + "RequestApprovalsDetails": { + "description": "Request approvals details", + "type": "object", + "properties": { + "offerId": { + "description": "Gets offer id", + "type": "string" + }, + "displayName": { + "description": "Gets offer display name", + "type": "string" + }, + "publisherId": { + "description": "Gets or sets publisher id", + "type": "string" + }, + "messageCode": { + "description": "Gets or sets the notification message id", + "type": "integer", + "format": "int64" + }, + "icon": { + "description": "Gets or sets the icon url", + "type": "string" + }, + "plans": { + "description": "Gets or sets removed plans notifications", + "type": "array", + "items": { + "$ref": "#/definitions/PlanNotificationDetails" + } + } + } + }, + "AcknowledgeOfferNotificationProperties": { + "description": "Notification update request payload", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/AcknowledgeOfferNotificationDetails", + "description": "Notification update request payload details", + "x-ms-client-flatten": true + } + } + }, + "AcknowledgeOfferNotificationDetails": { + "description": "Notification update request payload details", + "type": "object", + "properties": { + "acknowledge": { + "description": "Gets or sets a value indicating whether acknowledge action flag is enabled", + "type": "boolean" + }, + "dismiss": { + "description": "Gets or sets a value indicating whether dismiss action flag is enabled", + "type": "boolean" + }, + "removeOffer": { + "description": "Gets or sets a value indicating whether remove offer action flag is enabled", + "type": "boolean" + }, + "addPlans": { + "description": "Gets or sets added plans", + "type": "array", + "items": { + "type": "string" + } + }, + "removePlans": { + "description": "Gets or sets remove plans", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "WithdrawProperties": { + "description": "Withdraw properties", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/WithdrawDetails", + "description": "Withdraw properties details", + "x-ms-client-flatten": true + } + } + }, + "WithdrawDetails": { + "description": "Withdraw properties details", + "type": "object", + "properties": { + "planId": { + "description": "Gets or sets Plan Id ", + "type": "string" + }, + "publisherId": { + "description": "The offer's publisher id", + "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 + } + }, + "OperationListResult": { + "description": "Result of the request to list Marketplace operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SingleOperation" + }, + "description": "List of Microsoft.Marketplace operations supported by the Microsoft.Marketplace resource provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any.", + "readOnly": true + } + } + }, + "SingleOperation": { + "description": "Microsoft.Marketplace REST API operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "readOnly": true, + "description": "Service provider: Microsoft.Marketplace", + "type": "string" + }, + "resource": { + "readOnly": true, + "description": "Resource on which the operation is performed", + "type": "string" + }, + "operation": { + "readOnly": true, + "description": "Operation type", + "type": "string" + }, + "description": { + "readOnly": true, + "type": "string", + "description": "Friendly description for the operation," + } + } + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/OperationProperties", + "description": "Properties of the operation" + } + } + }, + "OperationProperties": { + "description": "Operation properties.", + "type": "object", + "properties": {} + }, + "ErrorResponse": { + "description": "Error response indicates Microsoft.Marketplace service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "error": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "Error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "Resource": { + "description": "An Azure resource.", + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource.", + "type": "string", + "readOnly": true + }, + "systemData": { + "$ref": "#/definitions/SystemData", + "readOnly": true, + "description": "Metadata pertaining to creation and last modification of the resource" + } + }, + "x-ms-azure-resource": true + }, + "SystemData": { + "description": "Read only system data", + "type": "object", + "readOnly": true, + "properties": { + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "$ref": "#/definitions/IdentityType", + "description": "The type of identity that created the resource" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)" + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "$ref": "#/definitions/IdentityType", + "description": "The type of identity that last modified the resource" + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource last modification (UTC)" + } + } + }, + "IdentityType": { + "description": "The type of identity that creates/modifies resources", + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "IdentityType", + "modelAsString": true + } + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/AcknowledgeNotification.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/AcknowledgeNotification.json new file mode 100644 index 000000000000..f137c4adc7ee --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/AcknowledgeNotification.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2021-06-01", + "payload": { + "properties": { + "removePlans": [ + "testPlanA" + ], + "addPlans": null, + "acknowledge": false, + "dismiss": false, + "removeOffer": false + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/AdminRequestApprovalsList.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/AdminRequestApprovalsList.json new file mode 100644 index 000000000000..b0c503b942aa --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/AdminRequestApprovalsList.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "systemData": { + "createdBy": "user@somedoamin.com", + "createdByType": "User", + "createdAt": "2021-02-01T10:23:17.6571572+02:00", + "lastModifiedBy": "user@somedoamin.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-02-01T10:23:17.6571572+02:00" + }, + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/adminRequestApprovals/marketplacetestthirdparty.md-test-third-party-2", + "name": "marketplacetestthirdparty.md-test-third-party-2", + "type": "/providers/Microsoft.Marketplace/privateStores/adminRequestApprovals", + "properties": { + "publisherId": "marketplacetestthirdparty", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "displayName": "Offer display name", + "plans": [ + { + "planId": "testA", + "planDisplayName": "Plan display name A", + "requesters": [ + { + "user": "testUser3", + "date": "2021-02-01T11:42:12.9526511+02:00", + "justification": "Because I want to....", + "subscriptionId": "404a1952-706a-453a-989b-647cc4ca5f9c", + "subscriptionName": "Test subscription" + } + ] + }, + { + "planId": "*", + "planDisplayName": "* (this means the user requested any plan, here you will get only *)", + "requesters": [ + { + "user": "testUser3", + "date": "2021-02-01T11:42:12.9526511+02:00", + "justification": "try me :)", + "subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2", + "subscriptionName": "Test subscription 2" + } + ] + } + ], + "adminAction": "Pending", + "collectionIds": [], + "approvedPlans": null, + "comment": null, + "administrator": null + } + } + ] + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CreateApprovalRequest.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CreateApprovalRequest.json new file mode 100644 index 000000000000..bba8ec0901b7 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CreateApprovalRequest.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "requestApprovalId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2021-06-01", + "RequestApprovalResource": { + "parameters": { + "properties": { + "publisherId": "marketplacetestthirdparty", + "plansDetails": [ + { + "planId": "testPlanA", + "justification": "Because I want to....", + "subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2", + "subscriptionName": "Test subscription 2" + }, + { + "planId": "*", + "justification": "try me :)", + "subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2", + "subscriptionName": "Test subscription 2" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "systemData": { + "createdBy": "user@somedoamin.com", + "createdByType": "User", + "lastModifiedBy": "user@somedoamin.com", + "lastModifiedByType": "User", + "createdAt": "2021-02-01T10:23:17.6571572+02:00", + "lastModifiedAt": "2021-02-01T10:23:17.6571572+02:00" + }, + "id": "/providers/Microsoft.Marketplace/privateStores/9afd3c45-5230-4d58-9469-2cacc00bba68/requestApprovals/marketplacetestthirdparty.md-test-third-party-2", + "name": "marketplacetestthirdparty.md-test-third-party-2", + "type": "Microsoft.Marketplace/privateStores/requestApprovals", + "properties": { + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "publisherId": "marketplacetestthirdparty", + "offerDisplayName": "Offer Display name", + "plansDetails": [ + { + "planId": "testPlanA", + "requestDate": "2021-02-01T10:23:17.6571572+02:00", + "justification": "Because I want to....", + "status": "Pending", + "subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2", + "subscriptionName": "Test subscription 2" + }, + { + "planId": "*", + "requestDate": "2021-02-01T10:23:17.6571572+02:00", + "justification": "try me :)", + "status": "Pending", + "subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2", + "subscriptionName": "Test subscription 2" + } + ], + "isClosed": false, + "messageCode": 0 + } + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CreatePrivateStoreCollection.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CreatePrivateStoreCollection.json new file mode 100644 index 000000000000..96227de205f7 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CreatePrivateStoreCollection.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "collectionId": "d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1", + "api-version": "2020-01-01", + "payload": { + "properties": { + "collectionName": "Test Collection", + "claim": "", + "allSubscriptions": false, + "subscriptionsList": [ + "b340914e-353d-453a-85fb-8f9b65b51f91", + "f2baa04d-5bfc-461b-b6d8-61b403c9ec48" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1", + "type": "Microsoft.Marketplace/privateStores/collections", + "name": "d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1", + "properties": { + "collectionName": "Test Collection", + "claim": "", + "allSubscriptions": false, + "subscriptionsList": [ + "b340914e-353d-453a-85fb-8f9b65b51f91", + "f2baa04d-5bfc-461b-b6d8-61b403c9ec48" + ] + }, + "systemData": { + "createdBy": "user@somedoamin.com", + "createdByType": "User", + "createdAt": "2021-04-01T10:23:17.6571572+02:00", + "lastModifiedBy": "user@somedoamin.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-01T10:23:17.6571572+02:00" + } + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStore.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStore.json new file mode 100644 index 000000000000..5c9f8c47d121 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStore.json @@ -0,0 +1,9 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2021-06-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreCollection.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreCollection.json new file mode 100644 index 000000000000..aee0225560dc --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreCollection.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "collectionId": "d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1", + "api-version": "2020-06-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreOffer.json new file mode 100644 index 000000000000..dda1e0f8f437 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreOffer.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "api-version": "2021-06-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetAdminRequestApproval.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetAdminRequestApproval.json new file mode 100644 index 000000000000..6ea2aea9b3b9 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetAdminRequestApproval.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "adminRequestApprovalId": "marketplacetestthirdparty.md-test-third-party-2", + "publisherId": "marketplacetestthirdparty", + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "systemData": { + "createdBy": "user@somedoamin.com", + "createdByType": "User", + "createdAt": "2021-02-01T10:23:17.6571572+02:00", + "lastModifiedBy": "user@somedoamin.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-02-01T10:23:17.6571572+02:00" + }, + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/adminRequestApprovals/marketplacetestthirdparty.md-test-third-party-2", + "name": "marketplacetestthirdparty.md-test-third-party-2", + "type": "/providers/Microsoft.Marketplace/privateStores/adminRequestApprovals", + "properties": { + "publisherId": "marketplacetestthirdparty", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "displayName": "Offer display name", + "plans": [ + { + "planId": "testA", + "planDisplayName": "Plan display name A", + "requesters": [ + { + "user": "testUser3", + "date": "2021-02-01T11:42:12.9526511+02:00", + "justification": "Because I want to....", + "subscriptionId": "1fs4r5t6-5a1e-4913-b849-2c68880e03c2", + "subscriptionName": "Test subscription 1" + } + ] + }, + { + "planId": "*", + "planDisplayName": "* (this means the user requested any plan, here you will get only *)", + "requesters": [ + { + "user": "testUser3", + "date": "2021-02-01T11:42:12.9526511+02:00", + "justification": "try me :)", + "subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2", + "subscriptionName": "Test subscription 2" + } + ] + } + ], + "adminAction": "Pending", + "approvedPlans": null, + "comment": null, + "administrator": null, + "collectionIds": [] + } + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetApprovalRequestsList.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetApprovalRequestsList.json new file mode 100644 index 000000000000..bca9c63a358e --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetApprovalRequestsList.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "systemData": { + "createdBy": "user@somedoamin.com", + "createdByType": "User", + "lastModifiedBy": "user@somedoamin.com", + "lastModifiedByType": "User", + "createdAt": "2021-02-01T10:23:17.6571572+02:00", + "lastModifiedAt": "2021-02-01T10:23:17.6571572+02:00" + }, + "id": "/providers/Microsoft.Marketplace/privateStores/9afd3c45-5230-4d58-9469-2cacc00bba68/requestApprovals/marketplacetestthirdparty.md-test-third-party-2", + "name": "marketplacetestthirdparty.md-test-third-party-2", + "type": "Microsoft.Marketplace/privateStores/requestApprovals", + "properties": { + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "publisherId": "marketplacetestthirdparty", + "offerDisplayName": "Offer Display name", + "plansDetails": [ + { + "planId": "testPlanA", + "requestDate": "2021-02-01T10:23:17.6571572+02:00", + "justification": "Because I want to....", + "status": "Pending", + "subscriptionId": "", + "subscriptionName": "" + }, + { + "planId": "*", + "requestDate": "2021-02-01T10:23:17.6571572+02:00", + "justification": "try me :)", + "status": "Pending", + "subscriptionId": "", + "subscriptionName": "" + } + ], + "isClosed": false, + "messageCode": 0 + } + } + ] + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStore.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStore.json new file mode 100644 index 000000000000..7072c63294a8 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStore.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2021-06-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\"", + "tenantId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "isGov": false, + "collectionIds": [ + "ab80ed4-c5de-4593-b3c1-c46d4a3a56c7", + "a09107d4-c585-4594-b3c6-c46d4a3a56c8" + ], + "branding": { + "iconUrl": "https://some-images.someDomail.com/image/stroeIcon.12345678-4321", + "color": "blue" + } + } + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreCollection.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreCollection.json new file mode 100644 index 000000000000..b22ddf888ee6 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreCollection.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "type": "Microsoft.Marketplace/privateStores/collections", + "name": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "properties": { + "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "collectionName": "Default Collection", + "claim": "", + "allSubscriptions": true, + "subscriptionsList": [] + }, + "systemData": { + "createdBy": "user@somedoamin.com", + "createdByType": "User", + "createdAt": "2021-02-01T10:23:17.6571572+02:00", + "lastModifiedBy": "user@somedoamin.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-02-01T10:23:17.6571572+02:00" + } + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreCollectionsList.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreCollectionsList.json new file mode 100644 index 000000000000..eb3a1a5eb662 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreCollectionsList.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "nextLink": "", + "value": [ + { + "id": "providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections", + "type": "Microsoft.Marketplace/privateStores/collections", + "name": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "properties": { + "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "collectionName": "Default Collection", + "claim": "", + "allSubscriptions": true, + "subscriptionsList": [] + }, + "systemData": { + "createdBy": "user@somedoamin.com", + "createdByType": "User", + "createdAt": "2021-02-01T10:23:17.6571572+02:00", + "lastModifiedBy": "user@somedoamin.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-02-01T10:23:17.6571572+02:00" + } + }, + { + "id": "providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections", + "type": "Microsoft.Marketplace/privateStores/collections", + "name": "fba3f52c-874a-4010-87cf-c1cfa6ed3490", + "properties": { + "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "collectionName": "Dev collection", + "claim": "", + "allSubscriptions": false, + "subscriptionsList": [ + "7c927b63-59cf-4a0f-9d13-41e11f1ddf76" + ] + }, + "systemData": { + "createdBy": "user@somedoamin.com", + "createdByType": "User", + "createdAt": "2021-02-01T10:23:17.6571572+02:00", + "lastModifiedBy": "user@somedoamin.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-02-01T10:23:17.6571572+02:00" + } + } + ] + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreOffer.json new file mode 100644 index 000000000000..42f75801c08e --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreOffer.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/56a1a02d-8cf8-45df-bf37-d5f7120fcb3d/offers/marketplacetestthirdparty.md-test-third-party-2", + "type": "Microsoft.Marketplace/privateStores/collections/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/2021-06-01/examples/GetPrivateStoreOffers.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreOffers.json new file mode 100644 index 000000000000..2f5b918a97f6 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreOffers.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "nextLink": "", + "value": [ + { + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/56a1a02d-8cf8-45df-bf37-d5f7120fcb3d/offers/marketplacetestthirdparty.md-test-third-party-2", + "type": "Microsoft.Marketplace/privateStores/collections/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/collections/56a1a02d-8cf8-45df-bf37-d5f7120fcb3d/offers/marketplacetestthirdparty.md-test-third-party-3", + "type": "Microsoft.Marketplace/privateStores/collections/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/2021-06-01/examples/GetPrivateStores.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStores.json new file mode 100644 index 000000000000..b282178aafcc --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStores.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-06-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\"", + "tenantId": "f686d426-123a-42db-81b7-ab578e110ccd", + "isGov": false, + "collectionIds": [ + "ab80ed4-c5de-4593-b3c1-c46d4a3a56c7", + "a09107d4-c585-4594-b3c6-c46d4a3a56c8" + ], + "branding": { + "iconUrl": "https://some-images.someDomail.com/image/stroeIcon.12345678-4321", + "color": "blue" + } + } + } + ] + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetRequestApproval.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetRequestApproval.json new file mode 100644 index 000000000000..b34c25f9d4eb --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetRequestApproval.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "requestApprovalId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/requestApprovals/marketplacetestthirdparty.md-test-third-party-2", + "name": "marketplacetestthirdparty.md-test-third-party-2", + "type": "Microsoft.Marketplace/privateStores/requestApprovals", + "systemData": { + "createdBy": "test@somedomain.com", + "createdByType": "User", + "createdAt": "2020-10-05T17:18:19.1234567Z", + "lastModifiedBy": "testuser@somedomail.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-10-05T17:18:19.1234567Z" + }, + "properties": { + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "publisherId": "marketplacetestthirdparty", + "offerDisplayName": "Offer display Name", + "plansDetails": [ + { + "planId": "testPlanA", + "justification": "Because I want to....", + "requestDate": "2020-10-05T17:18:19.1234567Z", + "status": "Pending", + "subscriptionId": "", + "subscriptionName": "" + }, + { + "planId": "testPlanB", + "justification": "Because I want to....", + "requestDate": "2020-10-05T17:18:19.1234567Z", + "status": "Pending", + "subscriptionId": "", + "subscriptionName": "" + } + ], + "isClosed": false, + "messageCode": 0 + } + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/NotificationsState.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/NotificationsState.json new file mode 100644 index 000000000000..ae0eefc41f1c --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/NotificationsState.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "stopSellNotifications": [ + { + "offerId": "publisherId.legacyId", + "displayName": "Offer display name", + "isEntire": false, + "plans": [ + { + "planDisplayName": "test123", + "planId": "aaa" + } + ], + "messageCode": 10002, + "icon": "https://some-images.someDomail.com/image/apps.12345678-4321" + }, + { + "offerId": "publisherIdB.legacyIdB", + "displayName": "Offer display name B", + "isEntire": true, + "plans": null, + "messageCode": 10003, + "icon": "https://some-images.someDomail.com/image/apps.12345678-7654" + } + ], + "newNotifications": [ + { + "offerId": "publisherIdC.legacyIdC", + "displayName": "Offer display name C", + "isFuturePlansEnabled": false, + "plans": [ + { + "planDisplayName": "Display Name Test", + "planId": "plan-test" + } + ], + "messageCode": 10000, + "icon": "https://some-images.someDomail.com/image/apps.12345678-76545678" + } + ], + "approvalRequests": [ + { + "publisherId": "publisherId", + "offerId": "publisherId.legacyId", + "displayName": "Offer display name", + "plans": [ + { + "planDisplayName": "Plan Test display name", + "planId": "test-plan" + }, + { + "planDisplayName": "Plan Test display name B", + "planId": "test-planB" + } + ], + "icon": "https://some-images.someDomail.com/image/apps.12345678-09876567894321", + "messageCode": 0 + } + ] + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreOffer.json new file mode 100644 index 000000000000..b3dce9416a6d --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreOffer.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2021-06-01", + "Operation": "DeletePrivateStoreOffer" + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PrivateStoreOffer_update.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PrivateStoreOffer_update.json new file mode 100644 index 000000000000..9b8b29d39878 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PrivateStoreOffer_update.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2021-06-01", + "payload": { + "properties": { + "specificPlanIdsLimitation": [ + "0001", + "0002" + ], + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350666\"" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/56a1a02d-8cf8-45df-bf37-d5f7120fcb3d/offers/marketplacetestthirdparty.md-test-third-party-2", + "type": "Microsoft.Marketplace/privateStores/collections/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/2021-06-01/examples/PrivateStores_update.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PrivateStores_update.json new file mode 100644 index 000000000000..645637a74268 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PrivateStores_update.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2021-06-01", + "payload": { + "properties": { + "availability": "disabled", + "eTag": "\"9301f4fd-0000-0100-0000-5e248b350345\"" + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/QueryRequestApproval.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/QueryRequestApproval.json new file mode 100644 index 000000000000..5241f6ec23d6 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/QueryRequestApproval.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "requestApprovalId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2021-06-01", + "payload": { + "properties": { + "publisherId": "marketplacetestthirdparty", + "planIds": [ + "testPlanA", + "testPlanB", + "*" + ] + } + } + }, + "responses": { + "200": { + "body": { + "uniqueOfferId": "marketplacetestthirdparty.md-test-third-party-2", + "plansDetails": { + "*": { + "planId": "*", + "status": "None", + "requestDate": null, + "justification": null, + "subscriptionId": "", + "subscriptionName": "" + }, + "byol": { + "planId": "testPlanA", + "status": "None", + "requestDate": null, + "justification": "", + "subscriptionId": "", + "subscriptionName": "" + }, + "hourly": { + "planId": "testPlanB", + "status": "ApprovedByAdmin", + "requestDate": null, + "justification": "", + "subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2", + "subscriptionName": "Test subscription 2" + } + }, + "etag": null, + "messageCode": 0 + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/UpdateAdminRequestApproval.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/UpdateAdminRequestApproval.json new file mode 100644 index 000000000000..a0f9c0fbb757 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/UpdateAdminRequestApproval.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "adminRequestApprovalId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2021-06-01", + "payload": { + "properties": { + "publisherId": "marketplacetestthirdparty", + "adminAction": "Approved", + "approvedPlans": [ + "testPlan" + ], + "comment": "I'm ok with that", + "collectionIds": [ + "f8ee227e-85d7-477d-abbf-854d6decaf70", + "39246ad6-c521-4fed-8de7-77dede2e873f" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/adminRequestApprovals/marketplacetestthirdparty.md-test-third-party-2", + "name": "marketplacetestthirdparty.md-test-third-party-2", + "type": "/providers/Microsoft.Marketplace/privateStores/adminRequestApprovals", + "systemData": { + "createdBy": "test@somedomain.com", + "createdByType": "User", + "createdAt": "2020-10-05T17:18:19.1234567Z", + "lastModifiedBy": "testuser@somedomail.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-10-05T17:18:19.1234567Z" + }, + "properties": { + "publisherId": "marketplacetestthirdparty", + "offerId": "marketplacetestthirdparty.md-test-third-party-2", + "displayName": "Offer display name", + "plans": null, + "adminAction": "Approved", + "approvedPlans": [ + "testPlan" + ], + "collectionIds": [ + "f8ee227e-85d7-477d-abbf-854d6decaf70", + "39246ad6-c521-4fed-8de7-77dede2e873f" + ], + "comment": "I'm ok with that", + "administrator": "admin@someDomain.com" + } + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/WithdrawPlan.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/WithdrawPlan.json new file mode 100644 index 000000000000..9aabe2f18dc1 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/WithdrawPlan.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "requestApprovalId": "marketplacetestthirdparty.md-test-third-party-2", + "api-version": "2021-06-01", + "payload": { + "properties": { + "publisherId": "marketplacetestthirdparty", + "planId": "*" + } + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/readme.azureresourceschema.md b/specification/marketplace/resource-manager/readme.azureresourceschema.md index 040e6ae795ef..59d35679b8ce 100644 --- a/specification/marketplace/resource-manager/readme.azureresourceschema.md +++ b/specification/marketplace/resource-manager/readme.azureresourceschema.md @@ -6,6 +6,7 @@ These settings apply only when `--azureresourceschema` is specified on the comma ``` yaml $(azureresourceschema) && $(multiapi) batch: + - tag: schema-marketplace-2021-06-01 - tag: schema-marketplace-2020-12-01 - tag: schema-marketplace-2020-01-01 - tag: schema-marketplace-2019-12-01 @@ -14,6 +15,17 @@ batch: Please also specify `--azureresourceschema-folder=`. +### Tag: schema-marketplace-2021-06-01 and azureresourceschema + +``` yaml $(tag) == 'schema-marketplace-2021-06-01' && $(azureresourceschema) +output-folder: $(azureresourceschema-folder)/schemas + +# all the input files in this apiVersion +input-file: + - Microsoft.Marketplace/stable/2021-06-01/Marketplace.json + +``` + ### Tag: schema-marketplace-2020-12-01 and azureresourceschema ``` yaml $(tag) == 'schema-marketplace-2020-12-01' && $(azureresourceschema) diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index 07383496fbbf..c35990d0387c 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -32,6 +32,18 @@ tag: package-2020-01-01 The following packages may be composed from multiple api-versions. +### Tag: package-composite-v2 + +These settings apply only when `--tag=package-composite-v2` is specified on the command line. + +This section contains the "composite-v2" set of APIs, which is composed from a selection of api-versions that will remain backwards compatible with "v2" clients. + +APIs must only be added to this section when the API is publicly available in at least 1 production region and at least 1 generated client has been tested end-to-end. + +``` yaml $(tag) == 'package-composite-v2' +input-file: +- Microsoft.Marketplace/stable/2021-06-01/Marketplace.json + ### Tag: package-composite-v1 These settings apply only when `--tag=package-composite-v1` is specified on the command line. From 2cc7dc4c33507d5be047f4f174457f25559f0663 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Wed, 14 Apr 2021 17:54:18 +0300 Subject: [PATCH 02/22] Fix Tests --- .../stable/2021-06-01/examples/DeletePrivateStore.json | 3 ++- .../2021-06-01/examples/DeletePrivateStoreCollection.json | 3 ++- .../stable/2021-06-01/examples/DeletePrivateStoreOffer.json | 3 ++- .../stable/2021-06-01/examples/GetAdminRequestApproval.json | 2 +- specification/marketplace/resource-manager/readme.md | 2 ++ 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStore.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStore.json index 5c9f8c47d121..ebd18418a757 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStore.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStore.json @@ -4,6 +4,7 @@ "api-version": "2021-06-01" }, "responses": { - "200": {} + "200": {}, + "204": {} } } diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreCollection.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreCollection.json index aee0225560dc..abbcf1c3f409 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreCollection.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreCollection.json @@ -5,6 +5,7 @@ "api-version": "2020-06-01" }, "responses": { - "200": {} + "200": {}, + "204": {} } } diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreOffer.json index dda1e0f8f437..18d270636eef 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreOffer.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/DeletePrivateStoreOffer.json @@ -6,6 +6,7 @@ "api-version": "2021-06-01" }, "responses": { - "200": {} + "200": {}, + "204": {} } } diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetAdminRequestApproval.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetAdminRequestApproval.json index 6ea2aea9b3b9..c8f500036c7a 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetAdminRequestApproval.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetAdminRequestApproval.json @@ -55,7 +55,7 @@ "approvedPlans": null, "comment": null, "administrator": null, - "collectionIds": [] + "collectionIds": [] } } } diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index c35990d0387c..e3f93e6ec56c 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -43,6 +43,7 @@ APIs must only be added to this section when the API is publicly available in at ``` yaml $(tag) == 'package-composite-v2' input-file: - Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +``` ### Tag: package-composite-v1 @@ -56,6 +57,7 @@ APIs must only be added to this section when the API is publicly available in at input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json - Microsoft.Marketplace/stable/2020-12-01/Marketplace.json +``` # Needed when there is more than one input file override-info: From af51bc2ddce148906003284510a6698049efea57 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Wed, 14 Apr 2021 18:07:25 +0300 Subject: [PATCH 03/22] fix tests --- specification/marketplace/resource-manager/readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index e3f93e6ec56c..621ad780a7b2 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -82,6 +82,15 @@ input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json ``` +### Tag: package-2021-06-01 + +These settings apply only when `--tag=package-2021-06-01` is specified on the command line. + +``` yaml $(tag) == 'package-2021-06-01' +input-file: + - Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +``` + # Code Generation ## Swagger to SDK From 1662e8ccf76d6f3e2ea99563e1f365c892070373 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Wed, 14 Apr 2021 18:30:36 +0300 Subject: [PATCH 04/22] remove tag to v2019-12-01 as it is not in use --- specification/marketplace/resource-manager/readme.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index 621ad780a7b2..c59aa9ad537c 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -64,15 +64,6 @@ override-info: title: MarketplaceManagementClient ``` -### Tag: package-2019-12-01 - -These settings apply only when `--tag=package-2019-12-01` is specified on the command line. - -``` yaml $(tag) == 'package-2019-12-01' -input-file: - - Microsoft.Marketplace/stable/2019-12-01/Marketplace.json -``` - ### Tag: package-2020-01-01 These settings apply only when `--tag=package-2020-01-01` is specified on the command line. From 0138dff1bcd2ffe19192d6db8e5d7aa7d40aeeb8 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Wed, 14 Apr 2021 18:43:59 +0300 Subject: [PATCH 05/22] Fix tests --- specification/marketplace/resource-manager/readme.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index c59aa9ad537c..6a9ff024dc0f 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -43,6 +43,8 @@ APIs must only be added to this section when the API is publicly available in at ``` yaml $(tag) == 'package-composite-v2' input-file: - Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +- Microsoft.Marketplace/stable/2020-12-01/Marketplace.json +- Microsoft.Marketplace/stable/2020-01-01/Marketplace.json ``` ### Tag: package-composite-v1 @@ -64,6 +66,15 @@ override-info: title: MarketplaceManagementClient ``` +### Tag: package-2019-12-01 + +These settings apply only when `--tag=package-2019-12-01` is specified on the command line. + +``` yaml $(tag) == 'package-2019-12-01' +input-file: + - Microsoft.Marketplace/stable/2019-12-01/Marketplace.json +``` + ### Tag: package-2020-01-01 These settings apply only when `--tag=package-2020-01-01` is specified on the command line. From 48e5a08d124da721d2342747a53b424ff622023a Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Sun, 18 Apr 2021 12:33:09 +0300 Subject: [PATCH 06/22] Fix version and readme.md --- .../stable/2021-06-01/Marketplace.json | 2 +- specification/marketplace/resource-manager/readme.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json index 6f3a8d0727d1..65c86350c0c6 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2020-04-01", + "version": "2021-06-01", "title": "MarketplaceManagementClient", "description": "REST APIs for Private Marketplace" }, diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index 6a9ff024dc0f..d25897adaec3 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -36,15 +36,14 @@ The following packages may be composed from multiple api-versions. These settings apply only when `--tag=package-composite-v2` is specified on the command line. -This section contains the "composite-v2" set of APIs, which is composed from a selection of api-versions that will remain backwards compatible with "v2" clients. +This section contains the "composite-v2" set of APIs, which is composed from a selection of api-versions that will remain backwards compatible with "v1" clients. APIs must only be added to this section when the API is publicly available in at least 1 production region and at least 1 generated client has been tested end-to-end. ``` yaml $(tag) == 'package-composite-v2' input-file: - Microsoft.Marketplace/stable/2021-06-01/Marketplace.json -- Microsoft.Marketplace/stable/2020-12-01/Marketplace.json -- Microsoft.Marketplace/stable/2020-01-01/Marketplace.json +- Microsoft.Marketplace/stable/2019-12-01/Marketplace.json ``` ### Tag: package-composite-v1 @@ -59,6 +58,7 @@ APIs must only be added to this section when the API is publicly available in at input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json - Microsoft.Marketplace/stable/2020-12-01/Marketplace.json +- Microsoft.Marketplace/stable/2019-12-01/Marketplace.json ``` # Needed when there is more than one input file From 0219890e16c9cbcf0fe12337680f5e30676a0b96 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Sun, 18 Apr 2021 16:18:59 +0300 Subject: [PATCH 07/22] Align the title to Marketplace RP Service and add default response to v2019-12-01 --- .../stable/2019-12-01/Marketplace.json | 6 ++++++ .../stable/2020-01-01/Marketplace.json | 2 +- .../stable/2020-12-01/Marketplace.json | 2 +- .../stable/2021-06-01/Marketplace.json | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json index 76d987df9829..0bab58f04923 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json @@ -33,6 +33,12 @@ "responses": { "200": { "description": "OK. The request has succeeded." + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { 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 4bf90e4eea96..83ee490aa16a 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,7 @@ "swagger": "2.0", "info": { "version": "2020-01-01", - "title": "MarketplaceManagementClient", + "title": "Marketplace RP Service", "description": "REST APIs for Azure Marketplace" }, "host": "management.azure.com", 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 31e1786825ce..88be9353ebef 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 @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "version": "2020-12-01", - "title": "MarketplaceManagementClient", + "title": "Marketplace RP Service", "description": "REST APIs for Azure Marketplace" }, "host": "management.azure.com", diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json index 65c86350c0c6..60696d838cc7 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "version": "2021-06-01", - "title": "MarketplaceManagementClient", + "title": "Marketplace RP Service", "description": "REST APIs for Private Marketplace" }, "host": "management.azure.com", From cee5a198f3f4dbd71802e8d00665de8eb0d1c049 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Sun, 18 Apr 2021 16:37:31 +0300 Subject: [PATCH 08/22] remove the default response on version 2019-12-01 --- .../stable/2019-12-01/Marketplace.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json index 0bab58f04923..76d987df9829 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json @@ -33,12 +33,6 @@ "responses": { "200": { "description": "OK. The request has succeeded." - }, - "default": { - "description": "Microsoft.Marketplace error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } } }, "x-ms-examples": { From f4525fedcd07d9cc95d6c951f3b040c26fb16617 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Mon, 19 Apr 2021 15:10:32 +0300 Subject: [PATCH 09/22] Fix Errors --- .../stable/2021-06-01/Marketplace.json | 6 +++--- .../marketplace/resource-manager/readme.md | 13 ++++++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json index 60696d838cc7..a956e468be61 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json @@ -179,7 +179,7 @@ } }, "x-ms-examples": { - "GetPrivateStoreOffer": { + "GetPrivateStoreCollectionsList": { "$ref": "./examples/GetPrivateStoreCollectionsList.json" } } @@ -218,7 +218,7 @@ } }, "x-ms-examples": { - "GetPrivateStoreOffer": { + "GetPrivateStoreCollection": { "$ref": "./examples/GetPrivateStoreCollection.json" } } @@ -253,7 +253,7 @@ } }, "x-ms-examples": { - "GetPrivateStoreOffer": { + "CreatePrivateStoreCollection": { "$ref": "./examples/CreatePrivateStoreCollection.json" } } diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index d25897adaec3..61805abe4c9a 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Marketplace API. ``` yaml openapi-type: arm -tag: package-2020-01-01 +tag: package-2021-06-01 ``` ### Composite packages @@ -43,7 +43,6 @@ APIs must only be added to this section when the API is publicly available in at ``` yaml $(tag) == 'package-composite-v2' input-file: - Microsoft.Marketplace/stable/2021-06-01/Marketplace.json -- Microsoft.Marketplace/stable/2019-12-01/Marketplace.json ``` ### Tag: package-composite-v1 @@ -58,7 +57,6 @@ APIs must only be added to this section when the API is publicly available in at input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json - Microsoft.Marketplace/stable/2020-12-01/Marketplace.json -- Microsoft.Marketplace/stable/2019-12-01/Marketplace.json ``` # Needed when there is more than one input file @@ -84,6 +82,15 @@ input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json ``` +### Tag: package-2020-12-01 + +These settings apply only when `--tag=package-2020-12-01` is specified on the command line. + +``` yaml $(tag) == 'package-2020-12-01' +input-file: + - Microsoft.Marketplace/stable/2020-12-01/Marketplace.json +``` + ### Tag: package-2021-06-01 These settings apply only when `--tag=package-2021-06-01` is specified on the command line. From 6a15c4ed39e55a901681436f9f73fab4d5d3dbd1 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Mon, 19 Apr 2021 15:15:09 +0300 Subject: [PATCH 10/22] Fix errors --- specification/marketplace/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index 61805abe4c9a..4dfd75510c94 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -57,6 +57,7 @@ APIs must only be added to this section when the API is publicly available in at input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json - Microsoft.Marketplace/stable/2020-12-01/Marketplace.json +- Microsoft.Marketplace/stable/2019-12-01/Marketplace.json ``` # Needed when there is more than one input file From effa0cc11d52d2e3271abf6579d0ebf8f135ad3e Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Mon, 19 Apr 2021 16:52:14 +0300 Subject: [PATCH 11/22] remove 2019 api version --- .../stable/2019-12-01/Marketplace.json | 174 ------------------ .../examples/GetPrivateStoreClient.json | 13 -- .../marketplace/resource-manager/readme.md | 10 - 3 files changed, 197 deletions(-) delete mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json delete mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json deleted file mode 100644 index 76d987df9829..000000000000 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2019-12-01", - "title": "Marketplace RP Service" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Marketplace/privateStoreClient/isPrivateClient": { - "get": { - "tags": [ - "isPrivateClient" - ], - "description": "Check if client is private or not.", - "operationId": "PrivateStoreClient_Get", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - } - }, - "x-ms-examples": { - "GetPrivateStoreClient": { - "$ref": "./examples/GetPrivateStoreClient.json" - } - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ] - } - }, - "/providers/Microsoft.Marketplace/operations": { - "get": { - "tags": [ - "Operations" - ], - "description": "Lists all of the available Microsoft.Marketplace REST API operations.", - "operationId": "Operations_List", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "Microsoft.Marketplace error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for the request." - }, - "subscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "description": "The Azure subscription ID.", - "required": true, - "type": "string" - } - }, - "definitions": { - "ErrorResponse": { - "description": "Error response indicates Microsoft.Marketplace service is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", - "properties": { - "error": { - "description": "The details of the error.", - "properties": { - "code": { - "description": "Error code.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string", - "readOnly": true - } - } - } - } - }, - "Operation": { - "description": "Microsoft.Marketplace REST API operation", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}", - "type": "string" - }, - "display": { - "description": "The object that represents the operation.", - "properties": { - "provider": { - "description": "Service provider: Microsoft.Marketplace", - "type": "string" - }, - "resource": { - "description": "Resource on which the operation is performed: Amendments", - "type": "string" - }, - "operation": { - "description": "Operation type: Get Amendments etc.", - "type": "string" - } - } - } - } - }, - "OperationListResult": { - "description": "Result of the request to list Marketplace operations. It contains a list of operations and a URL link to get the next set of results.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "List of Microsoft.Marketplace operations supported by the Microsoft.Marketplace resource provider." - }, - "nextLink": { - "type": "string", - "description": "URL to get the next set of operation list results if there are any.", - "readOnly": true - } - } - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - } -} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json deleted file mode 100644 index 8458e8864299..000000000000 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "resRg", - "clusterName": "myCluster", - "api-version": "2019-12-01" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded." - } - } -} diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index 4dfd75510c94..f6359e53061a 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -57,7 +57,6 @@ APIs must only be added to this section when the API is publicly available in at input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json - Microsoft.Marketplace/stable/2020-12-01/Marketplace.json -- Microsoft.Marketplace/stable/2019-12-01/Marketplace.json ``` # Needed when there is more than one input file @@ -65,15 +64,6 @@ override-info: title: MarketplaceManagementClient ``` -### Tag: package-2019-12-01 - -These settings apply only when `--tag=package-2019-12-01` is specified on the command line. - -``` yaml $(tag) == 'package-2019-12-01' -input-file: - - Microsoft.Marketplace/stable/2019-12-01/Marketplace.json -``` - ### Tag: package-2020-01-01 These settings apply only when `--tag=package-2020-01-01` is specified on the command line. From c94762843a2c2f9c93f7b9d8ebebb49ac1d05bd1 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Tue, 20 Apr 2021 10:06:57 +0300 Subject: [PATCH 12/22] Revert "remove 2019 api version" This reverts commit effa0cc11d52d2e3271abf6579d0ebf8f135ad3e. --- .../stable/2019-12-01/Marketplace.json | 174 ++++++++++++++++++ .../examples/GetPrivateStoreClient.json | 13 ++ .../marketplace/resource-manager/readme.md | 10 + 3 files changed, 197 insertions(+) create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json new file mode 100644 index 000000000000..76d987df9829 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json @@ -0,0 +1,174 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-12-01", + "title": "Marketplace RP Service" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Marketplace/privateStoreClient/isPrivateClient": { + "get": { + "tags": [ + "isPrivateClient" + ], + "description": "Check if client is private or not.", + "operationId": "PrivateStoreClient_Get", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + } + }, + "x-ms-examples": { + "GetPrivateStoreClient": { + "$ref": "./examples/GetPrivateStoreClient.json" + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/providers/Microsoft.Marketplace/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available Microsoft.Marketplace REST API operations.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the request." + }, + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The Azure subscription ID.", + "required": true, + "type": "string" + } + }, + "definitions": { + "ErrorResponse": { + "description": "Error response indicates Microsoft.Marketplace service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "error": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "Error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "Operation": { + "description": "Microsoft.Marketplace REST API operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Marketplace", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Amendments", + "type": "string" + }, + "operation": { + "description": "Operation type: Get Amendments etc.", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Marketplace operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of Microsoft.Marketplace operations supported by the Microsoft.Marketplace resource provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any.", + "readOnly": true + } + } + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json new file mode 100644 index 000000000000..8458e8864299 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "api-version": "2019-12-01" + }, + "responses": { + "200": { + "description": "OK. The request has succeeded." + } + } +} diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index f6359e53061a..4dfd75510c94 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -57,6 +57,7 @@ APIs must only be added to this section when the API is publicly available in at input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json - Microsoft.Marketplace/stable/2020-12-01/Marketplace.json +- Microsoft.Marketplace/stable/2019-12-01/Marketplace.json ``` # Needed when there is more than one input file @@ -64,6 +65,15 @@ override-info: title: MarketplaceManagementClient ``` +### Tag: package-2019-12-01 + +These settings apply only when `--tag=package-2019-12-01` is specified on the command line. + +``` yaml $(tag) == 'package-2019-12-01' +input-file: + - Microsoft.Marketplace/stable/2019-12-01/Marketplace.json +``` + ### Tag: package-2020-01-01 These settings apply only when `--tag=package-2020-01-01` is specified on the command line. From fa9743f2020db769cf185161ab85ce0b51243937 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Tue, 20 Apr 2021 11:15:57 +0300 Subject: [PATCH 13/22] Adding v2019 back --- specification/marketplace/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index 4dfd75510c94..11df8be9d3c0 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -43,6 +43,7 @@ APIs must only be added to this section when the API is publicly available in at ``` yaml $(tag) == 'package-composite-v2' input-file: - Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +- Microsoft.Marketplace/stable/2019-12-01/Marketplace.json ``` ### Tag: package-composite-v1 From 108a205aaafb1102e88fbfededae83c03060607d Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Tue, 20 Apr 2021 15:19:29 +0300 Subject: [PATCH 14/22] remove v2019 --- .../stable/2019-12-01/Marketplace.json | 174 ------------------ .../examples/GetPrivateStoreClient.json | 13 -- .../readme.azureresourceschema.md | 12 -- .../marketplace/resource-manager/readme.md | 11 -- 4 files changed, 210 deletions(-) delete mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json delete mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json deleted file mode 100644 index 76d987df9829..000000000000 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/Marketplace.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2019-12-01", - "title": "Marketplace RP Service" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Marketplace/privateStoreClient/isPrivateClient": { - "get": { - "tags": [ - "isPrivateClient" - ], - "description": "Check if client is private or not.", - "operationId": "PrivateStoreClient_Get", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - } - }, - "x-ms-examples": { - "GetPrivateStoreClient": { - "$ref": "./examples/GetPrivateStoreClient.json" - } - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ] - } - }, - "/providers/Microsoft.Marketplace/operations": { - "get": { - "tags": [ - "Operations" - ], - "description": "Lists all of the available Microsoft.Marketplace REST API operations.", - "operationId": "Operations_List", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "Microsoft.Marketplace error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - } - }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for the request." - }, - "subscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "description": "The Azure subscription ID.", - "required": true, - "type": "string" - } - }, - "definitions": { - "ErrorResponse": { - "description": "Error response indicates Microsoft.Marketplace service is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", - "properties": { - "error": { - "description": "The details of the error.", - "properties": { - "code": { - "description": "Error code.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string", - "readOnly": true - } - } - } - } - }, - "Operation": { - "description": "Microsoft.Marketplace REST API operation", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}", - "type": "string" - }, - "display": { - "description": "The object that represents the operation.", - "properties": { - "provider": { - "description": "Service provider: Microsoft.Marketplace", - "type": "string" - }, - "resource": { - "description": "Resource on which the operation is performed: Amendments", - "type": "string" - }, - "operation": { - "description": "Operation type: Get Amendments etc.", - "type": "string" - } - } - } - } - }, - "OperationListResult": { - "description": "Result of the request to list Marketplace operations. It contains a list of operations and a URL link to get the next set of results.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "List of Microsoft.Marketplace operations supported by the Microsoft.Marketplace resource provider." - }, - "nextLink": { - "type": "string", - "description": "URL to get the next set of operation list results if there are any.", - "readOnly": true - } - } - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - } -} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json deleted file mode 100644 index 8458e8864299..000000000000 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2019-12-01/examples/GetPrivateStoreClient.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "resRg", - "clusterName": "myCluster", - "api-version": "2019-12-01" - }, - "responses": { - "200": { - "description": "OK. The request has succeeded." - } - } -} diff --git a/specification/marketplace/resource-manager/readme.azureresourceschema.md b/specification/marketplace/resource-manager/readme.azureresourceschema.md index 59d35679b8ce..797b3d1ff917 100644 --- a/specification/marketplace/resource-manager/readme.azureresourceschema.md +++ b/specification/marketplace/resource-manager/readme.azureresourceschema.md @@ -9,7 +9,6 @@ batch: - tag: schema-marketplace-2021-06-01 - tag: schema-marketplace-2020-12-01 - tag: schema-marketplace-2020-01-01 - - tag: schema-marketplace-2019-12-01 ``` @@ -47,14 +46,3 @@ input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json ``` - -### Tag: schema-marketplace-2019-12-01 and azureresourceschema - -``` yaml $(tag) == 'schema-marketplace-2019-12-01' && $(azureresourceschema) -output-folder: $(azureresourceschema-folder)/schemas - -# all the input files in this apiVersion -input-file: - - Microsoft.Marketplace/stable/2019-12-01/Marketplace.json - -``` diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index 11df8be9d3c0..f6359e53061a 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -43,7 +43,6 @@ APIs must only be added to this section when the API is publicly available in at ``` yaml $(tag) == 'package-composite-v2' input-file: - Microsoft.Marketplace/stable/2021-06-01/Marketplace.json -- Microsoft.Marketplace/stable/2019-12-01/Marketplace.json ``` ### Tag: package-composite-v1 @@ -58,7 +57,6 @@ APIs must only be added to this section when the API is publicly available in at input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json - Microsoft.Marketplace/stable/2020-12-01/Marketplace.json -- Microsoft.Marketplace/stable/2019-12-01/Marketplace.json ``` # Needed when there is more than one input file @@ -66,15 +64,6 @@ override-info: title: MarketplaceManagementClient ``` -### Tag: package-2019-12-01 - -These settings apply only when `--tag=package-2019-12-01` is specified on the command line. - -``` yaml $(tag) == 'package-2019-12-01' -input-file: - - Microsoft.Marketplace/stable/2019-12-01/Marketplace.json -``` - ### Tag: package-2020-01-01 These settings apply only when `--tag=package-2020-01-01` is specified on the command line. From 8a03f2b08e551b0cb5f9251f806e4353be394012 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Thu, 29 Apr 2021 12:47:35 +0300 Subject: [PATCH 15/22] align with master latest changes --- .../readme.azureresourceschema.md | 48 ------------------- .../marketplace/resource-manager/readme.md | 5 -- 2 files changed, 53 deletions(-) delete mode 100644 specification/marketplace/resource-manager/readme.azureresourceschema.md diff --git a/specification/marketplace/resource-manager/readme.azureresourceschema.md b/specification/marketplace/resource-manager/readme.azureresourceschema.md deleted file mode 100644 index 797b3d1ff917..000000000000 --- a/specification/marketplace/resource-manager/readme.azureresourceschema.md +++ /dev/null @@ -1,48 +0,0 @@ -## AzureResourceSchema - -These settings apply only when `--azureresourceschema` is specified on the command line. - -### AzureResourceSchema multi-api - -``` yaml $(azureresourceschema) && $(multiapi) -batch: - - tag: schema-marketplace-2021-06-01 - - tag: schema-marketplace-2020-12-01 - - tag: schema-marketplace-2020-01-01 - -``` - -Please also specify `--azureresourceschema-folder=`. - -### Tag: schema-marketplace-2021-06-01 and azureresourceschema - -``` yaml $(tag) == 'schema-marketplace-2021-06-01' && $(azureresourceschema) -output-folder: $(azureresourceschema-folder)/schemas - -# all the input files in this apiVersion -input-file: - - Microsoft.Marketplace/stable/2021-06-01/Marketplace.json - -``` - -### Tag: schema-marketplace-2020-12-01 and azureresourceschema - -``` yaml $(tag) == 'schema-marketplace-2020-12-01' && $(azureresourceschema) -output-folder: $(azureresourceschema-folder)/schemas - -# all the input files in this apiVersion -input-file: - - Microsoft.Marketplace/stable/2020-12-01/Marketplace.json - -``` - -### Tag: schema-marketplace-2020-01-01 and azureresourceschema - -``` yaml $(tag) == 'schema-marketplace-2020-01-01' && $(azureresourceschema) -output-folder: $(azureresourceschema-folder)/schemas - -# all the input files in this apiVersion -input-file: - - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json - -``` diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index f6359e53061a..352094138b34 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -102,8 +102,6 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-sdk-for-net - repo: azure-resource-manager-schemas - after_scripts: - - node sdkauto_afterscript.js marketplace/resource-manager ``` ## C# @@ -122,7 +120,4 @@ csharp: lenient-model-deduplication: true ``` -## AzureResourceSchema - -See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) From af8b5c59f829636e32cf99801588edf3fbd75080 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Sun, 2 May 2021 09:30:11 +0300 Subject: [PATCH 16/22] Fix conflict --- specification/marketplace/resource-manager/readme.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index 352094138b34..43048d5c2805 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -43,7 +43,6 @@ APIs must only be added to this section when the API is publicly available in at ``` yaml $(tag) == 'package-composite-v2' input-file: - Microsoft.Marketplace/stable/2021-06-01/Marketplace.json -``` ### Tag: package-composite-v1 @@ -57,7 +56,6 @@ APIs must only be added to this section when the API is publicly available in at input-file: - Microsoft.Marketplace/stable/2020-01-01/Marketplace.json - Microsoft.Marketplace/stable/2020-12-01/Marketplace.json -``` # Needed when there is more than one input file override-info: From 8713aa9c92c01a2014c772b202b845de7bbcf471 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Sun, 2 May 2021 10:11:09 +0300 Subject: [PATCH 17/22] fix conflict --- specification/marketplace/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index 43048d5c2805..43d24437116b 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -119,3 +119,4 @@ csharp: ``` + From 234c1de6683963c0e6d87e4c24e7ceaff07c3953 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Sun, 2 May 2021 10:57:51 +0300 Subject: [PATCH 18/22] Fix tests --- specification/marketplace/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/marketplace/resource-manager/readme.md b/specification/marketplace/resource-manager/readme.md index 43d24437116b..c33d257083e0 100644 --- a/specification/marketplace/resource-manager/readme.md +++ b/specification/marketplace/resource-manager/readme.md @@ -43,6 +43,7 @@ APIs must only be added to this section when the API is publicly available in at ``` yaml $(tag) == 'package-composite-v2' input-file: - Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +``` ### Tag: package-composite-v1 From 608fee01b118af684280f4d721204ff67fb4bdd0 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Sun, 23 May 2021 08:52:49 +0300 Subject: [PATCH 19/22] adding more apis --- .../stable/2021-06-01/Marketplace.json | 201 ++++++++++++++++-- .../2021-06-01/examples/BillingAccounts.json | 16 ++ ...on => GetPrivateStoreCollectionOffer.json} | 0 .../examples/PostPrivateStoreCollection.json | 11 + ...n => PostPrivateStoreCollectionOffer.json} | 2 +- .../2021-06-01/examples/TransferOffers.json | 22 ++ 6 files changed, 239 insertions(+), 13 deletions(-) create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/BillingAccounts.json rename specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/{GetPrivateStoreOffer.json => GetPrivateStoreCollectionOffer.json} (100%) create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreCollection.json rename specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/{PostPrivateStoreOffer.json => PostPrivateStoreCollectionOffer.json} (84%) create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/TransferOffers.json diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json index a956e468be61..34beb15f8350 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json @@ -149,6 +149,42 @@ } } }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/billingAccounts": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "post": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_BillingAccounts", + "description": "Tenant billing accounts names", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/BillingAccountsResponse" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "BillingAccounts": { + "$ref": "./examples/BillingAccounts.json" + } + } + } + }, "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections": { "parameters": [ { @@ -279,10 +315,87 @@ } }, "x-ms-examples": { - "DeletePrivateStoreOffer": { + "DeletePrivateStoreCollection": { "$ref": "./examples/DeletePrivateStoreCollection.json" } } + }, + "post": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreCollection_Post", + "description": "Delete Private store collection. This is a workaround.", + "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": { + "PostPrivateStoreCollection": { + "$ref": "./examples/PostPrivateStoreCollection.json" + } + } + } + }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/transferOffers": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/CollectionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "post": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStoreCollection_TransferOffers", + "description": "transferring offers (copy or move) from source collection to target collection(s)", + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/TransferOffersProperties" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TransferOffers": { + "$ref": "./examples/TransferOffers.json" + } + } } }, "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers": { @@ -301,7 +414,7 @@ "tags": [ "PrivateStores" ], - "operationId": "PrivateStoreOffer_List", + "operationId": "PrivateStoreCollectionOffer_List", "description": "Get a list of all private offers in the given private store and collection", "responses": { "200": { @@ -346,7 +459,7 @@ "tags": [ "PrivateStores" ], - "operationId": "PrivateStoreOffer_Get", + "operationId": "PrivateStoreCollectionOffer_Get", "description": "Gets information about a specific offer.", "responses": { "200": { @@ -363,8 +476,8 @@ } }, "x-ms-examples": { - "GetPrivateStoreOffer": { - "$ref": "./examples/GetPrivateStoreOffer.json" + "GetPrivateStoreCollectionOffer": { + "$ref": "./examples/GetPrivateStoreCollectionOffer.json" } } }, @@ -372,7 +485,7 @@ "tags": [ "PrivateStores" ], - "operationId": "PrivateStoreOffer_CreateOrUpdate", + "operationId": "PrivateStoreCollectionOffer_CreateOrUpdate", "description": "Update or add an offer to a specific collection of the private store.", "parameters": [ { @@ -407,7 +520,7 @@ "tags": [ "PrivateStores" ], - "operationId": "PrivateStoreOffer_Delete", + "operationId": "PrivateStoreCollectionOffer_Delete", "description": "Deletes an offer from the given collection of private store.", "responses": { "200": { @@ -433,7 +546,7 @@ "tags": [ "PrivateStores" ], - "operationId": "PrivateStoreOffer_Post", + "operationId": "PrivateStoreCollectionOffer_Post", "description": "Delete Private store offer. This is a workaround.", "parameters": [ { @@ -456,8 +569,8 @@ } }, "x-ms-examples": { - "PostPrivateStoreOffer": { - "$ref": "./examples/PostPrivateStoreOffer.json" + "PostPrivateStoreCollectionOffer": { + "$ref": "./examples/PostPrivateStoreCollectionOffer.json" } } } @@ -1034,7 +1147,7 @@ "type": "boolean" }, "collectionIds": { - "description": "Gets or sets list of associated collection ids", + "description": "Gets list of associated collection ids", "type": "array", "items": { "type": "string" @@ -1086,7 +1199,7 @@ "type": "object", "properties": { "collectionId": { - "description": "Gets or sets collection Id.", + "description": "Gets collection Id.", "type": "string", "readOnly": true }, @@ -1108,6 +1221,16 @@ "items": { "type": "string" } + }, + "enabled": { + "description": "Indicating whether the collection is enabled or disabled.", + "type": "boolean" + }, + "numberOfOffers": { + "description": "Gets the number of offers associated with the collection.", + "type": "integer", + "format": "int64", + "readOnly": true } } }, @@ -1557,6 +1680,10 @@ "items": { "type": "string" } + }, + "subscriptionId": { + "description": "Gets or sets the subscription id", + "type": "string" } } }, @@ -1768,11 +1895,61 @@ } } }, + "BillingAccountsResponse": { + "description": "Billing accounts response object", + "type": "object", + "properties": { + "billingAccounts": { + "description": "Billing accounts list", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "TransferOffersProperties": { + "description": "Transfer offers properties", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/TransferOffersDetails", + "description": "transfer offers properties details", + "x-ms-client-flatten": true + } + } + }, + "TransferOffersDetails": { + "description": "Transfer offers response details", + "type": "object", + "properties": { + "targetCollections": { + "description": "Target collections ids", + "type": "array", + "items": { + "type": "string" + } + }, + "operation": { + "description": "Operation to perform (For example: Copy or Move)", + "type": "string" + }, + "offerIdsList": { + "description": "Offers ids list to transfer from source collection to target collection(s)", + "type": "array", + "items": { + "type": "string" + } + } + } + }, "PrivateStoreOperation": { "description": "Set the Operation for the POST method. Ping or Delete", "type": "string", "enum": [ "DeletePrivateStoreOffer", + "DeletePrivateStoreCollection", + "DeletePrivateStoreCollectionOffer", "Ping" ], "x-ms-enum": { diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/BillingAccounts.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/BillingAccounts.json new file mode 100644 index 000000000000..a47233b0f34b --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/BillingAccounts.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "billingAccounts": [ + "Billing Account 1", + "Billing Account 2" + ] + } + } + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreCollectionOffer.json similarity index 100% rename from specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreOffer.json rename to specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/GetPrivateStoreCollectionOffer.json diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreCollection.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreCollection.json new file mode 100644 index 000000000000..64651d20ebf4 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreCollection.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "api-version": "2021-06-01", + "Operation": "DeletePrivateStoreCollection" + }, + "responses": { + "200": {} + } +} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreOffer.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreCollectionOffer.json similarity index 84% rename from specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreOffer.json rename to specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreCollectionOffer.json index b3dce9416a6d..bafcf4549639 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreOffer.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/PostPrivateStoreCollectionOffer.json @@ -4,7 +4,7 @@ "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", "offerId": "marketplacetestthirdparty.md-test-third-party-2", "api-version": "2021-06-01", - "Operation": "DeletePrivateStoreOffer" + "Operation": "DeletePrivateStoreCollectionOffer" }, "responses": { "200": {} diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/TransferOffers.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/TransferOffers.json new file mode 100644 index 000000000000..16bb8666fece --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/TransferOffers.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d", + "api-version": "2021-06-01", + "payload": { + "properties": { + "targetCollections": [ + "c752f021-1c37-4af5-b82f-74c51c27b44a" + ], + "operation": "copy", + "offerIdsList": [ + "marketplacetestthirdparty.md-test-third-party-2", + "marketplacetestthirdparty.md-test-third-party-3" + ] + } + } + }, + "responses": { + "200": {} + } +} From a311118a1cc8c0feb8393866a2989b95f642e67f Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Tue, 25 May 2021 15:55:34 +0300 Subject: [PATCH 20/22] Add API: collectionsSubscriptionsMapping --- .../stable/2021-06-01/Marketplace.json | 102 ++++++++++++++++++ .../CollectionsToSubscriptionsMapping.json | 33 ++++++ 2 files changed, 135 insertions(+) create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CollectionsToSubscriptionsMapping.json diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json index 34beb15f8350..93fdd0c0b2ba 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json @@ -185,6 +185,51 @@ } } }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collectionsToSubscriptionsMapping": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "post": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_CollectionsToSubscriptionsMapping", + "description": "For a given subscriptions list, the API will return a map of collections and the related subscriptions from the supplied list.", + "parameters": [ + { + "in": "body", + "name": "payload", + "schema": { + "$ref": "#/definitions/CollectionsToSubscriptionsMappingPayload" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CollectionsToSubscriptionsMappingResponse" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CollectionsToSubscriptionsMapping": { + "$ref": "./examples/CollectionsToSubscriptionsMapping.json" + } + } + } + }, "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections": { "parameters": [ { @@ -1943,6 +1988,63 @@ } } }, + "CollectionsToSubscriptionsMappingPayload": { + "description": "The subscriptions list to get the related collections", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/CollectionsToSubscriptionsMappingProperties", + "description": "Subscriptions ids list" + } + } + }, + "CollectionsToSubscriptionsMappingProperties": { + "description": "The subscriptions list to get the related collections", + "type": "object", + "properties": { + "subscriptionIds": { + "description": "Subscriptions ids list", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "CollectionsToSubscriptionsMappingResponse": { + "description": "A map of collections subscriptions details", + "type": "object", + "properties": { + "details": { + "$ref": "#/definitions/CollectionsToSubscriptionsMappingResponseProperties", + "description": "The map of collections subscriptions" + } + } + }, + "CollectionsToSubscriptionsMappingResponseProperties": { + "description": "Collections - subscriptions mapping details, map key is collectionId. In case subscriptions list is null or empty: no subscription from the list is related to that collection.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/collectionsSubscriptionsMappingDetails" + } + }, + "collectionsSubscriptionsMappingDetails": { + "description": "Collection name and related subscriptions list", + "type": "object", + "properties": { + "collectionName": { + "description": "Collection name", + "type": "string" + }, + "subscriptions": { + "description": "Subscriptions ids list", + "type": "array", + "items": { + "type": "string" + } + } + } + }, "PrivateStoreOperation": { "description": "Set the Operation for the POST method. Ping or Delete", "type": "string", diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CollectionsToSubscriptionsMapping.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CollectionsToSubscriptionsMapping.json new file mode 100644 index 000000000000..c746ec91b65e --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/CollectionsToSubscriptionsMapping.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2021-06-01", + "payload": { + "properties": { + "subscriptionIds": [ + "b340914e-353d-453a-85fb-8f9b65b51f91", + "f2baa04d-5bfc-461b-b6d8-61b403c9ec48" + ] + } + } + }, + "responses": { + "200": { + "body": { + "details": { + "4eb49758-f591-486f-bd58-dff00fb7a8d8": { + "collectionName": "Test Collection", + "subscriptions": [ + "b340914e-353d-453a-85fb-8f9b65b51f91", + "f2baa04d-5bfc-461b-b6d8-61b403c9ec48" + ] + }, + "74c02e27-2524-436c-831d-d64565f31153": { + "collectionName": "Test Collection 2", + "subscriptions": null + } + } + } + } + } +} From a9bf3bb52c5f20739375b463888907a12f64242b Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Thu, 3 Jun 2021 18:19:26 +0300 Subject: [PATCH 21/22] Adding api: query offers --- .../stable/2021-06-01/Marketplace.json | 52 +++++++++++++++++++ .../2021-06-01/examples/QueryOffers.json | 42 +++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/QueryOffers.json diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json index 93fdd0c0b2ba..d229c5329baf 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json @@ -149,6 +149,42 @@ } } }, + "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/queryOffers": { + "parameters": [ + { + "$ref": "#/parameters/PrivateStoreIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "post": { + "tags": [ + "PrivateStores" + ], + "operationId": "PrivateStore_QueryOffers", + "description": "List of offers, regardless the collections", + "responses": { + "200": { + "description": "List of offers", + "schema": { + "$ref": "#/definitions/QueryOffers" + } + }, + "default": { + "description": "Microsoft.Marketplace error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "QueryOffers": { + "$ref": "./examples/QueryOffers.json" + } + } + } + }, "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/billingAccounts": { "parameters": [ { @@ -1294,6 +1330,22 @@ } } }, + "QueryOffers": { + "description": "List of offers", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/OfferProperties" + } + }, + "nextLink": { + "description": "URL to get the next set of PrivateStore list results if there are any.", + "type": "string" + } + } + }, "Offer": { "description": "The privateStore offer data structure.", "type": "object", diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/QueryOffers.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/QueryOffers.json new file mode 100644 index 000000000000..3705158dfb11 --- /dev/null +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/QueryOffers.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406", + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": { + "nextLink": "", + "value": [ + { + "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" + }, + { + "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" + } + ] + } + } + } +} From 297188eac466cbb34683189bb3c00287f4795ff2 Mon Sep 17 00:00:00 2001 From: Miri Berezin Date: Mon, 7 Jun 2021 18:07:12 +0300 Subject: [PATCH 22/22] Change transferOffers response body to retrieve which on collections the operation succeeded or failed --- .../stable/2021-06-01/Marketplace.json | 39 ++++++++++++++++++- .../2021-06-01/examples/TransferOffers.json | 20 +++++++++- 2 files changed, 56 insertions(+), 3 deletions(-) diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json index d229c5329baf..daaf091ace01 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/Marketplace.json @@ -463,7 +463,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/TransferOffersResponse" + } }, "default": { "description": "Microsoft.Marketplace error response describing why the operation failed.", @@ -2016,6 +2019,40 @@ } } }, + "TransferOffersResponse": { + "description": "The transfer items response. The response contains two lists that indicate for each collection whether the operation succeeded or failed", + "type": "object", + "properties": { + "succeeded": { + "description": "Succeeded collections", + "type": "array", + "items": { + "$ref": "#/definitions/CollectionsDetails" + } + }, + "failed": { + "description": "Failed collections", + "type": "array", + "items": { + "$ref": "#/definitions/CollectionsDetails" + } + } + } + }, + "CollectionsDetails": { + "description": "Collection name and id.", + "type": "object", + "properties": { + "collectionName": { + "description": "Collection name.", + "type": "string" + }, + "collectionId": { + "description": "Collection id.", + "type": "string" + } + } + }, "TransferOffersDetails": { "description": "Transfer offers response details", "type": "object", diff --git a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/TransferOffers.json b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/TransferOffers.json index 16bb8666fece..30d11e8a37bb 100644 --- a/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/TransferOffers.json +++ b/specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2021-06-01/examples/TransferOffers.json @@ -6,7 +6,8 @@ "payload": { "properties": { "targetCollections": [ - "c752f021-1c37-4af5-b82f-74c51c27b44a" + "c752f021-1c37-4af5-b82f-74c51c27b44a", + "f47ef1c7-e908-4f39-ae29-db181634ad8d" ], "operation": "copy", "offerIdsList": [ @@ -17,6 +18,21 @@ } }, "responses": { - "200": {} + "200": { + "body": { + "succeeded": [ + { + "collectionId": "c752f021-1c37-4af5-b82f-74c51c27b44a", + "collectionName": "Test collection" + } + ], + "failed": [ + { + "collectionId": "f47ef1c7-e908-4f39-ae29-db181634ad8d", + "collectionName": "Test collection 2" + } + ] + } + } } }