Class: MicrosoftGraph::Models::WindowsMalwareSeverityCount
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::WindowsMalwareSeverityCount
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_malware_severity_count.rb
Overview
Windows Malware Severity Count 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.
-
#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 windowsMalwareSeverityCount 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.
-
#severity ⇒ Object
Gets the severity property value.
-
#severity=(value) ⇒ Object
Sets the severity property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new windowsMalwareSeverityCount and sets the default values.
49 50 51 |
# File 'lib/models/windows_malware_severity_count.rb', line 49 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
57 58 59 60 |
# File 'lib/models/windows_malware_severity_count.rb', line 57 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WindowsMalwareSeverityCount.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.
34 35 36 |
# File 'lib/models/windows_malware_severity_count.rb', line 34 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.
42 43 44 |
# File 'lib/models/windows_malware_severity_count.rb', line 42 def additional_data=(value) @additional_data = value end |
#distinct_malware_count ⇒ Object
Gets the distinctMalwareCount property value. Count of distinct malwares for this malware State. Valid values -2147483648 to 2147483647
65 66 67 |
# File 'lib/models/windows_malware_severity_count.rb', line 65 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
73 74 75 |
# File 'lib/models/windows_malware_severity_count.rb', line 73 def distinct_malware_count=(value) @distinct_malware_count = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
80 81 82 83 84 85 86 87 88 |
# File 'lib/models/windows_malware_severity_count.rb', line 80 def get_field_deserializers() return { "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() }, "severity" => lambda {|n| @severity = n.get_enum_value(MicrosoftGraph::Models::WindowsMalwareSeverity) }, } end |
#last_update_date_time ⇒ Object
Gets the lastUpdateDateTime property value. The Timestamp of the last update for the WindowsMalwareSeverityCount in UTC
93 94 95 |
# File 'lib/models/windows_malware_severity_count.rb', line 93 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 WindowsMalwareSeverityCount in UTC
101 102 103 |
# File 'lib/models/windows_malware_severity_count.rb', line 101 def last_update_date_time=(value) @last_update_date_time = value end |
#malware_detection_count ⇒ Object
Gets the malwareDetectionCount property value. Count of threats detections for this malware severity. Valid values -2147483648 to 2147483647
108 109 110 |
# File 'lib/models/windows_malware_severity_count.rb', line 108 def malware_detection_count return @malware_detection_count end |
#malware_detection_count=(value) ⇒ Object
Sets the malwareDetectionCount property value. Count of threats detections for this malware severity. Valid values -2147483648 to 2147483647
116 117 118 |
# File 'lib/models/windows_malware_severity_count.rb', line 116 def malware_detection_count=(value) @malware_detection_count = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
123 124 125 |
# File 'lib/models/windows_malware_severity_count.rb', line 123 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
131 132 133 |
# File 'lib/models/windows_malware_severity_count.rb', line 131 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
139 140 141 142 143 144 145 146 147 |
# File 'lib/models/windows_malware_severity_count.rb', line 139 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? 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("severity", @severity) writer.write_additional_data(@additional_data) end |
#severity ⇒ Object
Gets the severity property value. Malware severity
152 153 154 |
# File 'lib/models/windows_malware_severity_count.rb', line 152 def severity return @severity end |
#severity=(value) ⇒ Object
Sets the severity property value. Malware severity
160 161 162 |
# File 'lib/models/windows_malware_severity_count.rb', line 160 def severity=(value) @severity = value end |