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

/**
 * Bounding box that defines a region of an image.
 *
 */
class BoundingBox {
  /**
   * Create a BoundingBox.
   * @property {number} left Coordinate of the left boundary.
   * @property {number} top Coordinate of the top boundary.
   * @property {number} width Width.
   * @property {number} height Height.
   */
  constructor() {
  }

  /**
   * Defines the metadata of BoundingBox
   *
   * @returns {object} metadata of BoundingBox
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'BoundingBox',
      type: {
        name: 'Composite',
        className: 'BoundingBox',
        modelProperties: {
          left: {
            required: true,
            nullable: false,
            serializedName: 'left',
            type: {
              name: 'Number'
            }
          },
          top: {
            required: true,
            nullable: false,
            serializedName: 'top',
            type: {
              name: 'Number'
            }
          },
          width: {
            required: true,
            nullable: false,
            serializedName: 'width',
            type: {
              name: 'Number'
            }
          },
          height: {
            required: true,
            nullable: false,
            serializedName: 'height',
            type: {
              name: 'Number'
            }
          }
        }
      }
    };
  }
}

module.exports = BoundingBox;
