Skip to content

Commit 1a58ee9

Browse files
vfedonkinvfedonkin
authored andcommitted
ApiManagement - fix quota patch contracts (Azure#9642)
* ApiManagement - fix quota patch contracts * ApiManagement - fix quota patch contracts prettier fix Co-authored-by: vfedonkin <vifedo@microsoft.com>
1 parent d1e227e commit 1a58ee9

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/apimquotas.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"in": "body",
109109
"required": true,
110110
"schema": {
111-
"$ref": "./definitions.json#/definitions/QuotaCounterValueContractProperties"
111+
"$ref": "./definitions.json#/definitions/QuotaCounterValueUpdateContract"
112112
},
113113
"description": "The value of the quota counter to be applied to all quota counter periods."
114114
},
@@ -212,7 +212,7 @@
212212
"in": "body",
213213
"required": true,
214214
"schema": {
215-
"$ref": "./definitions.json#/definitions/QuotaCounterValueContractProperties"
215+
"$ref": "./definitions.json#/definitions/QuotaCounterValueUpdateContract"
216216
},
217217
"description": "The value of the Quota counter to be applied on the specified period."
218218
},

specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/definitions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3847,6 +3847,16 @@
38473847
},
38483848
"description": "Quota counter value details."
38493849
},
3850+
"QuotaCounterValueUpdateContract": {
3851+
"properties": {
3852+
"properties": {
3853+
"x-ms-client-flatten": true,
3854+
"$ref": "#/definitions/QuotaCounterValueContractProperties",
3855+
"description": "Quota counter value details."
3856+
}
3857+
},
3858+
"description": "Quota counter value details."
3859+
},
38503860
"RecipientEmailCollection": {
38513861
"properties": {
38523862
"value": {

specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/examples/ApiManagementUpdateQuotaCounterKey.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
"subscriptionId": "subid",
77
"quotaCounterKey": "ba",
88
"parameters": {
9-
"callsCount": 0,
10-
"kbTransferred": 2.5630078125
9+
"properties": {
10+
"callsCount": 0,
11+
"kbTransferred": 2.5630078125
12+
}
1113
}
1214
},
1315
"responses": {

specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2019-12-01/examples/ApiManagementUpdateQuotaCounterKeyByQuotaPeriod.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
"quotaCounterKey": "ba",
88
"quotaPeriodKey": "0_P3Y6M4DT12H30M5S",
99
"parameters": {
10-
"callsCount": 0,
11-
"kbTransferred": 0
10+
"properties": {
11+
"callsCount": 0,
12+
"kbTransferred": 0
13+
}
1214
}
1315
},
1416
"responses": {

0 commit comments

Comments
 (0)