# --------------------------------------------------------------------------
# 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['maintenance public-configuration'] = """
    type: group
    short-summary: maintenance public-configuration
"""

helps['maintenance public-configuration list'] = """
    type: command
    short-summary: "Get Public Maintenance Configuration records"
    examples:
      - name: PublicMaintenanceConfigurations_List
        text: |-
               az maintenance public-configuration list
"""

helps['maintenance public-configuration show'] = """
    type: command
    short-summary: "Get Public Maintenance Configuration record"
    examples:
      - name: PublicMaintenanceConfigurations_GetForResource
        text: |-
               az maintenance public-configuration show --resource-name "configuration1"
"""

helps['maintenance applyupdate'] = """
    type: group
    short-summary: maintenance applyupdate
"""

helps['maintenance applyupdate show'] = """
    type: command
    short-summary: "Track maintenance updates to resource"
    examples:
      - name: ApplyUpdates_Get
        text: |-
               az maintenance applyupdate show --name "e9b9685d-78e4-44c4-a81c-64a14f9b87b6" --provider-name \
"Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"
"""

helps['maintenance applyupdate create'] = """
    type: command
    short-summary: "Apply maintenance updates to resource"
    examples:
      - name: ApplyUpdates_CreateOrUpdateParent
        text: |-
               az maintenance applyupdate create --provider-name "Microsoft.Compute" --resource-group "examplerg" \
--resource-name "smdvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" \
--resource-type "virtualMachines"
"""

helps['maintenance applyupdate update'] = """
    type: command
    short-summary: "Apply maintenance updates to resource"
"""

helps['maintenance applyupdate get-parent'] = """
    type: command
    short-summary: "Track maintenance updates to resource with parent"
    examples:
      - name: ApplyUpdates_GetParent
        text: |-
               az maintenance applyupdate get-parent --name "e9b9685d-78e4-44c4-a81c-64a14f9b87b6" --provider-name \
"Microsoft.Compute" --resource-group "examplerg" --resource-name "smdvm1" --resource-parent-name "smdtest1" \
--resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"
"""

helps['maintenance assignment'] = """
    type: group
    short-summary: maintenance assignment
"""

helps['maintenance assignment list'] = """
    type: command
    short-summary: "List configurationAssignments for resource."
    examples:
      - name: ConfigurationAssignments_List
        text: |-
               az maintenance assignment list --provider-name "Microsoft.Compute" --resource-group "examplerg" \
--resource-name "smdtest1" --resource-type "virtualMachineScaleSets"
"""

helps['maintenance assignment create'] = """
    type: command
    short-summary: "Register configuration for resource."
    examples:
      - name: ConfigurationAssignments_CreateOrUpdateParent
        text: |-
               az maintenance assignment create --maintenance-configuration-id "/subscriptions/5b4b650e-28b9-4790-b3ab-\
ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1" --name \
"workervmPolicy" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdvm1" \
--resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"
"""

helps['maintenance assignment update'] = """
    type: command
    short-summary: "Register configuration for resource."
"""

helps['maintenance assignment delete'] = """
    type: command
    short-summary: "Unregister configuration for resource."
    examples:
      - name: ConfigurationAssignments_DeleteParent
        text: |-
               az maintenance assignment delete --name "workervmConfiguration" --provider-name "Microsoft.Compute" \
--resource-group "examplerg" --resource-name "smdvm1" --resource-parent-name "smdtest1" --resource-parent-type \
"virtualMachineScaleSets" --resource-type "virtualMachines"
"""

helps['maintenance assignment list-parent'] = """
    type: command
    short-summary: "List configurationAssignments for resource."
    examples:
      - name: ConfigurationAssignments_ListParent
        text: |-
               az maintenance assignment list-parent --provider-name "Microsoft.Compute" --resource-group "examplerg" \
--resource-name "smdtestvm1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" \
--resource-type "virtualMachines"
"""

helps['maintenance configuration'] = """
    type: group
    short-summary: maintenance configuration
"""

helps['maintenance configuration list'] = """
    type: command
    short-summary: "Get Configuration records within a subscription"
    examples:
      - name: MaintenanceConfigurations_List
        text: |-
               az maintenance configuration list
"""

helps['maintenance configuration show'] = """
    type: command
    short-summary: "Get Configuration record"
    examples:
      - name: MaintenanceConfigurations_GetForResource
        text: |-
               az maintenance configuration show --resource-group "examplerg" --resource-name "configuration1"
"""

helps['maintenance configuration create'] = """
    type: command
    short-summary: "Create or Update configuration record"
    examples:
      - name: MaintenanceConfigurations_CreateOrUpdateForResource
        text: |-
               az maintenance configuration create --location "westus2" --maintenance-scope "OSImage" \
--maintenance-window-duration "05:00" --maintenance-window-expiration-date-time "9999-12-31 00:00" \
--maintenance-window-recur-every "Day" --maintenance-window-start-date-time "2020-04-30 08:00" \
--maintenance-window-time-zone "Pacific Standard Time" --namespace "Microsoft.Maintenance" --visibility "Custom" \
--resource-group "examplerg" --resource-name "configuration1"
"""

helps['maintenance configuration update'] = """
    type: command
    short-summary: "Patch configuration record"
    examples:
      - name: MaintenanceConfigurations_UpdateForResource
        text: |-
               az maintenance configuration update --location "westus2" --maintenance-scope "OSImage" \
--maintenance-window-duration "05:00" --maintenance-window-expiration-date-time "9999-12-31 00:00" \
--maintenance-window-recur-every "Month Third Sunday" --maintenance-window-start-date-time "2020-04-30 08:00" \
--maintenance-window-time-zone "Pacific Standard Time" --namespace "Microsoft.Maintenance" --visibility "Custom" \
--resource-group "examplerg" --resource-name "configuration1"
"""

helps['maintenance configuration delete'] = """
    type: command
    short-summary: "Delete Configuration record"
    examples:
      - name: MaintenanceConfigurations_DeleteForResource
        text: |-
               az maintenance configuration delete --resource-group "examplerg" --resource-name "example1"
"""

helps['maintenance update'] = """
    type: group
    short-summary: maintenance update
"""

helps['maintenance update list'] = """
    type: command
    short-summary: "Get updates to resources."
    examples:
      - name: Updates_List
        text: |-
               az maintenance update list --provider-name "Microsoft.Compute" --resource-group "examplerg" \
--resource-name "smdtest1" --resource-type "virtualMachineScaleSets"
"""

helps['maintenance update list-parent'] = """
    type: command
    short-summary: "Get updates to resources."
    examples:
      - name: Updates_ListParent
        text: |-
               az maintenance update list-parent --provider-name "Microsoft.Compute" --resource-group "examplerg" \
--resource-name "1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type \
"virtualMachines"
"""
