class Kaltura::KalturaUploadToken

Attributes

auto_finalize[RW]

autoFinalize - Should the upload be finalized once the file size on disk matches the file size reproted when adding the upload token.

created_at[RW]

Creation date as Unix timestamp (In seconds)

file_name[RW]

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[RW]

File size in bytes, can be empty when the upload token is created and will be updated internally after the file is uploaded

id[RW]

Upload token unique ID

partner_id[RW]

Partner ID of the upload token

status[RW]

Status of the upload token

updated_at[RW]

Last update date as Unix timestamp (In seconds)

upload_url[RW]

Upload url - to explicitly determine to which domain to adress the uploadToken->upload call

uploaded_file_size[RW]

Uploaded file size in bytes, can be used to identify how many bytes were uploaded before resuming

user_id[RW]

User id for the upload token

Public Instance Methods

auto_finalize=(val) click to toggle source
# File lib/kaltura_types.rb, line 10106
def auto_finalize=(val)
        @auto_finalize = val.to_i
end
created_at=(val) click to toggle source
# File lib/kaltura_types.rb, line 10100
def created_at=(val)
        @created_at = val.to_i
end
file_size=(val) click to toggle source
# File lib/kaltura_types.rb, line 10094
def file_size=(val)
        @file_size = val.to_f
end
from_xml(xml_element) click to toggle source
Calls superclass method 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
partner_id=(val) click to toggle source
# File lib/kaltura_types.rb, line 10088
def partner_id=(val)
        @partner_id = val.to_i
end
status=(val) click to toggle source
# File lib/kaltura_types.rb, line 10091
def status=(val)
        @status = val.to_i
end
updated_at=(val) click to toggle source
# File lib/kaltura_types.rb, line 10103
def updated_at=(val)
        @updated_at = val.to_i
end
uploaded_file_size=(val) click to toggle source
# File lib/kaltura_types.rb, line 10097
def uploaded_file_size=(val)
        @uploaded_file_size = val.to_f
end