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_share(group_id, resource_id, options = {}) click to toggle source

Create a new share.

# File lib/profitbricks/usermanagement.rb, line 31
def create_share(group_id, resource_id, options = {})
  ProfitBricks::Share.create(group_id, resource_id, 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_share(group_id, share_id) click to toggle source

Retrieve a share.

# File lib/profitbricks/usermanagement.rb, line 26
def get_share(group_id, share_id)
  ProfitBricks::Share.get(group_id, share_id)
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_share(group_id, options = {}) click to toggle source

List all shares.

# File lib/profitbricks/usermanagement.rb, line 21
def list_share(group_id, options = {})
  ProfitBricks::Share.list(group_id, 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