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