-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CosmosDB] Microsoft.DocumentDB 2024-02-15-preview API version (#27399)
* 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
1 parent
223073b
commit b4506c0
Showing
280 changed files
with
33,303 additions
and
3 deletions.
There are no files selected for viewing
12,255 changes: 12,255 additions & 0 deletions
12,255
...cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-02-15-preview/cosmos-db.json
Large diffs are not rendered by default.
Oops, something went wrong.
603 changes: 603 additions & 0 deletions
603
...resource-manager/Microsoft.DocumentDB/preview/2024-02-15-preview/dataTransferService.json
Large diffs are not rendered by default.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
...DocumentDB/preview/2024-02-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...osoft.DocumentDB/preview/2024-02-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...icrosoft.DocumentDB/preview/2024-02-15-preview/examples/CosmosDBCassandraKeyspaceGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\"" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...crosoft.DocumentDB/preview/2024-02-15-preview/examples/CosmosDBCassandraKeyspaceList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...ntDB/preview/2024-02-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...eview/2024-02-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...ocumentDB/preview/2024-02-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\"" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...mentDB/preview/2024-02-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
...ft.DocumentDB/preview/2024-02-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...icrosoft.DocumentDB/preview/2024-02-15-preview/examples/CosmosDBCassandraTableDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.