Class: Azure::Compute::Mgmt::V2020_06_01::Models::VirtualMachineAssessPatchesResult

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb

Overview

Describes the properties of an AssessPatches result.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#assessment_activity_idString

result. It is used to correlate across CRP and extension logs.

Returns:

  • (String)

    The activity ID of the operation that produced this



24
25
26
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb', line 24

def assessment_activity_id
  @assessment_activity_id
end

#critical_and_security_patch_countInteger

been detected as available and not yet installed.

Returns:

  • (Integer)

    The number of critical or security patches that have



33
34
35
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb', line 33

def critical_and_security_patch_count
  @critical_and_security_patch_count
end

#errorApiError

the operation. The details array contains the list of them.

Returns:

  • (ApiError)

    The errors that were encountered during execution of



48
49
50
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb', line 48

def error
  @error
end

#other_patch_countInteger

critical and security.

Returns:

  • (Integer)

    The number of all available patches excluding



37
38
39
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb', line 37

def other_patch_count
  @other_patch_count
end

#patchesArray<VirtualMachineSoftwarePatchProperties>

patches that have been detected as available for installation.

Returns:



44
45
46
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb', line 44

def patches
  @patches
end

#reboot_pendingBoolean

when partially installed patches require a reboot to complete installation but the reboot has not yet occurred.

Returns:

  • (Boolean)

    The overall reboot status of the VM. It will be true



29
30
31
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb', line 29

def reboot_pending
  @reboot_pending
end

#start_date_timeDateTime

Returns The UTC timestamp when the operation began.

Returns:

  • (DateTime)

    The UTC timestamp when the operation began.



40
41
42
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb', line 40

def start_date_time
  @start_date_time
end

#statusPatchOperationStatus

the operation. It remains “InProgress” until the operation completes. At that point it will become “Failed”, “Succeeded”, or “CompletedWithWarnings.”. Possible values include: 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings'

Returns:



20
21
22
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb', line 20

def status
  @status
end

Class Method Details

.mapperObject

Mapper for VirtualMachineAssessPatchesResult class as Ruby Hash. This will be used for serialization/deserialization.



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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_assess_patches_result.rb', line 55

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualMachineAssessPatchesResult',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineAssessPatchesResult',
      model_properties: {
        status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'status',
          type: {
            name: 'String'
          }
        },
        assessment_activity_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'assessmentActivityId',
          type: {
            name: 'String'
          }
        },
        reboot_pending: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'rebootPending',
          type: {
            name: 'Boolean'
          }
        },
        critical_and_security_patch_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'criticalAndSecurityPatchCount',
          type: {
            name: 'Number'
          }
        },
        other_patch_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'otherPatchCount',
          type: {
            name: 'Number'
          }
        },
        start_date_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'startDateTime',
          type: {
            name: 'DateTime'
          }
        },
        patches: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'patches',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'VirtualMachineSoftwarePatchPropertiesElementType',
                type: {
                  name: 'Composite',
                  class_name: 'VirtualMachineSoftwarePatchProperties'
                }
            }
          }
        },
        error: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'error',
          type: {
            name: 'Composite',
            class_name: 'ApiError'
          }
        }
      }
    }
  }
end