Skip to content

Commit a3ba4df

Browse files
authored
[MarketplaceOrdering] [S360] Add missing Operations example (#20936)
* Adding example for MarketplaceOrdering * fix operations list example name \ * fix typo
1 parent 7f3cad1 commit a3ba4df

File tree

2 files changed

+82
-1
lines changed

2 files changed

+82
-1
lines changed

specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2021-01-01/Agreements.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@
157157
}
158158
}
159159
},
160+
"x-ms-examples": {
161+
"List Operations": {
162+
"$ref": "./examples/OperationsList.json"
163+
}
164+
},
160165
"x-ms-pageable": {
161166
"nextLinkName": "nextLink"
162167
}
@@ -293,7 +298,7 @@
293298
"operationId": "MarketplaceAgreements_List",
294299
"description": "List marketplace agreements in the subscription.",
295300
"x-ms-examples": {
296-
"SetMarketplaceTerms": {
301+
"ListMarketplaceTerms": {
297302
"$ref": "./examples/ListMarketplaceTerms.json"
298303
}
299304
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-01-01"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.MarketplaceOrdering/agreements/read",
11+
"display": {
12+
"provider": "Microsoft Marketplace Ordering",
13+
"resource": "Agreement",
14+
"operation": "Get all Agreements",
15+
"description": "Return all agreements under given subscription"
16+
}
17+
},
18+
{
19+
"name": "Microsoft.MarketplaceOrdering/agreements/offers/plans/read",
20+
"display": {
21+
"provider": "Microsoft Marketplace Ordering",
22+
"resource": "Agreement",
23+
"operation": "Get Agreement",
24+
"description": "Return an agreement for a given marketplace item"
25+
}
26+
},
27+
{
28+
"name": "Microsoft.MarketplaceOrdering/agreements/offers/plans/sign/action",
29+
"display": {
30+
"provider": "Microsoft Marketplace Ordering",
31+
"resource": "Agreement",
32+
"operation": "Sign Agreement",
33+
"description": "Sign an agreement for a given marketplace item"
34+
}
35+
},
36+
{
37+
"name": "Microsoft.MarketplaceOrdering/agreements/offers/plans/cancel/action",
38+
"display": {
39+
"provider": "Microsoft Marketplace Ordering",
40+
"resource": "Agreement",
41+
"operation": "Cancel Agreement",
42+
"description": "Cancel an agreement for a given marketplace item"
43+
}
44+
},
45+
{
46+
"name": "Microsoft.MarketplaceOrdering/offertypes/publishers/offers/plans/agreements/read",
47+
"display": {
48+
"provider": "Microsoft Marketplace Ordering",
49+
"resource": "Agreement",
50+
"operation": "Get Agreement for virtual machine",
51+
"description": "Get an agreement for a given marketplace virtual machine item"
52+
}
53+
},
54+
{
55+
"name": "Microsoft.MarketplaceOrdering/offertypes/publishers/offers/plans/agreements/write",
56+
"display": {
57+
"provider": "Microsoft Marketplace Ordering",
58+
"resource": "Agreement",
59+
"operation": "Save Agreement for virtual machine",
60+
"description": "Sign or Cancel an agreement for a given marketplace virtual machine item"
61+
}
62+
},
63+
{
64+
"name": "Microsoft.MarketplaceOrdering/operations/read",
65+
"display": {
66+
"provider": "Microsoft Marketplace Ordering",
67+
"resource": "Agreement",
68+
"operation": "List Operations",
69+
"description": "List all possible operations in the API"
70+
}
71+
}
72+
]
73+
}
74+
}
75+
}
76+
}

0 commit comments

Comments
 (0)