/*
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

/**
 * Class representing a SearchItem.
 */
class SearchItem {
  /**
   * Create a SearchItem.
   * @member {string} crashId
   * @member {string} [displayId]
   * @member {date} timestamp
   * @member {string} version
   * @member {string} build
   * @member {string} device
   * @member {string} osVersion
   * @member {string} [osType]
   * @member {string} userName
   * @member {string} [userEmail]
   */
  constructor() {
  }

  /**
   * Defines the metadata of SearchItem
   *
   * @returns {object} metadata of SearchItem
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'SearchItem',
      type: {
        name: 'Composite',
        className: 'SearchItem',
        modelProperties: {
          crashId: {
            required: true,
            serializedName: 'crash_id',
            type: {
              name: 'String'
            }
          },
          displayId: {
            required: false,
            serializedName: 'display_id',
            type: {
              name: 'String'
            }
          },
          timestamp: {
            required: true,
            serializedName: 'timestamp',
            type: {
              name: 'DateTime'
            }
          },
          version: {
            required: true,
            serializedName: 'version',
            type: {
              name: 'String'
            }
          },
          build: {
            required: true,
            serializedName: 'build',
            type: {
              name: 'String'
            }
          },
          device: {
            required: true,
            serializedName: 'device',
            type: {
              name: 'String'
            }
          },
          osVersion: {
            required: true,
            serializedName: 'os_version',
            type: {
              name: 'String'
            }
          },
          osType: {
            required: false,
            serializedName: 'os_type',
            type: {
              name: 'String'
            }
          },
          userName: {
            required: true,
            serializedName: 'user_name',
            type: {
              name: 'String'
            }
          },
          userEmail: {
            required: false,
            serializedName: 'user_email',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = SearchItem;
