From a3ba4dfd3b622cd77aebf5e3bbb8e07a6d858c90 Mon Sep 17 00:00:00 2001 From: meirloichter <96380538+meirloichter@users.noreply.github.com> Date: Mon, 3 Oct 2022 07:01:20 +0300 Subject: [PATCH] [MarketplaceOrdering] [S360] Add missing Operations example (#20936) * Adding example for MarketplaceOrdering * fix operations list example name \ * fix typo --- .../stable/2021-01-01/Agreements.json | 7 +- .../2021-01-01/examples/OperationsList.json | 76 +++++++++++++++++++ 2 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2021-01-01/examples/OperationsList.json diff --git a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2021-01-01/Agreements.json b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2021-01-01/Agreements.json index fbf4b0d1c8e5..d06fb18c2f7f 100644 --- a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2021-01-01/Agreements.json +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2021-01-01/Agreements.json @@ -157,6 +157,11 @@ } } }, + "x-ms-examples": { + "List Operations": { + "$ref": "./examples/OperationsList.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -293,7 +298,7 @@ "operationId": "MarketplaceAgreements_List", "description": "List marketplace agreements in the subscription.", "x-ms-examples": { - "SetMarketplaceTerms": { + "ListMarketplaceTerms": { "$ref": "./examples/ListMarketplaceTerms.json" } }, diff --git a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2021-01-01/examples/OperationsList.json b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2021-01-01/examples/OperationsList.json new file mode 100644 index 000000000000..abc221843c64 --- /dev/null +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2021-01-01/examples/OperationsList.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.MarketplaceOrdering/agreements/read", + "display": { + "provider": "Microsoft Marketplace Ordering", + "resource": "Agreement", + "operation": "Get all Agreements", + "description": "Return all agreements under given subscription" + } + }, + { + "name": "Microsoft.MarketplaceOrdering/agreements/offers/plans/read", + "display": { + "provider": "Microsoft Marketplace Ordering", + "resource": "Agreement", + "operation": "Get Agreement", + "description": "Return an agreement for a given marketplace item" + } + }, + { + "name": "Microsoft.MarketplaceOrdering/agreements/offers/plans/sign/action", + "display": { + "provider": "Microsoft Marketplace Ordering", + "resource": "Agreement", + "operation": "Sign Agreement", + "description": "Sign an agreement for a given marketplace item" + } + }, + { + "name": "Microsoft.MarketplaceOrdering/agreements/offers/plans/cancel/action", + "display": { + "provider": "Microsoft Marketplace Ordering", + "resource": "Agreement", + "operation": "Cancel Agreement", + "description": "Cancel an agreement for a given marketplace item" + } + }, + { + "name": "Microsoft.MarketplaceOrdering/offertypes/publishers/offers/plans/agreements/read", + "display": { + "provider": "Microsoft Marketplace Ordering", + "resource": "Agreement", + "operation": "Get Agreement for virtual machine", + "description": "Get an agreement for a given marketplace virtual machine item" + } + }, + { + "name": "Microsoft.MarketplaceOrdering/offertypes/publishers/offers/plans/agreements/write", + "display": { + "provider": "Microsoft Marketplace Ordering", + "resource": "Agreement", + "operation": "Save Agreement for virtual machine", + "description": "Sign or Cancel an agreement for a given marketplace virtual machine item" + } + }, + { + "name": "Microsoft.MarketplaceOrdering/operations/read", + "display": { + "provider": "Microsoft Marketplace Ordering", + "resource": "Agreement", + "operation": "List Operations", + "description": "List all possible operations in the API" + } + } + ] + } + } + } +}