-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Kusto: Add Kusto swagger specification, documentation and examples #3584
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
93af1ba
Kusto: Add Kusto swagger specification, documentation and examples
radennis d7ad1a8
Kusto: Added examples
radennis 45c814b
Kusto: Fix subscription and lint errors in examples
radennis 80cc9c9
Kusto: Fix examples
radennis 1863f31
Kusto: Add etag property to Database and Cluster types
radennis 0f84abc
Kusto: Add provisioning state to Database resource
radennis d8dea61
Modify C# and python generation instructions in readme
radennis 1da042e
Trying to fix travis failure
radennis 2de4caf
Update Python conf for Kusto Mgmt
lmazuel e74c7d2
Fixing default tag of Kusto Mgmt
lmazuel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a false positive but the linter is complaining the value of "description" cannot be "description".
No action needed but just want to document this here.