Skip to content

Commit 69f9260

Browse files
OchirkhuyagOchi
authored andcommitted
s360 correctness: SubscriptionRP v2019-03-01-preview (Azure#17429)
* s360 correctness: SubscriptionRP v2019-03-01-preview * example for renameSubscription is corrected Co-authored-by: Ochi <[email protected]>
1 parent 3c6c5bd commit 69f9260

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
lines changed

specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/examples/cancelSubscription.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"responses": {
77
"200": {
88
"body": {
9-
"value": "83aa47df-e3e9-49ff-877b-94304bf3d3ad"
9+
"subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad"
1010
}
1111
}
1212
}

specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/examples/enableSubscription.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"responses": {
77
"200": {
88
"body": {
9-
"value": "7948bcee-488c-47ce-941c-38e20ede803d"
9+
"subscriptionId": "7948bcee-488c-47ce-941c-38e20ede803d"
1010
}
1111
}
1212
}

specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/examples/renameSubscription.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad",
44
"api-version": "2019-03-01-preview",
55
"body": {
6-
"SubscriptionName": "Test Sub"
6+
"subscriptionName": "Test Sub"
77
}
88
},
99
"responses": {
1010
"200": {
1111
"body": {
12-
"value": "83aa47df-e3e9-49ff-877b-94304bf3d3ad"
12+
"subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad"
1313
}
1414
}
1515
}

specification/subscription/resource-manager/Microsoft.Subscription/preview/2019-03-01-preview/subscriptions.json

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"default": {
4444
"description": "Describes the error if the operation is not successful.",
4545
"schema": {
46-
"$ref": "#/definitions/ErrorResponse"
46+
"$ref": "#/definitions/ErrorResponseBody"
4747
}
4848
}
4949
}
@@ -79,7 +79,7 @@
7979
"default": {
8080
"description": "Describes the error if the operation is not successful.",
8181
"schema": {
82-
"$ref": "#/definitions/ErrorResponse"
82+
"$ref": "#/definitions/ErrorResponseBody"
8383
}
8484
}
8585
}
@@ -112,7 +112,7 @@
112112
"default": {
113113
"description": "Describes the error if the operation is not successful.",
114114
"schema": {
115-
"$ref": "#/definitions/ErrorResponse"
115+
"$ref": "#/definitions/ErrorResponseBody"
116116
}
117117
}
118118
}
@@ -134,10 +134,28 @@
134134
}
135135
}
136136
},
137+
"ErrorResponseBody": {
138+
"description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.",
139+
"type": "object",
140+
"properties": {
141+
"error": {
142+
"description": "The details of the error.",
143+
"$ref": "#/definitions/ErrorResponse"
144+
},
145+
"code": {
146+
"description": "Error code",
147+
"type": "string"
148+
},
149+
"message": {
150+
"description": "Error message indicating why the operation failed.",
151+
"type": "string"
152+
}
153+
}
154+
},
137155
"CanceledSubscriptionId": {
138156
"description": "The ID of the canceled subscription",
139157
"properties": {
140-
"value": {
158+
"subscriptionId": {
141159
"description": "The ID of the canceled subscription",
142160
"type": "string",
143161
"readOnly": true
@@ -147,7 +165,7 @@
147165
"RenamedSubscriptionId": {
148166
"description": "The ID of the subscriptions that is being renamed",
149167
"properties": {
150-
"value": {
168+
"subscriptionId": {
151169
"description": "The ID of the subscriptions that is being renamed",
152170
"type": "string",
153171
"readOnly": true
@@ -157,7 +175,7 @@
157175
"EnabledSubscriptionId": {
158176
"description": "The ID of the subscriptions that is being enabled",
159177
"properties": {
160-
"value": {
178+
"subscriptionId": {
161179
"description": "The ID of the subscriptions that is being enabled",
162180
"type": "string",
163181
"readOnly": true

0 commit comments

Comments
 (0)