From 6dd45196899184f687af2212bcb12b97737953dd Mon Sep 17 00:00:00 2001 From: "REDMOND\\amisi" Date: Thu, 10 Feb 2022 17:02:54 -0800 Subject: [PATCH] Update TableResourceList --- .../CosmosDBRestorableTableResourceList.json | 5 ++- .../2021-11-15-preview/restorable.json | 41 +++++++++++++------ 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/examples/CosmosDBRestorableTableResourceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/examples/CosmosDBRestorableTableResourceList.json index ac80b6851d48..36e0a8408111 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/examples/CosmosDBRestorableTableResourceList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/examples/CosmosDBRestorableTableResourceList.json @@ -10,8 +10,9 @@ "responses": { "200": { "body": { - "tableNames": [ - "table1" + "value": [ + "table1", + "table2" ] } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/restorable.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/restorable.json index 27dc5a995434..86e0fec6b005 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/restorable.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-11-15-preview/restorable.json @@ -893,7 +893,7 @@ "200": { "description": "The operation completed successfully.", "schema": { - "$ref": "#/definitions/RestorableTableResourcesGetResult" + "$ref": "#/definitions/RestorableTableResourcesListResult" } }, "default": { @@ -902,6 +902,9 @@ "$ref": "cosmos-db.json#/definitions/CloudError" } } + }, + "x-ms-pageable": { + "nextLinkName": null } } } @@ -1674,21 +1677,19 @@ } } }, - "RestorableTableResourcesGetResult": { - "description": "The Get operation response, that contains the restorable Table names.", + "RestorableTableResourcesListResult": { "type": "object", "properties": { - "tableNames": { + "value": { "readOnly": true, - "$ref": "#/definitions/TableRestoreResource" + "type": "array", + "items": { + "$ref": "../../preview/2021-11-15-preview/cosmos-db.json#/definitions/TableName" + }, + "description": "List of restorable table names." } - } - }, - "TableRestoreResource": { - "type": "array", - "items": { - "$ref": "../../preview/2021-11-15-preview/cosmos-db.json#/definitions/TableName" - } + }, + "description": "List of restorable table names." }, "OperationType": { "description": "Enum to indicate the operation type of the event.", @@ -1835,6 +1836,22 @@ "x-ms-parameter-location": "method", "description": "Restorable Tables event feed end time." }, + "restoreStartTime": { + "name": "startTime", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The snapshot create timestamp after which snapshots need to be listed." + }, + "restoreEndTime": { + "name": "endTime", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The snapshot create timestamp before which snapshots need to be listed." + }, "locationParameter": { "name": "location", "in": "path",