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



2016
2017
2018
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2016

def initialize(client)
	super(client)
end

Instance Method Details

#add(distribution_profile) ⇒ KalturaDistributionProfile

Add new Distribution Profile



2022
2023
2024
2025
2026
2027
2028
2029
2030
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2022

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

#delete(id) ⇒ Object

Delete Distribution Profile by id



2034
2035
2036
2037
2038
2039
2040
2041
2042
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2034

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) ⇒ KalturaDistributionProfile

Get Distribution Profile by id



2046
2047
2048
2049
2050
2051
2052
2053
2054
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2046

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

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

List all distribution providers



2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2058

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', 'KalturaDistributionProfileListResponse', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

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



2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2070

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', 'KalturaDistributionProfileListResponse', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#update(id, distribution_profile) ⇒ KalturaDistributionProfile

Update Distribution Profile by id



2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2083

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', 'KalturaDistributionProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#update_status(id, status) ⇒ KalturaDistributionProfile

Update Distribution Profile status by id



2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2096

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', 'KalturaDistributionProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end