class ProfitBricks::UserManagement
UserManagement
class
Public Class Methods
create_group(options = {})
click to toggle source
Create a new group.
# File lib/profitbricks/usermanagement.rb, line 16 def create_group(options = {}) ProfitBricks::Group.create(options) end
create_user(options = {})
click to toggle source
Create a new user.
# File lib/profitbricks/usermanagement.rb, line 46 def create_user(options = {}) ProfitBricks::User.create(options) end
get_group(group_id)
click to toggle source
Retrieve a group.
# File lib/profitbricks/usermanagement.rb, line 11 def get_group(group_id) ProfitBricks::Group.get(group_id) end
get_resoruce(resource_type, resource_id, options = {})
click to toggle source
Retrieve a resource.
# File lib/profitbricks/usermanagement.rb, line 56 def get_resoruce(resource_type, resource_id, options = {}) ProfitBricks::Resource.get(resource_type, resource_id, options) end
get_user(user_id)
click to toggle source
Retrieve a user.
# File lib/profitbricks/usermanagement.rb, line 41 def get_user(user_id) ProfitBricks::User.get(user_id) end
list_group(options = {})
click to toggle source
List all groups.
# File lib/profitbricks/usermanagement.rb, line 6 def list_group(options = {}) ProfitBricks::Group.list(options) end
list_resource(options = {})
click to toggle source
List all resources.
# File lib/profitbricks/usermanagement.rb, line 51 def list_resource(options = {}) ProfitBricks::Resource.list(options) end
list_user(options = {})
click to toggle source
List all groups.
# File lib/profitbricks/usermanagement.rb, line 36 def list_user(options = {}) ProfitBricks::User.list(options) end