Skip to content

Commit

Permalink
Merge pull request #1 from kshittiz7/tables-gremlin-changes-2022-15
Browse files Browse the repository at this point in the history
Added specs for tables and gremlin
  • Loading branch information
kshittiz7 authored Oct 28, 2022
2 parents b18fe85 + 198e7f3 commit d49817e
Show file tree
Hide file tree
Showing 9 changed files with 1,068 additions and 125 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8663,6 +8663,20 @@
"items": {
"$ref": "#/definitions/DatabaseRestoreResource"
}
},
"gremlinDatabasesToRestore": {
"type": "array",
"description": "List of specific gremlin databases available for restore.",
"items": {
"$ref": "#/definitions/GremlinDatabaseRestoreResource"
}
},
"tablesToRestore": {
"type": "array",
"description": "List of specific tables available for restore.",
"items": {
"$ref": "#/definitions/TableName"
}
}
}
},
Expand All @@ -8683,10 +8697,35 @@
}
}
},
"GremlinDatabaseRestoreResource": {
"type": "object",
"description": "Specific Gremlin Databases to restore.",
"properties": {
"databaseName": {
"type": "string",
"description": "The name of the gremlin database available for restore."
},
"graphNames": {
"type": "array",
"description": "The names of the graphs available for restore.",
"items": {
"$ref": "#/definitions/GraphName"
}
}
}
},
"CollectionName": {
"type": "string",
"description": "The name of the collection."
},
"GraphName": {
"type": "string",
"description": "The name of the graph."
},
"TableName": {
"type": "string",
"description": "The name of the table."
},
"BackupPolicy": {
"type": "object",
"description": "The object representing the policy for taking backups on an account.",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2022-11-15",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"accountName": "ddb1",
"databaseName": "databaseName",
"graphName": "graphName",
"location": {
"location": "North Europe"
}
},
"responses": {
"200": {
"body": {
"continuousBackupInformation": {
"latestRestorableTimestamp": "2021-02-05T02:40:50Z"
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"api-version": "2022-11-15",
"subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588",
"location": "WestUS",
"instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableGremlinDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc",
"type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinDatabases",
"name": "59c21367-b98b-4a8e-abb7-b6f46600decc",
"properties": {
"resource": {
"_rid": "DLB14gAAAA==",
"eventTimestamp": "2020-09-02T19:45:03Z",
"ownerId": "Database1",
"ownerResourceId": "PD5DALigDgw=",
"operationType": "Create"
}
}
},
{
"id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257",
"type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinDatabases",
"name": "8456cb17-cdb0-4c6a-8db8-d0ff3f886257",
"properties": {
"resource": {
"_rid": "ESXNLAAAAA==",
"eventTimestamp": "2020-09-02T19:53:42Z",
"ownerId": "Database1",
"ownerResourceId": "PD5DALigDgw=",
"operationType": "Delete"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2022-11-15",
"subscriptionId": "subid",
"location": "WestUS",
"instanceId": "98a570f2-63db-4117-91f0-366327b7b353",
"restorableGremlinDatabaseRid": "PD5DALigDgw="
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableGraphs/79609a98-3394-41f8-911f-cfab0c075c86",
"type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGraphs",
"name": "79609a98-3394-41f8-911f-cfab0c075c86",
"properties": {
"resource": {
"_rid": "zAyAPQAAAA==",
"eventTimestamp": "2020-10-13T04:56:42Z",
"ownerId": "Graph1",
"ownerResourceId": "V18LoLrv-qA=",
"operationType": "Create"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"api-version": "2022-11-15",
"subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588",
"location": "WestUS",
"instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d",
"restoreLocation": "WestUS",
"restoreTimestampInUtc": "10/13/2020 4:56"
},
"responses": {
"200": {
"body": {
"value": [
{
"databaseName": "Database1",
"graphNames": [
"Graph1"
]
},
{
"databaseName": "Database2",
"graphNames": [
"Graph1",
"Graph2"
]
},
{
"databaseName": "Database3",
"graphNames": []
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2022-11-15",
"subscriptionId": "subid",
"location": "WestUS",
"instanceId": "98a570f2-63db-4117-91f0-366327b7b353"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableTables/79609a98-3394-41f8-911f-cfab0c075c86",
"type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableTables",
"name": "79609a98-3394-41f8-911f-cfab0c075c86",
"properties": {
"resource": {
"_rid": "zAyAPQAAAA==",
"eventTimestamp": "2020-10-13T04:56:42Z",
"ownerId": "Table1",
"ownerResourceId": "V18LoLrv-qA=",
"operationType": "Create"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2022-11-15",
"subscriptionId": "2296c272-5d55-40d9-bc05-4d56dc2d7588",
"location": "WestUS",
"instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d",
"restoreLocation": "WestUS",
"restoreTimestampInUtc": "10/13/2020 4:56"
},
"responses": {
"200": {
"body": {
"value": [
"table1",
"table2"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2022-11-15",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"accountName": "ddb1",
"tableName": "tableName1",
"location": {
"location": "North Europe"
}
},
"responses": {
"200": {
"body": {
"continuousBackupInformation": {
"latestRestorableTimestamp": "2021-02-05T02:40:50Z"
}
}
},
"202": {}
}
}
Loading

0 comments on commit d49817e

Please sign in to comment.