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
-
#get_reseller_by_partner_id(partner_id) ⇒ Object
Get Partner resellers.
-
#get_resellers_list ⇒ Object
Get Partner resellers.
-
#partner_bills ⇒ Object
Get Partner bills.
-
#partner_resellers(partner_id = nil) ⇒ Object
Get Partner resellers.
-
#partner_status ⇒ Object
(also: #get_status_by_partner)
Get Partner bills.
-
#partner_tasks ⇒ Object
Get Partner tasks.
-
#partner_users ⇒ Object
(also: #get_users_by_partner)
Get Partner users.
-
#partners ⇒ Object
(also: #get_partner)
Get CloudAlly Partner settings.
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_list ⇒ Object
Get Partner resellers.
49 50 51 |
# File 'lib/cloudally/client/partners.rb', line 49 def get_resellers_list partner_resellers() end |
#partner_bills ⇒ Object
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_status ⇒ Object 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_tasks ⇒ Object
Get Partner tasks.
31 32 33 |
# File 'lib/cloudally/client/partners.rb', line 31 def partner_tasks get_paged("partners/tasks") end |
#partner_users ⇒ Object 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 |
#partners ⇒ Object 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 |