Class: CiscoWebex::AuditEvents
- Inherits:
-
Admin
- Object
- Admin
- CiscoWebex::AuditEvents
show all
- Defined in:
- lib/Admin/AuditEvents.rb
Constant Summary
Constants inherited
from Admin
CiscoWebex::Admin::BASE_URL
Instance Method Summary
collapse
Methods inherited from Admin
#audit_events, #authorizations, #head, #licenses, #me, #organizations, #people, #post, #put, #resource_groups, #roles
Constructor Details
#initialize(token = nil, org_id = nil) ⇒ AuditEvents
initialize object with stored token
7
8
9
10
11
12
13
14
15
|
# File 'lib/Admin/AuditEvents.rb', line 7
def initialize(token=nil, org_id=nil)
if token == nil
STDERR.puts "Must provide API key for CiscoWebex::Admin::AuditEvents"
return false
else
@auth_token = token if token
@memberships = Memberships.new(@auth_token)
end
end
|
Instance Method Details
#create(params) ⇒ Object
49
50
51
52
|
# File 'lib/Admin/AuditEvents.rb', line 49
def create(params)
STDERR.puts "CiscoWebex::Admin::AuditEvents.create() - Metod not implemented"
return False
end
|
#delete(id) ⇒ Object
54
55
56
57
|
# File 'lib/Admin/AuditEvents.rb', line 54
def delete(id)
STDERR.puts "CiscoWebex::Admin::AuditEvents.delete() - Metod not implemented"
return False
end
|
#get(id) ⇒ Object
26
27
28
29
|
# File 'lib/Admin/AuditEvents.rb', line 26
def get(id)
STDERR.puts "CiscoWebex::Admin::AuditEvents.get() - Metod not implemented"
return False
end
|
#list(params = {}, limit = 5000) ⇒ Object
31
32
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/Admin/AuditEvents.rb', line 31
def list(params={}, limit=5000)
if params.class != Hash
STDERR.puts "CiscoWebex::Admin::AuditEvents.list() - params must be in Hash format if provided"
return False
end
params['orgId'] = @org_id if !params.has_key?('orgId') params['to'] = CiscoWebex::Toolbox::WebexTime.now() if !params.has_key?('to') params['from'] = CiscoWebex::Toolbox::WebexTime.shift("now", -86400) if !params.has_key?('from')
return CiscoWebex::Rest.get(@auth_token, "/v1/adminAudit/events", params, limit) rescue false
end
|
#patch(id, params) ⇒ Object
64
65
66
67
|
# File 'lib/Admin/AuditEvents.rb', line 64
def patch(id, params)
STDERR.puts "CiscoWebex::Admin::AuditEvents.patch() - Metod not implemented"
return False
end
|
#search(params = {}) ⇒ Object
44
45
46
47
|
# File 'lib/Admin/AuditEvents.rb', line 44
def search(params={})
params = { "actorId"=> params } if params.class == String
return CiscoWebex::Toolbox.search(list(), params)
end
|
#template ⇒ Object
21
22
23
24
|
# File 'lib/Admin/AuditEvents.rb', line 21
def template()
STDERR.puts "CiscoWebex::Admin::AuditEvents.template() - Metod not implemented"
return False
end
|
#this ⇒ Object
17
18
19
|
# File 'lib/Admin/AuditEvents.rb', line 17
def this()
puts "CiscoWebex::Admin::AuditEvents"
end
|
#update(id, params) ⇒ Object
59
60
61
62
|
# File 'lib/Admin/AuditEvents.rb', line 59
def update(id, params)
STDERR.puts "CiscoWebex::Admin::AuditEvents.update() - Metod not implemented"
return False
end
|