Class: Kaltura::KalturaAccessControlProfileService

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

Overview

Manage access control profiles

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaAccessControlProfileService

Returns a new instance of KalturaAccessControlProfileService.



38
39
40
# File 'lib/kaltura_client.rb', line 38

def initialize(client)
  super(client)
end

Instance Method Details

#add(access_control_profile) ⇒ Object

Add new access control profile



44
45
46
47
48
49
50
51
52
# File 'lib/kaltura_client.rb', line 44

def add(access_control_profile)
  kparams = {}
  client.add_param(kparams, 'accessControlProfile', access_control_profile)
  client.queue_service_action_call('accesscontrolprofile', 'add', 'KalturaAccessControlProfile', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#delete(id) ⇒ Object

Delete access control profile by id



81
82
83
84
85
86
87
88
89
# File 'lib/kaltura_client.rb', line 81

def delete(id)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.queue_service_action_call('accesscontrolprofile', 'delete', '', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#get(id) ⇒ Object

Get access control profile by id



56
57
58
59
60
61
62
63
64
# File 'lib/kaltura_client.rb', line 56

def get(id)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.queue_service_action_call('accesscontrolprofile', 'get', 'KalturaAccessControlProfile', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object

List access control profiles by filter and pager



93
94
95
96
97
98
99
100
101
102
# File 'lib/kaltura_client.rb', line 93

def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
  kparams = {}
  client.add_param(kparams, 'filter', filter)
  client.add_param(kparams, 'pager', pager)
  client.queue_service_action_call('accesscontrolprofile', 'list', 'KalturaAccessControlProfileListResponse', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#update(id, access_control_profile) ⇒ Object

Update access control profile by id



68
69
70
71
72
73
74
75
76
77
# File 'lib/kaltura_client.rb', line 68

def update(id, access_control_profile)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.add_param(kparams, 'accessControlProfile', access_control_profile)
  client.queue_service_action_call('accesscontrolprofile', 'update', 'KalturaAccessControlProfile', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end