Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.DocumentDB to add versio…
Browse files Browse the repository at this point in the history
…n preview/2021-04-01-preview (#13710)

* Adds base for updating Microsoft.DocumentDB from version preview/2021-03-01-preview to version 2021-04-01-preview

* Updates readme

* Updates API version in new specs and examples

* Adding new API for fetching backup information(such as latest restorable timestmap) for a resource. Also, adding startTime,endTime to restorable.json

* Adding new API for fetching backup information(such as latest restorable timestmap) for a resource. Also, adding startTime,endTime to restorable.json

* Adding new API for fetching backup information(such as latest restorable timestmap) for a resource. Also, adding startTime,endTime to restorable.json

* adding Services APIs

* more changes

* updated examples

* prettier and readme updates

* importing changes missed from old versions

* nits

* fixing semantic validation

* fixing linter

* fix

* more fixes

* adding list operation and default error response

* specifying format integer

* attempt to fix sdks

* address arm comments and fix ci

* fixes

* fix

* try to fix ci

* fix examples

* .\services.json

* adding additionalProperties back to ServiceResouce

* adding additionalProperties back to ServiceResouce

* fix

* fix sdks

* fix linter

Co-authored-by: Meha Kaushik <kaushik.meha@gmail.com>
Co-authored-by: Meha Kaushik <mekaushi@microsoft.com>
  • Loading branch information
3 people authored Apr 23, 2021
1 parent 74c8e06 commit 9553922
Show file tree
Hide file tree
Showing 187 changed files with 20,456 additions and 11 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2014-04-01",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"accountName": "ddb1",
"databaseName": "databaseName",
"containerName": "containerName",
"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,36 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2021-04-01-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspaceName",
"createUpdateCassandraKeyspaceParameters": {
"location": "West US",
"tags": {},
"properties": {
"resource": {
"id": "keyspaceName"
},
"options": {}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName",
"name": "keyspaceName",
"type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces",
"location": "West US",
"tags": {},
"properties": {
"resource": {
"id": "keyspaceName"
}
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2021-04-01-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspaceName"
},
"responses": {
"204": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2021-04-01-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspaceName"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName",
"name": "keyspaceName",
"type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces",
"location": "West US",
"tags": {},
"properties": {
"resource": {
"id": "keyspaceName",
"_rid": "PD5DALigDgw=",
"_ts": 1459200611,
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2021-04-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"accountName": "ddb1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName",
"name": "keyspaceName",
"type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces",
"location": "West US",
"tags": {},
"properties": {
"resource": {
"id": "keyspaceName"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2021-04-01-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspaceName"
},
"responses": {
"200": {
"body": {
"properties": {
"resource": {
"throughput": 400,
"autoscaleSettings": {
"maxThroughput": 4000
},
"minimumThroughput": "4000",
"offerReplacePending": "false",
"_rid": "PD5DALigDgw=",
"_ts": 1459200611,
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
}
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2021-04-01-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspaceName"
},
"responses": {
"200": {
"body": {
"properties": {
"resource": {
"throughput": 400,
"minimumThroughput": "400",
"offerReplacePending": "false",
"_rid": "PD5DALigDgw=",
"_ts": 1459200611,
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
}
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2021-04-01-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspaceName"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default",
"name": "default",
"type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings",
"location": "West US",
"tags": {},
"properties": {
"resource": {
"throughput": 400,
"minimumThroughput": "400",
"offerReplacePending": "true",
"_rid": "PD5DALigDgw=",
"_ts": 1459200611,
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2021-04-01-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspaceName",
"updateThroughputParameters": {
"location": "West US",
"tags": {},
"properties": {
"resource": {
"throughput": 400
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default",
"name": "default",
"type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings",
"location": "West US",
"tags": {},
"properties": {
"resource": {
"throughput": 400,
"minimumThroughput": "400",
"offerReplacePending": "true",
"_rid": "PD5DALigDgw=",
"_ts": 1459200611,
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
}
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2021-04-01-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspaceName",
"tableName": "tableName",
"createUpdateCassandraTableParameters": {
"location": "West US",
"tags": {},
"properties": {
"resource": {
"id": "tableName",
"defaultTtl": 100,
"analyticalStorageTtl": 500,
"schema": {
"columns": [
{
"name": "columnA",
"type": "Ascii"
}
],
"partitionKeys": [
{
"name": "columnA"
}
],
"clusterKeys": [
{
"name": "columnA",
"orderBy": "Asc"
}
]
}
},
"options": {}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName",
"name": "tableName",
"type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables",
"location": "West US",
"tags": {},
"properties": {
"resource": {
"id": "tableName",
"defaultTtl": 100,
"analyticalStorageTtl": 500,
"schema": {
"columns": [
{
"name": "columnA",
"type": "Ascii"
}
],
"partitionKeys": [
{
"name": "columnA"
}
],
"clusterKeys": [
{
"name": "columnA",
"orderBy": "Asc"
}
]
}
}
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2021-04-01-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspaceName",
"tableName": "tableName"
},
"responses": {
"204": {},
"202": {}
}
}
Loading

0 comments on commit 9553922

Please sign in to comment.