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.
9892 9893 9894 |
# File 'lib/kaltura_types.rb', line 9892 def auto_finalize @auto_finalize end |
#created_at ⇒ Object
Creation date as Unix timestamp (In seconds)
9886 9887 9888 |
# File 'lib/kaltura_types.rb', line 9886 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
9880 9881 9882 |
# File 'lib/kaltura_types.rb', line 9880 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
9882 9883 9884 |
# File 'lib/kaltura_types.rb', line 9882 def file_size @file_size end |
#id ⇒ Object
Upload token unique ID
9872 9873 9874 |
# File 'lib/kaltura_types.rb', line 9872 def id @id end |
#partner_id ⇒ Object
Partner ID of the upload token
9874 9875 9876 |
# File 'lib/kaltura_types.rb', line 9874 def partner_id @partner_id end |
#status ⇒ Object
Status of the upload token
9878 9879 9880 |
# File 'lib/kaltura_types.rb', line 9878 def status @status end |
#updated_at ⇒ Object
Last update date as Unix timestamp (In seconds)
9888 9889 9890 |
# File 'lib/kaltura_types.rb', line 9888 def updated_at @updated_at end |
#upload_url ⇒ Object
Upload url - to explicitly determine to which domain to adress the uploadToken->upload call
9890 9891 9892 |
# File 'lib/kaltura_types.rb', line 9890 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
9884 9885 9886 |
# File 'lib/kaltura_types.rb', line 9884 def uploaded_file_size @uploaded_file_size end |
#user_id ⇒ Object
User id for the upload token
9876 9877 9878 |
# File 'lib/kaltura_types.rb', line 9876 def user_id @user_id end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 |
# File 'lib/kaltura_types.rb', line 9916 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 |