Class: MicrosoftGraph::Models::SimulationAutomationRun
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/simulation_automation_run.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
-
#end_date_time ⇒ Object
Gets the endDateTime property value.
-
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new simulationAutomationRun and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#simulation_id ⇒ Object
Gets the simulationId property value.
-
#simulation_id=(value) ⇒ Object
Sets the simulationId property value.
-
#start_date_time ⇒ Object
Gets the startDateTime property value.
-
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value.
-
#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 simulationAutomationRun and sets the default values.
26 27 28 |
# File 'lib/models/simulation_automation_run.rb', line 26 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
34 35 36 37 |
# File 'lib/models/simulation_automation_run.rb', line 34 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SimulationAutomationRun.new end |
Instance Method Details
#end_date_time ⇒ Object
Gets the endDateTime property value. Date and time when the run ends in an attack simulation automation.
42 43 44 |
# File 'lib/models/simulation_automation_run.rb', line 42 def end_date_time return @end_date_time end |
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value. Date and time when the run ends in an attack simulation automation.
50 51 52 |
# File 'lib/models/simulation_automation_run.rb', line 50 def end_date_time=(value) @end_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
57 58 59 60 61 62 63 64 |
# File 'lib/models/simulation_automation_run.rb', line 57 def get_field_deserializers() return super.merge({ "endDateTime" => lambda {|n| @end_date_time = n.get_date_time_value() }, "simulationId" => lambda {|n| @simulation_id = n.get_string_value() }, "startDateTime" => lambda {|n| @start_date_time = n.get_date_time_value() }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::SimulationAutomationRunStatus) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
70 71 72 73 74 75 76 77 |
# File 'lib/models/simulation_automation_run.rb', line 70 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("endDateTime", @end_date_time) writer.write_string_value("simulationId", @simulation_id) writer.write_date_time_value("startDateTime", @start_date_time) writer.write_enum_value("status", @status) end |
#simulation_id ⇒ Object
Gets the simulationId property value. Unique identifier for the attack simulation campaign initiated in the attack simulation automation run.
82 83 84 |
# File 'lib/models/simulation_automation_run.rb', line 82 def simulation_id return @simulation_id end |
#simulation_id=(value) ⇒ Object
Sets the simulationId property value. Unique identifier for the attack simulation campaign initiated in the attack simulation automation run.
90 91 92 |
# File 'lib/models/simulation_automation_run.rb', line 90 def simulation_id=(value) @simulation_id = value end |
#start_date_time ⇒ Object
Gets the startDateTime property value. Date and time when the run starts in an attack simulation automation.
97 98 99 |
# File 'lib/models/simulation_automation_run.rb', line 97 def start_date_time return @start_date_time end |
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value. Date and time when the run starts in an attack simulation automation.
105 106 107 |
# File 'lib/models/simulation_automation_run.rb', line 105 def start_date_time=(value) @start_date_time = value end |
#status ⇒ Object
Gets the status property value. Status of the attack simulation automation run. The possible values are: unknown, running, succeeded, failed, skipped, unknownFutureValue.
112 113 114 |
# File 'lib/models/simulation_automation_run.rb', line 112 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. Status of the attack simulation automation run. The possible values are: unknown, running, succeeded, failed, skipped, unknownFutureValue.
120 121 122 |
# File 'lib/models/simulation_automation_run.rb', line 120 def status=(value) @status = value end |