Class: Kaltura::KalturaUploadToken

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_types.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#attached_object_idObject

The id of the object this token is attached to.



10221
10222
10223
# File 'lib/kaltura_types.rb', line 10221

def attached_object_id
  @attached_object_id
end

#attached_object_typeObject

The type of the object this token is attached to.



10219
10220
10221
# File 'lib/kaltura_types.rb', line 10219

def attached_object_type
  @attached_object_type
end

#auto_finalizeObject

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



10217
10218
10219
# File 'lib/kaltura_types.rb', line 10217

def auto_finalize
  @auto_finalize
end

#created_atObject

Creation date as Unix timestamp (In seconds)



10211
10212
10213
# File 'lib/kaltura_types.rb', line 10211

def created_at
  @created_at
end

#file_nameObject

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



10205
10206
10207
# File 'lib/kaltura_types.rb', line 10205

def file_name
  @file_name
end

#file_sizeObject

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



10207
10208
10209
# File 'lib/kaltura_types.rb', line 10207

def file_size
  @file_size
end

#idObject

Upload token unique ID



10197
10198
10199
# File 'lib/kaltura_types.rb', line 10197

def id
  @id
end

#partner_idObject

Partner ID of the upload token



10199
10200
10201
# File 'lib/kaltura_types.rb', line 10199

def partner_id
  @partner_id
end

#statusObject

Status of the upload token



10203
10204
10205
# File 'lib/kaltura_types.rb', line 10203

def status
  @status
end

#updated_atObject

Last update date as Unix timestamp (In seconds)



10213
10214
10215
# File 'lib/kaltura_types.rb', line 10213

def updated_at
  @updated_at
end

#upload_urlObject

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



10215
10216
10217
# File 'lib/kaltura_types.rb', line 10215

def upload_url
  @upload_url
end

#uploaded_file_sizeObject

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



10209
10210
10211
# File 'lib/kaltura_types.rb', line 10209

def uploaded_file_size
  @uploaded_file_size
end

#user_idObject

User id for the upload token



10201
10202
10203
# File 'lib/kaltura_types.rb', line 10201

def user_id
  @user_id
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
# File 'lib/kaltura_types.rb', line 10245

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
	if xml_element.elements['attachedObjectType'] != nil
		self.attached_object_type = xml_element.elements['attachedObjectType'].text
	end
	if xml_element.elements['attachedObjectId'] != nil
		self.attached_object_id = xml_element.elements['attachedObjectId'].text
	end
end