Skip to content

Commit

Permalink
[CosmosDB] Microsoft.DocumentDB 2024-02-15-preview API version (#27399)
Browse files Browse the repository at this point in the history
* Adds base for updating Microsoft.DocumentDB from version preview/2023-11-15-preview to version 2024-02-15-preview

* Updates readme

* Updates API version in new specs and examples

* update duration format to resolve .net sdk track2 error (#27586)

* update duration format to resolve .net sdk track2 error

* use x-ms-format duration-constant

* RestoreParameter's new property: RestoreWithTTLDisabled (#27448)

* Add restoreWithTTLDisabled parameter to restoreParameterBase and to examples

* Fix json synax - extra comma

* Fix json synax - extra comma

* Fix swagger lintDiff property name camel case issue

* Revert back to all cap TTL

* Revert to camel casing

* swagger changes for perregion autoscale (#27455)

* swagger changes for perregion autoscale

* default to true in examples

---------

Co-authored-by: Kushal Warke <kuwarke@microsoft.com>

* Add DTS complete API (#27633)

Co-authored-by: Nitesh Vijay <niteshvijay@microsoft.com>

* Resolve review comments for DTS (#27730)

* Update dataTransferService.json

* Fix model validation

* update path to ./cosmos-db.json (#27753)

* update x-ms-force-deallocate header type to string (#27765)

---------

Co-authored-by: minhokang242 <128573538+minhokang242@users.noreply.github.com>
Co-authored-by: Kushal Warke <156882604+kushalwarke1@users.noreply.github.com>
Co-authored-by: Kushal Warke <kuwarke@microsoft.com>
Co-authored-by: Nitesh Vijay <niteshvijay1995@gmail.com>
Co-authored-by: Nitesh Vijay <niteshvijay@microsoft.com>
  • Loading branch information
6 people authored Feb 15, 2024
1 parent 223073b commit b4506c0
Show file tree
Hide file tree
Showing 280 changed files with 33,303 additions and 3 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2024-02-15-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": {
"headers": {
"azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview",
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2024-02-15-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspaceName"
},
"responses": {
"204": {},
"202": {
"headers": {
"azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview",
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2024-02-15-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": "2024-02-15-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,34 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2024-02-15-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": {
"headers": {
"azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview",
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2024-02-15-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": {
"headers": {
"azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview",
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2024-02-15-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",
"instantMaximumThroughput": "10000",
"softAllowedMaximumThroughput": "1000000",
"_rid": "PD5DALigDgw=",
"_ts": 1459200611,
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2024-02-15-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": {
"headers": {
"azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview",
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2024-02-15-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": {
"headers": {
"azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview",
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2024-02-15-preview",
"subscriptionId": "subid",
"keyspaceName": "keyspaceName",
"tableName": "tableName"
},
"responses": {
"204": {},
"202": {
"headers": {
"azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview",
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-02-15-preview"
}
}
}
}
Loading

0 comments on commit b4506c0

Please sign in to comment.