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.
4086 4087 4088 |
# File 'lib/kaltura_client.rb', line 4086 def initialize(client) super(client) end |
Instance Method Details
#add(add_response_profile) ⇒ KalturaResponseProfile
Add new response profile
4092 4093 4094 4095 4096 4097 4098 4099 4100 |
# File 'lib/kaltura_client.rb', line 4092 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
4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 |
# File 'lib/kaltura_client.rb', line 4104 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
4117 4118 4119 4120 4121 4122 4123 4124 4125 |
# File 'lib/kaltura_client.rb', line 4117 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
4129 4130 4131 4132 4133 4134 4135 4136 4137 |
# File 'lib/kaltura_client.rb', line 4129 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
4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 |
# File 'lib/kaltura_client.rb', line 4141 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
4154 4155 4156 4157 4158 4159 4160 4161 4162 |
# File 'lib/kaltura_client.rb', line 4154 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
4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 |
# File 'lib/kaltura_client.rb', line 4166 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
4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 |
# File 'lib/kaltura_client.rb', line 4179 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 |