Attachment creation for an assignment or stream post. This attachment must contain a score
or an url
, all the details of this one will be resolved and returned as ClassAttachment
once the assignment or stream post is created.
Name | Type | Description | Notes |
---|---|---|---|
type | str | The type of the attachment posted: * `rich`, `photo`, `video` are attachment types that are automatically resolved from a `link` attachment. * A `flat` attachment is a score document where the unique identifier will be specified in the `score` property. Its sharing mode will be provided in the `sharingMode` property. | [optional] |
score | str | A unique Flat score identifier. The user creating the assignment must at least have read access to the document. If the user has admin rights, new group permissions will be automatically added for the teachers and students of the class. | [optional] |
worksheet | str | An unique worksheet identifier | [optional] |
sharing_mode | MediaScoreSharingMode | [optional] | |
lock_score_template | bool | To be used with a score attached in `sharingMode` `copy` (score used as template). If true, students won't be able to change the original notes of the template. | [optional] |
url | str | The URL of the attachment. | [optional] |
google_drive_file_id | str | The ID of the Google Drive File | [optional] |
from flat_api.models.class_attachment_creation import ClassAttachmentCreation
# TODO update the JSON string below
json = "{}"
# create an instance of ClassAttachmentCreation from a JSON string
class_attachment_creation_instance = ClassAttachmentCreation.from_json(json)
# print the JSON string representation of the object
print ClassAttachmentCreation.to_json()
# convert the object into a dict
class_attachment_creation_dict = class_attachment_creation_instance.to_dict()
# create an instance of ClassAttachmentCreation from a dict
class_attachment_creation_form_dict = class_attachment_creation.from_dict(class_attachment_creation_dict)