Class: MicrosoftGraph::Models::EducationSubmission
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/education_submission.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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new educationSubmission and sets the default values.
-
#outcomes ⇒ Object
Gets the outcomes property value.
-
#outcomes=(value) ⇒ Object
Sets the outcomes property value.
-
#reassigned_by ⇒ Object
Gets the reassignedBy property value.
-
#reassigned_by=(value) ⇒ Object
Sets the reassignedBy property value.
-
#reassigned_date_time ⇒ Object
Gets the reassignedDateTime property value.
-
#reassigned_date_time=(value) ⇒ Object
Sets the reassignedDateTime property value.
-
#recipient ⇒ Object
Gets the recipient property value.
-
#recipient=(value) ⇒ Object
Sets the recipient property value.
-
#resources ⇒ Object
Gets the resources property value.
-
#resources=(value) ⇒ Object
Sets the resources property value.
-
#resources_folder_url ⇒ Object
Gets the resourcesFolderUrl property value.
-
#resources_folder_url=(value) ⇒ Object
Sets the resourcesFolderUrl property value.
-
#returned_by ⇒ Object
Gets the returnedBy property value.
-
#returned_by=(value) ⇒ Object
Sets the returnedBy property value.
-
#returned_date_time ⇒ Object
Gets the returnedDateTime property value.
-
#returned_date_time=(value) ⇒ Object
Sets the returnedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
-
#submitted_by ⇒ Object
Gets the submittedBy property value.
-
#submitted_by=(value) ⇒ Object
Sets the submittedBy property value.
-
#submitted_date_time ⇒ Object
Gets the submittedDateTime property value.
-
#submitted_date_time=(value) ⇒ Object
Sets the submittedDateTime property value.
-
#submitted_resources ⇒ Object
Gets the submittedResources property value.
-
#submitted_resources=(value) ⇒ Object
Sets the submittedResources property value.
-
#unsubmitted_by ⇒ Object
Gets the unsubmittedBy property value.
-
#unsubmitted_by=(value) ⇒ Object
Sets the unsubmittedBy property value.
-
#unsubmitted_date_time ⇒ Object
Gets the unsubmittedDateTime property value.
-
#unsubmitted_date_time=(value) ⇒ Object
Sets the unsubmittedDateTime property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new educationSubmission and sets the default values.
56 57 58 |
# File 'lib/models/education_submission.rb', line 56 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
64 65 66 67 |
# File 'lib/models/education_submission.rb', line 64 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return EducationSubmission.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/models/education_submission.rb', line 72 def get_field_deserializers() return super.merge({ "outcomes" => lambda {|n| @outcomes = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationOutcome.create_from_discriminator_value(pn) }) }, "reassignedBy" => lambda {|n| @reassigned_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "reassignedDateTime" => lambda {|n| @reassigned_date_time = n.get_date_time_value() }, "recipient" => lambda {|n| @recipient = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EducationSubmissionRecipient.create_from_discriminator_value(pn) }) }, "resources" => lambda {|n| @resources = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }) }, "resourcesFolderUrl" => lambda {|n| @resources_folder_url = n.get_string_value() }, "returnedBy" => lambda {|n| @returned_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "returnedDateTime" => lambda {|n| @returned_date_time = n.get_date_time_value() }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::EducationSubmissionStatus) }, "submittedBy" => lambda {|n| @submitted_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "submittedDateTime" => lambda {|n| @submitted_date_time = n.get_date_time_value() }, "submittedResources" => lambda {|n| @submitted_resources = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EducationSubmissionResource.create_from_discriminator_value(pn) }) }, "unsubmittedBy" => lambda {|n| @unsubmitted_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "unsubmittedDateTime" => lambda {|n| @unsubmitted_date_time = n.get_date_time_value() }, }) end |
#outcomes ⇒ Object
Gets the outcomes property value. The outcomes property
94 95 96 |
# File 'lib/models/education_submission.rb', line 94 def outcomes return @outcomes end |
#outcomes=(value) ⇒ Object
Sets the outcomes property value. The outcomes property
102 103 104 |
# File 'lib/models/education_submission.rb', line 102 def outcomes=(value) @outcomes = value end |
#reassigned_by ⇒ Object
Gets the reassignedBy property value. User who moved the status of this submission to reassigned.
109 110 111 |
# File 'lib/models/education_submission.rb', line 109 def reassigned_by return @reassigned_by end |
#reassigned_by=(value) ⇒ Object
Sets the reassignedBy property value. User who moved the status of this submission to reassigned.
117 118 119 |
# File 'lib/models/education_submission.rb', line 117 def reassigned_by=(value) @reassigned_by = value end |
#reassigned_date_time ⇒ Object
Gets the reassignedDateTime property value. Moment in time when the submission was reassigned. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
124 125 126 |
# File 'lib/models/education_submission.rb', line 124 def reassigned_date_time return @reassigned_date_time end |
#reassigned_date_time=(value) ⇒ Object
Sets the reassignedDateTime property value. Moment in time when the submission was reassigned. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
132 133 134 |
# File 'lib/models/education_submission.rb', line 132 def reassigned_date_time=(value) @reassigned_date_time = value end |
#recipient ⇒ Object
Gets the recipient property value. Who this submission is assigned to.
139 140 141 |
# File 'lib/models/education_submission.rb', line 139 def recipient return @recipient end |
#recipient=(value) ⇒ Object
Sets the recipient property value. Who this submission is assigned to.
147 148 149 |
# File 'lib/models/education_submission.rb', line 147 def recipient=(value) @recipient = value end |
#resources ⇒ Object
Gets the resources property value. The resources property
154 155 156 |
# File 'lib/models/education_submission.rb', line 154 def resources return @resources end |
#resources=(value) ⇒ Object
Sets the resources property value. The resources property
162 163 164 |
# File 'lib/models/education_submission.rb', line 162 def resources=(value) @resources = value end |
#resources_folder_url ⇒ Object
Gets the resourcesFolderUrl property value. Folder where all file resources for this submission need to be stored.
169 170 171 |
# File 'lib/models/education_submission.rb', line 169 def resources_folder_url return @resources_folder_url end |
#resources_folder_url=(value) ⇒ Object
Sets the resourcesFolderUrl property value. Folder where all file resources for this submission need to be stored.
177 178 179 |
# File 'lib/models/education_submission.rb', line 177 def resources_folder_url=(value) @resources_folder_url = value end |
#returned_by ⇒ Object
Gets the returnedBy property value. User who moved the status of this submission to returned.
184 185 186 |
# File 'lib/models/education_submission.rb', line 184 def returned_by return @returned_by end |
#returned_by=(value) ⇒ Object
Sets the returnedBy property value. User who moved the status of this submission to returned.
192 193 194 |
# File 'lib/models/education_submission.rb', line 192 def returned_by=(value) @returned_by = value end |
#returned_date_time ⇒ Object
Gets the returnedDateTime property value. Moment in time when the submission was returned. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
199 200 201 |
# File 'lib/models/education_submission.rb', line 199 def returned_date_time return @returned_date_time end |
#returned_date_time=(value) ⇒ Object
Sets the returnedDateTime property value. Moment in time when the submission was returned. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
207 208 209 |
# File 'lib/models/education_submission.rb', line 207 def returned_date_time=(value) @returned_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
215 216 217 218 219 220 221 222 |
# File 'lib/models/education_submission.rb', line 215 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("outcomes", @outcomes) writer.write_object_value("recipient", @recipient) writer.write_collection_of_object_values("resources", @resources) writer.write_collection_of_object_values("submittedResources", @submitted_resources) end |
#status ⇒ Object
Gets the status property value. Read-only. Possible values are: working, submitted, returned, and reassigned. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: reassigned.
227 228 229 |
# File 'lib/models/education_submission.rb', line 227 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. Read-only. Possible values are: working, submitted, returned, and reassigned. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: reassigned.
235 236 237 |
# File 'lib/models/education_submission.rb', line 235 def status=(value) @status = value end |
#submitted_by ⇒ Object
Gets the submittedBy property value. User who moved the resource into the submitted state.
242 243 244 |
# File 'lib/models/education_submission.rb', line 242 def submitted_by return @submitted_by end |
#submitted_by=(value) ⇒ Object
Sets the submittedBy property value. User who moved the resource into the submitted state.
250 251 252 |
# File 'lib/models/education_submission.rb', line 250 def submitted_by=(value) @submitted_by = value end |
#submitted_date_time ⇒ Object
Gets the submittedDateTime property value. Moment in time when the submission was moved into the submitted state. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
257 258 259 |
# File 'lib/models/education_submission.rb', line 257 def submitted_date_time return @submitted_date_time end |
#submitted_date_time=(value) ⇒ Object
Sets the submittedDateTime property value. Moment in time when the submission was moved into the submitted state. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
265 266 267 |
# File 'lib/models/education_submission.rb', line 265 def submitted_date_time=(value) @submitted_date_time = value end |
#submitted_resources ⇒ Object
Gets the submittedResources property value. The submittedResources property
272 273 274 |
# File 'lib/models/education_submission.rb', line 272 def submitted_resources return @submitted_resources end |
#submitted_resources=(value) ⇒ Object
Sets the submittedResources property value. The submittedResources property
280 281 282 |
# File 'lib/models/education_submission.rb', line 280 def submitted_resources=(value) @submitted_resources = value end |
#unsubmitted_by ⇒ Object
Gets the unsubmittedBy property value. User who moved the resource from submitted into the working state.
287 288 289 |
# File 'lib/models/education_submission.rb', line 287 def unsubmitted_by return @unsubmitted_by end |
#unsubmitted_by=(value) ⇒ Object
Sets the unsubmittedBy property value. User who moved the resource from submitted into the working state.
295 296 297 |
# File 'lib/models/education_submission.rb', line 295 def unsubmitted_by=(value) @unsubmitted_by = value end |
#unsubmitted_date_time ⇒ Object
Gets the unsubmittedDateTime property value. Moment in time when the submission was moved from submitted into the working state. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
302 303 304 |
# File 'lib/models/education_submission.rb', line 302 def unsubmitted_date_time return @unsubmitted_date_time end |
#unsubmitted_date_time=(value) ⇒ Object
Sets the unsubmittedDateTime property value. Moment in time when the submission was moved from submitted into the working state. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
310 311 312 |
# File 'lib/models/education_submission.rb', line 310 def unsubmitted_date_time=(value) @unsubmitted_date_time = value end |