Class: Azure::Compute::Mgmt::V2015_06_15::Models::UpgradePolicy
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2015_06_15::Models::UpgradePolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2015-06-15/generated/azure_mgmt_compute/models/upgrade_policy.rb
Overview
Describes an upgrade policy - automatic or manual.
Instance Attribute Summary collapse
-
#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.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for UpgradePolicy class as Ruby Hash.
Instance Attribute Details
#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'
22 23 24 |
# File 'lib/2015-06-15/generated/azure_mgmt_compute/models/upgrade_policy.rb', line 22 def mode @mode end |
Class Method Details
.mapper ⇒ Object
Mapper for UpgradePolicy class as Ruby Hash. This will be used for serialization/deserialization.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/2015-06-15/generated/azure_mgmt_compute/models/upgrade_policy.rb', line 29 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' } } } } } end |