Generate some repetitive doc files

This commit is contained in:
Vincent Jacques
2012-12-29 08:47:23 +01:00
parent d99b7ef577
commit abf0867543
108 changed files with 2603 additions and 2601 deletions
+29
View File
@@ -17,32 +17,55 @@ import github.GithubObject
class UserKey(github.GithubObject.GithubObject):
"""
This class represents UserKeys as returned for example by http://developer.github.com/v3/todo
"""
@property
def id(self):
"""
:type: integer
"""
self._completeIfNotSet(self._id)
return self._NoneIfNotSet(self._id)
@property
def key(self):
"""
:type: string
"""
self._completeIfNotSet(self._key)
return self._NoneIfNotSet(self._key)
@property
def title(self):
"""
:type: string
"""
self._completeIfNotSet(self._title)
return self._NoneIfNotSet(self._title)
@property
def url(self):
"""
:type: string
"""
self._completeIfNotSet(self._url)
return self._NoneIfNotSet(self._url)
@property
def verified(self):
"""
:type: bool
"""
self._completeIfNotSet(self._verified)
return self._NoneIfNotSet(self._verified)
def delete(self):
"""
:calls: `DELETE /user/keys/:id <http://developer.github.com/v3/todo>`_
:rtype: None
"""
headers, data = self._requester.requestAndCheck(
"DELETE",
self.url,
@@ -51,6 +74,12 @@ class UserKey(github.GithubObject.GithubObject):
)
def edit(self, title=github.GithubObject.NotSet, key=github.GithubObject.NotSet):
"""
:calls: `PATCH /user/keys/:id <http://developer.github.com/v3/todo>`_
:param title: string
:param key: string
:rtype: None
"""
assert title is github.GithubObject.NotSet or isinstance(title, (str, unicode)), title
assert key is github.GithubObject.NotSet or isinstance(key, (str, unicode)), key
post_parameters = dict()