/*
 * 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 Create/Update Tag operations.
 *
 */
class TagCreateUpdateParameters {
  /**
   * Create a TagCreateUpdateParameters.
   * @property {string} displayName Tag name.
   */
  constructor() {
  }

  /**
   * Defines the metadata of TagCreateUpdateParameters
   *
   * @returns {object} metadata of TagCreateUpdateParameters
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'TagCreateUpdateParameters',
      type: {
        name: 'Composite',
        className: 'TagCreateUpdateParameters',
        modelProperties: {
          displayName: {
            required: true,
            serializedName: 'properties.displayName',
            constraints: {
              MaxLength: 160,
              MinLength: 1
            },
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = TagCreateUpdateParameters;
