Class: MicrosoftGraph::Models::UserTrainingEventInfo
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::UserTrainingEventInfo
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/user_training_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.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new userTrainingEventInfo and sets the default values.
-
#latest_training_status ⇒ Object
Gets the latestTrainingStatus property value.
-
#latest_training_status=(value) ⇒ Object
Sets the latestTrainingStatus 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.
-
#training_assigned_properties ⇒ Object
Gets the trainingAssignedProperties property value.
-
#training_assigned_properties=(value) ⇒ Object
Sets the trainingAssignedProperties property value.
-
#training_completed_properties ⇒ Object
Gets the trainingCompletedProperties property value.
-
#training_completed_properties=(value) ⇒ Object
Sets the trainingCompletedProperties property value.
-
#training_updated_properties ⇒ Object
Gets the trainingUpdatedProperties property value.
-
#training_updated_properties=(value) ⇒ Object
Sets the trainingUpdatedProperties property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new userTrainingEventInfo and sets the default values.
49 50 51 |
# File 'lib/models/user_training_event_info.rb', line 49 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
57 58 59 60 |
# File 'lib/models/user_training_event_info.rb', line 57 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return UserTrainingEventInfo.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.
34 35 36 |
# File 'lib/models/user_training_event_info.rb', line 34 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.
42 43 44 |
# File 'lib/models/user_training_event_info.rb', line 42 def additional_data=(value) @additional_data = value end |
#display_name ⇒ Object
Gets the displayName property value. Display name of the training.
65 66 67 |
# File 'lib/models/user_training_event_info.rb', line 65 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Display name of the training.
73 74 75 |
# File 'lib/models/user_training_event_info.rb', line 73 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
80 81 82 83 84 85 86 87 88 89 |
# File 'lib/models/user_training_event_info.rb', line 80 def get_field_deserializers() return { "displayName" => lambda {|n| @display_name = n.get_string_value() }, "latestTrainingStatus" => lambda {|n| @latest_training_status = n.get_enum_value(MicrosoftGraph::Models::TrainingStatus) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "trainingAssignedProperties" => lambda {|n| @training_assigned_properties = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserTrainingContentEventInfo.create_from_discriminator_value(pn) }) }, "trainingCompletedProperties" => lambda {|n| @training_completed_properties = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserTrainingContentEventInfo.create_from_discriminator_value(pn) }) }, "trainingUpdatedProperties" => lambda {|n| @training_updated_properties = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserTrainingContentEventInfo.create_from_discriminator_value(pn) }) }, } end |
#latest_training_status ⇒ Object
Gets the latestTrainingStatus property value. Latest status of the training assigned to the user. Possible values are: unknown, assigned, inProgress, completed, overdue, unknownFutureValue.
94 95 96 |
# File 'lib/models/user_training_event_info.rb', line 94 def latest_training_status return @latest_training_status end |
#latest_training_status=(value) ⇒ Object
Sets the latestTrainingStatus property value. Latest status of the training assigned to the user. Possible values are: unknown, assigned, inProgress, completed, overdue, unknownFutureValue.
102 103 104 |
# File 'lib/models/user_training_event_info.rb', line 102 def latest_training_status=(value) @latest_training_status = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
109 110 111 |
# File 'lib/models/user_training_event_info.rb', line 109 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
117 118 119 |
# File 'lib/models/user_training_event_info.rb', line 117 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
125 126 127 128 129 130 131 132 133 134 |
# File 'lib/models/user_training_event_info.rb', line 125 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("displayName", @display_name) writer.write_enum_value("latestTrainingStatus", @latest_training_status) writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("trainingAssignedProperties", @training_assigned_properties) writer.write_object_value("trainingCompletedProperties", @training_completed_properties) writer.write_object_value("trainingUpdatedProperties", @training_updated_properties) writer.write_additional_data(@additional_data) end |
#training_assigned_properties ⇒ Object
Gets the trainingAssignedProperties property value. Event details of the training when it was assigned to the user.
139 140 141 |
# File 'lib/models/user_training_event_info.rb', line 139 def training_assigned_properties return @training_assigned_properties end |
#training_assigned_properties=(value) ⇒ Object
Sets the trainingAssignedProperties property value. Event details of the training when it was assigned to the user.
147 148 149 |
# File 'lib/models/user_training_event_info.rb', line 147 def training_assigned_properties=(value) @training_assigned_properties = value end |
#training_completed_properties ⇒ Object
Gets the trainingCompletedProperties property value. Event details of the training when it was completed by the user.
154 155 156 |
# File 'lib/models/user_training_event_info.rb', line 154 def training_completed_properties return @training_completed_properties end |
#training_completed_properties=(value) ⇒ Object
Sets the trainingCompletedProperties property value. Event details of the training when it was completed by the user.
162 163 164 |
# File 'lib/models/user_training_event_info.rb', line 162 def training_completed_properties=(value) @training_completed_properties = value end |
#training_updated_properties ⇒ Object
Gets the trainingUpdatedProperties property value. Event details of the training when it was updated/in-progress by the user.
169 170 171 |
# File 'lib/models/user_training_event_info.rb', line 169 def training_updated_properties return @training_updated_properties end |
#training_updated_properties=(value) ⇒ Object
Sets the trainingUpdatedProperties property value. Event details of the training when it was updated/in-progress by the user.
177 178 179 |
# File 'lib/models/user_training_event_info.rb', line 177 def training_updated_properties=(value) @training_updated_properties = value end |