Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions lib/services/computeManagement2/lib/models/autoOSUpgradePolicy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* 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';

/**
* The configuration parameters used for performing automatic OS upgrade.
*
*/
class AutoOSUpgradePolicy {
/**
* Create a AutoOSUpgradePolicy.
* @member {boolean} [disableAutoRollback] Whether OS image rollback feature
* should be disabled. Default value is false.
*/
constructor() {
}

/**
* Defines the metadata of AutoOSUpgradePolicy
*
* @returns {object} metadata of AutoOSUpgradePolicy
*
*/
mapper() {
return {
required: false,
serializedName: 'AutoOSUpgradePolicy',
type: {
name: 'Composite',
className: 'AutoOSUpgradePolicy',
modelProperties: {
disableAutoRollback: {
required: false,
serializedName: 'disableAutoRollback',
type: {
name: 'Boolean'
}
}
}
}
};
}
}

module.exports = AutoOSUpgradePolicy;
28 changes: 28 additions & 0 deletions lib/services/computeManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2254,6 +2254,19 @@ export interface VirtualMachineUpdate extends UpdateResource {
zones?: string[];
}

/**
* @class
* Initializes a new instance of the AutoOSUpgradePolicy class.
* @constructor
* The configuration parameters used for performing automatic OS upgrade.
*
* @member {boolean} [disableAutoRollback] Whether OS image rollback feature
* should be disabled. Default value is false.
*/
export interface AutoOSUpgradePolicy {
disableAutoRollback?: boolean;
}

/**
* @class
* Initializes a new instance of the RollingUpgradePolicy class.
Expand Down Expand Up @@ -2328,11 +2341,16 @@ export interface RollingUpgradePolicy {
* @member {boolean} [automaticOSUpgrade] Whether OS upgrades should
* automatically be applied to scale set instances in a rolling fashion when a
* newer version of the image becomes available.
* @member {object} [autoOSUpgradePolicy] Configuration parameters used for
* performing automatic OS Upgrade.
* @member {boolean} [autoOSUpgradePolicy.disableAutoRollback] Whether OS image
* rollback feature should be disabled. Default value is false.
*/
export interface UpgradePolicy {
mode?: string;
rollingUpgradePolicy?: RollingUpgradePolicy;
automaticOSUpgrade?: boolean;
autoOSUpgradePolicy?: AutoOSUpgradePolicy;
}

