/*
 * 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 TestReportStats.
 */
class TestReportStats {
  /**
   * Create a TestReportStats.
   * @member {number} [os]
   * @member {number} [devices]
   * @member {number} [filesize]
   * @member {number} [totalDeviceMinutes]
   * @member {number} [devicesNotRunned]
   * @member {number} [failed]
   * @member {number} [skipped]
   * @member {number} [passed]
   * @member {number} [total]
   * @member {number} [devicesFinished]
   * @member {number} [devicesFailed]
   * @member {number} [devicesSkipped]
   * @member {number} [stepCount]
   */
  constructor() {
  }

  /**
   * Defines the metadata of TestReportStats
   *
   * @returns {object} metadata of TestReportStats
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'TestReport_stats',
      type: {
        name: 'Composite',
        className: 'TestReportStats',
        modelProperties: {
          os: {
            required: false,
            serializedName: 'os',
            type: {
              name: 'Number'
            }
          },
          devices: {
            required: false,
            serializedName: 'devices',
            type: {
              name: 'Number'
            }
          },
          filesize: {
            required: false,
            serializedName: 'filesize',
            type: {
              name: 'Number'
            }
          },
          totalDeviceMinutes: {
            required: false,
            serializedName: 'totalDeviceMinutes',
            type: {
              name: 'Number'
            }
          },
          devicesNotRunned: {
            required: false,
            serializedName: 'devices_not_runned',
            type: {
              name: 'Number'
            }
          },
          failed: {
            required: false,
            serializedName: 'failed',
            type: {
              name: 'Number'
            }
          },
          skipped: {
            required: false,
            serializedName: 'skipped',
            type: {
              name: 'Number'
            }
          },
          passed: {
            required: false,
            serializedName: 'passed',
            type: {
              name: 'Number'
            }
          },
          total: {
            required: false,
            serializedName: 'total',
            type: {
              name: 'Number'
            }
          },
          devicesFinished: {
            required: false,
            serializedName: 'devices_finished',
            type: {
              name: 'Number'
            }
          },
          devicesFailed: {
            required: false,
            serializedName: 'devices_failed',
            type: {
              name: 'Number'
            }
          },
          devicesSkipped: {
            required: false,
            serializedName: 'devices_skipped',
            type: {
              name: 'Number'
            }
          },
          stepCount: {
            required: false,
            serializedName: 'step_count',
            type: {
              name: 'Number'
            }
          }
        }
      }
    };
  }
}

module.exports = TestReportStats;
