Skip to content

Commit b9851f1

Browse files
authored
Merge pull request #11 from MehaKaushik/master
more fixes
2 parents 6290dca + 13c13ed commit b9851f1

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

  • specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-04-01-preview

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-04-01-preview/services.json

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@
206206
"type": "integer"
207207
},
208208
"serviceType": {
209-
"type": "string",
210-
"description": "The type of Azure resource."
209+
"$ref": "#/definitions/ServiceType"
211210
}
212211
},
213212
"required": [
@@ -219,11 +218,6 @@
219218
"description": "Services response resource.",
220219
"type": "object",
221220
"discriminator": "serviceType",
222-
"allOf": [
223-
{
224-
"$ref": ".../../cosmos-db.json#/definitions/ARMProxyResource"
225-
}
226-
],
227221
"properties": {
228222
"creationTime": {
229223
"readOnly": true,
@@ -239,8 +233,7 @@
239233
"type": "integer"
240234
},
241235
"serviceType": {
242-
"type": "string",
243-
"description": "The type of Azure resource."
236+
"$ref": "#/definitions/ServiceType"
244237
},
245238
"status": {
246239
"$ref": "#/definitions/ServiceResourceStatus"
@@ -257,6 +250,11 @@
257250
"ServiceResource": {
258251
"description": "Properties for the database account.",
259252
"type": "object",
253+
"allOf": [
254+
{
255+
"$ref": ".../../cosmos-db.json#/definitions/ARMProxyResource"
256+
}
257+
],
260258
"properties": {
261259
"properties": {
262260
"x-ms-client-flatten": true,
@@ -394,6 +392,18 @@
394392
"modelAsString": true,
395393
"name": "ServiceSize"
396394
}
395+
},
396+
"ServiceType": {
397+
"type": "string",
398+
"enum": [
399+
"SqlDedicatedGateway",
400+
"DataTransfer"
401+
],
402+
"description": "ServiceType for the service.",
403+
"x-ms-enum": {
404+
"modelAsString": true,
405+
"name": "ServiceType"
406+
}
397407
}
398408
},
399409
"parameters": {

0 commit comments

Comments
 (0)