Skip to content

Commit 5042036

Browse files
meirloichteraviyerMSFT
authored andcommitted
[S360 fix] Add details field to ErrorResponse (Azure#22910)
merge with breaking change approved
1 parent 4a5425d commit 5042036

File tree

8 files changed

+113
-6
lines changed

8 files changed

+113
-6
lines changed

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@
178178
}
179179
}
180180
},
181+
"x-ms-examples": {
182+
"List Operations": {
183+
"$ref": "./examples/OperationsList.json"
184+
}
185+
},
181186
"x-ms-pageable": {
182187
"nextLinkName": "nextLink"
183188
}
@@ -578,6 +583,27 @@
578583
"description": "Error message indicating why the operation failed.",
579584
"type": "string",
580585
"readOnly": true
586+
},
587+
"details": {
588+
"description": "List of inner error messages indicating why the operation failed.",
589+
"type": "array",
590+
"uniqueItems": false,
591+
"x-ms-identifiers": [],
592+
"items": {
593+
"type": "object",
594+
"properties": {
595+
"code": {
596+
"description": "Error code.",
597+
"type": "string",
598+
"readOnly": true
599+
},
600+
"message": {
601+
"description": "Error message indicating why the operation failed.",
602+
"type": "string",
603+
"readOnly": true
604+
}
605+
}
606+
}
581607
}
582608
}
583609
}

specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/CancelMarketplaceTerms.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parameters": {
3-
"api-version": "2016-04-01",
3+
"api-version": "2015-06-01",
44
"subscriptionId": "subid",
55
"publisherId": "pubid",
66
"offerId": "offid",

specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/GetAgreementMarketplaceTerms.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parameters": {
3-
"api-version": "2016-04-01",
3+
"api-version": "2015-06-01",
44
"subscriptionId": "subid",
55
"publisherId": "pubid",
66
"offerId": "offid",

specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/GetMarketplaceTerms.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parameters": {
3-
"api-version": "2016-04-01",
3+
"api-version": "2015-06-01",
44
"subscriptionId": "subid",
55
"offerType": "virtualmachine",
66
"publisherId": "pubid",

specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/ListMarketplaceTerms.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parameters": {
3-
"api-version": "2016-04-01",
3+
"api-version": "2015-06-01",
44
"subscriptionId": "subid"
55
},
66
"responses": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"parameters": {
3+
"api-version": "2015-06-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+
"415": {
76+
"body": {
77+
"Message": "media type unsupported"
78+
}
79+
}
80+
}
81+
}

specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/SetMarketplaceTerms.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parameters": {
3-
"api-version": "2016-04-01",
3+
"api-version": "2015-06-01",
44
"subscriptionId": "subid",
55
"offerType": "virtualmachine",
66
"publisherId": "pubid",

specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/SignMarketplaceTerms.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parameters": {
3-
"api-version": "2016-04-01",
3+
"api-version": "2015-06-01",
44
"subscriptionId": "subid",
55
"publisherId": "pubid",
66
"offerId": "offid",

0 commit comments

Comments
 (0)