/*
 * 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';

/**
 * Gateway settings.
 *
 */
class GatewaySettings {
  /**
   * Create a GatewaySettings.
   * @property {string} [isCredentialEnabled] Indicates whether or not the
   * gateway settings based authorization is enabled.
   * @property {string} [userName] The gateway settings user name.
   * @property {string} [password] The gateway settings user password.
   */
  constructor() {
  }

  /**
   * Defines the metadata of GatewaySettings
   *
   * @returns {object} metadata of GatewaySettings
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'GatewaySettings',
      type: {
        name: 'Composite',
        className: 'GatewaySettings',
        modelProperties: {
          isCredentialEnabled: {
            required: false,
            readOnly: true,
            serializedName: 'restAuthCredential\\.isEnabled',
            type: {
              name: 'String'
            }
          },
          userName: {
            required: false,
            readOnly: true,
            serializedName: 'restAuthCredential\\.username',
            type: {
              name: 'String'
            }
          },
          password: {
            required: false,
            readOnly: true,
            serializedName: 'restAuthCredential\\.password',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = GatewaySettings;
