Class: MicrosoftGraph::Models::SecurityModel

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_model.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new SecurityModel and sets the default values.



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

def initialize()
    super
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Raises:

  • (StandardError)


113
114
115
116
# File 'lib/models/security_model.rb', line 113

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SecurityModel.new
end

Instance Method Details

#alertsObject

Gets the alerts property value. The alerts property



45
46
47
# File 'lib/models/security_model.rb', line 45

def alerts
    return @alerts
end

#alerts=(value) ⇒ Object

Sets the alerts property value. The alerts property



53
54
55
# File 'lib/models/security_model.rb', line 53

def alerts=(value)
    @alerts = value
end

#alerts_v2Object

Gets the alerts_v2 property value. A collection of alerts in Microsoft 365 Defender.



60
61
62
# File 'lib/models/security_model.rb', line 60

def alerts_v2
    return @alerts_v2
end

#alerts_v2=(value) ⇒ Object

Sets the alerts_v2 property value. A collection of alerts in Microsoft 365 Defender.



68
69
70
# File 'lib/models/security_model.rb', line 68

def alerts_v2=(value)
    @alerts_v2 = value
end

#attack_simulationObject

Gets the attackSimulation property value. The attackSimulation property



75
76
77
# File 'lib/models/security_model.rb', line 75

def attack_simulation
    return @attack_simulation
end

#attack_simulation=(value) ⇒ Object

Sets the attackSimulation property value. The attackSimulation property



83
84
85
# File 'lib/models/security_model.rb', line 83

def attack_simulation=(value)
    @attack_simulation = value
end

#casesObject

Gets the cases property value. The cases property



90
91
92
# File 'lib/models/security_model.rb', line 90

def cases
    return @cases
end

#cases=(value) ⇒ Object

Sets the cases property value. The cases property



98
99
100
# File 'lib/models/security_model.rb', line 98

def cases=(value)
    @cases = value
end

#get_field_deserializersObject

The deserialization information for the current model



121
122
123
124
125
126
127
128
129
130
131
132
133
# File 'lib/models/security_model.rb', line 121

def get_field_deserializers()
    return super.merge({
        "alerts" => lambda {|n| @alerts = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Alert.create_from_discriminator_value(pn) }) },
        "alerts_v2" => lambda {|n| @alerts_v2 = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Security::Alert.create_from_discriminator_value(pn) }) },
        "attackSimulation" => lambda {|n| @attack_simulation = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AttackSimulationRoot.create_from_discriminator_value(pn) }) },
        "cases" => lambda {|n| @cases = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Security::CasesRoot.create_from_discriminator_value(pn) }) },
        "incidents" => lambda {|n| @incidents = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Security::Incident.create_from_discriminator_value(pn) }) },
        "secureScoreControlProfiles" => lambda {|n| @secure_score_control_profiles = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecureScoreControlProfile.create_from_discriminator_value(pn) }) },
        "secureScores" => lambda {|n| @secure_scores = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecureScore.create_from_discriminator_value(pn) }) },
        "triggerTypes" => lambda {|n| @trigger_types = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Security::TriggerTypesRoot.create_from_discriminator_value(pn) }) },
        "triggers" => lambda {|n| @triggers = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Security::TriggersRoot.create_from_discriminator_value(pn) }) },
    })
end

#incidentsObject

Gets the incidents property value. A collection of incidents in Microsoft 365 Defender, each of which is a set of correlated alerts and associated metadata that reflects the story of an attack.



138
139
140
# File 'lib/models/security_model.rb', line 138

def incidents
    return @incidents
end

#incidents=(value) ⇒ Object

Sets the incidents property value. A collection of incidents in Microsoft 365 Defender, each of which is a set of correlated alerts and associated metadata that reflects the story of an attack.



146
147
148
# File 'lib/models/security_model.rb', line 146

def incidents=(value)
    @incidents = value
end

#secure_score_control_profilesObject

Gets the secureScoreControlProfiles property value. The secureScoreControlProfiles property



153
154
155
# File 'lib/models/security_model.rb', line 153

def secure_score_control_profiles
    return @secure_score_control_profiles
end

#secure_score_control_profiles=(value) ⇒ Object

Sets the secureScoreControlProfiles property value. The secureScoreControlProfiles property



161
162
163
# File 'lib/models/security_model.rb', line 161

def secure_score_control_profiles=(value)
    @secure_score_control_profiles = value
end

#secure_scoresObject

Gets the secureScores property value. The secureScores property



168
169
170
# File 'lib/models/security_model.rb', line 168

def secure_scores
    return @secure_scores
end

#secure_scores=(value) ⇒ Object

Sets the secureScores property value. The secureScores property



176
177
178
# File 'lib/models/security_model.rb', line 176

def secure_scores=(value)
    @secure_scores = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Raises:

  • (StandardError)


184
185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/models/security_model.rb', line 184

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("alerts", @alerts)
    writer.write_collection_of_object_values("alerts_v2", @alerts_v2)
    writer.write_object_value("attackSimulation", @attack_simulation)
    writer.write_object_value("cases", @cases)
    writer.write_collection_of_object_values("incidents", @incidents)
    writer.write_collection_of_object_values("secureScoreControlProfiles", @secure_score_control_profiles)
    writer.write_collection_of_object_values("secureScores", @secure_scores)
    writer.write_object_value("triggerTypes", @trigger_types)
    writer.write_object_value("triggers", @triggers)
end

#trigger_typesObject

Gets the triggerTypes property value. The triggerTypes property



201
202
203
# File 'lib/models/security_model.rb', line 201

def trigger_types
    return @trigger_types
end

#trigger_types=(value) ⇒ Object

Sets the triggerTypes property value. The triggerTypes property



209
210
211
# File 'lib/models/security_model.rb', line 209

def trigger_types=(value)
    @trigger_types = value
end

#triggersObject

Gets the triggers property value. The triggers property



216
217
218
# File 'lib/models/security_model.rb', line 216

def triggers
    return @triggers
end

#triggers=(value) ⇒ Object

Sets the triggers property value. The triggers property



224
225
226
# File 'lib/models/security_model.rb', line 224

def triggers=(value)
    @triggers = value
end