Class: CiscoWebex::Authorizations
- Inherits:
-
Admin
- Object
- Admin
- CiscoWebex::Authorizations
show all
- Defined in:
- lib/Admin/Authorizations.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 object with stored token
6
7
8
9
10
11
12
13
|
# File 'lib/Admin/Authorizations.rb', line 6
def initialize(token=nil)
if token == nil
STDERR.puts "Must provide API key for CiscoWebex::Admin::Authorizations"
return false
else
@auth_token = token if token
end
end
|
Instance Method Details
#create(params) ⇒ Object
33
34
35
36
|
# File 'lib/Admin/Authorizations.rb', line 33
def create(params)
STDERR.puts "CiscoWebex::Admin::Authorizations.create() - Metod not implemented"
return False
end
|
#delete(id) ⇒ Object
38
39
40
|
# File 'lib/Admin/Authorizations.rb', line 38
def delete(id)
return CiscoWebex::Rest.delete(@auth_token, "/v1/authorizations/#{id}") rescue false
end
|
#get(id) ⇒ Object
19
20
21
22
|
# File 'lib/Admin/Authorizations.rb', line 19
def get(id)
STDERR.puts "CiscoWebex::Admin::Authorizations.get() - Metod not implemented"
return False
end
|
#list(params = {}, limit = 5000) ⇒ Object
24
25
26
|
# File 'lib/Admin/Authorizations.rb', line 24
def list(params={}, limit=5000)
return CiscoWebex::Rest.get(@auth_token, "/v1/authorizations", params, limit) rescue false
end
|
#patch(id, params) ⇒ Object
47
48
49
50
|
# File 'lib/Admin/Authorizations.rb', line 47
def patch(id, params)
STDERR.puts "CiscoWebex::Admin::Authorizations.patch() - Metod not implemented"
return False
end
|
#search(params = {}) ⇒ Object
28
29
30
31
|
# File 'lib/Admin/Authorizations.rb', line 28
def search(params={})
params = { "applicationName"=> params } if params.class == String
return CiscoWebex::Toolbox.search(list(), params)
end
|
#this ⇒ Object
15
16
17
|
# File 'lib/Admin/Authorizations.rb', line 15
def this()
puts "CiscoWebex::Admin::Authorizations"
end
|
#update(id, params) ⇒ Object
42
43
44
45
|
# File 'lib/Admin/Authorizations.rb', line 42
def update(id, params)
STDERR.puts "CiscoWebex::Admin::Authorizations.update() - Metod not implemented"
return False
end
|