azure.mgmt.databricks.operations module

class azure.mgmt.databricks.operations.WorkspacesOperations(client, config, serializer, deserializer)[source]

Bases: object

WorkspacesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – The API version to use for this operation. Constant value: “2018-04-01”.

create_or_update(parameters, resource_group_name, workspace_name, custom_headers=None, raw=False, polling=True, **operation_config)[source]

Creates a new workspace.

Parameters:
  • parameters (Workspace) – Parameters supplied to the create or update a workspace.
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.
  • workspace_name (str) – The name of the workspace.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response
  • polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy
Returns:

An instance of LROPoller that returns Workspace or ClientRawResponse<Workspace> if raw==True

Return type:

AzureOperationPoller[Workspace] or AzureOperationPoller[ClientRawResponse[Workspace]]

Raises:

ErrorResponseException

delete(resource_group_name, workspace_name, custom_headers=None, raw=False, polling=True, **operation_config)[source]

Deletes the workspace.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.
  • workspace_name (str) – The name of the workspace.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response
  • polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy
Returns:

An instance of LROPoller that returns None or ClientRawResponse<None> if raw==True

Return type:

AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]

Raises:

ErrorResponseException

get(resource_group_name, workspace_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the workspace.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.
  • workspace_name (str) – The name of the workspace.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Workspace or ClientRawResponse if raw=true

Return type:

Workspace or ClientRawResponse

Raises:

ErrorResponseException

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Gets all the workspaces within a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Workspace

Return type:

WorkspacePaged[Workspace]

Raises:

ErrorResponseException

list_by_subscription(custom_headers=None, raw=False, **operation_config)[source]

Gets all the workspaces within a subscription.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Workspace

Return type:

WorkspacePaged[Workspace]

Raises:

ErrorResponseException

update(resource_group_name, workspace_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config)[source]

Updates a workspace.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.
  • workspace_name (str) – The name of the workspace.
  • tags (dict[str, str]) – Resource tags.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response
  • polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy
Returns:

An instance of LROPoller that returns Workspace or ClientRawResponse<Workspace> if raw==True

Return type:

AzureOperationPoller[Workspace] or AzureOperationPoller[ClientRawResponse[Workspace]]

Raises:

ErrorResponseException

models = <module 'azure.mgmt.databricks.models' from '/usr/lib/python3/dist-packages/azure/mgmt/databricks/models/__init__.py'>
class azure.mgmt.databricks.operations.Operations(client, config, serializer, deserializer)[source]

Bases: object

Operations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – The API version to use for this operation. Constant value: “2018-04-01”.

list(custom_headers=None, raw=False, **operation_config)[source]

Lists all of the available RP operations.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Operation

Return type:

OperationPaged[Operation]

Raises:

ErrorResponseException

models = <module 'azure.mgmt.databricks.models' from '/usr/lib/python3/dist-packages/azure/mgmt/databricks/models/__init__.py'>