Module: CloudAlly::Client::PartnerPortal

Included in:
CloudAlly::Client
Defined in:
lib/cloudally/client/partners.rb

Overview

Defines methods related to partners

Instance Method Summary collapse

Instance Method Details

#get_reseller_by_partner_id(partner_id) ⇒ Object

Get Partner resellers.



56
57
58
# File 'lib/cloudally/client/partners.rb', line 56

def get_reseller_by_partner_id partner_id
  partner_resellers(partner_id)
end

#get_resellers_listObject

Get Partner resellers.



49
50
51
# File 'lib/cloudally/client/partners.rb', line 49

def get_resellers_list
  partner_resellers()
end

#partner_billsObject

Get Partner bills.



16
17
18
# File 'lib/cloudally/client/partners.rb', line 16

def partner_bills
  get_paged("partners/bills")
end

#partner_resellers(partner_id = nil) ⇒ Object

Get Partner resellers.



38
39
40
41
42
43
44
# File 'lib/cloudally/client/partners.rb', line 38

def partner_resellers(partner_id = nil)
  if partner_id
    get_paged("partners/resellers/#{partner_id}")
  else
    get_paged("partners/resellers")
  end
end

#partner_statusObject Also known as: get_status_by_partner

Get Partner bills.



23
24
25
# File 'lib/cloudally/client/partners.rb', line 23

def partner_status
  get_paged("partners/status")
end

#partner_tasksObject

Get Partner tasks.



31
32
33
# File 'lib/cloudally/client/partners.rb', line 31

def partner_tasks
  get_paged("partners/tasks")
end

#partner_usersObject Also known as: get_users_by_partner

Get Partner users.



63
64
65
# File 'lib/cloudally/client/partners.rb', line 63

def partner_users
  get_paged("partners/users")
end

#partnersObject Also known as: get_partner

Get CloudAlly Partner settings.



8
9
10
# File 'lib/cloudally/client/partners.rb', line 8

def partners
  get("partners")
end