azure-cli
Version:
Microsoft Azure Cross Platform Command Line tool
89 lines (84 loc) • 2.14 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.
*/
;
/**
* Instance view status.
*
*/
class InstanceViewStatus {
/**
* Create a InstanceViewStatus.
* @member {string} [code] The status code.
* @member {string} [level] The level code. Possible values include: 'Info',
* 'Warning', 'Error'
* @member {string} [displayStatus] The short localizable label for the
* status.
* @member {string} [message] The detailed status message, including for
* alerts and error messages.
* @member {date} [time] The time of the status.
*/
constructor() {
}
/**
* Defines the metadata of InstanceViewStatus
*
* @returns {object} metadata of InstanceViewStatus
*
*/
mapper() {
return {
required: false,
serializedName: 'InstanceViewStatus',
type: {
name: 'Composite',
className: 'InstanceViewStatus',
modelProperties: {
code: {
required: false,
serializedName: 'code',
type: {
name: 'String'
}
},
level: {
required: false,
serializedName: 'level',
type: {
name: 'Enum',
allowedValues: [ 'Info', 'Warning', 'Error' ]
}
},
displayStatus: {
required: false,
serializedName: 'displayStatus',
type: {
name: 'String'
}
},
message: {
required: false,
serializedName: 'message',
type: {
name: 'String'
}
},
time: {
required: false,
serializedName: 'time',
type: {
name: 'DateTime'
}
}
}
}
};
}
}
module.exports = InstanceViewStatus;