azure-cli
Version:
Microsoft Azure Cross Platform Command Line tool
86 lines (81 loc) • 2.33 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.
*/
;
/**
* Information about the current running state of the overall upgrade.
*
*/
class RollingUpgradeRunningStatus {
/**
* Create a RollingUpgradeRunningStatus.
* @member {string} [code] Code indicating the current status of the upgrade.
* Possible values include: 'RollingForward', 'Cancelled', 'Completed',
* 'Faulted'
* @member {date} [startTime] Start time of the upgrade.
* @member {string} [lastAction] The last action performed on the rolling
* upgrade. Possible values include: 'Start', 'Cancel'
* @member {date} [lastActionTime] Last action time of the upgrade.
*/
constructor() {
}
/**
* Defines the metadata of RollingUpgradeRunningStatus
*
* @returns {object} metadata of RollingUpgradeRunningStatus
*
*/
mapper() {
return {
required: false,
serializedName: 'RollingUpgradeRunningStatus',
type: {
name: 'Composite',
className: 'RollingUpgradeRunningStatus',
modelProperties: {
code: {
required: false,
readOnly: true,
serializedName: 'code',
type: {
name: 'Enum',
allowedValues: [ 'RollingForward', 'Cancelled', 'Completed', 'Faulted' ]
}
},
startTime: {
required: false,
readOnly: true,
serializedName: 'startTime',
type: {
name: 'DateTime'
}
},
lastAction: {
required: false,
readOnly: true,
serializedName: 'lastAction',
type: {
name: 'Enum',
allowedValues: [ 'Start', 'Cancel' ]
}
},
lastActionTime: {
required: false,
readOnly: true,
serializedName: 'lastActionTime',
type: {
name: 'DateTime'
}
}
}
}
};
}
}
module.exports = RollingUpgradeRunningStatus;