Class: MicrosoftGraph::Models::SimulationAutomation
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/simulation_automation.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
-
#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 simulationAutomation and sets the default values.
-
#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.
-
#last_run_date_time ⇒ Object
Gets the lastRunDateTime property value.
-
#last_run_date_time=(value) ⇒ Object
Sets the lastRunDateTime property value.
-
#next_run_date_time ⇒ Object
Gets the nextRunDateTime property value.
-
#next_run_date_time=(value) ⇒ Object
Sets the nextRunDateTime property value.
-
#runs ⇒ Object
Gets the runs property value.
-
#runs=(value) ⇒ Object
Sets the runs 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 simulationAutomation and sets the default values.
44 45 46 |
# File 'lib/models/simulation_automation.rb', line 44 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
82 83 84 85 |
# File 'lib/models/simulation_automation.rb', line 82 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SimulationAutomation.new end |
Instance Method Details
#created_by ⇒ Object
Gets the createdBy property value. Identity of the user who created the attack simulation automation.
51 52 53 |
# File 'lib/models/simulation_automation.rb', line 51 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 automation.
59 60 61 |
# File 'lib/models/simulation_automation.rb', line 59 def created_by=(value) @created_by = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. Date and time when the attack simulation automation was created.
66 67 68 |
# File 'lib/models/simulation_automation.rb', line 66 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. Date and time when the attack simulation automation was created.
74 75 76 |
# File 'lib/models/simulation_automation.rb', line 74 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. Description of the attack simulation automation.
90 91 92 |
# File 'lib/models/simulation_automation.rb', line 90 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description of the attack simulation automation.
98 99 100 |
# File 'lib/models/simulation_automation.rb', line 98 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. Display name of the attack simulation automation. Supports $filter and $orderby.
105 106 107 |
# File 'lib/models/simulation_automation.rb', line 105 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Display name of the attack simulation automation. Supports $filter and $orderby.
113 114 115 |
# File 'lib/models/simulation_automation.rb', line 113 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/models/simulation_automation.rb', line 120 def get_field_deserializers() return super.merge({ "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() }, "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() }, "lastRunDateTime" => lambda {|n| @last_run_date_time = n.get_date_time_value() }, "nextRunDateTime" => lambda {|n| @next_run_date_time = n.get_date_time_value() }, "runs" => lambda {|n| @runs = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SimulationAutomationRun.create_from_discriminator_value(pn) }) }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::SimulationAutomationStatus) }, }) end |
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value. Identity of the user who most recently modified the attack simulation automation.
138 139 140 |
# File 'lib/models/simulation_automation.rb', line 138 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 automation.
146 147 148 |
# File 'lib/models/simulation_automation.rb', line 146 def last_modified_by=(value) @last_modified_by = value end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. Date and time when the attack simulation automation was most recently modified.
153 154 155 |
# File 'lib/models/simulation_automation.rb', line 153 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 when the attack simulation automation was most recently modified.
161 162 163 |
# File 'lib/models/simulation_automation.rb', line 161 def last_modified_date_time=(value) @last_modified_date_time = value end |
#last_run_date_time ⇒ Object
Gets the lastRunDateTime property value. Date and time of the latest run of the attack simulation automation.
168 169 170 |
# File 'lib/models/simulation_automation.rb', line 168 def last_run_date_time return @last_run_date_time end |
#last_run_date_time=(value) ⇒ Object
Sets the lastRunDateTime property value. Date and time of the latest run of the attack simulation automation.
176 177 178 |
# File 'lib/models/simulation_automation.rb', line 176 def last_run_date_time=(value) @last_run_date_time = value end |
#next_run_date_time ⇒ Object
Gets the nextRunDateTime property value. Date and time of the upcoming run of the attack simulation automation.
183 184 185 |
# File 'lib/models/simulation_automation.rb', line 183 def next_run_date_time return @next_run_date_time end |
#next_run_date_time=(value) ⇒ Object
Sets the nextRunDateTime property value. Date and time of the upcoming run of the attack simulation automation.
191 192 193 |
# File 'lib/models/simulation_automation.rb', line 191 def next_run_date_time=(value) @next_run_date_time = value end |
#runs ⇒ Object
Gets the runs property value. A collection of simulation automation runs.
198 199 200 |
# File 'lib/models/simulation_automation.rb', line 198 def runs return @runs end |
#runs=(value) ⇒ Object
Sets the runs property value. A collection of simulation automation runs.
206 207 208 |
# File 'lib/models/simulation_automation.rb', line 206 def runs=(value) @runs = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
# File 'lib/models/simulation_automation.rb', line 214 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super 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_object_value("lastModifiedBy", @last_modified_by) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_date_time_value("lastRunDateTime", @last_run_date_time) writer.write_date_time_value("nextRunDateTime", @next_run_date_time) writer.write_collection_of_object_values("runs", @runs) writer.write_enum_value("status", @status) end |
#status ⇒ Object
Gets the status property value. Status of the attack simulation automation. Supports $filter and $orderby. The possible values are: unknown, draft, notRunning, running, completed, unknownFutureValue.
232 233 234 |
# File 'lib/models/simulation_automation.rb', line 232 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. Status of the attack simulation automation. Supports $filter and $orderby. The possible values are: unknown, draft, notRunning, running, completed, unknownFutureValue.
240 241 242 |
# File 'lib/models/simulation_automation.rb', line 240 def status=(value) @status = value end |