Class: MicrosoftGraph::Models::AttackSimulationSimulationUserCoverage

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/attack_simulation_simulation_user_coverage.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a attack_simulation_simulation_user_coverage

Raises:

  • (StandardError)


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_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



43
44
45
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 43

def additional_data=(value)
    @additional_data = value
end

#attack_simulation_userObject

Gets the attackSimulationUser property value. User in an attack simulation and training campaign.

Returns:

  • a attack_simulation_user



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.

Parameters:

  • value

    Value to set for the attackSimulationUser property.

Returns:

  • a void



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_countObject

Gets the clickCount property value. Number of link clicks in the received payloads by the user in attack simulation and training campaigns.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the clickCount property.

Returns:

  • a void



73
74
75
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 73

def click_count=(value)
    @click_count = value
end

#compromised_countObject

Gets the compromisedCount property value. Number of compromising actions by the user in attack simulation and training campaigns.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the compromisedCount property.

Returns:

  • a void



88
89
90
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 88

def compromised_count=(value)
    @compromised_count = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_timeObject

Gets the latestSimulationDateTime property value. Date and time of the latest attack simulation and training campaign that the user was included in.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the latestSimulationDateTime property.

Returns:

  • a void



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_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_countObject

Gets the simulationCount property value. Number of attack simulation and training campaigns that the user was included in.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the simulationCount property.

Returns:

  • a void



178
179
180
# File 'lib/models/attack_simulation_simulation_user_coverage.rb', line 178

def simulation_count=(value)
    @simulation_count = value
end