Class: MicrosoftGraph::Models::DeviceProtectionOverview

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/device_protection_overview.rb

Overview

Hardware information of a given device.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new deviceProtectionOverview and sets the default values.



84
85
86
# File 'lib/models/device_protection_overview.rb', line 84

def initialize()
    @additional_data = Hash.new
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a device_protection_overview

Raises:

  • (StandardError)


92
93
94
95
# File 'lib/models/device_protection_overview.rb', line 92

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return DeviceProtectionOverview.new
end

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



54
55
56
# File 'lib/models/device_protection_overview.rb', line 54

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



62
63
64
# File 'lib/models/device_protection_overview.rb', line 62

def additional_data=(value)
    @additional_data = value
end

#clean_device_countObject

Gets the cleanDeviceCount property value. Indicates number of devices reporting as clean

Returns:

  • a integer



69
70
71
# File 'lib/models/device_protection_overview.rb', line 69

def clean_device_count
    return @clean_device_count
end

#clean_device_count=(value) ⇒ Object

Sets the cleanDeviceCount property value. Indicates number of devices reporting as clean

Parameters:

  • value

    Value to set for the cleanDeviceCount property.

Returns:

  • a void



77
78
79
# File 'lib/models/device_protection_overview.rb', line 77

def clean_device_count=(value)
    @clean_device_count = value
end

#critical_failures_device_countObject

Gets the criticalFailuresDeviceCount property value. Indicates number of devices with critical failures

Returns:

  • a integer



100
101
102
# File 'lib/models/device_protection_overview.rb', line 100

def critical_failures_device_count
    return @critical_failures_device_count
end

#critical_failures_device_count=(value) ⇒ Object

Sets the criticalFailuresDeviceCount property value. Indicates number of devices with critical failures

Parameters:

  • value

    Value to set for the criticalFailuresDeviceCount property.

Returns:

  • a void



108
109
110
# File 'lib/models/device_protection_overview.rb', line 108

def critical_failures_device_count=(value)
    @critical_failures_device_count = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/models/device_protection_overview.rb', line 115

