@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api DatabricksClient
@base https://management.azure.com
@version 2018-04-01
@auth OAuth2
@common_fields {api-version: any # The API version to use for this operation.}
@endpoints 7
@toc subscriptions(6), providers(1)

@group subscriptions
@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}
@desc Gets the workspace.
@required {resourceGroupName: any # The name of the resource group. The name is case insensitive., workspaceName: any # The name of the workspace., subscriptionId: any # The ID of the target subscription.}
@returns(200) OK - Returns the workspace.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}
@desc Deletes the workspace.
@required {resourceGroupName: any # The name of the resource group. The name is case insensitive., workspaceName: any # The name of the workspace., subscriptionId: any # The ID of the target subscription.}
@returns(200) OK. The request has succeeded.
@returns(202) Accepted - Returns this status until the asynchronous operation has completed.
@returns(204) NoContent

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}
@desc Creates a new workspace.
@required {parameters: any # Parameters supplied to the create or update a workspace., resourceGroupName: any # The name of the resource group. The name is case insensitive., workspaceName: any # The name of the workspace., subscriptionId: any # The ID of the target subscription.}
@returns(200) Created - Returns information about the workspace, including provisioning status.
@returns(201) Created - Returns information about the workspace, including provisioning status.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}
@desc Updates a workspace.
@required {parameters: map # The update to the workspace., resourceGroupName: any # The name of the resource group. The name is case insensitive., workspaceName: any # The name of the workspace., subscriptionId: any # The ID of the target subscription.}
@returns(200) Successfully updated the workspace.
@returns(202) Accepted

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces
@desc Gets all the workspaces within a resource group.
@required {resourceGroupName: any # The name of the resource group. The name is case insensitive., subscriptionId: any # The ID of the target subscription.}
@returns(200) OK - Returns an array of workspaces.

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces
@desc Gets all the workspaces within a subscription.
@required {subscriptionId: any # The ID of the target subscription.}
@returns(200) OK - Returns an array of workspaces.

@endgroup

@group providers
@endpoint GET /providers/Microsoft.Databricks/operations
@desc Lists all of the available RP operations.
@returns(200) OK. The request has succeeded.

@endgroup

@end
