Skip to content

Commit

Permalink
Add SQL, Mongo, Table, Cassandra APIs (#5523)
Browse files Browse the repository at this point in the history
* Add Database and Collection API

* Add SQL Database and Container API

* Remove properties in CreateUpdateOptions

* Update delete response code

* Add properties in SQL Container and simplify names

* Add Mongo Database and Collection API

* Add Table API

* Add Cassandra keyspace and table API

* Add Gremlin API

* Fix excluded key path

* Fix examples model validation

* Remove duplicated id from example

* Fix example CosmosDBGremlinContainerCreateUpdate
  • Loading branch information
bizarreWizard authored and sergey-shandar committed Apr 18, 2019
1 parent 989b7b1 commit e48187f
Show file tree
Hide file tree
Showing 39 changed files with 4,196 additions and 438 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2015-04-08",
"subscriptionId": "subid",
"keyspaceRid": "keyspaceName",
"createUpdateCassandraKeyspaceParameters": {
"properties": {
"resource": {
"id": "keyspaceName"
},
"options": {
}
}
}
},
"responses": {
"200": {
"body": {
"id": "keyspaceName",
"name": "keyspaceName",
"type": "Microsoft.DocumentDB/databaseAccounts/apis/keyspaces",
"properties": {
"id": "keyspaceName"
}
}
},
"202": {

}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2015-04-08",
"subscriptionId": "subid",
"keyspaceRid": "keyspaceName"
},
"responses": {
"204": { },
"202": { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2015-04-08",
"subscriptionId": "subid",
"keyspaceRid": "keyspaceName"
},
"responses": {
"200": {
"body": {
"id": "keyspaceName",
"name": "keyspaceName",
"type": "Microsoft.DocumentDB/databaseAccounts/apis/keyspaces",
"properties": {
"id": "keyspaceName"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"api-version": "2015-04-08",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"accountName": "ddb1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "keyspaceName",
"name": "keyspaceName",
"type": "Microsoft.DocumentDB/databaseAccounts/apis/keyspaces",
"properties": {
"id": "keyspaceName"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2015-04-08",
"subscriptionId": "subid",
"keyspaceRid": "tableName",
"tableRid": "tableName",
"createUpdateCassandraTableParameters": {
"properties": {
"resource": {
"id": "tableName",
"defaultTtl": 100,
"schema": {
"columns": [
{
"name": "columnA",
"type": "Ascii"
}
],
"partitionKeys": [
{
"name": "columnA"
}
],
"clusterKeys": [
{
"name": "columnA",
"orderBy": "Asc"
}
]
}
},
"options": {
}
}
}
},
"responses": {
"200": {
"body": {
"id": "tableName",
"name": "tableName",
"type": "Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables",
"properties": {
"id": "tableName",
"defaultTtl": 100,
"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": "2015-04-08",
"subscriptionId": "subid",
"keyspaceRid": "keyspaceName",
"tableRid": "tableName"
},
"responses": {
"204": { },
"202": { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2015-04-08",
"subscriptionId": "subid",
"keyspaceRid": "keyspaceName",
"tableRid": "tableName"
},
"responses": {
"200": {
"body": {
"id": "tableName",
"name": "tableName",
"type": "Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables",
"properties": {
"id": "tableName",
"defaultTtl": 100,
"schema": {
"columns": [
{
"name": "columnA",
"type": "Ascii"
}
],
"partitionKeys": [
{
"name": "columnA"
}
],
"clusterKeys": [
{
"name": "columnA",
"orderBy": "Asc"
}
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"api-version": "2015-04-08",
"subscriptionId": "subid",
"resourceGroupName": "rgName",
"accountName": "ddb1",
"keyspaceRid": "keyspaceName"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "tableName",
"name": "tableName",
"type": "Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables",
"properties": {
"id": "tableName",
"defaultTtl": 100,
"schema": {
"columns": [
{
"name": "columnA",
"type": "Ascii"
}
],
"partitionKeys": [
{
"name": "columnA"
}
],
"clusterKeys": [
{
"name": "columnA",
"orderBy": "Asc"
}
]
}
}
}
]
}
}
}
}

This file was deleted.

Loading

0 comments on commit e48187f

Please sign in to comment.