-
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.
Add Microsoft.Databricks workspaces swagger (#2594)
* copy of managedapplications.json * change to databricks.json * renaming. * databricks api * address comments: add patch tags, change GenericResource to TrackedResouce, add some common parameters. * move sku from TrackedResource to Workspace. * move resourceGroupName and WorkspaceName to method level * fix error response. * add listWorkspacesByResourceGroup nad listWorkspacesBySubscription.
- Loading branch information
Showing
8 changed files
with
864 additions
and
0 deletions.
There are no files selected for viewing
611 changes: 611 additions & 0 deletions
611
...cation/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/databricks.json
Large diffs are not rendered by default.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
...cks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceCreate.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,37 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg", | ||
"workspaceName": "myWorkspace", | ||
"api-version": "2018-04-01", | ||
"parameters": { | ||
"properties": { | ||
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" | ||
}, | ||
"name": "myWorkspace", | ||
"location": "westus" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"name": "myWorkspace", | ||
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Databricks/workspaces/myWorkspace", | ||
"type": "Microsoft.Databricks/workspaces", | ||
"location": "East US 2", | ||
"tags": null, | ||
"sku": { | ||
"name": "skuName" | ||
}, | ||
"properties": { | ||
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", | ||
"parameters": null, | ||
"provisioningState": "Created", | ||
"uiDefinitionUri": "https://path/to/workspaceCreateUiDefinition.json" | ||
} | ||
} | ||
}, | ||
"201": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...cks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceDelete.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,12 @@ | ||
{ | ||
"parameters": { | ||
"workspaceName": "myWorkspace", | ||
"resourceGroupName": "rg", | ||
"api-version": "2018-04-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...bricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceGet.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": "subid", | ||
"resourceGroupName": "rg", | ||
"workspaceName": "myWorkspace", | ||
"api-version": "2018-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"name": "myWorkspace", | ||
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Databricks/workspaces/myWorkspace", | ||
"type": "Microsoft.Databricks/workspaces", | ||
"location": "East US 2", | ||
"properties": { | ||
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", | ||
"parameters": null, | ||
"provisioningState": "Created", | ||
"uiDefinitionUri": "https://path/to/workspaceCreateUiDefinition.json" | ||
} | ||
} | ||
}, | ||
"404": {} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...cks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceUpdate.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": "subid", | ||
"resourceGroupName": "rg", | ||
"workspaceName": "myWorkspace", | ||
"api-version": "2018-04-01", | ||
"parameters":{ | ||
"tags": { | ||
"mytag1": "myvalue1" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"name": "myWorkspace", | ||
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Databricks/workspaces/myWorkspace", | ||
"type": "Microsoft.Databricks/workspaces", | ||
"location": "East US 2", | ||
"tags": { | ||
"mytag1": "myvalue1" | ||
}, | ||
"properties": { | ||
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", | ||
"parameters": null, | ||
"provisioningState": "Created", | ||
"uiDefinitionUri": "https://path/to/workspaceCreateUiDefinition.json" | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...anager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspacesListByResourceGroup.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,48 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg", | ||
"api-version": "2018-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "myWorkspace1", | ||
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Databricks/workspaces/myWorkspace1", | ||
"type": "Microsoft.Databricks/workspaces", | ||
"location": "East US 2", | ||
"tags": null, | ||
"sku": { | ||
"name": "skuName" | ||
}, | ||
"properties": { | ||
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", | ||
"parameters": null, | ||
"provisioningState": "Created", | ||
"uiDefinitionUri": "https://path/to/workspaceCreateUiDefinition.json" | ||
} | ||
}, | ||
{ | ||
"name": "myWorkspace2", | ||
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Databricks/workspaces/myWorkspace2", | ||
"type": "Microsoft.Databricks/workspaces", | ||
"location": "East US 2", | ||
"tags": null, | ||
"sku": { | ||
"name": "skuName" | ||
}, | ||
"properties": { | ||
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", | ||
"parameters": null, | ||
"provisioningState": "Created", | ||
"uiDefinitionUri": "https://path/to/workspaceCreateUiDefinition.json" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspacesListBySubscription.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,47 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"api-version": "2018-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "myWorkspace1", | ||
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Databricks/workspaces/myWorkspace1", | ||
"type": "Microsoft.Databricks/workspaces", | ||
"location": "East US 2", | ||
"tags": null, | ||
"sku": { | ||
"name": "skuName" | ||
}, | ||
"properties": { | ||
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", | ||
"parameters": null, | ||
"provisioningState": "Created", | ||
"uiDefinitionUri": "https://path/to/workspaceCreateUiDefinition.json" | ||
} | ||
}, | ||
{ | ||
"name": "myWorkspace2", | ||
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Databricks/workspaces/myWorkspace2", | ||
"type": "Microsoft.Databricks/workspaces", | ||
"location": "East US 2", | ||
"tags": null, | ||
"sku": { | ||
"name": "skuName" | ||
}, | ||
"properties": { | ||
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", | ||
"parameters": null, | ||
"provisioningState": "Created", | ||
"uiDefinitionUri": "https://path/to/workspaceCreateUiDefinition.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,49 @@ | ||
# Databricks | ||
|
||
> see https://aka.ms/autorest | ||
This is the AutoRest configuration file for Databricks. | ||
|
||
|
||
|
||
--- | ||
## Getting Started | ||
To build the SDK for Databricks, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: | ||
|
||
> `autorest` | ||
To see additional help and options, run: | ||
|
||
> `autorest --help` | ||
--- | ||
|
||
## Configuration | ||
|
||
|
||
|
||
### Basic Information | ||
These are the global settings for the Databricks API. | ||
|
||
``` yaml | ||
openapi-type: arm | ||
tag: package-2018-03-01-preview | ||
``` | ||
### Tag: package-2018-04-01 | ||
These settings apply only when `--tag=package-2018-04-01` is specified on the command line. | ||
|
||
``` yaml $(tag) == 'package-2018-04-01' | ||
input-file: | ||
- Microsoft.Databricks/stable/2018-04-01/databricks.json | ||
``` | ||
|
||
--- | ||
# Code Generation | ||
|
||
|
||
## Swagger to SDK | ||
|
||
This section describes what SDK should be generated by the automatic system. | ||
This is not used by Autorest itself. |