Skip to content

Commit 7813853

Browse files
author
SDKAuto
committed
CodeGen from PR 16126 in Azure/azure-rest-api-specs
Fixing bug from 2021-07-01-preview (#16126)
1 parent 37712d5 commit 7813853

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

schemas/2021-07-01-preview/Microsoft.DocumentDB.json

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3193,11 +3193,6 @@
31933193
},
31943194
"DatabaseAccountCreateUpdateProperties": {
31953195
"type": "object",
3196-
"oneOf": [
3197-
{
3198-
"$ref": "#/definitions/DefaultRequestDatabaseAccountCreateUpdateProperties"
3199-
}
3200-
],
32013196
"properties": {
32023197
"analyticalStorageConfiguration": {
32033198
"oneOf": [
@@ -3284,6 +3279,21 @@
32843279
],
32853280
"description": "The CORS policy for the Cosmos DB database account."
32863281
},
3282+
"createMode": {
3283+
"oneOf": [
3284+
{
3285+
"type": "string",
3286+
"enum": [
3287+
"Default",
3288+
"Restore"
3289+
]
3290+
},
3291+
{
3292+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
3293+
}
3294+
],
3295+
"description": "Enum to indicate the mode of account creation."
3296+
},
32873297
"databaseAccountOfferType": {
32883298
"oneOf": [
32893299
{
@@ -3504,6 +3514,7 @@
35043514
}
35053515
},
35063516
"required": [
3517+
"createMode",
35073518
"databaseAccountOfferType",
35083519
"locations"
35093520
],
@@ -5444,21 +5455,6 @@
54445455
},
54455456
"description": "Properties of a managed Cassandra data center."
54465457
},
5447-
"DefaultRequestDatabaseAccountCreateUpdateProperties": {
5448-
"type": "object",
5449-
"properties": {
5450-
"createMode": {
5451-
"type": "string",
5452-
"enum": [
5453-
"Default"
5454-
]
5455-
}
5456-
},
5457-
"required": [
5458-
"createMode"
5459-
],
5460-
"description": "Properties for non-restore Azure Cosmos DB database account requests."
5461-
},
54625458
"DiagnosticLogSettings": {
54635459
"type": "object",
54645460
"properties": {

0 commit comments

Comments
 (0)