Class: Kaltura::KalturaDropFolderFileService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb

Overview

DropFolderFile service lets you create and manage drop folder files

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaDropFolderFileService

Returns a new instance of KalturaDropFolderFileService.



1287
1288
1289
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 1287

def initialize(client)
	super(client)
end

Instance Method Details

#add(drop_folder_file) ⇒ KalturaDropFolderFile

Allows you to add a new KalturaDropFolderFile object



1293
1294
1295
1296
1297
1298
1299
1300
1301
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 1293

def add(drop_folder_file)
	kparams = {}
	client.add_param(kparams, 'dropFolderFile', drop_folder_file)
	client.queue_service_action_call('dropfolder_dropfolderfile', 'add', 'KalturaDropFolderFile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#delete(drop_folder_file_id) ⇒ KalturaDropFolderFile

Mark the KalturaDropFolderFile object as deleted



1305
1306
1307
1308
1309
1310
1311
1312
1313
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 1305

def delete(drop_folder_file_id)
	kparams = {}
	client.add_param(kparams, 'dropFolderFileId', drop_folder_file_id)
	client.queue_service_action_call('dropfolder_dropfolderfile', 'delete', 'KalturaDropFolderFile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#get(drop_folder_file_id) ⇒ KalturaDropFolderFile

Retrieve a KalturaDropFolderFile object by ID



1317
1318
1319
1320
1321
1322
1323
1324
1325
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 1317

def get(drop_folder_file_id)
	kparams = {}
	client.add_param(kparams, 'dropFolderFileId', drop_folder_file_id)
	client.queue_service_action_call('dropfolder_dropfolderfile', 'get', 'KalturaDropFolderFile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#ignore(drop_folder_file_id) ⇒ KalturaDropFolderFile

Set the KalturaDropFolderFile status to ignore (KalturaDropFolderFileStatus::IGNORE)



1329
1330
1331
1332
1333
1334
1335
1336
1337
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 1329

def ignore(drop_folder_file_id)
	kparams = {}
	client.add_param(kparams, 'dropFolderFileId', drop_folder_file_id)
	client.queue_service_action_call('dropfolder_dropfolderfile', 'ignore', 'KalturaDropFolderFile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaDropFolderFileListResponse

List KalturaDropFolderFile objects



1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 1341

def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
	kparams = {}
	client.add_param(kparams, 'filter', filter)
	client.add_param(kparams, 'pager', pager)
	client.queue_service_action_call('dropfolder_dropfolderfile', 'list', 'KalturaDropFolderFileListResponse', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#update(drop_folder_file_id, drop_folder_file) ⇒ KalturaDropFolderFile

Update an existing KalturaDropFolderFile object



1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 1354

def update(drop_folder_file_id, drop_folder_file)
	kparams = {}
	client.add_param(kparams, 'dropFolderFileId', drop_folder_file_id)
	client.add_param(kparams, 'dropFolderFile', drop_folder_file)
	client.queue_service_action_call('dropfolder_dropfolderfile', 'update', 'KalturaDropFolderFile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#update_status(drop_folder_file_id, status) ⇒ KalturaDropFolderFile

Update status of KalturaDropFolderFile



1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 1367

def update_status(drop_folder_file_id, status)
	kparams = {}
	client.add_param(kparams, 'dropFolderFileId', drop_folder_file_id)
	client.add_param(kparams, 'status', status)
	client.queue_service_action_call('dropfolder_dropfolderfile', 'updateStatus', 'KalturaDropFolderFile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end