Skip to content

Commit 6c10168

Browse files
authored
Add quotas property to managed environment (#22169)
* Add quotas property to managed environment * lint
1 parent 6772486 commit 6c10168

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/ManagedEnvironments.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,34 @@
11021102
}
11031103
}
11041104
},
1105+
"ManagedEnvironmentQuota": {
1106+
"type": "object",
1107+
"description": "Managed environment quota status",
1108+
"properties": {
1109+
"cores": {
1110+
"description": "The cores quota status",
1111+
"$ref": "#/definitions/QuotaStatus"
1112+
}
1113+
}
1114+
},
1115+
"QuotaStatus": {
1116+
"type": "object",
1117+
"description": "Quota status",
1118+
"properties": {
1119+
"total": {
1120+
"type": "number",
1121+
"format": "double",
1122+
"readOnly": true,
1123+
"description": "Total quota amount"
1124+
},
1125+
"used": {
1126+
"type": "number",
1127+
"format": "double",
1128+
"readOnly": true,
1129+
"description": "Used quota amount"
1130+
}
1131+
}
1132+
},
11051133
"VnetConfiguration": {
11061134
"type": "object",
11071135
"description": "Configuration properties for apps environment to join a Virtual Network",
@@ -1269,6 +1297,10 @@
12691297
"daprConfiguration": {
12701298
"$ref": "#/definitions/DaprConfiguration",
12711299
"description": "The configuration of Dapr component."
1300+
},
1301+
"quotas": {
1302+
"$ref": "#/definitions/ManagedEnvironmentQuota",
1303+
"description": "Quota status for the environment."
12721304
}
12731305
},
12741306
"x-ms-client-flatten": true

specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_Get.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@
5858
},
5959
"daprConfiguration": {
6060
"version": "1.9"
61+
},
62+
"quotas": {
63+
"cores": {
64+
"total": 2.34,
65+
"used": 1.23
66+
}
6167
}
6268
}
6369
}

0 commit comments

Comments
 (0)