Class: MicrosoftGraph::Models::UserTrainingContentEventInfo

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new userTrainingContentEventInfo and sets the default values.



65
66
67
# File 'lib/models/user_training_content_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_training_content_event_info

Raises:

  • (StandardError)


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

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

def additional_data=(value)
    @additional_data = value
end

#browserObject

Gets the browser property value. Browser of the user from where the training event was generated.

Returns:

  • a string



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

def browser
    return @browser
end

#browser=(value) ⇒ Object

Sets the browser property value. Browser of the user from where the training event was generated.

Parameters:

  • value

    Value to set for the browser property.

Returns:

  • a void



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

def browser=(value)
    @browser = value
end

#content_date_timeObject

Gets the contentDateTime property value. Date and time of the training content playback by the user.

Returns:

  • a date_time



72
73
74
# File 'lib/models/user_training_content_event_info.rb', line 72

def 
    return @content_date_time
end

#content_date_time=(value) ⇒ Object

Sets the contentDateTime property value. Date and time of the training content playback by the user.

Parameters:

  • value

    Value to set for the contentDateTime property.

Returns:

  • a void



80
81
82
# File 'lib/models/user_training_content_event_info.rb', line 80

def (value)
    @content_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



96
97
98
99
100
101
102
103
104
105
# File 'lib/models/user_training_content_event_info.rb', line 96

def get_field_deserializers()
    return {
        "browser" => lambda {|n| @browser = n.get_string_value() },
        "contentDateTime" => lambda {|n| @content_date_time = n.get_date_time_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() },
        "potentialScoreImpact" => lambda {|n| @potential_score_impact = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
    }
end

#ip_addressObject

Gets the ipAddress property value. IP address of the user for the training event.

Returns:

  • a string



110
111
112
# File 'lib/models/user_training_content_event_info.rb', line 110

def ip_address
    return @ip_address
end

#ip_address=(value) ⇒ Object

Sets the ipAddress property value. IP address of the user for the training event.

Parameters:

  • value

    Value to set for the ipAddress property.

Returns:

  • a void



118
119
120
# File 'lib/models/user_training_content_event_info.rb', line 118

def ip_address=(value)
    @ip_address = value
end

#odata_typeObject

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

Returns:

  • a string



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

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



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

def odata_type=(value)
    @odata_type = value
end

#os_platform_device_detailsObject

Gets the osPlatformDeviceDetails property value. The operating system, platform, and device details of the user for the training event.

Returns:

  • a string



140
141
142
# File 'lib/models/user_training_content_event_info.rb', line 140

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 of the user for the training event.

Parameters:

  • value

    Value to set for the osPlatformDeviceDetails property.

Returns:

  • a void



148
149
150
# File 'lib/models/user_training_content_event_info.rb', line 148

def os_platform_device_details=(value)
    @os_platform_device_details = value
end

#potential_score_impactObject

Gets the potentialScoreImpact property value. Potential improvement in the tenant security posture after completion of the training by the user.

Returns:

  • a double



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

def potential_score_impact
    return @potential_score_impact
end

#potential_score_impact=(value) ⇒ Object

Sets the potentialScoreImpact property value. Potential improvement in the tenant security posture after completion of the training by the user.

Parameters:

  • value

    Value to set for the potentialScoreImpact property.

Returns:

  • a void



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

def potential_score_impact=(value)
    @potential_score_impact = 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_training_content_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("contentDateTime", @content_date_time)
    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_object_value("potentialScoreImpact", @potential_score_impact)
    writer.write_additional_data(@additional_data)
end