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

/**
 * Parameters supplied to the Update Group operation.
 *
 */
class GroupUpdateParameters {
  /**
   * Create a GroupUpdateParameters.
   * @property {string} [displayName] Group name.
   * @property {string} [description] Group description.
   * @property {string} [type] Group type. Possible values include: 'custom',
   * 'system', 'external'
   * @property {string} [externalId] Identifier of the external groups, this
   * property contains the id of the group from the external identity provider,
   * e.g. for Azure Active Directory
   * `aad://<tenant>.onmicrosoft.com/groups/<group object id>`; otherwise the
   * value is null.
   */
  constructor() {
  }

  /**
   * Defines the metadata of GroupUpdateParameters
   *
   * @returns {object} metadata of GroupUpdateParameters
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'GroupUpdateParameters',
      type: {
        name: 'Composite',
        className: 'GroupUpdateParameters',
        modelProperties: {
          displayName: {
            required: false,
            serializedName: 'properties.displayName',
            constraints: {
              MaxLength: 300,
              MinLength: 1
            },
            type: {
              name: 'String'
            }
          },
          description: {
            required: false,
            serializedName: 'properties.description',
            type: {
              name: 'String'
            }
          },
          type: {
            required: false,
            serializedName: 'properties.type',
            type: {
              name: 'Enum',
              allowedValues: [ 'custom', 'system', 'external' ]
            }
          },
          externalId: {
            required: false,
            serializedName: 'properties.externalId',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = GroupUpdateParameters;
