Class: Kaltura::KalturaResponseProfileService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Overview

Manage response profiles

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaResponseProfileService



4060
4061
4062
# File 'lib/kaltura_client.rb', line 4060

def initialize(client)
  super(client)
end

Instance Method Details

#add(add_response_profile) ⇒ KalturaResponseProfile

Add new response profile



4066
4067
4068
4069
4070
4071
4072
4073
4074
# File 'lib/kaltura_client.rb', line 4066

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



4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
# File 'lib/kaltura_client.rb', line 4078

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



4091
4092
4093
4094
4095
4096
4097
4098
4099
# File 'lib/kaltura_client.rb', line 4091

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



4103
4104
4105
4106
4107
4108
4109
4110
4111
# File 'lib/kaltura_client.rb', line 4103

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



4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
# File 'lib/kaltura_client.rb', line 4115

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



4128
4129
4130
4131
4132
4133
4134
4135
4136
# File 'lib/kaltura_client.rb', line 4128

def recalculate(options)
  kparams = {}
  client.add_param(kparams, 'options', 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



4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
# File 'lib/kaltura_client.rb', line 4140

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



4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
# File 'lib/kaltura_client.rb', line 4153

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