# coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

# pylint: disable=too-many-lines
# pylint: disable=line-too-long
from knack.help_files import helps  # pylint: disable=unused-import


helps['databricks workspace'] = """
    type: group
    short-summary: Commands to manage databricks workspace.
"""

helps['databricks workspace create'] = """
    type: command
    short-summary: Create a new workspace.
    examples:
      - name: Create a workspace
        text: |-
               az databricks workspace create --resource-group MyResourceGroup --name MyWorkspace --location \\
               westus  --sku standard
"""

helps['databricks workspace update'] = """
    type: command
    short-summary: Update the workspace.
    examples:
      - name: Update the workspace's tags.
        text: |-
               az databricks workspace update --resource-group MyResourceGroup --name MyWorkspace --tags key1=value1 key2=value2
      - name: Clean the workspace's tags.
        text: |-
               az databricks workspace update --resource-group MyResourceGroup --name MyWorkspace --tags ""
"""

helps['databricks workspace delete'] = """
    type: command
    short-summary: Delete the workspace.
    examples:
      - name: Delete the workspace
        text: |-
               az databricks workspace delete --resource-group MyResourceGroup --name MyWorkspace
"""

helps['databricks workspace show'] = """
    type: command
    short-summary: Show the workspace.
    examples:
      - name: Show the workspace
        text: |-
               az databricks workspace show --resource-group MyResourceGroup --name MyWorkspace
"""

helps['databricks workspace list'] = """
    type: command
    short-summary: Get all the workspaces.
    examples:
      - name: List workspaces within a resource group
        text: |-
               az databricks workspace list --resource-group MyResourceGroup
      - name: List workspaces within the default subscription
        text: |-
               az databricks workspace list
"""

helps['databricks workspace wait'] = """
    type: command
    short-summary: Place the CLI in a waiting state until a condition of the Databricks workspace is met.
    examples:
        - name: Pause executing next line of CLI script until the Databricks workspace is successfully provisioned.
          text: az databricks workspace wait --resource-group MyResourceGroup --name MyWorkspace \\
                --created
"""
