Class: MicrosoftGraph::Models::UserTrainingContentEventInfo
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::UserTrainingContentEventInfo
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/user_training_content_event_info.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.
-
#browser ⇒ Object
Gets the browser property value.
-
#browser=(value) ⇒ Object
Sets the browser property value.
-
#content_date_time ⇒ Object
Gets the contentDateTime property value.
-
#content_date_time=(value) ⇒ Object
Sets the contentDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new userTrainingContentEventInfo and sets the default values.
-
#ip_address ⇒ Object
Gets the ipAddress property value.
-
#ip_address=(value) ⇒ Object
Sets the ipAddress property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#os_platform_device_details ⇒ Object
Gets the osPlatformDeviceDetails property value.
-
#os_platform_device_details=(value) ⇒ Object
Sets the osPlatformDeviceDetails property value.
-
#potential_score_impact ⇒ Object
Gets the potentialScoreImpact property value.
-
#potential_score_impact=(value) ⇒ Object
Sets the potentialScoreImpact property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
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
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_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/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.
43 44 45 |
# File 'lib/models/user_training_content_event_info.rb', line 43 def additional_data=(value) @additional_data = value end |
#browser ⇒ Object
Gets the browser property value. Browser of the user from where the training event was generated.
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.
58 59 60 |
# File 'lib/models/user_training_content_event_info.rb', line 58 def browser=(value) @browser = value end |
#content_date_time ⇒ Object
Gets the contentDateTime property value. Date and time of the training content playback by the user.
72 73 74 |
# File 'lib/models/user_training_content_event_info.rb', line 72 def content_date_time 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.
80 81 82 |
# File 'lib/models/user_training_content_event_info.rb', line 80 def content_date_time=(value) @content_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_address ⇒ Object
Gets the ipAddress property value. IP address of the user for the training event.
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.
118 119 120 |
# File 'lib/models/user_training_content_event_info.rb', line 118 def ip_address=(value) @ip_address = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
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_details ⇒ Object
Gets the osPlatformDeviceDetails property value. The operating system, platform, and device details of the user for the training event.
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.
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_impact ⇒ Object
Gets the potentialScoreImpact property value. Potential improvement in the tenant security posture after completion of the training by the user.
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.
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
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 |