def get_field_deserializers()
    return {
        "cleanDeviceCount" => lambda {|n| @clean_device_count = n.get_number_value() },
        "criticalFailuresDeviceCount" => lambda {|n| @critical_failures_device_count = n.get_number_value() },
        "inactiveThreatAgentDeviceCount" => lambda {|n| @inactive_threat_agent_device_count = n.get_number_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "pendingFullScanDeviceCount" => lambda {|n| @pending_full_scan_device_count = n.get_number_value() },
        "pendingManualStepsDeviceCount" => lambda {|n| @pending_manual_steps_device_count = n.get_number_value() },
        "pendingOfflineScanDeviceCount" => lambda {|n| @pending_offline_scan_device_count = n.get_number_value() },
        "pendingQuickScanDeviceCount" => lambda {|n| @pending_quick_scan_device_count = n.get_number_value() },
        "pendingRestartDeviceCount" => lambda {|n| @pending_restart_device_count = n.get_number_value() },
        "pendingSignatureUpdateDeviceCount" => lambda {|n| @pending_signature_update_device_count = n.get_number_value() },
        "totalReportedDeviceCount" => lambda {|n| @total_reported_device_count = n.get_number_value() },
        "unknownStateThreatAgentDeviceCount" => lambda {|n| @unknown_state_threat_agent_device_count = n.get_number_value() },
    }
end

#inactive_threat_agent_device_countObject

Gets the inactiveThreatAgentDeviceCount property value. Indicates number of devices with inactive threat agent

Returns:

  • a integer



135
136
137
# File 'lib/models/device_protection_overview.rb', line 135

def inactive_threat_agent_device_count
    return @inactive_threat_agent_device_count
end

#inactive_threat_agent_device_count=(value) ⇒ Object

Sets the inactiveThreatAgentDeviceCount property value. Indicates number of devices with inactive threat agent

Parameters:

  • value

    Value to set for the inactiveThreatAgentDeviceCount property.

Returns:

  • a void



143
144
145
# File 'lib/models/device_protection_overview.rb', line 143

def inactive_threat_agent_device_count=(value)
    @inactive_threat_agent_device_count = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



150
151
152
# File 'lib/models/device_protection_overview.rb', line 150

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



158
159
160
# File 'lib/models/device_protection_overview.rb', line 158

def odata_type=(value)
    @odata_type = value
end

#pending_full_scan_device_countObject

Gets the pendingFullScanDeviceCount property value. Indicates number of devices pending full scan

Returns:

  • a integer



165
166
167
# File 'lib/models/device_protection_overview.rb', line 165

def pending_full_scan_device_count
    return @pending_full_scan_device_count
end

#pending_full_scan_device_count=(value) ⇒ Object

Sets the pendingFullScanDeviceCount property value. Indicates number of devices pending full scan

Parameters:

  • value

    Value to set for the pendingFullScanDeviceCount property.

Returns:

  • a void



173
174
175
# File 'lib/models/device_protection_overview.rb', line 173

def pending_full_scan_device_count=(value)
    @pending_full_scan_device_count = value
end

#pending_manual_steps_device_countObject

Gets the pendingManualStepsDeviceCount property value. Indicates number of devices with pending manual steps

Returns:

  • a integer



180
181
182
# File 'lib/models/device_protection_overview.rb', line 180

def pending_manual_steps_device_count
    return @pending_manual_steps_device_count
end

#pending_manual_steps_device_count=(value) ⇒ Object

Sets the pendingManualStepsDeviceCount property value. Indicates number of devices with pending manual steps

Parameters:

  • value

    Value to set for the pendingManualStepsDeviceCount property.

Returns:

  • a void



188
189
190
# File 'lib/models/device_protection_overview.rb', line 188

def pending_manual_steps_device_count=(value)
    @pending_manual_steps_device_count = value
end

#pending_offline_scan_device_countObject

Gets the pendingOfflineScanDeviceCount property value. Indicates number of pending offline scan devices

Returns:

  • a integer



195
196
197
# File 'lib/models/device_protection_overview.rb', line 195

def pending_offline_scan_device_count
    return @pending_offline_scan_device_count
end

#pending_offline_scan_device_count=(value) ⇒ Object

Sets the pendingOfflineScanDeviceCount property value. Indicates number of pending offline scan devices

Parameters:

  • value

    Value to set for the pendingOfflineScanDeviceCount property.

Returns:

  • a void



203
204
205
# File 'lib/models/device_protection_overview.rb', line 203

def pending_offline_scan_device_count=(value)
    @pending_offline_scan_device_count = value
end

#pending_quick_scan_device_countObject

Gets the pendingQuickScanDeviceCount property value. Indicates the number of devices that have a pending full scan. Valid values -2147483648 to 2147483647

Returns:

  • a integer



210
211
212
# File 'lib/models/device_protection_overview.rb', line 210

def pending_quick_scan_device_count
    return @pending_quick_scan_device_count
end

#pending_quick_scan_device_count=(value) ⇒ Object

Sets the pendingQuickScanDeviceCount property value. Indicates the number of devices that have a pending full scan. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the pendingQuickScanDeviceCount property.

Returns:

  • a void



218
219
220
# File 'lib/models/device_protection_overview.rb', line 218

def pending_quick_scan_device_count=(value)
    @pending_quick_scan_device_count = value
end

#pending_restart_device_countObject

Gets the pendingRestartDeviceCount property value. Indicates number of devices pending restart

Returns:

  • a integer



225
226
227
# File 'lib/models/device_protection_overview.rb', line 225

def pending_restart_device_count
    return @pending_restart_device_count
end

#pending_restart_device_count=(value) ⇒ Object

Sets the pendingRestartDeviceCount property value. Indicates number of devices pending restart

Parameters:

  • value

    Value to set for the pendingRestartDeviceCount property.

Returns:

  • a void



233
234
235
# File 'lib/models/device_protection_overview.rb', line 233

def pending_restart_device_count=(value)
    @pending_restart_device_count = value
end

#pending_signature_update_device_countObject

Gets the pendingSignatureUpdateDeviceCount property value. Indicates number of devices with an old signature

Returns:

  • a integer



240
241
242
# File 'lib/models/device_protection_overview.rb', line 240

def pending_signature_update_device_count
    return @pending_signature_update_device_count
end

#pending_signature_update_device_count=(value) ⇒ Object

Sets the pendingSignatureUpdateDeviceCount property value. Indicates number of devices with an old signature

Parameters:

  • value

    Value to set for the pendingSignatureUpdateDeviceCount property.

Returns:

  • a void



248
249
250
# File 'lib/models/device_protection_overview.rb', line 248

def pending_signature_update_device_count=(value)
    @pending_signature_update_device_count = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
# File 'lib/models/device_protection_overview.rb', line 256

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_number_value("cleanDeviceCount", @clean_device_count)
    writer.write_number_value("criticalFailuresDeviceCount", @critical_failures_device_count)
    writer.write_number_value("inactiveThreatAgentDeviceCount", @inactive_threat_agent_device_count)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_number_value("pendingFullScanDeviceCount", @pending_full_scan_device_count)
    writer.write_number_value("pendingManualStepsDeviceCount", @pending_manual_steps_device_count)
    writer.write_number_value("pendingOfflineScanDeviceCount", @pending_offline_scan_device_count)
    writer.write_number_value("pendingQuickScanDeviceCount", @pending_quick_scan_device_count)
    writer.write_number_value("pendingRestartDeviceCount", @pending_restart_device_count)
    writer.write_number_value("pendingSignatureUpdateDeviceCount", @pending_signature_update_device_count)
    writer.write_number_value("totalReportedDeviceCount", @total_reported_device_count)
    writer.write_number_value("unknownStateThreatAgentDeviceCount", @unknown_state_threat_agent_device_count)
    writer.write_additional_data(@additional_data)
end

#total_reported_device_countObject

Gets the totalReportedDeviceCount property value. Total device count.

Returns:

  • a integer



276
277
278
# File 'lib/models/device_protection_overview.rb', line 276

def total_reported_device_count
    return @total_reported_device_count
end

#total_reported_device_count=(value) ⇒ Object

Sets the totalReportedDeviceCount property value. Total device count.

Parameters:

  • value

    Value to set for the totalReportedDeviceCount property.

Returns:

  • a void



284
285
286
# File 'lib/models/device_protection_overview.rb', line 284

def total_reported_device_count=(value)
    @total_reported_device_count = value
end

#unknown_state_threat_agent_device_countObject

Gets the unknownStateThreatAgentDeviceCount property value. Indicates number of devices with threat agent state as unknown

Returns:

  • a integer



291
292
293
# File 'lib/models/device_protection_overview.rb', line 291

def unknown_state_threat_agent_device_count
    return @unknown_state_threat_agent_device_count
end

#unknown_state_threat_agent_device_count=(value) ⇒ Object

Sets the unknownStateThreatAgentDeviceCount property value. Indicates number of devices with threat agent state as unknown

Parameters:

  • value

    Value to set for the unknownStateThreatAgentDeviceCount property.

Returns:

  • a void



299
300
301
# File 'lib/models/device_protection_overview.rb', line 299

def unknown_state_threat_agent_device_count=(value)
    @unknown_state_threat_agent_device_count = value
end