Class: Kaltura::KalturaAccessControlService

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

Overview

Add & Manage Access Controls

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaAccessControlService

Returns a new instance of KalturaAccessControlService.



108
109
110
# File 'lib/kaltura_client.rb', line 108

def initialize(client)
  super(client)
end

Instance Method Details

#add(access_control) ⇒ Object

Add new Access Control Profile



114
115
116
117
118
119
120
121
122
# File 'lib/kaltura_client.rb', line 114

def add(access_control)
  kparams = {}
  client.add_param(kparams, 'accessControl', access_control)
  client.queue_service_action_call('accesscontrol', 'add', 'KalturaAccessControl', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#delete(id) ⇒ Object

Delete Access Control Profile by id



151
152
153
154
155
156
157
158
159
# File 'lib/kaltura_client.rb', line 151

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

#get(id) ⇒ Object

Get Access Control Profile by id



126
127
128
129
130
131
132
133
134
# File 'lib/kaltura_client.rb', line 126

def get(id)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.queue_service_action_call('accesscontrol', 'get', 'KalturaAccessControl', 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



163
164
165
166
167
168
169
170
171
172
# File 'lib/kaltura_client.rb', line 163

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

#update(id, access_control) ⇒ Object

Update Access Control Profile by id



138
139
140
141
142
143
144
145
146
147
# File 'lib/kaltura_client.rb', line 138

def update(id, access_control)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.add_param(kparams, 'accessControl', access_control)
  client.queue_service_action_call('accesscontrol', 'update', 'KalturaAccessControl', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end