Class: Kaltura::KalturaDistributionProfileService

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

Overview

Distribution Profile service

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaDistributionProfileService

Returns a new instance of KalturaDistributionProfileService.



1134
1135
1136
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1134

def initialize(client)
	super(client)
end

Instance Method Details

#add(distribution_profile) ⇒ Object

Add new Distribution Profile



1140
1141
1142
1143
1144
1145
1146
1147
1148
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1140

def add(distribution_profile)
	kparams = {}
	client.add_param(kparams, 'distributionProfile', distribution_profile);
	client.queue_service_action_call('contentdistribution_distributionprofile', 'add', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#delete(id) ⇒ Object

Delete Distribution Profile by id



1190
1191
1192
1193
1194
1195
1196
1197
1198
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1190

def delete(id)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.queue_service_action_call('contentdistribution_distributionprofile', 'delete', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get(id) ⇒ Object

Get Distribution Profile by id



1152
1153
1154
1155
1156
1157
1158
1159
1160
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1152

def get(id)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.queue_service_action_call('contentdistribution_distributionprofile', 'get', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

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

List all distribution providers



1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1202

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

#list_by_partner(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object



1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1213

def list_by_partner(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
	kparams = {}
	client.add_param(kparams, 'filter', filter);
	client.add_param(kparams, 'pager', pager);
	client.queue_service_action_call('contentdistribution_distributionprofile', 'listByPartner', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update(id, distribution_profile) ⇒ Object

Update Distribution Profile by id



1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1164

def update(id, distribution_profile)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.add_param(kparams, 'distributionProfile', distribution_profile);
	client.queue_service_action_call('contentdistribution_distributionprofile', 'update', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update_status(id, status) ⇒ Object

Update Distribution Profile status by id



1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1177

def update_status(id, status)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.add_param(kparams, 'status', status);
	client.queue_service_action_call('contentdistribution_distributionprofile', 'updateStatus', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end