Package gitlab3 :: Class GitLab :: Class Team
[hide private]
[frames] | no frames]

Class Team

A team of users. This interface is deprecated for GitLab v6.0+. See http://github.com/gitlabhq/gitlabhq/blob/master/doc/api/user_teams.md

Nested Classes [hide private]
  Member
A member in a team.
  Project
A project associated with a user team.
Instance Methods [hide private]
 
members(limit=None, page=None, per_page=None)
Return a list of Team members.
 
find_member(find_all=False, cached=None, **kwargs)
Find the first matching Member whose properties match all of the key, value pairs given in the arguments.
 
member(id)
Return the Member specified by the given id.
 
add_member(user_id, access_level)
Add a new member to this Team
 
update_member(member)
Equivalent to member.save()
 
delete_member(member)
Equivalent to member.delete()
 
projects(limit=None, page=None, per_page=None)
Return a list of Team projects.
 
find_project(find_all=False, cached=None, **kwargs)
Find the first matching Project whose properties match all of the key, value pairs given in the arguments.
 
project(id)
Return the Project specified by the given id.
 
add_project(project_id, greatest_access_level)
Add a new project to this Team
 
delete_project(project)
Equivalent to project.delete()
Method Details [hide private]

members(limit=None, page=None, per_page=None)

 

Return a list of Team members.

limit can be given to specify the maximum list size.

page and per_page can be used for pagination.

limit should not be specified with either page or per_page. If it is, limit takes precedence.

find_member(find_all=False, cached=None, **kwargs)

 

Find the first matching Member whose properties match all of the key, value pairs given in the arguments.

If find_all is true, a list of all matching members will be returned. If a cached list is not given, the list to search will be queried from the server each time this is called.

Searching is done via an unoptimized, inefficient o(n) search.

All arguments must be named.

member(id)

 

Return the Member specified by the given id. get_member() may be used as an alias for this function.

add_member(user_id, access_level)

 

Add a new member to this Team

On success, the newly created object is returned.

projects(limit=None, page=None, per_page=None)

 

Return a list of Team projects.

limit can be given to specify the maximum list size.

page and per_page can be used for pagination.

limit should not be specified with either page or per_page. If it is, limit takes precedence.

find_project(find_all=False, cached=None, **kwargs)

 

Find the first matching Project whose properties match all of the key, value pairs given in the arguments.

If find_all is true, a list of all matching projects will be returned. If a cached list is not given, the list to search will be queried from the server each time this is called.

Searching is done via an unoptimized, inefficient o(n) search.

All arguments must be named.

project(id)

 

Return the Project specified by the given id. get_project() may be used as an alias for this function.

add_project(project_id, greatest_access_level)

 

Add a new project to this Team

On success, the newly created object is returned.