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

/**
 * Request parameters for creating a new group.
 *
 */
class GroupCreateParameters {
  /**
   * Create a GroupCreateParameters.
   * @member {string} displayName Group display name
   * @member {string} mailNickname Mail nickname
   */
  constructor() {
  }

  /**
   * Defines the metadata of GroupCreateParameters
   *
   * @returns {object} metadata of GroupCreateParameters
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'GroupCreateParameters',
      type: {
        name: 'Composite',
        additionalProperties: {
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serializedName: 'ObjectElementType',
                type: {
                  name: 'Object'
                }
            }
          }
        },
        className: 'GroupCreateParameters',
        modelProperties: {
          displayName: {
            required: true,
            serializedName: 'displayName',
            type: {
              name: 'String'
            }
          },
          mailEnabled: {
            required: true,
            isConstant: true,
            serializedName: 'mailEnabled',
            defaultValue: false,
            type: {
              name: 'Boolean'
            }
          },
          mailNickname: {
            required: true,
            serializedName: 'mailNickname',
            type: {
              name: 'String'
            }
          },
          securityEnabled: {
            required: true,
            isConstant: true,
            serializedName: 'securityEnabled',
            defaultValue: true,
            type: {
              name: 'Boolean'
            }
          }
        }
      }
    };
  }
}

module.exports = GroupCreateParameters;
