forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Microsoft.DocumentDB] CosmosDB - New API Version - 2024-05-15-preview (
Azure#29192) * Copy files from preview/2024-02-15-preview Copied the files in a separate commit. This allows reviewers to easily diff subsequent changes against the previous spec. * Update version to preview/2024-05-15-preview Updated the API version from preview/2024-02-15-preview to preview/2024-05-15-preview. * Added tag for 2024-05-15-preview in readme file * Add mongo v5 and v6 to the preview swagger (Azure#28472) Co-authored-by: Andrew Khoma <[email protected]> * swagger changes for capacityMode changes (Azure#28457) * swagger changes for capacityMode changes * Ran the npx Prettier command * fixing swagger lint * fixing camelcase issue * NSP RP changes for public preview (Azure#28552) * NSP RP API changes * small change * validation failures handling * linter errors * types version * still failing * Probably all the fixes * Missed one file * Will revert this commit - temp fix for hanging push * Reverted commit --------- Co-authored-by: pjohari-ms <[email protected]> * Remove mongoCluster swagger spec and examples for 2024-05-15-preview release (Azure#28693) * Porting from stable changes from Cassandra API (Azure#28801) * nsp related comments (Azure#28950) * Review comments - Cassandra and circular reference (Azure#29021) * Review comments - Cassandra and circular reference * Nits - Services.json * Porting from stable brranch * Nits * Moved files * Using common types * Fixes * Used custom parameter - as suggested by reviewer * Merged commit correctly * Another merge remove issue * Prettier issues due to line endings being different during merge * Prettier check. Whole folder. --------- Co-authored-by: Andrew Khoma <[email protected]> Co-authored-by: Andrew Khoma <[email protected]> Co-authored-by: chandrasekhar gunturi <[email protected]> Co-authored-by: Vandit Jain <[email protected]> Co-authored-by: Oliver Towers <[email protected]>
- Loading branch information
1 parent
e9a6219
commit ed0b726
Showing
267 changed files
with
32,063 additions
and
1 deletion.
There are no files selected for viewing
12,355 changes: 12,355 additions & 0 deletions
12,355
...cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-05-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-05-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-05-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-05-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-05-15-preview", | ||
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-05-15-preview" | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...osoft.DocumentDB/preview/2024-05-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-05-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-05-15-preview", | ||
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-05-15-preview" | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...icrosoft.DocumentDB/preview/2024-05-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-05-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-05-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-05-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-05-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-05-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-05-15-preview", | ||
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-05-15-preview" | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...eview/2024-05-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-05-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-05-15-preview", | ||
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-05-15-preview" | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...ocumentDB/preview/2024-05-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-05-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-05-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-05-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-05-15-preview", | ||
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-05-15-preview" | ||
} | ||
} | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
...ft.DocumentDB/preview/2024-05-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-05-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-05-15-preview", | ||
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-05-15-preview" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...icrosoft.DocumentDB/preview/2024-05-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-05-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-05-15-preview", | ||
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/operationsStatus/{operationId}?api-version=2024-05-15-preview" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.