Class: Kaltura::KalturaResponseProfileService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaResponseProfileService
- Defined in:
- lib/kaltura_client.rb
Overview
Manage response profiles
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(add_response_profile) ⇒ KalturaResponseProfile
Add new response profile.
-
#clone(id, profile) ⇒ KalturaResponseProfile
Clone an existing response profile.
-
#delete(id) ⇒ Object
Delete response profile by id.
-
#get(id) ⇒ KalturaResponseProfile
Get response profile by id.
-
#initialize(client) ⇒ KalturaResponseProfileService
constructor
A new instance of KalturaResponseProfileService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaResponseProfileListResponse
List response profiles by filter and pager.
-
#recalculate(options) ⇒ KalturaResponseProfileCacheRecalculateResults
Recalculate response profile cached objects.
-
#update(id, update_response_profile) ⇒ KalturaResponseProfile
Update response profile by id.
-
#update_status(id, status) ⇒ KalturaResponseProfile
Update response profile status by id.
Constructor Details
#initialize(client) ⇒ KalturaResponseProfileService
Returns a new instance of KalturaResponseProfileService.
4103 4104 4105 |
# File 'lib/kaltura_client.rb', line 4103 def initialize(client) super(client) end |
Instance Method Details
#add(add_response_profile) ⇒ KalturaResponseProfile
Add new response profile
4109 4110 4111 4112 4113 4114 4115 4116 4117 |
# File 'lib/kaltura_client.rb', line 4109 def add(add_response_profile) kparams = {} client.add_param(kparams, 'addResponseProfile', add_response_profile) client.queue_service_action_call('responseprofile', 'add', 'KalturaResponseProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#clone(id, profile) ⇒ KalturaResponseProfile
Clone an existing response profile
4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 |
# File 'lib/kaltura_client.rb', line 4121 def clone(id, profile) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'profile', profile) client.queue_service_action_call('responseprofile', 'clone', 'KalturaResponseProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(id) ⇒ Object
Delete response profile by id
4134 4135 4136 4137 4138 4139 4140 4141 4142 |
# File 'lib/kaltura_client.rb', line 4134 def delete(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('responseprofile', 'delete', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(id) ⇒ KalturaResponseProfile
Get response profile by id
4146 4147 4148 4149 4150 4151 4152 4153 4154 |
# File 'lib/kaltura_client.rb', line 4146 def get(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('responseprofile', 'get', 'KalturaResponseProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaResponseProfileListResponse
List response profiles by filter and pager
4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 |
# File 'lib/kaltura_client.rb', line 4158 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('responseprofile', 'list', 'KalturaResponseProfileListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#recalculate(options) ⇒ KalturaResponseProfileCacheRecalculateResults
Recalculate response profile cached objects
4171 4172 4173 4174 4175 4176 4177 4178 4179 |
# File 'lib/kaltura_client.rb', line 4171 def recalculate() kparams = {} client.add_param(kparams, 'options', ) client.queue_service_action_call('responseprofile', 'recalculate', 'KalturaResponseProfileCacheRecalculateResults', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(id, update_response_profile) ⇒ KalturaResponseProfile
Update response profile by id
4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 |
# File 'lib/kaltura_client.rb', line 4183 def update(id, update_response_profile) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'updateResponseProfile', update_response_profile) client.queue_service_action_call('responseprofile', 'update', 'KalturaResponseProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update_status(id, status) ⇒ KalturaResponseProfile
Update response profile status by id
4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 |
# File 'lib/kaltura_client.rb', line 4196 def update_status(id, status) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'status', status) client.queue_service_action_call('responseprofile', 'updateStatus', 'KalturaResponseProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |