# Path: flask_github/client/messages.py
# class Team(msgs.Message):
#   name = msgs.StringField(1)
#   repo_names = msgs.StringField(2, repeated=True)
#   permission = msgs.StringField(3)
# 
# Path: flask_github/client/requests.py
# class TeamResponse(msgs.Message):
#   response = msgs.MessageField('Team', 1)
# 
# Path: flask_github/client/requests.py
# class TeamListResponse(msgs.Message):
#   response = msgs.MessageField('Team', 1, repeated=True)
# 
# Path: flask_github/client/requests.py
# class RepoResponse(msgs.Message):
#   response = msgs.MessageField('Repo', 1)
# 
# Path: flask_github/client/requests.py
# class RepoListResponse(msgs.Message):
#   response = msgs.MessageField('Repo', 1, repeated=True)
# 
# Path: flask_github/client/requests.py
# class UserResponse(msgs.Message):
#   response = msgs.MessageField('User', 1)
# 
# Path: flask_github/client/requests.py
# class UserListResponse(msgs.Message):
#   response = msgs.MessageField('User', 1, repeated=True)


from ..messages import Team
from ..requests import TeamResponse
from ..requests import TeamListResponse
from ..requests import RepoResponse
from ..requests import RepoListResponse
from ..requests import UserResponse
from ..requests import UserListResponse

      'teams/%s' % id)

  # members..

  def list_members(self, id):
    return self.client.get(
      'teams/%s/members' % id, msg_type=UserListResponse)

  def get_member(self, id, user=None):
    return self.client.get(
      'teams/%s/members/%s' % (
        id, self.client.user(user)), msg_type=UserResponse)

  def add_member(self, id, user):
    return self.client.put(
      'teams/%s/members/%s' % (id, self.client.user(user)))

  def delete_member(self, id, user):
    return self.client.delete(
      'teams/%s/members/%s' % (id, self.client.user(user)))

  # repos..

  def list_repos(self, id):
    return self.client.get(
      'teams/%s/repos' % id, msg_type=RepoListResponse)

  def get_repo(self, id, user, repo):
    return self.client.get(
      'teams/%s/repos/%s/%s' % (

# Path: flask_github/client/messages.py
# class Team(msgs.Message):
#   name = msgs.StringField(1)
#   repo_names = msgs.StringField(2, repeated=True)
#   permission = msgs.StringField(3)
# 
# Path: flask_github/client/requests.py
# class TeamResponse(msgs.Message):
#   response = msgs.MessageField('Team', 1)
# 
# Path: flask_github/client/requests.py
# class TeamListResponse(msgs.Message):
#   response = msgs.MessageField('Team', 1, repeated=True)
# 
# Path: flask_github/client/requests.py
# class RepoResponse(msgs.Message):
#   response = msgs.MessageField('Repo', 1)
# 
# Path: flask_github/client/requests.py
# class RepoListResponse(msgs.Message):
#   response = msgs.MessageField('Repo', 1, repeated=True)
# 
# Path: flask_github/client/requests.py
# class UserResponse(msgs.Message):
#   response = msgs.MessageField('User', 1)
# 
# Path: flask_github/client/requests.py
# class UserListResponse(msgs.Message):
#   response = msgs.MessageField('User', 1, repeated=True)


# Path: flask_github/client/orgs/orgteams.py
from ..messages import Team
from ..requests import TeamResponse
from ..requests import TeamListResponse
from ..requests import RepoResponse
from ..requests import RepoListResponse
from ..requests import UserResponse
from ..requests import UserListResponse

      'teams/%s' % id)

  # members..

  def list_members(self, id):
    return self.client.get(
      'teams/%s/members' % id, msg_type=UserListResponse)

  def get_member(self, id, user=None):
    return self.client.get(
      'teams/%s/members/%s' % (
        id, self.client.user(user)), msg_type=UserResponse)

  def add_member(self, id, user):
    return self.client.put(
      'teams/%s/members/%s' % (id, self.client.user(user)))

  def delete_member(self, id, user):
    return self.client.delete(
      'teams/%s/members/%s' % (id, self.client.user(user)))

  # repos..

  def list_repos(self, id):
    return self.client.get(
      'teams/%s/repos' % id, msg_type=RepoListResponse)

  def get_repo(self, id, user, repo):
    return self.client.get(
      'teams/%s/repos/%s/%s' % (

        id, self.client.user(user), repo), msg_type=RepoResponse)
