Class: Azure::Compute::Mgmt::V2019_07_01::Models::UpgradePolicy
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2019_07_01::Models::UpgradePolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-07-01/generated/azure_mgmt_compute/models/upgrade_policy.rb
Overview
Describes an upgrade policy - automatic, manual, or rolling.
Instance Attribute Summary collapse
-
#automatic_osupgrade_policy ⇒ AutomaticOSUpgradePolicy
performing automatic OS Upgrade.
-
#mode ⇒ UpgradeMode
machines in the scale set.<br /><br /> Possible values are:<br /><br /> *Manual* - You control the application of updates to virtual machines in the scale set.
-
#rolling_upgrade_policy ⇒ RollingUpgradePolicy
performing a rolling upgrade.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for UpgradePolicy class as Ruby Hash.
Instance Attribute Details
#automatic_osupgrade_policy ⇒ AutomaticOSUpgradePolicy
performing automatic OS Upgrade.
30 31 32 |
# File 'lib/2019-07-01/generated/azure_mgmt_compute/models/upgrade_policy.rb', line 30 def automatic_osupgrade_policy @automatic_osupgrade_policy end |
#mode ⇒ UpgradeMode
machines in the scale set.<br /><br /> Possible values are:<br /><br /> *Manual* - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> *Automatic* - All virtual machines in the scale set are automatically updated at the same time. Possible values include: 'Automatic', 'Manual', 'Rolling'
22 23 24 |
# File 'lib/2019-07-01/generated/azure_mgmt_compute/models/upgrade_policy.rb', line 22 def mode @mode end |
#rolling_upgrade_policy ⇒ RollingUpgradePolicy
performing a rolling upgrade.
26 27 28 |
# File 'lib/2019-07-01/generated/azure_mgmt_compute/models/upgrade_policy.rb', line 26 def rolling_upgrade_policy @rolling_upgrade_policy end |
Class Method Details
.mapper ⇒ Object
Mapper for UpgradePolicy class as Ruby Hash. This will be used for serialization/deserialization.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/2019-07-01/generated/azure_mgmt_compute/models/upgrade_policy.rb', line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'UpgradePolicy', type: { name: 'Composite', class_name: 'UpgradePolicy', model_properties: { mode: { client_side_validation: true, required: false, serialized_name: 'mode', type: { name: 'Enum', module: 'UpgradeMode' } }, rolling_upgrade_policy: { client_side_validation: true, required: false, serialized_name: 'rollingUpgradePolicy', type: { name: 'Composite', class_name: 'RollingUpgradePolicy' } }, automatic_osupgrade_policy: { client_side_validation: true, required: false, serialized_name: 'automaticOSUpgradePolicy', type: { name: 'Composite', class_name: 'AutomaticOSUpgradePolicy' } } } } } end |