Class: MicrosoftGraph::Models::EducationClass
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/education_class.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
-
#assignment_categories ⇒ Object
Gets the assignmentCategories property value.
-
#assignment_categories=(value) ⇒ Object
Sets the assignmentCategories property value.
-
#assignment_defaults ⇒ Object
Gets the assignmentDefaults property value.
-
#assignment_defaults=(value) ⇒ Object
Sets the assignmentDefaults property value.
-
#assignment_settings ⇒ Object
Gets the assignmentSettings property value.
-
#assignment_settings=(value) ⇒ Object
Sets the assignmentSettings property value.
-
#assignments ⇒ Object
Gets the assignments property value.
-
#assignments=(value) ⇒ Object
Sets the assignments property value.
-
#class_code ⇒ Object
Gets the classCode property value.
-
#class_code=(value) ⇒ Object
Sets the classCode property value.
-
#course ⇒ Object
Gets the course property value.
-
#course=(value) ⇒ Object
Sets the course property value.
-
#created_by ⇒ Object
Gets the createdBy property value.
-
#created_by=(value) ⇒ Object
Sets the createdBy property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#external_id ⇒ Object
Gets the externalId property value.
-
#external_id=(value) ⇒ Object
Sets the externalId property value.
-
#external_name ⇒ Object
Gets the externalName property value.
-
#external_name=(value) ⇒ Object
Sets the externalName property value.
-
#external_source ⇒ Object
Gets the externalSource property value.
-
#external_source=(value) ⇒ Object
Sets the externalSource property value.
-
#external_source_detail ⇒ Object
Gets the externalSourceDetail property value.
-
#external_source_detail=(value) ⇒ Object
Sets the externalSourceDetail property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#grade ⇒ Object
Gets the grade property value.
-
#grade=(value) ⇒ Object
Sets the grade property value.
-
#group ⇒ Object
Gets the group property value.
-
#group=(value) ⇒ Object
Sets the group property value.
-
#initialize ⇒ Object
constructor
Instantiates a new educationClass and sets the default values.
-
#mail_nickname ⇒ Object
Gets the mailNickname property value.
-
#mail_nickname=(value) ⇒ Object
Sets the mailNickname property value.
-
#members ⇒ Object
Gets the members property value.
-
#members=(value) ⇒ Object
Sets the members property value.
-
#schools ⇒ Object
Gets the schools property value.
-
#schools=(value) ⇒ Object
Sets the schools property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#teachers ⇒ Object
Gets the teachers property value.
-
#teachers=(value) ⇒ Object
Sets the teachers property value.
-
#term ⇒ Object
Gets the term property value.
-
#term=(value) ⇒ Object
Sets the term property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new educationClass and sets the default values.
148 149 150 |
# File 'lib/models/education_class.rb', line 148 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
186 187 188 189 |
# File 'lib/models/education_class.rb', line 186 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return EducationClass.new end |
Instance Method Details
#assignment_categories ⇒ Object
Gets the assignmentCategories property value. All categories associated with this class. Nullable.
73 74 75 |
# File 'lib/models/education_class.rb', line 73 def assignment_categories return @assignment_categories end |
#assignment_categories=(value) ⇒ Object
Sets the assignmentCategories property value. All categories associated with this class. Nullable.
81 82 83 |
# File 'lib/models/education_class.rb', line 81 def assignment_categories=(value) @assignment_categories = value end |
#assignment_defaults ⇒ Object
Gets the assignmentDefaults property value. Specifies class-level defaults respected by new assignments created in the class.
88 89 90 |
# File 'lib/models/education_class.rb', line 88 def assignment_defaults return @assignment_defaults end |
#assignment_defaults=(value) ⇒ Object
Sets the assignmentDefaults property value. Specifies class-level defaults respected by new assignments created in the class.
96 97 98 |
# File 'lib/models/education_class.rb', line 96 def assignment_defaults=(value) @assignment_defaults = value end |
#assignment_settings ⇒ Object
Gets the assignmentSettings property value. Specifies class-level assignments settings.
103 104 105 |
# File 'lib/models/education_class.rb', line 103 def assignment_settings return @assignment_settings end |
#assignment_settings=(value) ⇒ Object
Sets the assignmentSettings property value. Specifies class-level assignments settings.
111 112 113 |
# File 'lib/models/education_class.rb', line 111 def assignment_settings=(value) @assignment_settings = value end |
#assignments ⇒ Object
Gets the assignments property value. All assignments associated with this class. Nullable.
118 119 120 |
# File 'lib/models/education_class.rb', line 118 def assignments return @assignments end |
#assignments=(value) ⇒ Object
Sets the assignments property value. All assignments associated with this class. Nullable.
126 127 128 |
# File 'lib/models/education_class.rb', line 126 def assignments=(value) @assignments = value end |
#class_code ⇒ Object
Gets the classCode property value. Class code used by the school to identify the class.
133 134 135 |
# File 'lib/models/education_class.rb', line 133 def class_code return @class_code end |
#class_code=(value) ⇒ Object
Sets the classCode property value. Class code used by the school to identify the class.
141 142 143 |
# File 'lib/models/education_class.rb', line 141 def class_code=(value) @class_code = value end |
#course ⇒ Object
Gets the course property value. The course property
155 156 157 |
# File 'lib/models/education_class.rb', line 155 def course return @course end |
#course=(value) ⇒ Object
Sets the course property value. The course property
163 164 165 |
# File 'lib/models/education_class.rb', line 163 def course=(value) @course = value end |
#created_by ⇒ Object
Gets the createdBy property value. Entity who created the class
170 171 172 |
# File 'lib/models/education_class.rb', line 170 def created_by return @created_by end |
#created_by=(value) ⇒ Object
Sets the createdBy property value. Entity who created the class
178 179 180 |
# File 'lib/models/education_class.rb', line 178 def created_by=(value) @created_by = value end |
#description ⇒ Object
Gets the description property value. Description of the class.
194 195 196 |
# File 'lib/models/education_class.rb', line 194 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description of the class.
202 203 204 |
# File 'lib/models/education_class.rb', line 202 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. Name of the class.
209 210 211 |
# File 'lib/models/education_class.rb', line 209 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Name of the class.
217 218 219 |
# File 'lib/models/education_class.rb', line 217 def display_name=(value) @display_name = value end |
#external_id ⇒ Object
Gets the externalId property value. ID of the class from the syncing system.
224 225 226 |
# File 'lib/models/education_class.rb', line 224 def external_id return @external_id end |
#external_id=(value) ⇒ Object
Sets the externalId property value. ID of the class from the syncing system.
232 233 234 |
# File 'lib/models/education_class.rb', line 232 def external_id=(value) @external_id = value end |
#external_name ⇒ Object
Gets the externalName property value. Name of the class in the syncing system.
239 240 241 |
# File 'lib/models/education_class.rb', line 239 def external_name return @external_name end |
#external_name=(value) ⇒ Object
Sets the externalName property value. Name of the class in the syncing system.
247 248 249 |
# File 'lib/models/education_class.rb', line 247 def external_name=(value) @external_name = value end |
#external_source ⇒ Object
Gets the externalSource property value. How this class was created. Possible values are: sis, manual.
254 255 256 |
# File 'lib/models/education_class.rb', line 254 def external_source return @external_source end |
#external_source=(value) ⇒ Object
Sets the externalSource property value. How this class was created. Possible values are: sis, manual.
262 263 264 |
# File 'lib/models/education_class.rb', line 262 def external_source=(value) @external_source = value end |
#external_source_detail ⇒ Object
Gets the externalSourceDetail property value. The name of the external source this resources was generated from.
269 270 271 |
# File 'lib/models/education_class.rb', line 269 def external_source_detail return @external_source_detail end |
#external_source_detail=(value) ⇒ Object
Sets the externalSourceDetail property value. The name of the external source this resources was generated from.
277 278 279 |
# File 'lib/models/education_class.rb', line 277 def external_source_detail=(value) @external_source_detail = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 |
# File 'lib/models/education_class.rb', line 284 def get_field_deserializers() return super.merge({ "assignmentCategories" => lambda {|n| @assignment_categories = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationCategory.create_from_discriminator_value(pn) }) }, "assignmentDefaults" => lambda {|n| @assignment_defaults = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EducationAssignmentDefaults.create_from_discriminator_value(pn) }) }, "assignmentSettings" => lambda {|n| @assignment_settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EducationAssignmentSettings.create_from_discriminator_value(pn) }) }, "assignments" => lambda {|n| @assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationAssignment.create_from_discriminator_value(pn) }) }, "classCode" => lambda {|n| @class_code = n.get_string_value() }, "course" => lambda {|n| @course = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EducationCourse.create_from_discriminator_value(pn) }) }, "createdBy" => lambda {|n| @created_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "externalId" => lambda {|n| @external_id = n.get_string_value() }, "externalName" => lambda {|n| @external_name = n.get_string_value() }, "externalSource" => lambda {|n| @external_source = n.get_enum_value(MicrosoftGraph::Models::EducationExternalSource) }, "externalSourceDetail" => lambda {|n| @external_source_detail = n.get_string_value() }, "grade" => lambda {|n| @grade = n.get_string_value() }, "group" => lambda {|n| @group = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }) }, "mailNickname" => lambda {|n| @mail_nickname = n.get_string_value() }, "members" => lambda {|n| @members = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationUser.create_from_discriminator_value(pn) }) }, "schools" => lambda {|n| @schools = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationSchool.create_from_discriminator_value(pn) }) }, "teachers" => lambda {|n| @teachers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationUser.create_from_discriminator_value(pn) }) }, "term" => lambda {|n| @term = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EducationTerm.create_from_discriminator_value(pn) }) }, }) end |
#grade ⇒ Object
Gets the grade property value. Grade level of the class.
312 313 314 |
# File 'lib/models/education_class.rb', line 312 def grade return @grade end |
#grade=(value) ⇒ Object
Sets the grade property value. Grade level of the class.
320 321 322 |
# File 'lib/models/education_class.rb', line 320 def grade=(value) @grade = value end |
#group ⇒ Object
Gets the group property value. The underlying Microsoft 365 group object.
327 328 329 |
# File 'lib/models/education_class.rb', line 327 def group return @group end |
#group=(value) ⇒ Object
Sets the group property value. The underlying Microsoft 365 group object.
335 336 337 |
# File 'lib/models/education_class.rb', line 335 def group=(value) @group = value end |
#mail_nickname ⇒ Object
Gets the mailNickname property value. Mail name for sending email to all members, if this is enabled.
342 343 344 |
# File 'lib/models/education_class.rb', line 342 def mail_nickname return @mail_nickname end |
#mail_nickname=(value) ⇒ Object
Sets the mailNickname property value. Mail name for sending email to all members, if this is enabled.
350 351 352 |
# File 'lib/models/education_class.rb', line 350 def mail_nickname=(value) @mail_nickname = value end |
#members ⇒ Object
Gets the members property value. All users in the class. Nullable.
357 358 359 |
# File 'lib/models/education_class.rb', line 357 def members return @members end |
#members=(value) ⇒ Object
Sets the members property value. All users in the class. Nullable.
365 366 367 |
# File 'lib/models/education_class.rb', line 365 def members=(value) @members = value end |
#schools ⇒ Object
Gets the schools property value. All schools that this class is associated with. Nullable.
372 373 374 |
# File 'lib/models/education_class.rb', line 372 def schools return @schools end |
#schools=(value) ⇒ Object
Sets the schools property value. All schools that this class is associated with. Nullable.
380 381 382 |
# File 'lib/models/education_class.rb', line 380 def schools=(value) @schools = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 |
# File 'lib/models/education_class.rb', line 388 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("assignmentCategories", @assignment_categories) writer.write_object_value("assignmentDefaults", @assignment_defaults) writer.write_object_value("assignmentSettings", @assignment_settings) writer.write_collection_of_object_values("assignments", @assignments) writer.write_string_value("classCode", @class_code) writer.write_object_value("course", @course) writer.write_object_value("createdBy", @created_by) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_string_value("externalId", @external_id) writer.write_string_value("externalName", @external_name) writer.write_enum_value("externalSource", @external_source) writer.write_string_value("externalSourceDetail", @external_source_detail) writer.write_string_value("grade", @grade) writer.write_object_value("group", @group) writer.write_string_value("mailNickname", @mail_nickname) writer.write_collection_of_object_values("members", @members) writer.write_collection_of_object_values("schools", @schools) writer.write_collection_of_object_values("teachers", @teachers) writer.write_object_value("term", @term) end |
#teachers ⇒ Object
Gets the teachers property value. All teachers in the class. Nullable.
416 417 418 |
# File 'lib/models/education_class.rb', line 416 def teachers return @teachers end |
#teachers=(value) ⇒ Object
Sets the teachers property value. All teachers in the class. Nullable.
424 425 426 |
# File 'lib/models/education_class.rb', line 424 def teachers=(value) @teachers = value end |
#term ⇒ Object
Gets the term property value. Term for this class.
431 432 433 |
# File 'lib/models/education_class.rb', line 431 def term return @term end |
#term=(value) ⇒ Object
Sets the term property value. Term for this class.
439 440 441 |
# File 'lib/models/education_class.rb', line 439 def term=(value) @term = value end |