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

Returns a new instance of KalturaResponseProfileService.



3992
3993
3994
# File 'lib/kaltura_client.rb', line 3992

def initialize(client)
  super(client)
end

Instance Method Details

#add(add_response_profile) ⇒ KalturaResponseProfile

Add new response profile



3998
3999
4000
4001
4002
4003
4004
4005
4006
# File 'lib/kaltura_client.rb', line 3998

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



4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
# File 'lib/kaltura_client.rb', line 4010

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

Returns:



4023
4024
4025
4026
4027
4028
4029
4030
4031
# File 'lib/kaltura_client.rb', line 4023

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



4035
4036
4037
4038
4039
4040
4041
4042
4043
# File 'lib/kaltura_client.rb', line 4035

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



4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
# File 'lib/kaltura_client.rb', line 4047

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



4060
4061
4062
4063
4064
4065
4066
4067
4068
# File 'lib/kaltura_client.rb', line 4060

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



4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
# File 'lib/kaltura_client.rb', line 4072

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



4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
# File 'lib/kaltura_client.rb', line 4085

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