Class: MicrosoftGraph::Models::AttackSimulationSimulationUserCoverage
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::AttackSimulationSimulationUserCoverage
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/attack_simulation_simulation_user_coverage.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#attack_simulation_user ⇒ Object
Gets the attackSimulationUser property value.
-
#attack_simulation_user=(value) ⇒ Object
Sets the attackSimulationUser property value.
-
#click_count ⇒ Object
Gets the clickCount property value.
-
#click_count=(value) ⇒ Object
Sets the clickCount property value.
-
#compromised_count ⇒ Object
Gets the compromisedCount property value.
-
#compromised_count=(value) ⇒ Object
Sets the compromisedCount property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new attackSimulationSimulationUserCoverage and sets the default values.
-
#latest_simulation_date_time ⇒ Object
Gets the latestSimulationDateTime property value.
-
#latest_simulation_date_time=(value) ⇒ Object
Sets the latestSimulationDateTime property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#simulation_count ⇒ Object
Gets the simulationCount property value.
-
#simulation_count=(value) ⇒ Object
Sets the simulationCount property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new attackSimulationSimulationUserCoverage and sets the default values.
95 96 97 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 95 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
103 104 105 106 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 103 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AttackSimulationSimulationUserCoverage.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
35 36 37 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 35 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
43 44 45 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 43 def additional_data=(value) @additional_data = value end |
#attack_simulation_user ⇒ Object
Gets the attackSimulationUser property value. User in an attack simulation and training campaign.
50 51 52 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 50 def attack_simulation_user return @attack_simulation_user end |
#attack_simulation_user=(value) ⇒ Object
Sets the attackSimulationUser property value. User in an attack simulation and training campaign.
58 59 60 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 58 def attack_simulation_user=(value) @attack_simulation_user = value end |
#click_count ⇒ Object
Gets the clickCount property value. Number of link clicks in the received payloads by the user in attack simulation and training campaigns.
65 66 67 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 65 def click_count return @click_count end |
#click_count=(value) ⇒ Object
Sets the clickCount property value. Number of link clicks in the received payloads by the user in attack simulation and training campaigns.
73 74 75 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 73 def click_count=(value) @click_count = value end |
#compromised_count ⇒ Object
Gets the compromisedCount property value. Number of compromising actions by the user in attack simulation and training campaigns.
80 81 82 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 80 def compromised_count return @compromised_count end |
#compromised_count=(value) ⇒ Object
Sets the compromisedCount property value. Number of compromising actions by the user in attack simulation and training campaigns.
88 89 90 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 88 def compromised_count=(value) @compromised_count = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
111 112 113 114 115 116 117 118 119 120 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 111 def get_field_deserializers() return { "attackSimulationUser" => lambda {|n| @attack_simulation_user = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AttackSimulationUser.create_from_discriminator_value(pn) }) }, "clickCount" => lambda {|n| @click_count = n.get_number_value() }, "compromisedCount" => lambda {|n| @compromised_count = n.get_number_value() }, "latestSimulationDateTime" => lambda {|n| @latest_simulation_date_time = n.get_date_time_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "simulationCount" => lambda {|n| @simulation_count = n.get_number_value() }, } end |
#latest_simulation_date_time ⇒ Object
Gets the latestSimulationDateTime property value. Date and time of the latest attack simulation and training campaign that the user was included in.
125 126 127 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 125 def latest_simulation_date_time return @latest_simulation_date_time end |
#latest_simulation_date_time=(value) ⇒ Object
Sets the latestSimulationDateTime property value. Date and time of the latest attack simulation and training campaign that the user was included in.
133 134 135 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 133 def latest_simulation_date_time=(value) @latest_simulation_date_time = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
140 141 142 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 140 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
148 149 150 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 148 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
156 157 158 159 160 161 162 163 164 165 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 156 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("attackSimulationUser", @attack_simulation_user) writer.write_number_value("clickCount", @click_count) writer.write_number_value("compromisedCount", @compromised_count) writer.write_date_time_value("latestSimulationDateTime", @latest_simulation_date_time) writer.write_string_value("@odata.type", @odata_type) writer.write_number_value("simulationCount", @simulation_count) writer.write_additional_data(@additional_data) end |
#simulation_count ⇒ Object
Gets the simulationCount property value. Number of attack simulation and training campaigns that the user was included in.
170 171 172 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 170 def simulation_count return @simulation_count end |
#simulation_count=(value) ⇒ Object
Sets the simulationCount property value. Number of attack simulation and training campaigns that the user was included in.
178 179 180 |
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 178 def simulation_count=(value) @simulation_count = value end |