Class: Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::Update

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#impact_duration_in_secInteger

Returns Duration of impact in seconds.

Returns:

  • (Integer)

    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_typeImpactType

‘Freeze’, ‘Restart’, ‘Redeploy’

Returns:

  • (ImpactType)

    The impact type. Possible values include: ‘None’,



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_scopeMaintenanceScope

‘All’, ‘Host’, ‘Resource’, ‘InResource’

Returns:



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_beforeDateTime

self-updated by customer before this time

Returns:

  • (DateTime)

    Time when Azure will start force updates if not



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_idString

Returns The resourceId.

Returns:

  • (String)

    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

#statusUpdateStatus

‘InProgress’, ‘Completed’, ‘RetryNow’, ‘RetryLater’

Returns:

  • (UpdateStatus)

    The status. Possible values include: ‘Pending’,



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

.mapperObject

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