Skip to content

Commit b4d0463

Browse files
ajparulemsyyc
andauthored
[CosmosDB][2021-11-15-preview]Add enableMaterializedViews property to DB Account API's (#17864)
* Added enableMaterializedViews property for DB account CRUD API's * revert package-lock.json * revert package-lock * update examples with enableMaterializedViews property * updated example * trigger * trigger Co-authored-by: Yuchao Yan <[email protected]>
1 parent 2b2c5b8 commit b4d0463

File tree

7 files changed

+26
-7
lines changed

7 files changed

+26
-7
lines changed

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/cosmos-db.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7069,6 +7069,10 @@
70697069
"description": "The object that represents all properties related to capacity enforcement on an account.",
70707070
"type": "object",
70717071
"$ref": "#/definitions/Capacity"
7072+
},
7073+
"enableMaterializedViews": {
7074+
"description": "Flag to indicate whether to enable MaterializedViews on the Cosmos DB account",
7075+
"type": "boolean"
70727076
}
70737077
}
70747078
},
@@ -7210,6 +7214,10 @@
72107214
"description": "The object that represents all properties related to capacity enforcement on an account.",
72117215
"type": "object",
72127216
"$ref": "#/definitions/Capacity"
7217+
},
7218+
"enableMaterializedViews": {
7219+
"description": "Flag to indicate whether to enable MaterializedViews on the Cosmos DB account",
7220+
"type": "boolean"
72137221
}
72147222
},
72157223
"required": [
@@ -7375,6 +7383,10 @@
73757383
"description": "The object that represents all properties related to capacity enforcement on an account.",
73767384
"type": "object",
73777385
"$ref": "#/definitions/Capacity"
7386+
},
7387+
"enableMaterializedViews": {
7388+
"description": "Flag to indicate whether to enable MaterializedViews on the Cosmos DB account",
7389+
"type": "boolean"
73787390
}
73797391
}
73807392
},

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
],
8080
"capacity": {
8181
"totalThroughputLimit": 2000
82-
}
82+
},
83+
"enableMaterializedViews": false
8384
}
8485
}
8586
},
@@ -211,7 +212,8 @@
211212
],
212213
"capacity": {
213214
"totalThroughputLimit": 2000
214-
}
215+
},
216+
"enableMaterializedViews": false
215217
},
216218
"systemData": {
217219
"createdAt": "2021-03-12T22:05:09Z"

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
"backupRetentionIntervalInHours": 720,
8989
"backupStorageRedundancy": "Geo"
9090
}
91-
}
91+
},
92+
"enableMaterializedViews": false
9293
},
9394
"systemData": {
9495
"createdAt": "2021-03-12T22:05:09Z"

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/examples/CosmosDBDatabaseAccountGet.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@
102102
"networkAclBypassResourceIds": [],
103103
"diagnosticLogSettings": {
104104
"enableFullTextQuery": "False"
105-
}
105+
},
106+
"enableMaterializedViews": false
106107
},
107108
"identity": {
108109
"type": "SystemAssigned,UserAssigned",

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/examples/CosmosDBDatabaseAccountList.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@
9292
}
9393
},
9494
"networkAclBypass": "None",
95-
"networkAclBypassResourceIds": []
95+
"networkAclBypassResourceIds": [],
96+
"enableMaterializedViews": false
9697
},
9798
"systemData": {
9899
"createdAt": "2021-03-12T22:05:09Z"

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/examples/CosmosDBDatabaseAccountPatch.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@
185185
},
186186
"diagnosticLogSettings": {
187187
"enableFullTextQuery": "True"
188-
}
188+
},
189+
"enableMaterializedViews": false
189190
},
190191
"systemData": {
191192
"createdAt": "2021-03-12T22:05:09Z"

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"apiProperties": {
5353
"serverVersion": "3.2"
5454
},
55-
"enableAnalyticalStorage": true
55+
"enableAnalyticalStorage": true,
56+
"enableMaterializedViews": false
5657
}
5758
}
5859
},

0 commit comments

Comments
 (0)