Class: MicrosoftGraph::Models::EducationSubmission

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/education_submission.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a education_submission

Raises:

  • (StandardError)


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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#outcomesObject

Gets the outcomes property value. The outcomes property

Returns:

  • a education_outcome



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

Parameters:

  • value

    Value to set for the outcomes property.

Returns:

  • a void



102
103
104
# File 'lib/models/education_submission.rb', line 102

def outcomes=(value)
    @outcomes = value
end

#reassigned_byObject

Gets the reassignedBy property value. User who moved the status of this submission to reassigned.

Returns:

  • a identity_set



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.

Parameters:

  • value

    Value to set for the reassignedBy property.

Returns:

  • a void



117
118
119
# File 'lib/models/education_submission.rb', line 117

def reassigned_by=(value)
    @reassigned_by = value
end

#reassigned_date_timeObject

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

Returns:

  • a date_time



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

Parameters:

  • value

    Value to set for the reassignedDateTime property.

Returns:

  • a void



132
133
134
# File 'lib/models/education_submission.rb', line 132

def reassigned_date_time=(value)
    @reassigned_date_time = value
end

#recipientObject

Gets the recipient property value. Who this submission is assigned to.

Returns:

  • a education_submission_recipient



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.

Parameters:

  • value

    Value to set for the recipient property.

Returns:

  • a void



147
148
149
# File 'lib/models/education_submission.rb', line 147

def recipient=(value)
    @recipient = value
end

#resourcesObject

Gets the resources property value. The resources property

Returns:

  • a education_submission_resource



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

Parameters:

  • value

    Value to set for the resources property.

Returns:

  • a void



162
163
164
# File 'lib/models/education_submission.rb', line 162

def resources=(value)
    @resources = value
end

#resources_folder_urlObject

Gets the resourcesFolderUrl property value. Folder where all file resources for this submission need to be stored.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the resourcesFolderUrl property.

Returns:

  • a void



177
178
179
# File 'lib/models/education_submission.rb', line 177

def resources_folder_url=(value)
    @resources_folder_url = value
end

#returned_byObject

Gets the returnedBy property value. User who moved the status of this submission to returned.

Returns:

  • a identity_set



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.

Parameters:

  • value

    Value to set for the returnedBy property.

Returns:

  • a void



192
193
194
# File 'lib/models/education_submission.rb', line 192

def returned_by=(value)
    @returned_by = value
end

#returned_date_timeObject

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

Returns:

  • a date_time



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

Parameters:

  • value

    Value to set for the returnedDateTime property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#statusObject

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.

Returns:

  • a education_submission_status



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.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



235
236
237
# File 'lib/models/education_submission.rb', line 235

def status=(value)
    @status = value
end

#submitted_byObject

Gets the submittedBy property value. User who moved the resource into the submitted state.

Returns:

  • a identity_set



242
243
244
# File 'lib/models/education_submission.rb', line 242

def 
    return @submitted_by
end

#submitted_by=(value) ⇒ Object

Sets the submittedBy property value. User who moved the resource into the submitted state.

Parameters:

  • value

    Value to set for the submittedBy property.

Returns:

  • a void



250
251
252
# File 'lib/models/education_submission.rb', line 250

def (value)
    @submitted_by = value
end

#submitted_date_timeObject

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

Returns:

  • a date_time



257
258
259
# File 'lib/models/education_submission.rb', line 257

def 
    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

Parameters:

  • value

    Value to set for the submittedDateTime property.

Returns:

  • a void



265
266
267
# File 'lib/models/education_submission.rb', line 265

def (value)
    @submitted_date_time = value
end

#submitted_resourcesObject

Gets the submittedResources property value. The submittedResources property

Returns:

  • a education_submission_resource



272
273
274
# File 'lib/models/education_submission.rb', line 272

def 
    return @submitted_resources
end

#submitted_resources=(value) ⇒ Object

Sets the submittedResources property value. The submittedResources property

Parameters:

  • value

    Value to set for the submittedResources property.

Returns:

  • a void



280
281
282
# File 'lib/models/education_submission.rb', line 280

def (value)
    @submitted_resources = value
end

#unsubmitted_byObject

Gets the unsubmittedBy property value. User who moved the resource from submitted into the working state.

Returns:

  • a identity_set



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.

Parameters:

  • value

    Value to set for the unsubmittedBy property.

Returns:

  • a void



295
296
297
# File 'lib/models/education_submission.rb', line 295

def unsubmitted_by=(value)
    @unsubmitted_by = value
end

#unsubmitted_date_timeObject

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

Returns:

  • a date_time



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

Parameters:

  • value

    Value to set for the unsubmittedDateTime property.

Returns:

  • a void



310
311
312
# File 'lib/models/education_submission.rb', line 310

def unsubmitted_date_time=(value)
    @unsubmitted_date_time = value
end