Class: MicrosoftGraph::Models::WindowsMalwareExecutionStateCount
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::WindowsMalwareExecutionStateCount
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_malware_execution_state_count.rb
Overview
Windows malware execution 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.
-
#execution_state ⇒ Object
Gets the executionState property value.
-
#execution_state=(value) ⇒ Object
Sets the executionState property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new windowsMalwareExecutionStateCount 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.
-
#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.
Constructor Details
#initialize ⇒ Object
Instantiates a new windowsMalwareExecutionStateCount and sets the default values.
46 47 48 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 46 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
54 55 56 57 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 54 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WindowsMalwareExecutionStateCount.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.
31 32 33 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 31 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.
39 40 41 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 39 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 execution state
62 63 64 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 62 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 execution state
70 71 72 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 70 def device_count=(value) @device_count = value end |
#execution_state ⇒ Object
Gets the executionState property value. Malware execution status
77 78 79 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 77 def execution_state return @execution_state end |
#execution_state=(value) ⇒ Object
Sets the executionState property value. Malware execution status
85 86 87 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 85 def execution_state=(value) @execution_state = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
92 93 94 95 96 97 98 99 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 92 def get_field_deserializers() return { "deviceCount" => lambda {|n| @device_count = n.get_number_value() }, "executionState" => lambda {|n| @execution_state = n.get_enum_value(MicrosoftGraph::Models::WindowsMalwareExecutionState) }, "lastUpdateDateTime" => lambda {|n| @last_update_date_time = n.get_date_time_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, } end |
#last_update_date_time ⇒ Object
Gets the lastUpdateDateTime property value. The Timestamp of the last update for the device count in UTC
104 105 106 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 104 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
112 113 114 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 112 def last_update_date_time=(value) @last_update_date_time = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
119 120 121 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 119 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
127 128 129 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 127 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
135 136 137 138 139 140 141 142 |
# File 'lib/models/windows_malware_execution_state_count.rb', line 135 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_number_value("deviceCount", @device_count) writer.write_enum_value("executionState", @execution_state) writer.write_date_time_value("lastUpdateDateTime", @last_update_date_time) writer.write_string_value("@odata.type", @odata_type) writer.write_additional_data(@additional_data) end |