Class: Kaltura::KalturaUploadToken
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaUploadToken
- Defined in:
- lib/kaltura_types.rb
Instance Attribute Summary collapse
-
#auto_finalize ⇒ Object
autoFinalize - Should the upload be finalized once the file size on disk matches the file size reproted when adding the upload token.
-
#created_at ⇒ Object
Creation date as Unix timestamp (In seconds).
-
#file_name ⇒ Object
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 ⇒ Object
File size in bytes, can be empty when the upload token is created and will be updated internally after the file is uploaded.
-
#id ⇒ Object
Upload token unique ID.
-
#partner_id ⇒ Object
Partner ID of the upload token.
-
#status ⇒ Object
Status of the upload token.
-
#updated_at ⇒ Object
Last update date as Unix timestamp (In seconds).
-
#upload_url ⇒ Object
Upload url - to explicitly determine to which domain to adress the uploadToken->upload call.
-
#uploaded_file_size ⇒ Object
Uploaded file size in bytes, can be used to identify how many bytes were uploaded before resuming.
-
#user_id ⇒ Object
User id for the upload token.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#auto_finalize ⇒ Object
autoFinalize - Should the upload be finalized once the file size on disk matches the file size reproted when adding the upload token.
10086 10087 10088 |
# File 'lib/kaltura_types.rb', line 10086 def auto_finalize @auto_finalize end |
#created_at ⇒ Object
Creation date as Unix timestamp (In seconds)
10080 10081 10082 |
# File 'lib/kaltura_types.rb', line 10080 def created_at @created_at end |
#file_name ⇒ Object
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
10074 10075 10076 |
# File 'lib/kaltura_types.rb', line 10074 def file_name @file_name end |
#file_size ⇒ Object
File size in bytes, can be empty when the upload token is created and will be updated internally after the file is uploaded
10076 10077 10078 |
# File 'lib/kaltura_types.rb', line 10076 def file_size @file_size end |
#id ⇒ Object
Upload token unique ID
10066 10067 10068 |
# File 'lib/kaltura_types.rb', line 10066 def id @id end |
#partner_id ⇒ Object
Partner ID of the upload token
10068 10069 10070 |
# File 'lib/kaltura_types.rb', line 10068 def partner_id @partner_id end |
#status ⇒ Object
Status of the upload token
10072 10073 10074 |
# File 'lib/kaltura_types.rb', line 10072 def status @status end |
#updated_at ⇒ Object
Last update date as Unix timestamp (In seconds)
10082 10083 10084 |
# File 'lib/kaltura_types.rb', line 10082 def updated_at @updated_at end |
#upload_url ⇒ Object
Upload url - to explicitly determine to which domain to adress the uploadToken->upload call
10084 10085 10086 |
# File 'lib/kaltura_types.rb', line 10084 def upload_url @upload_url end |
#uploaded_file_size ⇒ Object
Uploaded file size in bytes, can be used to identify how many bytes were uploaded before resuming
10078 10079 10080 |
# File 'lib/kaltura_types.rb', line 10078 def uploaded_file_size @uploaded_file_size end |
#user_id ⇒ Object
User id for the upload token
10070 10071 10072 |
# File 'lib/kaltura_types.rb', line 10070 def user_id @user_id end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 |
# 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 |