class Kaltura::KalturaUploadToken
Attributes
autoFinalize - Should the upload be finalized once the file size on disk matches the file size reproted when adding the upload token.
Creation date as Unix timestamp (In seconds)
Name of the file for the upload token, can be empty when the upload token is created and will be updated internally after the file is uploaded
File size in bytes, can be empty when the upload token is created and will be updated internally after the file is uploaded
Upload token unique ID
Partner ID of the upload token
Status of the upload token
Last update date as Unix timestamp (In seconds)
Upload url - to explicitly determine to which domain to adress the uploadToken->upload call
Uploaded file size in bytes, can be used to identify how many bytes were uploaded before resuming
User id for the upload token
Public Instance Methods
# File lib/kaltura_types.rb, line 10106 def auto_finalize=(val) @auto_finalize = val.to_i end
# File lib/kaltura_types.rb, line 10100 def created_at=(val) @created_at = val.to_i end
# File lib/kaltura_types.rb, line 10094 def file_size=(val) @file_size = val.to_f end
Kaltura::KalturaObjectBase#from_xml
# File lib/kaltura_types.rb, line 10110 def from_xml(xml_element) super if xml_element.elements['id'] != nil self.id = xml_element.elements['id'].text end if xml_element.elements['partnerId'] != nil self.partner_id = xml_element.elements['partnerId'].text end if xml_element.elements['userId'] != nil self.user_id = xml_element.elements['userId'].text end if xml_element.elements['status'] != nil self.status = xml_element.elements['status'].text end if xml_element.elements['fileName'] != nil self.file_name = xml_element.elements['fileName'].text end if xml_element.elements['fileSize'] != nil self.file_size = xml_element.elements['fileSize'].text end if xml_element.elements['uploadedFileSize'] != nil self.uploaded_file_size = xml_element.elements['uploadedFileSize'].text end if xml_element.elements['createdAt'] != nil self.created_at = xml_element.elements['createdAt'].text end if xml_element.elements['updatedAt'] != nil self.updated_at = xml_element.elements['updatedAt'].text end if xml_element.elements['uploadUrl'] != nil self.upload_url = xml_element.elements['uploadUrl'].text end if xml_element.elements['autoFinalize'] != nil self.auto_finalize = xml_element.elements['autoFinalize'].text end end
# File lib/kaltura_types.rb, line 10088 def partner_id=(val) @partner_id = val.to_i end
# File lib/kaltura_types.rb, line 10091 def status=(val) @status = val.to_i end
# File lib/kaltura_types.rb, line 10103 def updated_at=(val) @updated_at = val.to_i end
# File lib/kaltura_types.rb, line 10097 def uploaded_file_size=(val) @uploaded_file_size = val.to_f end