Team description added to Team.py (#753)

* team description added to Team.py

* minor correction on initAttributes
This commit is contained in:
Manu Hortet
2018-04-17 18:22:11 +08:00
committed by Wan Liuyang
parent 0dba048f5c
commit 980b67f930
+11
View File
@@ -83,6 +83,14 @@ class Team(github.GithubObject.CompletableGithubObject):
self._completeIfNotSet(self._name)
return self._name.value
@property
def description(self):
"""
:type: string
"""
self._completeIfNotSet(self._description)
return self.description.value
@property
def permission(self):
"""
@@ -317,6 +325,7 @@ class Team(github.GithubObject.CompletableGithubObject):
self._members_count = github.GithubObject.NotSet
self._members_url = github.GithubObject.NotSet
self._name = github.GithubObject.NotSet
self._description = github.GithubObject.NotSet
self._permission = github.GithubObject.NotSet
self._repos_count = github.GithubObject.NotSet
self._repositories_url = github.GithubObject.NotSet
@@ -333,6 +342,8 @@ class Team(github.GithubObject.CompletableGithubObject):
self._members_url = self._makeStringAttribute(attributes["members_url"])
if "name" in attributes: # pragma no branch
self._name = self._makeStringAttribute(attributes["name"])
if "description" in attributes: # pragma no branch
self._description = self._makeStringAttribute(attributes["description"])
if "permission" in attributes: # pragma no branch
self._permission = self._makeStringAttribute(attributes["permission"])
if "repos_count" in attributes: # pragma no branch