Skip to content

Commit

Permalink
Initial API spec for managed Cassandra project in CosmosDB (Azure#12861)
Browse files Browse the repository at this point in the history
* Move to a new API version.

* added changes from stable apiVersion

* Add nova.json

* Add parameters to repair method on cassandraClusters.

* Change fetchNodeStatus to be async POST

There appears to be no way to document the results of an async POST operation actually completing.

* Add 200 status code to fetchNodeStatus to see if it will make the Python SDK properly generate polling.

* Fixed the fetchNodeStatus endpoint. It was actually missing x-ms-long-running-operation.

Removed the 200 status result I had put in before.

* Add async response path for fetchNodeStatus.

* Make linter happy.

* Rename nova.json to managedCassandra.json

* Rename operationIds to be plural. Change status code for repair disabled to 412 (Precondition not met)

* Fix javaScript SDK build (which is broken by have */ in descriptions)

* added changes from stable apiVersion

* Added lenient deduplication to make linter happy

* Move fetchNodeStatus back since apparently the SDK generation handles this.

* Fix inconsistencies between GA and preview previous API versions for cosmos-db.json.

* Add response body to PATCH for clusters and datacenters.

* Add provisioningState, to dc examples, remove 412 code, fix a couple descriptions.

Co-authored-by: Meha Kaushik <mekaushi@microsoft.com>
  • Loading branch information
2 people authored and mkarmark committed Jul 20, 2021
1 parent eaa58bd commit b18ef24
Show file tree
Hide file tree
Showing 179 changed files with 19,442 additions and 7 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,7 @@ nodeagentskus
nodeconfiguration
nodecounts
Nodeploy
nodetool
nodrm
nometadata
nonadmin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"$ref": "./examples/CosmosDBRestorableSqlDatabaseList.json"
}
},
"description": "Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/*/read' permission",
"description": "Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -84,7 +84,7 @@
"$ref": "./examples/CosmosDBRestorableSqlContainerList.json"
}
},
"description": "Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/*/read' permission",
"description": "Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -129,7 +129,7 @@
"$ref": "./examples/CosmosDBRestorableSqlResourceList.json"
}
},
"description": "Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/*/read' permission.",
"description": "Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -177,7 +177,7 @@
"$ref": "./examples/CosmosDBRestorableMongodbDatabaseList.json"
}
},
"description": "Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/*/read' permission",
"description": "Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -219,7 +219,7 @@
"$ref": "./examples/CosmosDBRestorableMongodbCollectionList.json"
}
},
"description": "Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/*/read' permission",
"description": "Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -264,7 +264,7 @@
"$ref": "./examples/CosmosDBRestorableMongodbResourceList.json"
}
},
"description": "Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/*/read' permission.",
"description": "Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
Expand Down
Loading

0 comments on commit b18ef24

Please sign in to comment.