Class: MicrosoftGraph::Models::Simulation
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/simulation.rb
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
-
#attack_technique ⇒ Object
Gets the attackTechnique property value.
-
#attack_technique=(value) ⇒ Object
Sets the attackTechnique property value.
-
#attack_type ⇒ Object
Gets the attackType property value.
-
#attack_type=(value) ⇒ Object
Sets the attackType property value.
-
#automation_id ⇒ Object
Gets the automationId property value.
-
#automation_id=(value) ⇒ Object
Sets the automationId property value.
-
#completion_date_time ⇒ Object
Gets the completionDateTime property value.
-
#completion_date_time=(value) ⇒ Object
Sets the completionDateTime property value.
-
#created_by ⇒ Object
Gets the createdBy property value.
-
#created_by=(value) ⇒ Object
Sets the createdBy property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new simulation and sets the default values.
-
#is_automated ⇒ Object
Gets the isAutomated property value.
-
#is_automated=(value) ⇒ Object
Sets the isAutomated property value.
-
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value.
-
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#launch_date_time ⇒ Object
Gets the launchDateTime property value.
-
#launch_date_time=(value) ⇒ Object
Sets the launchDateTime property value.
-
#payload_delivery_platform ⇒ Object
Gets the payloadDeliveryPlatform property value.
-
#payload_delivery_platform=(value) ⇒ Object
Sets the payloadDeliveryPlatform property value.
-
#report ⇒ Object
Gets the report property value.
-
#report=(value) ⇒ Object
Sets the report property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new simulation and sets the default values.
119 120 121 |
# File 'lib/models/simulation.rb', line 119 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
157 158 159 160 |
# File 'lib/models/simulation.rb', line 157 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Simulation.new end |
Instance Method Details
#attack_technique ⇒ Object
Gets the attackTechnique property value. The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue. For more information on the types of social engineering attack techniques, see simulations.
59 60 61 |
# File 'lib/models/simulation.rb', line 59 def attack_technique return @attack_technique end |
#attack_technique=(value) ⇒ Object
Sets the attackTechnique property value. The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue. For more information on the types of social engineering attack techniques, see simulations.
67 68 69 |
# File 'lib/models/simulation.rb', line 67 def attack_technique=(value) @attack_technique = value end |
#attack_type ⇒ Object
Gets the attackType property value. Attack type of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, social, cloud, endpoint, unknownFutureValue.
74 75 76 |
# File 'lib/models/simulation.rb', line 74 def attack_type return @attack_type end |
#attack_type=(value) ⇒ Object
Sets the attackType property value. Attack type of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, social, cloud, endpoint, unknownFutureValue.
82 83 84 |
# File 'lib/models/simulation.rb', line 82 def attack_type=(value) @attack_type = value end |
#automation_id ⇒ Object
Gets the automationId property value. Unique identifier for the attack simulation automation.
89 90 91 |
# File 'lib/models/simulation.rb', line 89 def automation_id return @automation_id end |
#automation_id=(value) ⇒ Object
Sets the automationId property value. Unique identifier for the attack simulation automation.
97 98 99 |
# File 'lib/models/simulation.rb', line 97 def automation_id=(value) @automation_id = value end |
#completion_date_time ⇒ Object
Gets the completionDateTime property value. Date and time of completion of the attack simulation and training campaign. Supports $filter and $orderby.
104 105 106 |
# File 'lib/models/simulation.rb', line 104 def completion_date_time return @completion_date_time end |
#completion_date_time=(value) ⇒ Object
Sets the completionDateTime property value. Date and time of completion of the attack simulation and training campaign. Supports $filter and $orderby.
112 113 114 |
# File 'lib/models/simulation.rb', line 112 def completion_date_time=(value) @completion_date_time = value end |
#created_by ⇒ Object
Gets the createdBy property value. Identity of the user who created the attack simulation and training campaign.
126 127 128 |
# File 'lib/models/simulation.rb', line 126 def created_by return @created_by end |
#created_by=(value) ⇒ Object
Sets the createdBy property value. Identity of the user who created the attack simulation and training campaign.
134 135 136 |
# File 'lib/models/simulation.rb', line 134 def created_by=(value) @created_by = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. Date and time of creation of the attack simulation and training campaign.
141 142 143 |
# File 'lib/models/simulation.rb', line 141 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. Date and time of creation of the attack simulation and training campaign.
149 150 151 |
# File 'lib/models/simulation.rb', line 149 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. Description of the attack simulation and training campaign.
165 166 167 |
# File 'lib/models/simulation.rb', line 165 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description of the attack simulation and training campaign.
173 174 175 |
# File 'lib/models/simulation.rb', line 173 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. Display name of the attack simulation and training campaign. Supports $filter and $orderby.
180 181 182 |
# File 'lib/models/simulation.rb', line 180 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Display name of the attack simulation and training campaign. Supports $filter and $orderby.
188 189 190 |
# File 'lib/models/simulation.rb', line 188 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/models/simulation.rb', line 195 def get_field_deserializers() return super.merge({ "attackTechnique" => lambda {|n| @attack_technique = n.get_enum_value(MicrosoftGraph::Models::SimulationAttackTechnique) }, "attackType" => lambda {|n| @attack_type = n.get_enum_value(MicrosoftGraph::Models::SimulationAttackType) }, "automationId" => lambda {|n| @automation_id = n.get_string_value() }, "completionDateTime" => lambda {|n| @completion_date_time = n.get_date_time_value() }, "createdBy" => lambda {|n| @created_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EmailIdentity.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "isAutomated" => lambda {|n| @is_automated = n.get_boolean_value() }, "lastModifiedBy" => lambda {|n| @last_modified_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EmailIdentity.create_from_discriminator_value(pn) }) }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "launchDateTime" => lambda {|n| @launch_date_time = n.get_date_time_value() }, "payloadDeliveryPlatform" => lambda {|n| @payload_delivery_platform = n.get_enum_value(MicrosoftGraph::Models::PayloadDeliveryPlatform) }, "report" => lambda {|n| @report = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SimulationReport.create_from_discriminator_value(pn) }) }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::SimulationStatus) }, }) end |
#is_automated ⇒ Object
Gets the isAutomated property value. Flag that represents if the attack simulation and training campaign was created from a simulation automation flow. Supports $filter and $orderby.
218 219 220 |
# File 'lib/models/simulation.rb', line 218 def is_automated return @is_automated end |
#is_automated=(value) ⇒ Object
Sets the isAutomated property value. Flag that represents if the attack simulation and training campaign was created from a simulation automation flow. Supports $filter and $orderby.
226 227 228 |
# File 'lib/models/simulation.rb', line 226 def is_automated=(value) @is_automated = value end |
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value. Identity of the user who most recently modified the attack simulation and training campaign.
233 234 235 |
# File 'lib/models/simulation.rb', line 233 def last_modified_by return @last_modified_by end |
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value. Identity of the user who most recently modified the attack simulation and training campaign.
241 242 243 |
# File 'lib/models/simulation.rb', line 241 def last_modified_by=(value) @last_modified_by = value end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. Date and time of the most recent modification of the attack simulation and training campaign.
248 249 250 |
# File 'lib/models/simulation.rb', line 248 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. Date and time of the most recent modification of the attack simulation and training campaign.
256 257 258 |
# File 'lib/models/simulation.rb', line 256 def last_modified_date_time=(value) @last_modified_date_time = value end |
#launch_date_time ⇒ Object
Gets the launchDateTime property value. Date and time of the launch/start of the attack simulation and training campaign. Supports $filter and $orderby.
263 264 265 |
# File 'lib/models/simulation.rb', line 263 def launch_date_time return @launch_date_time end |
#launch_date_time=(value) ⇒ Object
Sets the launchDateTime property value. Date and time of the launch/start of the attack simulation and training campaign. Supports $filter and $orderby.
271 272 273 |
# File 'lib/models/simulation.rb', line 271 def launch_date_time=(value) @launch_date_time = value end |
#payload_delivery_platform ⇒ Object
Gets the payloadDeliveryPlatform property value. Method of delivery of the phishing payload used in the attack simulation and training campaign. Possible values are: unknown, sms, email, teams, unknownFutureValue.
278 279 280 |
# File 'lib/models/simulation.rb', line 278 def payload_delivery_platform return @payload_delivery_platform end |
#payload_delivery_platform=(value) ⇒ Object
Sets the payloadDeliveryPlatform property value. Method of delivery of the phishing payload used in the attack simulation and training campaign. Possible values are: unknown, sms, email, teams, unknownFutureValue.
286 287 288 |
# File 'lib/models/simulation.rb', line 286 def payload_delivery_platform=(value) @payload_delivery_platform = value end |
#report ⇒ Object
Gets the report property value. Report of the attack simulation and training campaign.
293 294 295 |
# File 'lib/models/simulation.rb', line 293 def report return @report end |
#report=(value) ⇒ Object
Sets the report property value. Report of the attack simulation and training campaign.
301 302 303 |
# File 'lib/models/simulation.rb', line 301 def report=(value) @report = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 |
# File 'lib/models/simulation.rb', line 309 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_enum_value("attackTechnique", @attack_technique) writer.write_enum_value("attackType", @attack_type) writer.write_string_value("automationId", @automation_id) writer.write_date_time_value("completionDateTime", @completion_date_time) writer.write_object_value("createdBy", @created_by) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_boolean_value("isAutomated", @is_automated) writer.write_object_value("lastModifiedBy", @last_modified_by) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_date_time_value("launchDateTime", @launch_date_time) writer.write_enum_value("payloadDeliveryPlatform", @payload_delivery_platform) writer.write_object_value("report", @report) writer.write_enum_value("status", @status) end |
#status ⇒ Object
Gets the status property value. Status of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, draft, running, scheduled, succeeded, failed, cancelled, excluded, unknownFutureValue.
332 333 334 |
# File 'lib/models/simulation.rb', line 332 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. Status of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, draft, running, scheduled, succeeded, failed, cancelled, excluded, unknownFutureValue.
340 341 342 |
# File 'lib/models/simulation.rb', line 340 def status=(value) @status = value end |