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

'use strict';

var models = require('./index');

var util = require('util');

/**
 * @class
 * Initializes a new instance of the AlertWebhookPingResult class.
 * @constructor
 * Alerting webhook ping operation result
 *
 * @member {number} [responseStatusCode] HTTP status code returned in response
 * from calling webhook
 * 
 * @member {string} [responseReason] Reason returned in response from calling
 * webhook
 * 
 */
function AlertWebhookPingResult() {
  AlertWebhookPingResult['super_'].call(this);
}

util.inherits(AlertWebhookPingResult, models['AlertOperationResult']);

/**
 * Defines the metadata of AlertWebhookPingResult
 *
 * @returns {object} metadata of AlertWebhookPingResult
 *
 */
AlertWebhookPingResult.prototype.mapper = function () {
  return {
    required: false,
    serializedName: 'AlertWebhookPingResult',
    type: {
      name: 'Composite',
      className: 'AlertWebhookPingResult',
      modelProperties: {
        requestId: {
          required: true,
          serializedName: 'request_id',
          type: {
            name: 'String'
          }
        },
        responseStatusCode: {
          required: false,
          serializedName: 'response_status_code',
          type: {
            name: 'Number'
          }
        },
        responseReason: {
          required: false,
          serializedName: 'response_reason',
          type: {
            name: 'String'
          }
        }
      }
    }
  };
};

module.exports = AlertWebhookPingResult;
