Skip to content

Commit decf0c3

Browse files
authored
Update Microsoft.DocumentDB 2020-06-01-preview with new descriptions and examples (#12522)
* clean up and add more descriptions * add missing location * fix small typo * update more descriptions * remove restorables * add missing descriptions * fix resource * pretty * unflatten * remove flatten * remove flatten
1 parent c73d9e1 commit decf0c3

File tree

5 files changed

+154
-88
lines changed

5 files changed

+154
-88
lines changed

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4193,7 +4193,7 @@
41934193
"$ref": "./examples/CosmosDBRestorableDatabaseAccountList.json"
41944194
}
41954195
},
4196-
"description": "Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region.",
4196+
"description": "Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.",
41974197
"parameters": [
41984198
{
41994199
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
@@ -4232,7 +4232,7 @@
42324232
"$ref": "./examples/CosmosDBRestorableDatabaseAccountNoLocationList.json"
42334233
}
42344234
},
4235-
"description": "Lists all the restorable Azure Cosmos DB database accounts available under the subscription.",
4235+
"description": "Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.",
42364236
"parameters": [
42374237
{
42384238
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
@@ -4268,7 +4268,7 @@
42684268
"$ref": "./examples/CosmosDBRestorableDatabaseAccountGet.json"
42694269
}
42704270
},
4271-
"description": "Retrieves the properties of an existing Azure Cosmos DB restorable database account.",
4271+
"description": "Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.",
42724272
"parameters": [
42734273
{
42744274
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
@@ -7817,13 +7817,27 @@
78177817
"x-ms-client-flatten": true,
78187818
"description": "The properties of a restorable database account.",
78197819
"$ref": "#/definitions/RestorableDatabaseAccountProperties"
7820+
},
7821+
"id": {
7822+
"readOnly": true,
7823+
"type": "string",
7824+
"description": "The unique resource identifier of the ARM resource."
7825+
},
7826+
"name": {
7827+
"readOnly": true,
7828+
"type": "string",
7829+
"description": "The name of the ARM resource."
7830+
},
7831+
"type": {
7832+
"readOnly": true,
7833+
"type": "string",
7834+
"description": "The type of Azure resource."
7835+
},
7836+
"location": {
7837+
"type": "string",
7838+
"description": "The location of the resource group to which the resource belongs."
78207839
}
7821-
},
7822-
"allOf": [
7823-
{
7824-
"$ref": "#/definitions/ARMResourceProperties"
7825-
}
7826-
]
7840+
}
78277841
},
78287842
"RestorableDatabaseAccountProperties": {
78297843
"type": "object",

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBRestorableDatabaseAccountGet.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
{
2222
"locationName": "South Central US",
2323
"regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5",
24-
"creationTime": "2020-10-30T21:13:10.7486417Z",
25-
"deletionTime": "2020-10-30T21:13:35.4466333Z"
24+
"creationTime": "2020-10-30T21:13:10Z",
25+
"deletionTime": "2020-10-30T21:13:35Z"
2626
},
2727
{
2828
"locationName": "West US",
2929
"regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c",
30-
"creationTime": "2020-10-30T21:13:10.7486417Z"
30+
"creationTime": "2020-10-30T21:13:10Z"
3131
}
3232
]
3333
}

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBRestorableDatabaseAccountList.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
{
2323
"locationName": "South Central US",
2424
"regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5",
25-
"creationTime": "2020-10-30T21:13:10.7486417Z",
26-
"deletionTime": "2020-10-30T21:13:35.4466333Z"
25+
"creationTime": "2020-10-30T21:13:10Z",
26+
"deletionTime": "2020-10-30T21:13:35Z"
2727
},
2828
{
2929
"locationName": "West US",
3030
"regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c",
31-
"creationTime": "2020-10-30T21:13:10.7486417Z"
31+
"creationTime": "2020-10-30T21:13:10Z"
3232
}
3333
]
3434
}
@@ -46,13 +46,13 @@
4646
{
4747
"locationName": "South Central US",
4848
"regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5",
49-
"creationTime": "2020-10-30T21:13:10.7486417Z",
50-
"deletionTime": "2020-10-30T21:13:35.4466333Z"
49+
"creationTime": "2020-10-30T21:13:10Z",
50+
"deletionTime": "2020-10-30T21:13:35Z"
5151
},
5252
{
5353
"locationName": "West US",
5454
"regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c",
55-
"creationTime": "2020-10-30T21:13:10.7486417Z"
55+
"creationTime": "2020-10-30T21:13:10Z"
5656
}
5757
]
5858
}

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
{
2222
"locationName": "South Central US",
2323
"regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5",
24-
"creationTime": "2020-10-30T21:13:10.7486417Z",
25-
"deletionTime": "2020-10-30T21:13:35.4466333Z"
24+
"creationTime": "2020-10-30T21:13:10Z",
25+
"deletionTime": "2020-10-30T21:13:35Z"
2626
},
2727
{
2828
"locationName": "West US",
2929
"regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c",
30-
"creationTime": "2020-10-30T21:13:10.7486417Z"
30+
"creationTime": "2020-10-30T21:13:10Z"
3131
}
3232
]
3333
}
@@ -45,13 +45,13 @@
4545
{
4646
"locationName": "South Central US",
4747
"regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5",
48-
"creationTime": "2020-10-30T21:13:10.7486417Z",
49-
"deletionTime": "2020-10-30T21:13:35.4466333Z"
48+
"creationTime": "2020-10-30T21:13:10Z",
49+
"deletionTime": "2020-10-30T21:13:35Z"
5050
},
5151
{
5252
"locationName": "West US",
5353
"regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c",
54-
"creationTime": "2020-10-30T21:13:10.7486417Z"
54+
"creationTime": "2020-10-30T21:13:10Z"
5555
}
5656
]
5757
}

0 commit comments

Comments
 (0)