Class: Kaseya::VSA::Client::Organizations
- Inherits:
-
Api
- Object
- Api
- Kaseya::VSA::Client::Organizations
show all
- Defined in:
- lib/kaseya/vsa/client/organizations.rb
Instance Attribute Summary
Attributes inherited from Api
#connection
Instance Method Summary
collapse
Methods inherited from Api
#get_many, #get_one, #initialize, #post, #put
Instance Method Details
#all(params = {}) ⇒ Object
3
4
5
|
# File 'lib/kaseya/vsa/client/organizations.rb', line 3
def all(params = {})
get_many "system/orgs", params
end
|
#create(params = {}) ⇒ Object
15
16
17
|
# File 'lib/kaseya/vsa/client/organizations.rb', line 15
def create(params = {})
post "system/orgs", params
end
|
#delete(id) ⇒ Object
23
24
25
|
# File 'lib/kaseya/vsa/client/organizations.rb', line 23
def delete(id)
delete "system/orgs/#{id}"
end
|
#find(id) ⇒ Object
7
8
9
|
# File 'lib/kaseya/vsa/client/organizations.rb', line 7
def find(id)
get_one "system/orgs/#{id}"
end
|
#machine_groups(id, params = {}) ⇒ Object
11
12
13
|
# File 'lib/kaseya/vsa/client/organizations.rb', line 11
def machine_groups(id, params = {})
get_many "system/orgs/#{id}/machine_groups", params
end
|
#update(id, params = {}) ⇒ Object
19
20
21
|
# File 'lib/kaseya/vsa/client/organizations.rb', line 19
def update(id, params = {})
put "system/orgs/#{id}", params
end
|