Class: MicrosoftGraph::Models::WindowsMalwareOverview

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

Overview

Windows device malware overview.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new windowsMalwareOverview and sets the default values.



63
64
65
# File 'lib/models/windows_malware_overview.rb', line 63

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 windows_malware_overview

Raises:

  • (StandardError)


71
72
73
74
# File 'lib/models/windows_malware_overview.rb', line 71

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return WindowsMalwareOverview.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



48
49
50
# File 'lib/models/windows_malware_overview.rb', line 48

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



56
57
58
# File 'lib/models/windows_malware_overview.rb', line 56

def additional_data=(value)
    @additional_data = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/models/windows_malware_overview.rb', line 79

def get_field_deserializers()
    return {
        "malwareCategorySummary" => lambda {|n| @malware_category_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsMalwareCategoryCount.create_from_discriminator_value(pn) }) },
        "malwareDetectedDeviceCount" => lambda {|n| @malware_detected_device_count = n.get_number_value() },
        "malwareExecutionStateSummary" => lambda {|n| @malware_execution_state_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsMalwareExecutionStateCount.create_from_discriminator_value(pn) }) },
        "malwareNameSummary" => lambda {|n| @malware_name_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsMalwareNameCount.create_from_discriminator_value(pn) }) },
        "malwareSeveritySummary" => lambda {|n| @malware_severity_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsMalwareSeverityCount.create_from_discriminator_value(pn) }) },
        "malwareStateSummary" => lambda {|n| @malware_state_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsMalwareStateCount.create_from_discriminator_value(pn) }) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "osVersionsSummary" => lambda {|n| @os_versions_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::OsVersionCount.create_from_discriminator_value(pn) }) },
        "totalDistinctMalwareCount" => lambda {|n| @total_distinct_malware_count = n.get_number_value() },
        "totalMalwareCount" => lambda {|n| @total_malware_count = n.get_number_value() },
    }
end

#malware_category_summaryObject

Gets the malwareCategorySummary property value. List of device counts per malware category

Returns:

  • a windows_malware_category_count



97
98
99
# File 'lib/models/windows_malware_overview.rb', line 97

def malware_category_summary
    return @malware_category_summary
end

#malware_category_summary=(value) ⇒ Object

Sets the malwareCategorySummary property value. List of device counts per malware category

Parameters:

  • value

    Value to set for the malwareCategorySummary property.

Returns:

  • a void



105
106
107
# File 'lib/models/windows_malware_overview.rb', line 105

def malware_category_summary=(value)
    @malware_category_summary = value
end

#malware_detected_device_countObject

Gets the malwareDetectedDeviceCount property value. Count of devices with malware detected in the last 30 days

Returns:

  • a integer



112
113
114
# File 'lib/models/windows_malware_overview.rb', line 112

def malware_detected_device_count
    return @malware_detected_device_count
end

#malware_detected_device_count=(value) ⇒ Object

Sets the malwareDetectedDeviceCount property value. Count of devices with malware detected in the last 30 days

Parameters:

  • value

    Value to set for the malwareDetectedDeviceCount property.

Returns:

  • a void



120
121
122
# File 'lib/models/windows_malware_overview.rb', line 120

def malware_detected_device_count=(value)
    @malware_detected_device_count = value
end

#malware_execution_state_summaryObject

Gets the malwareExecutionStateSummary property value. List of device counts per malware execution state

Returns:

  • a windows_malware_execution_state_count



127
128
129
# File 'lib/models/windows_malware_overview.rb', line 127

def malware_execution_state_summary
    return @malware_execution_state_summary
end

#malware_execution_state_summary=(value) ⇒ Object

Sets the malwareExecutionStateSummary property value. List of device counts per malware execution state

Parameters:

  • value

    Value to set for the malwareExecutionStateSummary property.

Returns:

  • a void



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

def malware_execution_state_summary=(value)
    @malware_execution_state_summary = value
end

#malware_name_summaryObject

Gets the malwareNameSummary property value. List of device counts per malware

Returns:

  • a windows_malware_name_count



142
143
144
# File 'lib/models/windows_malware_overview.rb', line 142

def malware_name_summary
    return @malware_name_summary
end

#malware_name_summary=(value) ⇒ Object

Sets the malwareNameSummary property value. List of device counts per malware

Parameters:

  • value

    Value to set for the malwareNameSummary property.

