Skip to content

Commit

Permalink
Kusto: Add Kusto swagger specification, documentation and examples (#…
Browse files Browse the repository at this point in the history
…3584)

* Kusto: Add Kusto swagger specification, documentation and examples

* Kusto: Added examples

* Kusto: Fix subscription and lint errors in examples

* Kusto: Fix examples

* Kusto: Add etag property to Database and Cluster types

* Kusto: Add provisioning state to Database resource

* Modify C# and python generation instructions in readme

* Trying to fix travis failure

* Update Python conf for Kusto Mgmt

* Fixing default tag of Kusto Mgmt
  • Loading branch information
radennis authored and jianghaolu committed Aug 6, 2018
1 parent 4f42aea commit e5dfa80
Show file tree
Hide file tree
Showing 16 changed files with 1,321 additions and 1 deletion.
3 changes: 2 additions & 1 deletion profiles/ResourceSchemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ batch:
- ../specification/web/resource-manager/Microsoft.Web/2016-03-01/ResourceProvider.json
- ../specification/web/resource-manager/Microsoft.Web/2016-08-01/WebApps.json
- ../specification/web/resource-manager/Microsoft.Web/2016-09-01/AppServiceEnvironments.json
- ../specification/web/resource-manager/Microsoft.Web/2016-09-01/AppServicePlans.json
- ../specification/web/resource-manager/Microsoft.Web/2016-09-01/AppServicePlans.json
- ../specification/kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/kusto.json

# some invalid swagger
# - ../specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/2017-02-28-preview/timeseriesinsights.json
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"api-version": "2017-09-07-privatepreview",
"parameters": {
"location": "westus"
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
},
"201": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3",
"name": "KustoClusterRPTest3",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3",
"name": "KustoClusterRPTest3",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"api-version": "2017-09-07-privatepreview",
"parameters": {
"location": "westus"
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4",
"name": "KustoClusterRPTest4",
"type": "Microsoft.Kusto/Clusters",
"etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"",
"location": "westus",
"properties": {
"provisioningState": "Succeeded"
}
}
},
"201": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"databaseName": "KustoDatabase8",
"api-version": "2017-09-07-privatepreview",
"parameters": {
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
"type": "Microsoft.Kusto/Clusters/Databases",
"etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"",
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1,
"provisioningState": "Succeeded"
}
}
},
"201": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"databaseName": "KustoDatabase8",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"databaseName": "KustoDatabase8",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
"type": "Microsoft.Kusto/Clusters/Databases",
"etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"",
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1,
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
"type": "Microsoft.Kusto/Clusters/Databases",
"etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"",
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1,
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9",
"name": "KustoClusterRPTest4/KustoDatabase9",
"type": "Microsoft.Kusto/Clusters/Databases",
"etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"",
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1,
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "12345678-1234-1234-1234-123456789098",
"resourceGroupName": "kustorptest",
"clusterName": "KustoClusterRPTest4",
"databaseName": "KustoDatabase8",
"api-version": "2017-09-07-privatepreview",
"parameters": {
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8",
"name": "KustoClusterRPTest4/KustoDatabase8",
"type": "Microsoft.Kusto/Clusters/Databases",
"etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"",
"location": "westus",
"properties": {
"softDeletePeriodInDays": 1,
"provisioningState": "Succeeded"
}
}
},
"201": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2017-09-07-privatepreview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "operationName",
"display": {
"provider": "providerName",
"resource": "resourceName",
"operation": "operationName",
"description": "description"
}
}
]
}
}
}
}
Loading

0 comments on commit e5dfa80

Please sign in to comment.