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.
9998 9999 10000 |
# File 'lib/kaltura_types.rb', line 9998 def auto_finalize @auto_finalize end |
#created_at ⇒ Object
Creation date as Unix timestamp (In seconds)
9992 9993 9994 |
# File 'lib/kaltura_types.rb', line 9992 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
9986 9987 9988 |
# File 'lib/kaltura_types.rb', line 9986 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
9988 9989 9990 |
# File 'lib/kaltura_types.rb', line 9988 def file_size @file_size end |
#id ⇒ Object
Upload token unique ID
9978 9979 9980 |
# File 'lib/kaltura_types.rb', line 9978 def id @id end |
#partner_id ⇒ Object
Partner ID of the upload token
9980 9981 9982 |
# File 'lib/kaltura_types.rb', line 9980 def partner_id @partner_id end |
#status ⇒ Object
Status of the upload token
9984 9985 9986 |
# File 'lib/kaltura_types.rb', line 9984 def status @status end |
#updated_at ⇒ Object
Last update date as Unix timestamp (In seconds)
9994 9995 9996 |
# File 'lib/kaltura_types.rb', line 9994 def updated_at @updated_at end |
#upload_url ⇒ Object
Upload url - to explicitly determine to which domain to adress the uploadToken->upload call
9996 9997 9998 |
# File 'lib/kaltura_types.rb', line 9996 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
9990 9991 9992 |
# File 'lib/kaltura_types.rb', line 9990 def uploaded_file_size @uploaded_file_size end |
#user_id ⇒ Object
User id for the upload token
9982 9983 9984 |
# File 'lib/kaltura_types.rb', line 9982 def user_id @user_id end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 |
# File 'lib/kaltura_types.rb', line 10022 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 |