Returns:

  • a void



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

def malware_name_summary=(value)
    @malware_name_summary = value
end

#malware_severity_summaryObject

Gets the malwareSeveritySummary property value. List of active malware counts per malware severity

Returns:

  • a windows_malware_severity_count



157
158
159
# File 'lib/models/windows_malware_overview.rb', line 157

def malware_severity_summary
    return @malware_severity_summary
end

#malware_severity_summary=(value) ⇒ Object

Sets the malwareSeveritySummary property value. List of active malware counts per malware severity

Parameters:

  • value

    Value to set for the malwareSeveritySummary property.

Returns:

  • a void



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

def malware_severity_summary=(value)
    @malware_severity_summary = value
end

#malware_state_summaryObject

Gets the malwareStateSummary property value. List of device counts per malware state

Returns:

  • a windows_malware_state_count



172
173
174
# File 'lib/models/windows_malware_overview.rb', line 172

def malware_state_summary
    return @malware_state_summary
end

#malware_state_summary=(value) ⇒ Object

Sets the malwareStateSummary property value. List of device counts per malware state

Parameters:

  • value

    Value to set for the malwareStateSummary property.

Returns:

  • a void



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

def malware_state_summary=(value)
    @malware_state_summary = value
end

#odata_typeObject

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

Returns:

  • a string



187
188
189
# File 'lib/models/windows_malware_overview.rb', line 187

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



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

def odata_type=(value)
    @odata_type = value
end

#os_versions_summaryObject

Gets the osVersionsSummary property value. List of device counts with malware per windows OS version

Returns:

  • a os_version_count



202
203
204
# File 'lib/models/windows_malware_overview.rb', line 202

def os_versions_summary
    return @os_versions_summary
end

#os_versions_summary=(value) ⇒ Object

Sets the osVersionsSummary property value. List of device counts with malware per windows OS version

Parameters:

  • value

    Value to set for the osVersionsSummary property.

Returns:

  • a void



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

def os_versions_summary=(value)
    @os_versions_summary = 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)


218
219
220
221
222
223
224
225
226
227
228
229
230
231
# File 'lib/models/windows_malware_overview.rb', line 218

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_collection_of_object_values("malwareCategorySummary", @malware_category_summary)
    writer.write_number_value("malwareDetectedDeviceCount", @malware_detected_device_count)
    writer.write_collection_of_object_values("malwareExecutionStateSummary", @malware_execution_state_summary)
    writer.write_collection_of_object_values("malwareNameSummary", @malware_name_summary)
    writer.write_collection_of_object_values("malwareSeveritySummary", @malware_severity_summary)
    writer.write_collection_of_object_values("malwareStateSummary", @malware_state_summary)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_collection_of_object_values("osVersionsSummary", @os_versions_summary)
    writer.write_number_value("totalDistinctMalwareCount", @total_distinct_malware_count)
    writer.write_number_value("totalMalwareCount", @total_malware_count)
    writer.write_additional_data(@additional_data)
end

#total_distinct_malware_countObject

Gets the totalDistinctMalwareCount property value. Count of all distinct malwares detected across all devices. Valid values -2147483648 to 2147483647

Returns:

  • a integer



236
237
238
# File 'lib/models/windows_malware_overview.rb', line 236

def total_distinct_malware_count
    return @total_distinct_malware_count
end

#total_distinct_malware_count=(value) ⇒ Object

Sets the totalDistinctMalwareCount property value. Count of all distinct malwares detected across all devices. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the totalDistinctMalwareCount property.

Returns:

  • a void



244
245
246
# File 'lib/models/windows_malware_overview.rb', line 244

def total_distinct_malware_count=(value)
    @total_distinct_malware_count = value
end

#total_malware_countObject

Gets the totalMalwareCount property value. Count of all malware detections across all devices. Valid values -2147483648 to 2147483647

Returns:

  • a integer



251
252
253
# File 'lib/models/windows_malware_overview.rb', line 251

def total_malware_count
    return @total_malware_count
end

#total_malware_count=(value) ⇒ Object

Sets the totalMalwareCount property value. Count of all malware detections across all devices. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the totalMalwareCount property.

Returns:

  • a void



259
260
261
# File 'lib/models/windows_malware_overview.rb', line 259

def total_malware_count=(value)
    @total_malware_count = value
end