Class: MicrosoftGraph::Models::DeviceProtectionOverview
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::DeviceProtectionOverview
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_protection_overview.rb
Overview
Hardware information of a given device.
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#clean_device_count ⇒ Object
Gets the cleanDeviceCount property value.
-
#clean_device_count=(value) ⇒ Object
Sets the cleanDeviceCount property value.
-
#critical_failures_device_count ⇒ Object
Gets the criticalFailuresDeviceCount property value.
-
#critical_failures_device_count=(value) ⇒ Object
Sets the criticalFailuresDeviceCount property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#inactive_threat_agent_device_count ⇒ Object
Gets the inactiveThreatAgentDeviceCount property value.
-
#inactive_threat_agent_device_count=(value) ⇒ Object
Sets the inactiveThreatAgentDeviceCount property value.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceProtectionOverview and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#pending_full_scan_device_count ⇒ Object
Gets the pendingFullScanDeviceCount property value.
-
#pending_full_scan_device_count=(value) ⇒ Object
Sets the pendingFullScanDeviceCount property value.
-
#pending_manual_steps_device_count ⇒ Object
Gets the pendingManualStepsDeviceCount property value.
-
#pending_manual_steps_device_count=(value) ⇒ Object
Sets the pendingManualStepsDeviceCount property value.
-
#pending_offline_scan_device_count ⇒ Object
Gets the pendingOfflineScanDeviceCount property value.
-
#pending_offline_scan_device_count=(value) ⇒ Object
Sets the pendingOfflineScanDeviceCount property value.
-
#pending_quick_scan_device_count ⇒ Object
Gets the pendingQuickScanDeviceCount property value.
-
#pending_quick_scan_device_count=(value) ⇒ Object
Sets the pendingQuickScanDeviceCount property value.
-
#pending_restart_device_count ⇒ Object
Gets the pendingRestartDeviceCount property value.
-
#pending_restart_device_count=(value) ⇒ Object
Sets the pendingRestartDeviceCount property value.
-
#pending_signature_update_device_count ⇒ Object
Gets the pendingSignatureUpdateDeviceCount property value.
-
#pending_signature_update_device_count=(value) ⇒ Object
Sets the pendingSignatureUpdateDeviceCount property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#total_reported_device_count ⇒ Object
Gets the totalReportedDeviceCount property value.
-
#total_reported_device_count=(value) ⇒ Object
Sets the totalReportedDeviceCount property value.
-
#unknown_state_threat_agent_device_count ⇒ Object
Gets the unknownStateThreatAgentDeviceCount property value.
-
#unknown_state_threat_agent_device_count=(value) ⇒ Object
Sets the unknownStateThreatAgentDeviceCount property value.
Constructor Details
#initialize ⇒ Object
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
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_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
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.
62 63 64 |
# File 'lib/models/device_protection_overview.rb', line 62 def additional_data=(value) @additional_data = value end |
#clean_device_count ⇒ Object
Gets the cleanDeviceCount property value. Indicates number of devices reporting as clean
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
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_count ⇒ Object
Gets the criticalFailuresDeviceCount property value. Indicates number of devices with critical failures
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
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_deserializers ⇒ Object
The deserialization information for the current model
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_count ⇒ Object
Gets the inactiveThreatAgentDeviceCount property value. Indicates number of devices with inactive threat agent
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
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_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
158 159 160 |
# File 'lib/models/device_protection_overview.rb', line 158 def odata_type=(value) @odata_type = value end |
#pending_full_scan_device_count ⇒ Object
Gets the pendingFullScanDeviceCount property value. Indicates number of devices pending full scan
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
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_count ⇒ Object
Gets the pendingManualStepsDeviceCount property value. Indicates number of devices with pending manual steps
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
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_count ⇒ Object
Gets the pendingOfflineScanDeviceCount property value. Indicates number of pending offline scan devices
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
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_count ⇒ Object
Gets the pendingQuickScanDeviceCount property value. Indicates the number of devices that have a pending full scan. Valid values -2147483648 to 2147483647
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
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_count ⇒ Object
Gets the pendingRestartDeviceCount property value. Indicates number of devices pending restart
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
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_count ⇒ Object
Gets the pendingSignatureUpdateDeviceCount property value. Indicates number of devices with an old signature
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
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
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_count ⇒ Object
Gets the totalReportedDeviceCount property value. Total device count.
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.
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_count ⇒ Object
Gets the unknownStateThreatAgentDeviceCount property value. Indicates number of devices with threat agent state as unknown
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
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 |