Skip to content

Commit

Permalink
[MarketplaceOrdering] [S360] Add missing Operations example (#20936)
Browse files Browse the repository at this point in the history
* Adding example for MarketplaceOrdering

* fix operations list example name
\

* fix typo
  • Loading branch information
meirloichter authored Oct 3, 2022
1 parent 7f3cad1 commit a3ba4df
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@
}
}
},
"x-ms-examples": {
"List Operations": {
"$ref": "./examples/OperationsList.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
Expand Down Expand Up @@ -293,7 +298,7 @@
"operationId": "MarketplaceAgreements_List",
"description": "List marketplace agreements in the subscription.",
"x-ms-examples": {
"SetMarketplaceTerms": {
"ListMarketplaceTerms": {
"$ref": "./examples/ListMarketplaceTerms.json"
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
}
}
]
}
}
}
}

0 comments on commit a3ba4df

Please sign in to comment.