Class: MicrosoftGraph::Models::WindowsMalwareStateCount
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::WindowsMalwareStateCount
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_malware_state_count.rb
Overview
Windows Malware State Summary.
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.
-
#device_count ⇒ Object
Gets the deviceCount property value.
-
#device_count=(value) ⇒ Object
Sets the deviceCount property value.
-
#distinct_malware_count ⇒ Object
Gets the distinctMalwareCount property value.
-
#distinct_malware_count=(value) ⇒ Object
Sets the distinctMalwareCount property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new windowsMalwareStateCount and sets the default values.
-
#last_update_date_time ⇒ Object
Gets the lastUpdateDateTime property value.
-
#last_update_date_time=(value) ⇒ Object
Sets the lastUpdateDateTime property value.
-
#malware_detection_count ⇒ Object
Gets the malwareDetectionCount property value.
-
#malware_detection_count=(value) ⇒ Object
Sets the malwareDetectionCount property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new windowsMalwareStateCount and sets the default values.
52 53 54 |
# File 'lib/models/windows_malware_state_count.rb', line 52 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
60 61 62 63 |
# File 'lib/models/windows_malware_state_count.rb', line 60 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WindowsMalwareStateCount.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.
37 38 39 |
# File 'lib/models/windows_malware_state_count.rb', line 37 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.
45 46 47 |
# File 'lib/models/windows_malware_state_count.rb', line 45 def additional_data=(value) @additional_data = value end |
#device_count ⇒ Object
Gets the deviceCount property value. Count of devices with malware detections for this malware State
68 69 70 |
# File 'lib/models/windows_malware_state_count.rb', line 68 def device_count return @device_count end |
#device_count=(value) ⇒ Object
Sets the deviceCount property value. Count of devices with malware detections for this malware State
76 77 78 |
# File 'lib/models/windows_malware_state_count.rb', line 76 def device_count=(value) @device_count = value end |
#distinct_malware_count ⇒ Object
Gets the distinctMalwareCount property value. Count of distinct malwares for this malware State. Valid values -2147483648 to 2147483647
83 84 85 |
# File 'lib/models/windows_malware_state_count.rb', line 83 def distinct_malware_count return @distinct_malware_count end |
#distinct_malware_count=(value) ⇒ Object
Sets the distinctMalwareCount property value. Count of distinct malwares for this malware State. Valid values -2147483648 to 2147483647
91 92 93 |
# File 'lib/models/windows_malware_state_count.rb', line 91 def distinct_malware_count=(value) @distinct_malware_count = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
98 99 100 101 102 103 104 105 106 107 |
# File 'lib/models/windows_malware_state_count.rb', line 98 def get_field_deserializers() return { "deviceCount" => lambda {|n| @device_count = n.get_number_value() }, "distinctMalwareCount" => lambda {|n| @distinct_malware_count = n.get_number_value() }, "lastUpdateDateTime" => lambda {|n| @last_update_date_time = n.get_date_time_value() }, "malwareDetectionCount" => lambda {|n| @malware_detection_count = n.get_number_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "state" => lambda {|n| @state = n.get_enum_value(MicrosoftGraph::Models::WindowsMalwareThreatState) }, } end |
#last_update_date_time ⇒ Object
Gets the lastUpdateDateTime property value. The Timestamp of the last update for the device count in UTC
112 113 114 |
# File 'lib/models/windows_malware_state_count.rb', line 112 def last_update_date_time return @last_update_date_time end |
#last_update_date_time=(value) ⇒ Object
Sets the lastUpdateDateTime property value. The Timestamp of the last update for the device count in UTC
120 121 122 |
# File 'lib/models/windows_malware_state_count.rb', line 120 def last_update_date_time=(value) @last_update_date_time = value end |
#malware_detection_count ⇒ Object
Gets the malwareDetectionCount property value. Count of total malware detections for this malware State. Valid values -2147483648 to 2147483647
127 128 129 |
# File 'lib/models/windows_malware_state_count.rb', line 127 def malware_detection_count return @malware_detection_count end |
#malware_detection_count=(value) ⇒ Object
Sets the malwareDetectionCount property value. Count of total malware detections for this malware State. Valid values -2147483648 to 2147483647
135 136 137 |
# File 'lib/models/windows_malware_state_count.rb', line 135 def malware_detection_count=(value) @malware_detection_count = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
142 143 144 |
# File 'lib/models/windows_malware_state_count.rb', line 142 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
150 151 152 |
# File 'lib/models/windows_malware_state_count.rb', line 150 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
158 159 160 161 162 163 164 165 166 167 |
# File 'lib/models/windows_malware_state_count.rb', line 158 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_number_value("deviceCount", @device_count) writer.write_number_value("distinctMalwareCount", @distinct_malware_count) writer.write_date_time_value("lastUpdateDateTime", @last_update_date_time) writer.write_number_value("malwareDetectionCount", @malware_detection_count) writer.write_string_value("@odata.type", @odata_type) writer.write_enum_value("state", @state) writer.write_additional_data(@additional_data) end |
#state ⇒ Object
Gets the state property value. Malware threat status
172 173 174 |
# File 'lib/models/windows_malware_state_count.rb', line 172 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. Malware threat status
180 181 182 |
# File 'lib/models/windows_malware_state_count.rb', line 180 def state=(value) @state = value end |