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.



3965
3966
3967
# File 'lib/kaltura_client.rb', line 3965

def initialize(client)
  super(client)
end

Instance Method Details

#add(add_response_profile) ⇒ KalturaResponseProfile

Add new response profile



3971
3972
3973
3974
3975
3976
3977
3978
3979
# File 'lib/kaltura_client.rb', line 3971

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



3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
# File 'lib/kaltura_client.rb', line 3983

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:



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

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



4008
4009
4010
4011
4012
4013
4014
4015
4016
# File 'lib/kaltura_client.rb', line 4008

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



4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
# File 'lib/kaltura_client.rb', line 4020

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



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

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



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

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



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

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