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