This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from c0def97e9fc1e839db7727fd31c2f583f6cf04d6 (#2811)
updated OS Upgrade History API (cherry picked from commit e784ecac207c88dda10fa0986609907486994913)
- Loading branch information
1 parent
11ec702
commit 710d70d
Showing
5 changed files
with
254 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
lib/services/computeManagement2/lib/models/rollbackStatusInfo.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* Information about rollback on failed VM instances after a OS Upgrade | ||
* operation | ||
* | ||
*/ | ||
class RollbackStatusInfo { | ||
/** | ||
* Create a RollbackStatusInfo. | ||
* @member {number} [successfullyRolledbackInstanceCount] The number of | ||
* instances which have been successfully rolled back. | ||
* @member {number} [failedRolledbackInstanceCount] The number of instances | ||
* which failed to rollback. | ||
* @member {object} [rollbackError] Error Details if OS rollback failed. | ||
* @member {array} [rollbackError.details] The Api error details | ||
* @member {object} [rollbackError.innererror] The Api inner error | ||
* @member {string} [rollbackError.innererror.exceptiontype] The exception | ||
* type. | ||
* @member {string} [rollbackError.innererror.errordetail] The internal error | ||
* message or exception dump. | ||
* @member {string} [rollbackError.code] The error code. | ||
* @member {string} [rollbackError.target] The target of the particular | ||
* error. | ||
* @member {string} [rollbackError.message] The error message. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of RollbackStatusInfo | ||
* | ||
* @returns {object} metadata of RollbackStatusInfo | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'RollbackStatusInfo', | ||
type: { | ||
name: 'Composite', | ||
className: 'RollbackStatusInfo', | ||
modelProperties: { | ||
successfullyRolledbackInstanceCount: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'successfullyRolledbackInstanceCount', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
failedRolledbackInstanceCount: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'failedRolledbackInstanceCount', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
rollbackError: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'rollbackError', | ||
type: { | ||
name: 'Composite', | ||
className: 'ApiError' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = RollbackStatusInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters