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';
  
  /**
   * The server capability
   *
   */
  class ServerVersionCapability {
    /**
     * Create a ServerVersionCapability.
     * @property {string} [name] The server version name.
     * @property {array} [supportedEditions] The list of supported database
     * editions.
     * @property {array} [supportedElasticPoolEditions] The list of supported
     * elastic pool editions.
     * @property {string} [status] The status of the capability. Possible values
     * include: 'Visible', 'Available', 'Default', 'Disabled'
     * @property {string} [reason] The reason for the capability not being
     * available.
     */
    constructor() {
    }
  
    /**
     * Defines the metadata of ServerVersionCapability
     *
     * @returns {object} metadata of ServerVersionCapability
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'ServerVersionCapability',
        type: {
          name: 'Composite',
          className: 'ServerVersionCapability',
          modelProperties: {
            name: {
              required: false,
              readOnly: true,
              serializedName: 'name',
              type: {
                name: 'String'
              }
            },
            supportedEditions: {
              required: false,
              readOnly: true,
              serializedName: 'supportedEditions',
              type: {
                name: 'Sequence',
                element: {
                    required: false,
                    serializedName: 'EditionCapabilityElementType',
                    type: {
                      name: 'Composite',
                      className: 'EditionCapability'
                    }
                }
              }
            },
            supportedElasticPoolEditions: {
              required: false,
              readOnly: true,
              serializedName: 'supportedElasticPoolEditions',
              type: {
                name: 'Sequence',
                element: {
                    required: false,
                    serializedName: 'ElasticPoolEditionCapabilityElementType',
                    type: {
                      name: 'Composite',
                      className: 'ElasticPoolEditionCapability'
                    }
                }
              }
            },
            status: {
              required: false,
              readOnly: true,
              serializedName: 'status',
              type: {
                name: 'Enum',
                allowedValues: [ 'Visible', 'Available', 'Default', 'Disabled' ]
              }
            },
            reason: {
              required: false,
              serializedName: 'reason',
              type: {
                name: 'String'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = ServerVersionCapability;
  