/**
Expand Down Expand Up @@ -3665,6 +3683,11 @@ export interface VirtualMachineScaleSetUpdateVMProfile {
* @member {boolean} [upgradePolicy.automaticOSUpgrade] Whether OS upgrades
* should automatically be applied to scale set instances in a rolling fashion
* when a newer version of the image becomes available.
* @member {object} [upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
* @member {boolean} [upgradePolicy.autoOSUpgradePolicy.disableAutoRollback]
* Whether OS image rollback feature should be disabled. Default value is
* false.
* @member {object} [virtualMachineProfile] The virtual machine profile.
* @member {object} [virtualMachineProfile.osProfile] Specifies the operating
* system settings for the virtual machines in the scale set.
Expand Down Expand Up @@ -3978,6 +4001,11 @@ export interface VirtualMachineScaleSet extends Resource {
* @member {boolean} [upgradePolicy.automaticOSUpgrade] Whether OS upgrades
* should automatically be applied to scale set instances in a rolling fashion
* when a newer version of the image becomes available.
* @member {object} [upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
* @member {boolean} [upgradePolicy.autoOSUpgradePolicy.disableAutoRollback]
* Whether OS image rollback feature should be disabled. Default value is
* false.
* @member {object} [virtualMachineProfile] The virtual machine profile.
* @member {object} [virtualMachineProfile.osProfile] The virtual machine scale
* set OS profile.
Expand Down
1 change: 1 addition & 0 deletions lib/services/computeManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ exports.MaintenanceRedeployStatus = require('./maintenanceRedeployStatus');
exports.VirtualMachineInstanceView = require('./virtualMachineInstanceView');
exports.VirtualMachine = require('./virtualMachine');
exports.VirtualMachineUpdate = require('./virtualMachineUpdate');
exports.AutoOSUpgradePolicy = require('./autoOSUpgradePolicy');
exports.RollingUpgradePolicy = require('./rollingUpgradePolicy');
exports.UpgradePolicy = require('./upgradePolicy');
exports.ImageOSDisk = require('./imageOSDisk');
Expand Down
12 changes: 12 additions & 0 deletions lib/services/computeManagement2/lib/models/upgradePolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class UpgradePolicy {
* @member {boolean} [automaticOSUpgrade] Whether OS upgrades should
* automatically be applied to scale set instances in a rolling fashion when
* a newer version of the image becomes available.
* @member {object} [autoOSUpgradePolicy] Configuration parameters used for
* performing automatic OS Upgrade.
* @member {boolean} [autoOSUpgradePolicy.disableAutoRollback] Whether OS
* image rollback feature should be disabled. Default value is false.
*/
constructor() {
}
Expand Down Expand Up @@ -94,6 +98,14 @@ class UpgradePolicy {
type: {
name: 'Boolean'
}
},
autoOSUpgradePolicy: {
required: false,
serializedName: 'autoOSUpgradePolicy',
type: {
name: 'Composite',
className: 'AutoOSUpgradePolicy'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ class VirtualMachineScaleSet extends models['Resource'] {
* @member {boolean} [upgradePolicy.automaticOSUpgrade] Whether OS upgrades
* should automatically be applied to scale set instances in a rolling
* fashion when a newer version of the image becomes available.
* @member {object} [upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
* @member {boolean} [upgradePolicy.autoOSUpgradePolicy.disableAutoRollback]
* Whether OS image rollback feature should be disabled. Default value is
* false.
* @member {object} [virtualMachineProfile] The virtual machine profile.
* @member {object} [virtualMachineProfile.osProfile] Specifies the operating
* system settings for the virtual machines in the scale set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ class VirtualMachineScaleSetUpdate extends models['UpdateResource'] {
* @member {boolean} [upgradePolicy.automaticOSUpgrade] Whether OS upgrades
* should automatically be applied to scale set instances in a rolling
* fashion when a newer version of the image becomes available.
* @member {object} [upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
* @member {boolean} [upgradePolicy.autoOSUpgradePolicy.disableAutoRollback]
* Whether OS image rollback feature should be disabled. Default value is
* false.
* @member {object} [virtualMachineProfile] The virtual machine profile.
* @member {object} [virtualMachineProfile.osProfile] The virtual machine
* scale set OS profile.
Expand Down
56 changes: 56 additions & 0 deletions lib/services/computeManagement2/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8440,6 +8440,13 @@ export interface VirtualMachineScaleSets {
* upgrades should automatically be applied to scale set instances in a rolling
* fashion when a newer version of the image becomes available.
*
* @param {object} [parameters.upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
*
* @param {boolean}
* [parameters.upgradePolicy.autoOSUpgradePolicy.disableAutoRollback] Whether
* OS image rollback feature should be disabled. Default value is false.
*
* @param {object} [parameters.virtualMachineProfile] The virtual machine
* profile.
*
Expand Down Expand Up @@ -8853,6 +8860,13 @@ export interface VirtualMachineScaleSets {
* upgrades should automatically be applied to scale set instances in a rolling
* fashion when a newer version of the image becomes available.
*
* @param {object} [parameters.upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
*
* @param {boolean}
* [parameters.upgradePolicy.autoOSUpgradePolicy.disableAutoRollback] Whether
* OS image rollback feature should be disabled. Default value is false.
*
* @param {object} [parameters.virtualMachineProfile] The virtual machine
* profile.
*
Expand Down Expand Up @@ -9281,6 +9295,13 @@ export interface VirtualMachineScaleSets {
* upgrades should automatically be applied to scale set instances in a rolling
* fashion when a newer version of the image becomes available.
*
* @param {object} [parameters.upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
*
* @param {boolean}
* [parameters.upgradePolicy.autoOSUpgradePolicy.disableAutoRollback] Whether
* OS image rollback feature should be disabled. Default value is false.
*
* @param {object} [parameters.virtualMachineProfile] The virtual machine
* profile.
*
Expand Down Expand Up @@ -9568,6 +9589,13 @@ export interface VirtualMachineScaleSets {
* upgrades should automatically be applied to scale set instances in a rolling
* fashion when a newer version of the image becomes available.
*
* @param {object} [parameters.upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
*
* @param {boolean}
* [parameters.upgradePolicy.autoOSUpgradePolicy.disableAutoRollback] Whether
* OS image rollback feature should be disabled. Default value is false.
*
* @param {object} [parameters.virtualMachineProfile] The virtual machine
* profile.
*
Expand Down Expand Up @@ -11065,6 +11093,13 @@ export interface VirtualMachineScaleSets {
* upgrades should automatically be applied to scale set instances in a rolling
* fashion when a newer version of the image becomes available.
*
* @param {object} [parameters.upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
*
* @param {boolean}
* [parameters.upgradePolicy.autoOSUpgradePolicy.disableAutoRollback] Whether
* OS image rollback feature should be disabled. Default value is false.
*
* @param {object} [parameters.virtualMachineProfile] The virtual machine
* profile.
*
Expand Down Expand Up @@ -11478,6 +11513,13 @@ export interface VirtualMachineScaleSets {
* upgrades should automatically be applied to scale set instances in a rolling
* fashion when a newer version of the image becomes available.
*
* @param {object} [parameters.upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
*
* @param {boolean}
* [parameters.upgradePolicy.autoOSUpgradePolicy.disableAutoRollback] Whether
* OS image rollback feature should be disabled. Default value is false.
*
* @param {object} [parameters.virtualMachineProfile] The virtual machine
* profile.
*
Expand Down Expand Up @@ -11906,6 +11948,13 @@ export interface VirtualMachineScaleSets {
* upgrades should automatically be applied to scale set instances in a rolling
* fashion when a newer version of the image becomes available.
*
* @param {object} [parameters.upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
*
* @param {boolean}
* [parameters.upgradePolicy.autoOSUpgradePolicy.disableAutoRollback] Whether
* OS image rollback feature should be disabled. Default value is false.
*
* @param {object} [parameters.virtualMachineProfile] The virtual machine
* profile.
*
Expand Down Expand Up @@ -12193,6 +12242,13 @@ export interface VirtualMachineScaleSets {
* upgrades should automatically be applied to scale set instances in a rolling
* fashion when a newer version of the image becomes available.
*
* @param {object} [parameters.upgradePolicy.autoOSUpgradePolicy] Configuration
* parameters used for performing automatic OS Upgrade.
*
* @param {boolean}
* [parameters.upgradePolicy.autoOSUpgradePolicy.disableAutoRollback] Whether
* OS image rollback feature should be disabled. Default value is false.
*
* @param {object} [parameters.virtualMachineProfile] The virtual machine
* profile.
*
Expand Down
Loading