text: /*
   * 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';
  
  /**
   * An operation.
   *
   */
  class Operation {
    /**
     * Create a Operation.
     * @member {string} name The operation name.
     * @member {object} [display] The operation display name.
     * @member {string} [display.provider] The service provider.
     * @member {string} [display.resource] Resource on which the operation is
     * performed.
     * @member {string} [display.operation] The operation type.
     * @member {string} [display.description] The operation description.
     */
    constructor() {
    }
  
    /**
     * Defines the metadata of Operation
     *
     * @returns {object} metadata of Operation
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'Operation',
        type: {
          name: 'Composite',
          className: 'Operation',
          modelProperties: {
            name: {
              required: true,
              serializedName: 'name',
              type: {
                name: 'String'
              }
            },
            display: {
              required: false,
              serializedName: 'display',
              type: {
                name: 'Composite',
                className: 'OperationDisplay'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = Operation;
  