Class: MicrosoftGraph::Models::SimulationAutomation

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/simulation_automation.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 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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a simulation_automation

Raises:

  • (StandardError)


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_byObject

Gets the createdBy property value. Identity of the user who created the attack simulation automation.

Returns:

  • a email_identity



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.

Parameters:

  • value

    Value to set for the createdBy property.

Returns:

  • a void



59
60
61
# File 'lib/models/simulation_automation.rb', line 59

def created_by=(value)
    @created_by = value
end

#created_date_timeObject

Gets the createdDateTime property value. Date and time when the attack simulation automation was created.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



74
75
76
# File 'lib/models/simulation_automation.rb', line 74

def created_date_time=(value)
    @created_date_time = value
end

#descriptionObject

Gets the description property value. Description of the attack simulation automation.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



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

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. Display name of the attack simulation automation. Supports $filter and $orderby.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



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

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_byObject

Gets the lastModifiedBy property value. Identity of the user who most recently modified the attack simulation automation.

Returns:

  • a email_identity



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.

Parameters:

  • value

    Value to set for the lastModifiedBy property.

Returns:

  • a void



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

def last_modified_by=(value)
    @last_modified_by = value
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. Date and time when the attack simulation automation was most recently modified.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



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_timeObject

Gets the lastRunDateTime property value. Date and time of the latest run of the attack simulation automation.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the lastRunDateTime property.

Returns:

  • a void



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_timeObject

Gets the nextRunDateTime property value. Date and time of the upcoming run of the attack simulation automation.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the nextRunDateTime property.

Returns:

  • a void



191
192
193
# File 'lib/models/simulation_automation.rb', line 191

def next_run_date_time=(value)
    @next_run_date_time = value
end

#runsObject

Gets the runs property value. A collection of simulation automation runs.

Returns:

  • a simulation_automation_run



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.

Parameters:

  • value

    Value to set for the runs property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#statusObject

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.

Returns:

  • a simulation_automation_status



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.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



240
241
242
# File 'lib/models/simulation_automation.rb', line 240

def status=(value)
    @status = value
end