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.
2030 2031 2032 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2030 def initialize(client) super(client) end |
Instance Method Details
#add(distribution_profile) ⇒ KalturaDistributionProfile
Add new Distribution Profile
2036 2037 2038 2039 2040 2041 2042 2043 2044 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2036 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
2048 2049 2050 2051 2052 2053 2054 2055 2056 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2048 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
2060 2061 2062 2063 2064 2065 2066 2067 2068 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2060 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
2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2072 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
2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2084 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
2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2097 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
2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2110 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 |