appcenter-cli
Version:
Command line tool for Visual Studio App Center
73 lines (67 loc) • 1.62 kB
JavaScript
/*
* 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.
*/
;
const models = require('./index');
/**
* Alerting service error
*
* @extends models['AlertOperationResult']
*/
class AlertingError extends models['AlertOperationResult'] {
/**
* Create a AlertingError.
* @property {number} code The status code return by the API. It can be 400
* or 404 or 409 or 500.
* @property {string} [message] The reason for the request failed
*/
constructor() {
super();
}
/**
* Defines the metadata of AlertingError
*
* @returns {object} metadata of AlertingError
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertingError',
type: {
name: 'Composite',
className: 'AlertingError',
modelProperties: {
requestId: {
required: true,
serializedName: 'request_id',
type: {
name: 'String'
}
},
code: {
required: true,
serializedName: 'code',
type: {
name: 'Number'
}
},
message: {
required: false,
serializedName: 'message',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AlertingError;