Class: Kaltura::KalturaDistributionProfileService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaDistributionProfileService
- Defined in:
- lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb
Overview
Distribution Profile service
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(distribution_profile) ⇒ KalturaDistributionProfile
Add new Distribution Profile.
-
#delete(id) ⇒ Object
Delete Distribution Profile by id.
-
#get(id) ⇒ KalturaDistributionProfile
Get Distribution Profile by id.
-
#initialize(client) ⇒ KalturaDistributionProfileService
constructor
A new instance of KalturaDistributionProfileService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaDistributionProfileListResponse
List all distribution providers.
- #list_by_partner(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaDistributionProfileListResponse
-
#update(id, distribution_profile) ⇒ KalturaDistributionProfile
Update Distribution Profile by id.
-
#update_status(id, status) ⇒ KalturaDistributionProfile
Update Distribution Profile status by id.
Constructor Details
#initialize(client) ⇒ KalturaDistributionProfileService
Returns a new instance of KalturaDistributionProfileService.
2037 2038 2039 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2037 def initialize(client) super(client) end |
Instance Method Details
#add(distribution_profile) ⇒ KalturaDistributionProfile
Add new Distribution Profile
2043 2044 2045 2046 2047 2048 2049 2050 2051 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2043 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
2055 2056 2057 2058 2059 2060 2061 2062 2063 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2055 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
2067 2068 2069 2070 2071 2072 2073 2074 2075 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2067 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
2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2079 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
2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2091 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
2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2104 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
2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2117 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 |