appcenter-cli
Version:
Command line tool for Visual Studio App Center
94 lines (88 loc) • 2.25 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');
/**
* Class representing a ReleaseUpdateError.
* @extends models['ErrorDetails']
*/
class ReleaseUpdateError extends models['ErrorDetails'] {
/**
* Create a ReleaseUpdateError.
* @property {string} [releaseNotes]
* @property {boolean} [mandatoryUpdate]
* @property {array} [destinations]
*/
constructor() {
super();
}
/**
* Defines the metadata of ReleaseUpdateError
*
* @returns {object} metadata of ReleaseUpdateError
*
*/
mapper() {
return {
required: false,
serializedName: 'ReleaseUpdateError',
type: {
name: 'Composite',
className: 'ReleaseUpdateError',
modelProperties: {
code: {
required: true,
serializedName: 'code',
type: {
name: 'String'
}
},
message: {
required: true,
serializedName: 'message',
type: {
name: 'String'
}
},
releaseNotes: {
required: false,
serializedName: 'release_notes',
type: {
name: 'String'
}
},
mandatoryUpdate: {
required: false,
serializedName: 'mandatory_update',
type: {
name: 'Boolean'
}
},
destinations: {
required: false,
serializedName: 'destinations',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'DestinationErrorElementType',
type: {
name: 'Composite',
className: 'DestinationError'
}
}
}
}
}
}
};
}
}
module.exports = ReleaseUpdateError;