Skip to content

Commit

Permalink
Add Microsoft.Databricks workspaces swagger (Azure#2594)
Browse files Browse the repository at this point in the history
* 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
jeffpang authored and anuchandy committed Mar 13, 2018
1 parent f4ee873 commit 9bb7cf7
Show file tree
Hide file tree
Showing 8 changed files with 864 additions and 0 deletions.

Large diffs are not rendered by default.

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": {}
}
}
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": {}
}
}
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": {}
}
}
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": {}
}
}
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"
}
}
]
}
}
}
}
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"
}
}
]
}
}
}
}
49 changes: 49 additions & 0 deletions specification/databricks/resource-manager/readme.md
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.

0 comments on commit 9bb7cf7

Please sign in to comment.