Class: Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::Update
- Inherits:
-
Object
- Object
- Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::Update
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update.rb
Overview
Maintenance update on a resource
Instance Attribute Summary collapse
-
#impact_duration_in_sec ⇒ Integer
Duration of impact in seconds.
-
#impact_type ⇒ ImpactType
‘Freeze’, ‘Restart’, ‘Redeploy’.
-
#maintenance_scope ⇒ MaintenanceScope
‘All’, ‘Host’, ‘Resource’, ‘InResource’.
-
#not_before ⇒ DateTime
self-updated by customer before this time.
-
#resource_id ⇒ String
The resourceId.
-
#status ⇒ UpdateStatus
‘InProgress’, ‘Completed’, ‘RetryNow’, ‘RetryLater’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Update class as Ruby Hash.
Instance Attribute Details
#impact_duration_in_sec ⇒ Integer
Returns Duration of impact in seconds.
28 29 30 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update.rb', line 28 def impact_duration_in_sec @impact_duration_in_sec end |
#impact_type ⇒ ImpactType
‘Freeze’, ‘Restart’, ‘Redeploy’
21 22 23 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update.rb', line 21 def impact_type @impact_type end |
#maintenance_scope ⇒ MaintenanceScope
‘All’, ‘Host’, ‘Resource’, ‘InResource’
17 18 19 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update.rb', line 17 def maintenance_scope @maintenance_scope end |
#not_before ⇒ DateTime
self-updated by customer before this time
32 33 34 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update.rb', line 32 def not_before @not_before end |
#resource_id ⇒ String
Returns The resourceId.
35 36 37 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update.rb', line 35 def resource_id @resource_id end |
#status ⇒ UpdateStatus
‘InProgress’, ‘Completed’, ‘RetryNow’, ‘RetryLater’
25 26 27 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update.rb', line 25 def status @status end |
Class Method Details
.mapper ⇒ Object
Mapper for Update class as Ruby Hash. This will be used for serialization/deserialization.
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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update.rb', line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Update', type: { name: 'Composite', class_name: 'Update', model_properties: { maintenance_scope: { client_side_validation: true, required: false, serialized_name: 'maintenanceScope', type: { name: 'String' } }, impact_type: { client_side_validation: true, required: false, serialized_name: 'impactType', type: { name: 'String' } }, status: { client_side_validation: true, required: false, serialized_name: 'status', type: { name: 'String' } }, impact_duration_in_sec: { client_side_validation: true, required: false, serialized_name: 'impactDurationInSec', type: { name: 'Number' } }, not_before: { client_side_validation: true, required: false, serialized_name: 'notBefore', type: { name: 'DateTime' } }, resource_id: { client_side_validation: true, required: false, serialized_name: 'properties.resourceId', type: { name: 'String' } } } } } end |