mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Add many missing attributes
This commit is contained in:
@@ -68,6 +68,38 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
This class represents Repositorys. The reference can be found here http://developer.github.com/v3/repos/
|
||||
"""
|
||||
|
||||
@property
|
||||
def archive_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._archive_url)
|
||||
return self._NoneIfNotSet(self._archive_url)
|
||||
|
||||
@property
|
||||
def assignees_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._assignees_url)
|
||||
return self._NoneIfNotSet(self._assignees_url)
|
||||
|
||||
@property
|
||||
def blobs_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._blobs_url)
|
||||
return self._NoneIfNotSet(self._blobs_url)
|
||||
|
||||
@property
|
||||
def branches_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._branches_url)
|
||||
return self._NoneIfNotSet(self._branches_url)
|
||||
|
||||
@property
|
||||
def clone_url(self):
|
||||
"""
|
||||
@@ -76,6 +108,54 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._clone_url)
|
||||
return self._NoneIfNotSet(self._clone_url)
|
||||
|
||||
@property
|
||||
def collaborators_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._collaborators_url)
|
||||
return self._NoneIfNotSet(self._collaborators_url)
|
||||
|
||||
@property
|
||||
def comments_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._comments_url)
|
||||
return self._NoneIfNotSet(self._comments_url)
|
||||
|
||||
@property
|
||||
def commits_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._commits_url)
|
||||
return self._NoneIfNotSet(self._commits_url)
|
||||
|
||||
@property
|
||||
def compare_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._compare_url)
|
||||
return self._NoneIfNotSet(self._compare_url)
|
||||
|
||||
@property
|
||||
def contents_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._contents_url)
|
||||
return self._NoneIfNotSet(self._contents_url)
|
||||
|
||||
@property
|
||||
def contributors_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._contributors_url)
|
||||
return self._NoneIfNotSet(self._contributors_url)
|
||||
|
||||
@property
|
||||
def created_at(self):
|
||||
"""
|
||||
@@ -84,6 +164,14 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._created_at)
|
||||
return self._NoneIfNotSet(self._created_at)
|
||||
|
||||
@property
|
||||
def default_branch(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._default_branch)
|
||||
return self._NoneIfNotSet(self._default_branch)
|
||||
|
||||
@property
|
||||
def description(self):
|
||||
"""
|
||||
@@ -92,6 +180,22 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._description)
|
||||
return self._NoneIfNotSet(self._description)
|
||||
|
||||
@property
|
||||
def downloads_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._downloads_url)
|
||||
return self._NoneIfNotSet(self._downloads_url)
|
||||
|
||||
@property
|
||||
def events_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._events_url)
|
||||
return self._NoneIfNotSet(self._events_url)
|
||||
|
||||
@property
|
||||
def fork(self):
|
||||
"""
|
||||
@@ -108,6 +212,22 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._forks)
|
||||
return self._NoneIfNotSet(self._forks)
|
||||
|
||||
@property
|
||||
def forks_count(self):
|
||||
"""
|
||||
:type: integer
|
||||
"""
|
||||
self._completeIfNotSet(self._forks_count)
|
||||
return self._NoneIfNotSet(self._forks_count)
|
||||
|
||||
@property
|
||||
def forks_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._forks_url)
|
||||
return self._NoneIfNotSet(self._forks_url)
|
||||
|
||||
@property
|
||||
def full_name(self):
|
||||
"""
|
||||
@@ -116,6 +236,30 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._full_name)
|
||||
return self._NoneIfNotSet(self._full_name)
|
||||
|
||||
@property
|
||||
def git_commits_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._git_commits_url)
|
||||
return self._NoneIfNotSet(self._git_commits_url)
|
||||
|
||||
@property
|
||||
def git_refs_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._git_refs_url)
|
||||
return self._NoneIfNotSet(self._git_refs_url)
|
||||
|
||||
@property
|
||||
def git_tags_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._git_tags_url)
|
||||
return self._NoneIfNotSet(self._git_tags_url)
|
||||
|
||||
@property
|
||||
def git_url(self):
|
||||
"""
|
||||
@@ -156,6 +300,14 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._homepage)
|
||||
return self._NoneIfNotSet(self._homepage)
|
||||
|
||||
@property
|
||||
def hooks_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._hooks_url)
|
||||
return self._NoneIfNotSet(self._hooks_url)
|
||||
|
||||
@property
|
||||
def html_url(self):
|
||||
"""
|
||||
@@ -172,6 +324,46 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._id)
|
||||
return self._NoneIfNotSet(self._id)
|
||||
|
||||
@property
|
||||
def issue_comment_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._issue_comment_url)
|
||||
return self._NoneIfNotSet(self._issue_comment_url)
|
||||
|
||||
@property
|
||||
def issue_events_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._issue_events_url)
|
||||
return self._NoneIfNotSet(self._issue_events_url)
|
||||
|
||||
@property
|
||||
def issues_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._issues_url)
|
||||
return self._NoneIfNotSet(self._issues_url)
|
||||
|
||||
@property
|
||||
def keys_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._keys_url)
|
||||
return self._NoneIfNotSet(self._keys_url)
|
||||
|
||||
@property
|
||||
def labels_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._labels_url)
|
||||
return self._NoneIfNotSet(self._labels_url)
|
||||
|
||||
@property
|
||||
def language(self):
|
||||
"""
|
||||
@@ -180,6 +372,14 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._language)
|
||||
return self._NoneIfNotSet(self._language)
|
||||
|
||||
@property
|
||||
def languages_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._languages_url)
|
||||
return self._NoneIfNotSet(self._languages_url)
|
||||
|
||||
@property
|
||||
def master_branch(self):
|
||||
"""
|
||||
@@ -188,6 +388,30 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._master_branch)
|
||||
return self._NoneIfNotSet(self._master_branch)
|
||||
|
||||
@property
|
||||
def merges_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._merges_url)
|
||||
return self._NoneIfNotSet(self._merges_url)
|
||||
|
||||
@property
|
||||
def milestones_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._milestones_url)
|
||||
return self._NoneIfNotSet(self._milestones_url)
|
||||
|
||||
@property
|
||||
def mirror_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._mirror_url)
|
||||
return self._NoneIfNotSet(self._mirror_url)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""
|
||||
@@ -196,6 +420,22 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._name)
|
||||
return self._NoneIfNotSet(self._name)
|
||||
|
||||
@property
|
||||
def network_count(self):
|
||||
"""
|
||||
:type: integer
|
||||
"""
|
||||
self._completeIfNotSet(self._network_count)
|
||||
return self._NoneIfNotSet(self._network_count)
|
||||
|
||||
@property
|
||||
def notifications_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._notifications_url)
|
||||
return self._NoneIfNotSet(self._notifications_url)
|
||||
|
||||
@property
|
||||
def open_issues(self):
|
||||
"""
|
||||
@@ -204,6 +444,14 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._open_issues)
|
||||
return self._NoneIfNotSet(self._open_issues)
|
||||
|
||||
@property
|
||||
def open_issues_count(self):
|
||||
"""
|
||||
:type: integer
|
||||
"""
|
||||
self._completeIfNotSet(self._open_issues_count)
|
||||
return self._NoneIfNotSet(self._open_issues_count)
|
||||
|
||||
@property
|
||||
def organization(self):
|
||||
"""
|
||||
@@ -244,6 +492,14 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._private)
|
||||
return self._NoneIfNotSet(self._private)
|
||||
|
||||
@property
|
||||
def pulls_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._pulls_url)
|
||||
return self._NoneIfNotSet(self._pulls_url)
|
||||
|
||||
@property
|
||||
def pushed_at(self):
|
||||
"""
|
||||
@@ -276,6 +532,38 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._ssh_url)
|
||||
return self._NoneIfNotSet(self._ssh_url)
|
||||
|
||||
@property
|
||||
def stargazers_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._stargazers_url)
|
||||
return self._NoneIfNotSet(self._stargazers_url)
|
||||
|
||||
@property
|
||||
def statuses_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._statuses_url)
|
||||
return self._NoneIfNotSet(self._statuses_url)
|
||||
|
||||
@property
|
||||
def subscribers_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._subscribers_url)
|
||||
return self._NoneIfNotSet(self._subscribers_url)
|
||||
|
||||
@property
|
||||
def subscription_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._subscription_url)
|
||||
return self._NoneIfNotSet(self._subscription_url)
|
||||
|
||||
@property
|
||||
def svn_url(self):
|
||||
"""
|
||||
@@ -284,6 +572,30 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._svn_url)
|
||||
return self._NoneIfNotSet(self._svn_url)
|
||||
|
||||
@property
|
||||
def tags_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._tags_url)
|
||||
return self._NoneIfNotSet(self._tags_url)
|
||||
|
||||
@property
|
||||
def teams_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._teams_url)
|
||||
return self._NoneIfNotSet(self._teams_url)
|
||||
|
||||
@property
|
||||
def trees_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
self._completeIfNotSet(self._trees_url)
|
||||
return self._NoneIfNotSet(self._trees_url)
|
||||
|
||||
@property
|
||||
def updated_at(self):
|
||||
"""
|
||||
@@ -308,6 +620,14 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self._completeIfNotSet(self._watchers)
|
||||
return self._NoneIfNotSet(self._watchers)
|
||||
|
||||
@property
|
||||
def watchers_count(self):
|
||||
"""
|
||||
:type: integer
|
||||
"""
|
||||
self._completeIfNotSet(self._watchers_count)
|
||||
return self._NoneIfNotSet(self._watchers_count)
|
||||
|
||||
def add_to_collaborators(self, collaborator):
|
||||
"""
|
||||
:calls: `PUT /repos/:owner/:repo/collaborators/:user <http://developer.github.com/v3/repos/collaborators>`_
|
||||
@@ -1567,56 +1887,150 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
return self.owner.login + "/" + self.name
|
||||
|
||||
def _initAttributes(self):
|
||||
self._archive_url = github.GithubObject.NotSet
|
||||
self._assignees_url = github.GithubObject.NotSet
|
||||
self._blobs_url = github.GithubObject.NotSet
|
||||
self._branches_url = github.GithubObject.NotSet
|
||||
self._clone_url = github.GithubObject.NotSet
|
||||
self._collaborators_url = github.GithubObject.NotSet
|
||||
self._comments_url = github.GithubObject.NotSet
|
||||
self._commits_url = github.GithubObject.NotSet
|
||||
self._compare_url = github.GithubObject.NotSet
|
||||
self._contents_url = github.GithubObject.NotSet
|
||||
self._contributors_url = github.GithubObject.NotSet
|
||||
self._created_at = github.GithubObject.NotSet
|
||||
self._default_branch = github.GithubObject.NotSet
|
||||
self._description = github.GithubObject.NotSet
|
||||
self._downloads_url = github.GithubObject.NotSet
|
||||
self._events_url = github.GithubObject.NotSet
|
||||
self._fork = github.GithubObject.NotSet
|
||||
self._forks = github.GithubObject.NotSet
|
||||
self._forks_count = github.GithubObject.NotSet
|
||||
self._forks_url = github.GithubObject.NotSet
|
||||
self._full_name = github.GithubObject.NotSet
|
||||
self._git_commits_url = github.GithubObject.NotSet
|
||||
self._git_refs_url = github.GithubObject.NotSet
|
||||
self._git_tags_url = github.GithubObject.NotSet
|
||||
self._git_url = github.GithubObject.NotSet
|
||||
self._has_downloads = github.GithubObject.NotSet
|
||||
self._has_issues = github.GithubObject.NotSet
|
||||
self._has_wiki = github.GithubObject.NotSet
|
||||
self._homepage = github.GithubObject.NotSet
|
||||
self._hooks_url = github.GithubObject.NotSet
|
||||
self._html_url = github.GithubObject.NotSet
|
||||
self._id = github.GithubObject.NotSet
|
||||
self._issue_comment_url = github.GithubObject.NotSet
|
||||
self._issue_events_url = github.GithubObject.NotSet
|
||||
self._issues_url = github.GithubObject.NotSet
|
||||
self._keys_url = github.GithubObject.NotSet
|
||||
self._labels_url = github.GithubObject.NotSet
|
||||
self._language = github.GithubObject.NotSet
|
||||
self._languages_url = github.GithubObject.NotSet
|
||||
self._master_branch = github.GithubObject.NotSet
|
||||
self._merges_url = github.GithubObject.NotSet
|
||||
self._milestones_url = github.GithubObject.NotSet
|
||||
self._mirror_url = github.GithubObject.NotSet
|
||||
self._name = github.GithubObject.NotSet
|
||||
self._network_count = github.GithubObject.NotSet
|
||||
self._notifications_url = github.GithubObject.NotSet
|
||||
self._open_issues = github.GithubObject.NotSet
|
||||
self._open_issues_count = github.GithubObject.NotSet
|
||||
self._organization = github.GithubObject.NotSet
|
||||
self._owner = github.GithubObject.NotSet
|
||||
self._parent = github.GithubObject.NotSet
|
||||
self._permissions = github.GithubObject.NotSet
|
||||
self._private = github.GithubObject.NotSet
|
||||
self._pulls_url = github.GithubObject.NotSet
|
||||
self._pushed_at = github.GithubObject.NotSet
|
||||
self._size = github.GithubObject.NotSet
|
||||
self._source = github.GithubObject.NotSet
|
||||
self._ssh_url = github.GithubObject.NotSet
|
||||
self._stargazers_url = github.GithubObject.NotSet
|
||||
self._statuses_url = github.GithubObject.NotSet
|
||||
self._subscribers_url = github.GithubObject.NotSet
|
||||
self._subscription_url = github.GithubObject.NotSet
|
||||
self._svn_url = github.GithubObject.NotSet
|
||||
self._tags_url = github.GithubObject.NotSet
|
||||
self._teams_url = github.GithubObject.NotSet
|
||||
self._trees_url = github.GithubObject.NotSet
|
||||
self._updated_at = github.GithubObject.NotSet
|
||||
self._url = github.GithubObject.NotSet
|
||||
self._watchers = github.GithubObject.NotSet
|
||||
self._watchers_count = github.GithubObject.NotSet
|
||||
|
||||
def _useAttributes(self, attributes):
|
||||
if "archive_url" in attributes: # pragma no branch
|
||||
assert attributes["archive_url"] is None or isinstance(attributes["archive_url"], (str, unicode)), attributes["archive_url"]
|
||||
self._archive_url = attributes["archive_url"]
|
||||
if "assignees_url" in attributes: # pragma no branch
|
||||
assert attributes["assignees_url"] is None or isinstance(attributes["assignees_url"], (str, unicode)), attributes["assignees_url"]
|
||||
self._assignees_url = attributes["assignees_url"]
|
||||
if "blobs_url" in attributes: # pragma no branch
|
||||
assert attributes["blobs_url"] is None or isinstance(attributes["blobs_url"], (str, unicode)), attributes["blobs_url"]
|
||||
self._blobs_url = attributes["blobs_url"]
|
||||
if "branches_url" in attributes: # pragma no branch
|
||||
assert attributes["branches_url"] is None or isinstance(attributes["branches_url"], (str, unicode)), attributes["branches_url"]
|
||||
self._branches_url = attributes["branches_url"]
|
||||
if "clone_url" in attributes: # pragma no branch
|
||||
assert attributes["clone_url"] is None or isinstance(attributes["clone_url"], (str, unicode)), attributes["clone_url"]
|
||||
self._clone_url = attributes["clone_url"]
|
||||
if "collaborators_url" in attributes: # pragma no branch
|
||||
assert attributes["collaborators_url"] is None or isinstance(attributes["collaborators_url"], (str, unicode)), attributes["collaborators_url"]
|
||||
self._collaborators_url = attributes["collaborators_url"]
|
||||
if "comments_url" in attributes: # pragma no branch
|
||||
assert attributes["comments_url"] is None or isinstance(attributes["comments_url"], (str, unicode)), attributes["comments_url"]
|
||||
self._comments_url = attributes["comments_url"]
|
||||
if "commits_url" in attributes: # pragma no branch
|
||||
assert attributes["commits_url"] is None or isinstance(attributes["commits_url"], (str, unicode)), attributes["commits_url"]
|
||||
self._commits_url = attributes["commits_url"]
|
||||
if "compare_url" in attributes: # pragma no branch
|
||||
assert attributes["compare_url"] is None or isinstance(attributes["compare_url"], (str, unicode)), attributes["compare_url"]
|
||||
self._compare_url = attributes["compare_url"]
|
||||
if "contents_url" in attributes: # pragma no branch
|
||||
assert attributes["contents_url"] is None or isinstance(attributes["contents_url"], (str, unicode)), attributes["contents_url"]
|
||||
self._contents_url = attributes["contents_url"]
|
||||
if "contributors_url" in attributes: # pragma no branch
|
||||
assert attributes["contributors_url"] is None or isinstance(attributes["contributors_url"], (str, unicode)), attributes["contributors_url"]
|
||||
self._contributors_url = attributes["contributors_url"]
|
||||
if "created_at" in attributes: # pragma no branch
|
||||
assert attributes["created_at"] is None or isinstance(attributes["created_at"], (str, unicode)), attributes["created_at"]
|
||||
self._created_at = self._parseDatetime(attributes["created_at"])
|
||||
if "default_branch" in attributes: # pragma no branch
|
||||
assert attributes["default_branch"] is None or isinstance(attributes["default_branch"], (str, unicode)), attributes["default_branch"]
|
||||
self._default_branch = attributes["default_branch"]
|
||||
if "description" in attributes: # pragma no branch
|
||||
assert attributes["description"] is None or isinstance(attributes["description"], (str, unicode)), attributes["description"]
|
||||
self._description = attributes["description"]
|
||||
if "downloads_url" in attributes: # pragma no branch
|
||||
assert attributes["downloads_url"] is None or isinstance(attributes["downloads_url"], (str, unicode)), attributes["downloads_url"]
|
||||
self._downloads_url = attributes["downloads_url"]
|
||||
if "events_url" in attributes: # pragma no branch
|
||||
assert attributes["events_url"] is None or isinstance(attributes["events_url"], (str, unicode)), attributes["events_url"]
|
||||
self._events_url = attributes["events_url"]
|
||||
if "fork" in attributes: # pragma no branch
|
||||
assert attributes["fork"] is None or isinstance(attributes["fork"], bool), attributes["fork"]
|
||||
self._fork = attributes["fork"]
|
||||
if "forks" in attributes: # pragma no branch
|
||||
assert attributes["forks"] is None or isinstance(attributes["forks"], (int, long)), attributes["forks"]
|
||||
self._forks = attributes["forks"]
|
||||
if "forks_count" in attributes: # pragma no branch
|
||||
assert attributes["forks_count"] is None or isinstance(attributes["forks_count"], (int, long)), attributes["forks_count"]
|
||||
self._forks_count = attributes["forks_count"]
|
||||
if "forks_url" in attributes: # pragma no branch
|
||||
assert attributes["forks_url"] is None or isinstance(attributes["forks_url"], (str, unicode)), attributes["forks_url"]
|
||||
self._forks_url = attributes["forks_url"]
|
||||
if "full_name" in attributes: # pragma no branch
|
||||
assert attributes["full_name"] is None or isinstance(attributes["full_name"], (str, unicode)), attributes["full_name"]
|
||||
self._full_name = attributes["full_name"]
|
||||
if "git_commits_url" in attributes: # pragma no branch
|
||||
assert attributes["git_commits_url"] is None or isinstance(attributes["git_commits_url"], (str, unicode)), attributes["git_commits_url"]
|
||||
self._git_commits_url = attributes["git_commits_url"]
|
||||
if "git_refs_url" in attributes: # pragma no branch
|
||||
assert attributes["git_refs_url"] is None or isinstance(attributes["git_refs_url"], (str, unicode)), attributes["git_refs_url"]
|
||||
self._git_refs_url = attributes["git_refs_url"]
|
||||
if "git_tags_url" in attributes: # pragma no branch
|
||||
assert attributes["git_tags_url"] is None or isinstance(attributes["git_tags_url"], (str, unicode)), attributes["git_tags_url"]
|
||||
self._git_tags_url = attributes["git_tags_url"]
|
||||
if "git_url" in attributes: # pragma no branch
|
||||
assert attributes["git_url"] is None or isinstance(attributes["git_url"], (str, unicode)), attributes["git_url"]
|
||||
self._git_url = attributes["git_url"]
|
||||
@@ -1632,24 +2046,63 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
if "homepage" in attributes: # pragma no branch
|
||||
assert attributes["homepage"] is None or isinstance(attributes["homepage"], (str, unicode)), attributes["homepage"]
|
||||
self._homepage = attributes["homepage"]
|
||||
if "hooks_url" in attributes: # pragma no branch
|
||||
assert attributes["hooks_url"] is None or isinstance(attributes["hooks_url"], (str, unicode)), attributes["hooks_url"]
|
||||
self._hooks_url = attributes["hooks_url"]
|
||||
if "html_url" in attributes: # pragma no branch
|
||||
assert attributes["html_url"] is None or isinstance(attributes["html_url"], (str, unicode)), attributes["html_url"]
|
||||
self._html_url = attributes["html_url"]
|
||||
if "id" in attributes: # pragma no branch
|
||||
assert attributes["id"] is None or isinstance(attributes["id"], (int, long)), attributes["id"]
|
||||
self._id = attributes["id"]
|
||||
if "issue_comment_url" in attributes: # pragma no branch
|
||||
assert attributes["issue_comment_url"] is None or isinstance(attributes["issue_comment_url"], (str, unicode)), attributes["issue_comment_url"]
|
||||
self._issue_comment_url = attributes["issue_comment_url"]
|
||||
if "issue_events_url" in attributes: # pragma no branch
|
||||
assert attributes["issue_events_url"] is None or isinstance(attributes["issue_events_url"], (str, unicode)), attributes["issue_events_url"]
|
||||
self._issue_events_url = attributes["issue_events_url"]
|
||||
if "issues_url" in attributes: # pragma no branch
|
||||
assert attributes["issues_url"] is None or isinstance(attributes["issues_url"], (str, unicode)), attributes["issues_url"]
|
||||
self._issues_url = attributes["issues_url"]
|
||||
if "keys_url" in attributes: # pragma no branch
|
||||
assert attributes["keys_url"] is None or isinstance(attributes["keys_url"], (str, unicode)), attributes["keys_url"]
|
||||
self._keys_url = attributes["keys_url"]
|
||||
if "labels_url" in attributes: # pragma no branch
|
||||
assert attributes["labels_url"] is None or isinstance(attributes["labels_url"], (str, unicode)), attributes["labels_url"]
|
||||
self._labels_url = attributes["labels_url"]
|
||||
if "language" in attributes: # pragma no branch
|
||||
assert attributes["language"] is None or isinstance(attributes["language"], (str, unicode)), attributes["language"]
|
||||
self._language = attributes["language"]
|
||||
if "languages_url" in attributes: # pragma no branch
|
||||
assert attributes["languages_url"] is None or isinstance(attributes["languages_url"], (str, unicode)), attributes["languages_url"]
|
||||
self._languages_url = attributes["languages_url"]
|
||||
if "master_branch" in attributes: # pragma no branch
|
||||
assert attributes["master_branch"] is None or isinstance(attributes["master_branch"], (str, unicode)), attributes["master_branch"]
|
||||
self._master_branch = attributes["master_branch"]
|
||||
if "merges_url" in attributes: # pragma no branch
|
||||
assert attributes["merges_url"] is None or isinstance(attributes["merges_url"], (str, unicode)), attributes["merges_url"]
|
||||
self._merges_url = attributes["merges_url"]
|
||||
if "milestones_url" in attributes: # pragma no branch
|
||||
assert attributes["milestones_url"] is None or isinstance(attributes["milestones_url"], (str, unicode)), attributes["milestones_url"]
|
||||
self._milestones_url = attributes["milestones_url"]
|
||||
if "mirror_url" in attributes: # pragma no branch
|
||||
assert attributes["mirror_url"] is None or isinstance(attributes["mirror_url"], (str, unicode)), attributes["mirror_url"]
|
||||
self._mirror_url = attributes["mirror_url"]
|
||||
if "name" in attributes: # pragma no branch
|
||||
assert attributes["name"] is None or isinstance(attributes["name"], (str, unicode)), attributes["name"]
|
||||
self._name = attributes["name"]
|
||||
if "network_count" in attributes: # pragma no branch
|
||||
assert attributes["network_count"] is None or isinstance(attributes["network_count"], (int, long)), attributes["network_count"]
|
||||
self._network_count = attributes["network_count"]
|
||||
if "notifications_url" in attributes: # pragma no branch
|
||||
assert attributes["notifications_url"] is None or isinstance(attributes["notifications_url"], (str, unicode)), attributes["notifications_url"]
|
||||
self._notifications_url = attributes["notifications_url"]
|
||||
if "open_issues" in attributes: # pragma no branch
|
||||
assert attributes["open_issues"] is None or isinstance(attributes["open_issues"], (int, long)), attributes["open_issues"]
|
||||
self._open_issues = attributes["open_issues"]
|
||||
if "open_issues_count" in attributes: # pragma no branch
|
||||
assert attributes["open_issues_count"] is None or isinstance(attributes["open_issues_count"], (int, long)), attributes["open_issues_count"]
|
||||
self._open_issues_count = attributes["open_issues_count"]
|
||||
if "organization" in attributes: # pragma no branch
|
||||
assert attributes["organization"] is None or isinstance(attributes["organization"], dict), attributes["organization"]
|
||||
self._organization = None if attributes["organization"] is None else github.Organization.Organization(self._requester, self._headers, attributes["organization"], completed=False)
|
||||
@@ -1665,6 +2118,9 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
if "private" in attributes: # pragma no branch
|
||||
assert attributes["private"] is None or isinstance(attributes["private"], bool), attributes["private"]
|
||||
self._private = attributes["private"]
|
||||
if "pulls_url" in attributes: # pragma no branch
|
||||
assert attributes["pulls_url"] is None or isinstance(attributes["pulls_url"], (str, unicode)), attributes["pulls_url"]
|
||||
self._pulls_url = attributes["pulls_url"]
|
||||
if "pushed_at" in attributes: # pragma no branch
|
||||
assert attributes["pushed_at"] is None or isinstance(attributes["pushed_at"], (str, unicode)), attributes["pushed_at"]
|
||||
self._pushed_at = self._parseDatetime(attributes["pushed_at"])
|
||||
@@ -1677,9 +2133,30 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
if "ssh_url" in attributes: # pragma no branch
|
||||
assert attributes["ssh_url"] is None or isinstance(attributes["ssh_url"], (str, unicode)), attributes["ssh_url"]
|
||||
self._ssh_url = attributes["ssh_url"]
|
||||
if "stargazers_url" in attributes: # pragma no branch
|
||||
assert attributes["stargazers_url"] is None or isinstance(attributes["stargazers_url"], (str, unicode)), attributes["stargazers_url"]
|
||||
self._stargazers_url = attributes["stargazers_url"]
|
||||
if "statuses_url" in attributes: # pragma no branch
|
||||
assert attributes["statuses_url"] is None or isinstance(attributes["statuses_url"], (str, unicode)), attributes["statuses_url"]
|
||||
self._statuses_url = attributes["statuses_url"]
|
||||
if "subscribers_url" in attributes: # pragma no branch
|
||||
assert attributes["subscribers_url"] is None or isinstance(attributes["subscribers_url"], (str, unicode)), attributes["subscribers_url"]
|
||||
self._subscribers_url = attributes["subscribers_url"]
|
||||
if "subscription_url" in attributes: # pragma no branch
|
||||
assert attributes["subscription_url"] is None or isinstance(attributes["subscription_url"], (str, unicode)), attributes["subscription_url"]
|
||||
self._subscription_url = attributes["subscription_url"]
|
||||
if "svn_url" in attributes: # pragma no branch
|
||||
assert attributes["svn_url"] is None or isinstance(attributes["svn_url"], (str, unicode)), attributes["svn_url"]
|
||||
self._svn_url = attributes["svn_url"]
|
||||
if "tags_url" in attributes: # pragma no branch
|
||||
assert attributes["tags_url"] is None or isinstance(attributes["tags_url"], (str, unicode)), attributes["tags_url"]
|
||||
self._tags_url = attributes["tags_url"]
|
||||
if "teams_url" in attributes: # pragma no branch
|
||||
assert attributes["teams_url"] is None or isinstance(attributes["teams_url"], (str, unicode)), attributes["teams_url"]
|
||||
self._teams_url = attributes["teams_url"]
|
||||
if "trees_url" in attributes: # pragma no branch
|
||||
assert attributes["trees_url"] is None or isinstance(attributes["trees_url"], (str, unicode)), attributes["trees_url"]
|
||||
self._trees_url = attributes["trees_url"]
|
||||
if "updated_at" in attributes: # pragma no branch
|
||||
assert attributes["updated_at"] is None or isinstance(attributes["updated_at"], (str, unicode)), attributes["updated_at"]
|
||||
self._updated_at = self._parseDatetime(attributes["updated_at"])
|
||||
@@ -1689,3 +2166,6 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
if "watchers" in attributes: # pragma no branch
|
||||
assert attributes["watchers"] is None or isinstance(attributes["watchers"], (int, long)), attributes["watchers"]
|
||||
self._watchers = attributes["watchers"]
|
||||
if "watchers_count" in attributes: # pragma no branch
|
||||
assert attributes["watchers_count"] is None or isinstance(attributes["watchers_count"], (int, long)), attributes["watchers_count"]
|
||||
self._watchers_count = attributes["watchers_count"]
|
||||
|
||||
Reference in New Issue
Block a user