Module: Sophos::Client::Partner

Included in:
Sophos::Client
Defined in:
lib/sophos/client/partner.rb

Overview

Sophos partner api

Instance Method Summary collapse

Instance Method Details

#admin_role_assignment(admin_id, assignment_id, params = {}) ⇒ Object

Get the list of role assignments for given admin.



26
27
28
# File 'lib/sophos/client/partner.rb', line 26

def admin_role_assignment(admin_id, assignment_id, params = {})
  get(Helper::partner_url("admins/#{admin_id}/role-assignments/#{assignment_id}"), params)
end

#admin_role_assignments(admin_id, params = {}) ⇒ Object

Get the list of role assignments for given admin.



21
22
23
# File 'lib/sophos/client/partner.rb', line 21

def admin_role_assignments(admin_id, params = {})
  get(Helper::partner_url("admins/#{admin_id}/role-assignments"), params)
end

#billing_usage(year, month, params = {}) ⇒ Object

Usage report.



38
39
40
# File 'lib/sophos/client/partner.rb', line 38

def billing_usage(year, month, params = {})
  get_paged(Helper::partner_url("billing/usage/#{year}/#{month}"), params)
end

#permission_sets(params = {}) ⇒ Object

List all the tenants for a partner



32
33
34
# File 'lib/sophos/client/partner.rb', line 32

def permission_sets( params = {} )
  get(Helper::partner_url('roles/permission-sets'), params)
end