Class: MicrosoftGraph::Models::UserSimulationEventInfo

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new userSimulationEventInfo and sets the default values.



65
66
67
# File 'lib/models/user_simulation_event_info.rb', line 65

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 user_simulation_event_info

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return UserSimulationEventInfo.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/user_simulation_event_info.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/user_simulation_event_info.rb', line 43

def additional_data=(value)
    @additional_data = value
end

#browserObject

Gets the browser property value. Browser information from where the simulation event was initiated by a user in an attack simulation and training campaign.

Returns:

  • a string



50
51
52
# File 'lib/models/user_simulation_event_info.rb', line 50

def browser
    return @browser
end

#browser=(value) ⇒ Object

Sets the browser property value. Browser information from where the simulation event was initiated by a user in an attack simulation and training campaign.

Parameters:

  • value

    Value to set for the browser property.

Returns:

  • a void



58
59
60
# File 'lib/models/user_simulation_event_info.rb', line 58

def browser=(value)
    @browser = value
end

#event_date_timeObject

Gets the eventDateTime property value. Date and time of the simulation event by a user in an attack simulation and training campaign.

Returns:

  • a date_time



81
82
83
# File 'lib/models/user_simulation_event_info.rb', line 81

def event_date_time
    return @event_date_time
end

#event_date_time=(value) ⇒ Object

Sets the eventDateTime property value. Date and time of the simulation event by a user in an attack simulation and training campaign.

Parameters:

  • value

    Value to set for the eventDateTime property.

Returns:

  • a void



89
90
91
# File 'lib/models/user_simulation_event_info.rb', line 89

def event_date_time=(value)
    @event_date_time = value
end

#event_nameObject

Gets the eventName property value. Name of the simulation event by a user in an attack simulation and training campaign.

Returns:

  • a string



96
97
98
# File 'lib/models/user_simulation_event_info.rb', line 96

def event_name
    return @event_name
end

#event_name=(value) ⇒ Object

Sets the eventName property value. Name of the simulation event by a user in an attack simulation and training campaign.

Parameters:

  • value

    Value to set for the eventName property.

Returns:

  • a void



104
105
106
# File 'lib/models/user_simulation_event_info.rb', line 104

def event_name=(value)
    @event_name = 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/user_simulation_event_info.rb', line 111

def get_field_deserializers()
    return {
        "browser" => lambda {|n| @browser = n.get_string_value() },
        "eventDateTime" => lambda {|n| @event_date_time = n.get_date_time_value() },
        "eventName" => lambda {|n| @event_name = n.get_string_value() },
        "ipAddress" => lambda {|n| @ip_address = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "osPlatformDeviceDetails" => lambda {|n| @os_platform_device_details = n.get_string_value() },
    }
end

#ip_addressObject

Gets the ipAddress property value. IP address from where the simulation event was initiated by a user in an attack simulation and training campaign.

Returns:

  • a string



125
126
127
# File 'lib/models/user_simulation_event_info.rb', line 125

def ip_address
    return @ip_address
end

#ip_address=(value) ⇒ Object

Sets the ipAddress property value. IP address from where the simulation event was initiated by a user in an attack simulation and training campaign.

Parameters:

  • value

    Value to set for the ipAddress property.

Returns:

  • a void



133
134
135
# File 'lib/models/user_simulation_event_info.rb', line 133

def ip_address=(value)
    @ip_address = value
end

#odata_typeObject

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

Returns:

  • a string



140
141
142
# File 'lib/models/user_simulation_event_info.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/user_simulation_event_info.rb', line 148

def odata_type=(value)
    @odata_type = value
end

#os_platform_device_detailsObject

Gets the osPlatformDeviceDetails property value. The operating system, platform, and device details from where the simulation event was initiated by a user in an attack simulation and training campaign.

Returns:

  • a string



155
156
157
# File 'lib/models/user_simulation_event_info.rb', line 155

def os_platform_device_details
    return @os_platform_device_details
end

#os_platform_device_details=(value) ⇒ Object

Sets the osPlatformDeviceDetails property value. The operating system, platform, and device details from where the simulation event was initiated by a user in an attack simulation and training campaign.

Parameters:

  • value

    Value to set for the osPlatformDeviceDetails property.

Returns:

  • a void



163
164
165
# File 'lib/models/user_simulation_event_info.rb', line 163

def os_platform_device_details=(value)
    @os_platform_device_details = 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)


171
172
173
174
175
176
177
178
179
180
# File 'lib/models/user_simulation_event_info.rb', line 171

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("browser", @browser)
    writer.write_date_time_value("eventDateTime", @event_date_time)
    writer.write_string_value("eventName", @event_name)
    writer.write_string_value("ipAddress", @ip_address)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("osPlatformDeviceDetails", @os_platform_device_details)
    writer.write_additional_data(@additional_data)
end