-
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.
Kusto: Add Kusto swagger specification, documentation and examples (#…
…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
1 parent
4f42aea
commit e5dfa80
Showing
16 changed files
with
1,321 additions
and
1 deletion.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
...nager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.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,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": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersDelete.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,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "kustorptest", | ||
"clusterName": "KustoClusterRPTest4", | ||
"api-version": "2017-09-07-privatepreview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersGet.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,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" | ||
} | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...esource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersList.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": { | ||
"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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
.../Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.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,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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...ource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersUpdate.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,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": {} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...ager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesCreateOrUpdate.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": { | ||
"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": {} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...urce-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesDelete.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,14 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789098", | ||
"resourceGroupName": "kustorptest", | ||
"clusterName": "KustoClusterRPTest4", | ||
"databaseName": "KustoDatabase8", | ||
"api-version": "2017-09-07-privatepreview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...esource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesGet.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,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" | ||
} | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...nager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesListByCluster.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,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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...urce-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesUpdate.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": { | ||
"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": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoOperationsList.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,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2017-09-07-privatepreview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "operationName", | ||
"display": { | ||
"provider": "providerName", | ||
"resource": "resourceName", | ||
"operation": "operationName", | ||
"description": "description" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.