Class: SolusVM::Reseller
Overview
SolusVM::Server is the class for working with reseller accounts.
Constant Summary
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary (collapse)
-
- (Object) change_resources(username, options = {})
Changes the available resources for a specific reseller.
-
- (Object) create(options = {})
Creates a reseller.
-
- (Object) delete(username)
Deletes an existing reseller.
-
- (Object) info(username)
Retrieves information from an existing reseller.
-
- (Object) list
Lists existing resellers.
Methods inherited from Base
#api_endpoint, #api_id, #api_key, #api_login, #api_options, #conn, #initialize, #log_messages, #parse_error, #parse_response, #parse_returned_params_as_list, #perform_request, #ssl_option, #statusmsg, #successful?, #validate_server_type
Constructor Details
This class inherits a constructor from SolusVM::Base
Instance Method Details
- (Object) change_resources(username, options = {})
Changes the available resources for a specific reseller.
47 48 49 |
# File 'lib/solusvm/reseller.rb', line 47 def change_resources(username, = {}) perform_request(.merge(action: 'reseller-modifyresources', username: username)) && returned_parameters end |
- (Object) create(options = {})
Creates a reseller.
37 38 39 |
# File 'lib/solusvm/reseller.rb', line 37 def create( = {}) perform_request(.merge(action: 'reseller-create')) && returned_parameters end |
- (Object) delete(username)
Deletes an existing reseller.
64 65 66 |
# File 'lib/solusvm/reseller.rb', line 64 def delete(username) perform_request(action: 'reseller-delete', username: username) end |
- (Object) info(username)
Retrieves information from an existing reseller.
57 58 59 |
# File 'lib/solusvm/reseller.rb', line 57 def info(username) perform_request(action: 'reseller-info', username: username) && returned_parameters end |
- (Object) list
Lists existing resellers.
71 72 73 74 |
# File 'lib/solusvm/reseller.rb', line 71 def list perform_request(action: 'reseller-list') parse_returned_params_as_list('usernames') end |