# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=too-many-lines

from knack.help_files import helps


helps['automation runbook'] = """
    type: group
    short-summary: automation runbook
"""

helps['automation runbook list'] = """
    type: command
    short-summary: "Retrieve a list of runbooks."
    examples:
      - name: List runbooks by automation account
        text: |-
               az automation runbook list --automation-account-name "ContoseAutomationAccount" --resource-group "rg"
"""

helps['automation runbook show'] = """
    type: command
    short-summary: "Retrieve the runbook identified by runbook name."
    examples:
      - name: Get runbook
        text: |-
               az automation runbook show --automation-account-name "ContoseAutomationAccount" --resource-group "rg" \
--name "Get-AzureVMTutorial"
"""

helps['automation runbook create'] = """
    type: command
    short-summary: "Create the runbook identified by runbook name."
    parameters:
      - name: --publish-content-link-content-hash
        short-summary: "Gets or sets the hash."
        long-summary: |
            Usage: --publish-content-link-content-hash algorithm=XX value=XX

            algorithm: Required. Gets or sets the content hash algorithm used to hash the content.
            value: Required. Gets or sets expected hash value of the content.
    examples:
      - name: Create or update runbook and publish it
        text: |-
               az automation runbook create --automation-account-name "ContoseAutomationAccount" --draft-parameters \
"{\\"name\\":\\"Get-AzureVMTutorial\\",\\"location\\":\\"East US 2\\",\\"properties\\":{\\"description\\":\\"Descriptio\
n of the Runbook\\",\\"logActivityTrace\\":1,\\"logProgress\\":true,\\"logVerbose\\":false,\\"publishContentLink\\":{\\\
"contentHash\\":{\\"algorithm\\":\\"SHA256\\",\\"value\\":\\"115775B8FF2BE672D8A946BD0B489918C724DDE15A440373CA54461D53\
010A80\\"},\\"uri\\":\\"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runboo\
k-getvms/Runbooks/Get-AzureVMTutorial.ps1\\"},\\"runbookType\\":\\"PowerShellWorkflow\\"},\\"tags\\":{\\"tag01\\":\\"va\
lue01\\",\\"tag02\\":\\"value02\\"}}" --resource-group "rg" --runbook-name "Get-AzureVMTutorial"
      - name: Create runbook as draft
        text: |-
               az automation runbook create --automation-account-name "ContoseAutomationAccount" --draft-parameters \
"{\\"name\\":\\"Get-AzureVMTutorial\\",\\"location\\":\\"East US 2\\",\\"properties\\":{\\"description\\":\\"Descriptio\
n of the Runbook\\",\\"draft\\":{},\\"logProgress\\":false,\\"logVerbose\\":false,\\"runbookType\\":\\"PowerShellWorkfl\
ow\\"},\\"tags\\":{\\"tag01\\":\\"value01\\",\\"tag02\\":\\"value02\\"}}" --resource-group "rg" --runbook-name \
"Get-AzureVMTutorial"
"""

helps['automation runbook update'] = """
    type: command
    short-summary: "Update the runbook identified by runbook name."
    examples:
      - name: Update runbook
        text: |-
               az automation runbook update --automation-account-name "ContoseAutomationAccount" --description \
"Updated Description of the Runbook" --log-activity-trace 1 --log-progress true --log-verbose false --resource-group \
"rg" --runbook-name "Get-AzureVMTutorial"
"""

helps['automation runbook delete'] = """
    type: command
    short-summary: "Delete the runbook by name."
    examples:
      - name: Delete a runbook
        text: |-
               az automation runbook delete --automation-account-name "ContoseAutomationAccount" --resource-group "rg" \
--name "Get-AzureVMTutorial"
"""

helps['automation runbook publish'] = """
    type: command
    short-summary: "Publish runbook draft."
    examples:
      - name: Publish runbook draft
        text: |-
               az automation runbook publish --automation-account-name "ContoseAutomationAccount" --resource-group \
"rg" --name "Get-AzureVMTutorial"
"""

helps['automation runbook wait'] = """
    type: command
    short-summary: Place the CLI in a waiting state until a condition of the automation runbook is met.
    examples:
      - name: Pause executing next line of CLI script until the automation runbook is successfully created.
        text: |-
               az automation runbook wait --automation-account-name "ContoseAutomationAccount" --resource-group "rg" \
--name "Get-AzureVMTutorial" --created
"""
