/*
 * 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.
 */

'use strict';

/**
 * Describes a script action on role on the cluster.
 *
 */
class ScriptAction {
  /**
   * Create a ScriptAction.
   * @property {string} name The name of the script action.
   * @property {string} uri The URI to the script.
   * @property {string} parameters The parameters for the script provided.
   */
  constructor() {
  }

  /**
   * Defines the metadata of ScriptAction
   *
   * @returns {object} metadata of ScriptAction
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'ScriptAction',
      type: {
        name: 'Composite',
        className: 'ScriptAction',
        modelProperties: {
          name: {
            required: true,
            serializedName: 'name',
            type: {
              name: 'String'
            }
          },
          uri: {
            required: true,
            serializedName: 'uri',
            type: {
              name: 'String'
            }
          },
          parameters: {
            required: true,
            serializedName: 'parameters',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = ScriptAction;
