desc stringlengths 3 26.7k | decl stringlengths 11 7.89k | bodies stringlengths 8 553k |
|---|---|---|
':calls: `DELETE /repos/:owner/:repo/pulls/comments/:number <http://developer.github.com/v3/pulls/comments>`_
:rtype: None'
| def delete(self):
| (headers, data) = self._requester.requestJsonAndCheck('DELETE', self.url)
|
':calls: `PATCH /repos/:owner/:repo/pulls/comments/:number <http://developer.github.com/v3/pulls/comments>`_
:param body: string
:rtype: None'
| def edit(self, body):
| assert isinstance(body, (str, unicode)), body
post_parameters = {'body': body}
(headers, data) = self._requester.requestJsonAndCheck('PATCH', self.url, input=post_parameters)
self._useAttributes(data)
|
':type: integer'
| @property
def id(self):
| self._completeIfNotSet(self._id)
return self._id.value
|
':type: integer'
| @property
def members_count(self):
| self._completeIfNotSet(self._members_count)
return self._members_count.value
|
':type: string'
| @property
def members_url(self):
| self._completeIfNotSet(self._members_url)
return self._members_url.value
|
':type: string'
| @property
def name(self):
| self._completeIfNotSet(self._name)
return self._name.value
|
':type: string'
| @property
def permission(self):
| self._completeIfNotSet(self._permission)
return self._permission.value
|
':type: integer'
| @property
def repos_count(self):
| self._completeIfNotSet(self._repos_count)
return self._repos_count.value
|
':type: string'
| @property
def repositories_url(self):
| self._completeIfNotSet(self._repositories_url)
return self._repositories_url.value
|
':type: string'
| @property
def slug(self):
| self._completeIfNotSet(self._slug)
return self._slug.value
|
':type: string'
| @property
def url(self):
| self._completeIfNotSet(self._url)
return self._url.value
|
':calls: `PUT /teams/:id/members/:user <http://developer.github.com/v3/orgs/teams>`_
:param member: :class:`github.NamedUser.NamedUser`
:rtype: None'
| def add_to_members(self, member):
| assert isinstance(member, github.NamedUser.NamedUser), member
(headers, data) = self._requester.requestJsonAndCheck('PUT', ((self.url + '/members/') + member._identity))
|
':calls: `PUT /teams/:id/memberships/:user <http://developer.github.com/v3/orgs/teams>`_
:param member: :class:`github.Nameduser.NamedUser`
:rtype: None'
| def add_membership(self, member):
| assert isinstance(member, github.NamedUser.NamedUser), member
(headers, data) = self._requester.requestjsonandcheck('PUT', ((self.url + '/memberships/') + member._identity))
|
':calls: `PUT /teams/:id/repos/:org/:repo <http://developer.github.com/v3/orgs/teams>`_
:param repo: :class:`github.Repository.Repository`
:rtype: None'
| def add_to_repos(self, repo):
| assert isinstance(repo, github.Repository.Repository), repo
(headers, data) = self._requester.requestJsonAndCheck('PUT', ((self.url + '/repos/') + repo._identity))
|
':calls: `DELETE /teams/:id <http://developer.github.com/v3/orgs/teams>`_
:rtype: None'
| def delete(self):
| (headers, data) = self._requester.requestJsonAndCheck('DELETE', self.url)
|
':calls: `PATCH /teams/:id <http://developer.github.com/v3/orgs/teams>`_
:param name: string
:param permission: string
:rtype: None'
| def edit(self, name, permission=github.GithubObject.NotSet):
| assert isinstance(name, (str, unicode)), name
assert ((permission is github.GithubObject.NotSet) or isinstance(permission, (str, unicode))), permission
post_parameters = {'name': name}
if (permission is not github.GithubObject.NotSet):
post_parameters['permission'] = permission
(headers, dat... |
':calls: `GET /teams/:id/members <http://developer.github.com/v3/orgs/teams>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`'
| def get_members(self):
| return github.PaginatedList.PaginatedList(github.NamedUser.NamedUser, self._requester, (self.url + '/members'), None)
|
':calls: `GET /teams/:id/repos <http://developer.github.com/v3/orgs/teams>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`'
| def get_repos(self):
| return github.PaginatedList.PaginatedList(github.Repository.Repository, self._requester, (self.url + '/repos'), None)
|
':calls: `GET /teams/:id/members/:user <http://developer.github.com/v3/orgs/teams>`_
:param member: :class:`github.NamedUser.NamedUser`
:rtype: bool'
| def has_in_members(self, member):
| assert isinstance(member, github.NamedUser.NamedUser), member
(status, headers, data) = self._requester.requestJson('GET', ((self.url + '/members/') + member._identity))
return (status == 204)
|
':calls: `GET /teams/:id/repos/:owner/:repo <http://developer.github.com/v3/orgs/teams>`_
:param repo: :class:`github.Repository.Repository`
:rtype: bool'
| def has_in_repos(self, repo):
| assert isinstance(repo, github.Repository.Repository), repo
(status, headers, data) = self._requester.requestJson('GET', ((self.url + '/repos/') + repo._identity))
return (status == 204)
|
':calls: `DELETE /teams/:id/members/:user <http://developer.github.com/v3/orgs/teams>`_
:param member: :class:`github.NamedUser.NamedUser`
:rtype: None'
| def remove_from_members(self, member):
| assert isinstance(member, github.NamedUser.NamedUser), member
(headers, data) = self._requester.requestJsonAndCheck('DELETE', ((self.url + '/members/') + member._identity))
|
':calls: `DELETE /teams/:id/repos/:owner/:repo <http://developer.github.com/v3/orgs/teams>`_
:param repo: :class:`github.Repository.Repository`
:rtype: None'
| def remove_from_repos(self, repo):
| assert isinstance(repo, github.Repository.Repository), repo
(headers, data) = self._requester.requestJsonAndCheck('DELETE', ((self.url + '/repos/') + repo._identity))
|
':type: integer'
| @property
def code(self):
| return self._code.value
|
':type: string'
| @property
def message(self):
| return self._message.value
|
':type: string'
| @property
def status(self):
| return self._status.value
|
':param path: string
:param mode: string
:param type: string
:param content: string
:param sha: string'
| def __init__(self, path, mode, type, content=github.GithubObject.NotSet, sha=github.GithubObject.NotSet):
| assert isinstance(path, (str, unicode)), path
assert isinstance(mode, (str, unicode)), mode
assert isinstance(type, (str, unicode)), type
assert ((content is github.GithubObject.NotSet) or isinstance(content, (str, unicode))), content
assert ((sha is github.GithubObject.NotSet) or isinstance(sha, (s... |
':type: :class:`github.NamedUser.NamedUser`'
| @property
def actor(self):
| return self._actor.value
|
':type: datetime.datetime'
| @property
def created_at(self):
| return self._created_at.value
|
':type: string'
| @property
def id(self):
| return self._id.value
|
':type: :class:`github.Organization.Organization`'
| @property
def org(self):
| return self._org.value
|
':type: dict'
| @property
def payload(self):
| return self._payload.value
|
':type: bool'
| @property
def public(self):
| return self._public.value
|
':type: :class:`github.Repository.Repository`'
| @property
def repo(self):
| return self._repo.value
|
':type: string'
| @property
def type(self):
| return self._type.value
|
':type: :class:`github.AuthorizationApplication.AuthorizationApplication`'
| @property
def app(self):
| self._completeIfNotSet(self._app)
return self._app.value
|
':type: datetime.datetime'
| @property
def created_at(self):
| self._completeIfNotSet(self._created_at)
return self._created_at.value
|
':type: integer'
| @property
def id(self):
| self._completeIfNotSet(self._id)
return self._id.value
|
':type: string'
| @property
def note(self):
| self._completeIfNotSet(self._note)
return self._note.value
|
':type: string'
| @property
def note_url(self):
| self._completeIfNotSet(self._note_url)
return self._note_url.value
|
':type: list of string'
| @property
def scopes(self):
| self._completeIfNotSet(self._scopes)
return self._scopes.value
|
':type: string'
| @property
def token(self):
| self._completeIfNotSet(self._token)
return self._token.value
|
':type: datetime.datetime'
| @property
def updated_at(self):
| self._completeIfNotSet(self._updated_at)
return self._updated_at.value
|
':type: string'
| @property
def url(self):
| self._completeIfNotSet(self._url)
return self._url.value
|
':calls: `DELETE /authorizations/:id <http://developer.github.com/v3/oauth>`_
:rtype: None'
| def delete(self):
| (headers, data) = self._requester.requestJsonAndCheck('DELETE', self.url)
|
':calls: `PATCH /authorizations/:id <http://developer.github.com/v3/oauth>`_
:param scopes: list of string
:param add_scopes: list of string
:param remove_scopes: list of string
:param note: string
:param note_url: string
:rtype: None'
| def edit(self, scopes=github.GithubObject.NotSet, add_scopes=github.GithubObject.NotSet, remove_scopes=github.GithubObject.NotSet, note=github.GithubObject.NotSet, note_url=github.GithubObject.NotSet):
| assert ((scopes is github.GithubObject.NotSet) or all((isinstance(element, (str, unicode)) for element in scopes))), scopes
assert ((add_scopes is github.GithubObject.NotSet) or all((isinstance(element, (str, unicode)) for element in add_scopes))), add_scopes
assert ((remove_scopes is github.GithubObject.No... |
':type: integer'
| @property
def additions(self):
| return self._additions.value
|
':type: integer'
| @property
def deletions(self):
| return self._deletions.value
|
':type: integer'
| @property
def total(self):
| return self._total.value
|
':type: string'
| @property
def avatar_url(self):
| self._completeIfNotSet(self._avatar_url)
return self._avatar_url.value
|
':type: string'
| @property
def billing_email(self):
| self._completeIfNotSet(self._billing_email)
return self._billing_email.value
|
':type: string'
| @property
def blog(self):
| self._completeIfNotSet(self._blog)
return self._blog.value
|
':type: integer'
| @property
def collaborators(self):
| self._completeIfNotSet(self._collaborators)
return self._collaborators.value
|
':type: string'
| @property
def company(self):
| self._completeIfNotSet(self._company)
return self._company.value
|
':type: datetime.datetime'
| @property
def created_at(self):
| self._completeIfNotSet(self._created_at)
return self._created_at.value
|
':type: integer'
| @property
def disk_usage(self):
| self._completeIfNotSet(self._disk_usage)
return self._disk_usage.value
|
':type: string'
| @property
def email(self):
| self._completeIfNotSet(self._email)
return self._email.value
|
':type: string'
| @property
def events_url(self):
| self._completeIfNotSet(self._events_url)
return self._events_url.value
|
':type: integer'
| @property
def followers(self):
| self._completeIfNotSet(self._followers)
return self._followers.value
|
':type: integer'
| @property
def following(self):
| self._completeIfNotSet(self._following)
return self._following.value
|
':type: string'
| @property
def gravatar_id(self):
| self._completeIfNotSet(self._gravatar_id)
return self._gravatar_id.value
|
':type: string'
| @property
def html_url(self):
| self._completeIfNotSet(self._html_url)
return self._html_url.value
|
':type: integer'
| @property
def id(self):
| self._completeIfNotSet(self._id)
return self._id.value
|
':type: string'
| @property
def location(self):
| self._completeIfNotSet(self._location)
return self._location.value
|
':type: string'
| @property
def login(self):
| self._completeIfNotSet(self._login)
return self._login.value
|
':type: string'
| @property
def members_url(self):
| self._completeIfNotSet(self._members_url)
return self._members_url.value
|
':type: string'
| @property
def name(self):
| self._completeIfNotSet(self._name)
return self._name.value
|
':type: integer'
| @property
def owned_private_repos(self):
| self._completeIfNotSet(self._owned_private_repos)
return self._owned_private_repos.value
|
':type: :class:`github.Plan.Plan`'
| @property
def plan(self):
| self._completeIfNotSet(self._plan)
return self._plan.value
|
':type: integer'
| @property
def private_gists(self):
| self._completeIfNotSet(self._private_gists)
return self._private_gists.value
|
':type: integer'
| @property
def public_gists(self):
| self._completeIfNotSet(self._public_gists)
return self._public_gists.value
|
':type: string'
| @property
def public_members_url(self):
| self._completeIfNotSet(self._public_members_url)
return self._public_members_url.value
|
':type: integer'
| @property
def public_repos(self):
| self._completeIfNotSet(self._public_repos)
return self._public_repos.value
|
':type: string'
| @property
def repos_url(self):
| self._completeIfNotSet(self._repos_url)
return self._repos_url.value
|
':type: integer'
| @property
def total_private_repos(self):
| self._completeIfNotSet(self._total_private_repos)
return self._total_private_repos.value
|
':type: string'
| @property
def type(self):
| self._completeIfNotSet(self._type)
return self._type.value
|
':type: datetime.datetime'
| @property
def updated_at(self):
| self._completeIfNotSet(self._updated_at)
return self._updated_at.value
|
':type: string'
| @property
def url(self):
| self._completeIfNotSet(self._url)
return self._url.value
|
':calls: `PUT /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_
:param public_member: :class:`github.NamedUser.NamedUser`
:rtype: None'
| def add_to_public_members(self, public_member):
| assert isinstance(public_member, github.NamedUser.NamedUser), public_member
(headers, data) = self._requester.requestJsonAndCheck('PUT', ((self.url + '/public_members/') + public_member._identity))
|
':calls: `POST /repos/:owner/:repo/forks <http://developer.github.com/v3/repos/forks>`_
:param repo: :class:`github.Repository.Repository`
:rtype: :class:`github.Repository.Repository`'
| def create_fork(self, repo):
| assert isinstance(repo, github.Repository.Repository), repo
url_parameters = {'org': self.login}
(headers, data) = self._requester.requestJsonAndCheck('POST', (((('/repos/' + repo.owner.login) + '/') + repo.name) + '/forks'), parameters=url_parameters)
return github.Repository.Repository(self._requester... |
':calls: `POST /orgs/:org/repos <http://developer.github.com/v3/repos>`_
:param name: string
:param description: string
:param homepage: string
:param private: bool
:param has_issues: bool
:param has_wiki: bool
:param has_downloads: bool
:param team_id: :class:`github.Team.Team`
:param auto_init: bool
:param gitignore_... | def create_repo(self, name, description=github.GithubObject.NotSet, homepage=github.GithubObject.NotSet, private=github.GithubObject.NotSet, has_issues=github.GithubObject.NotSet, has_wiki=github.GithubObject.NotSet, has_downloads=github.GithubObject.NotSet, team_id=github.GithubObject.NotSet, auto_init=github.GithubOb... | assert isinstance(name, (str, unicode)), name
assert ((description is github.GithubObject.NotSet) or isinstance(description, (str, unicode))), description
assert ((homepage is github.GithubObject.NotSet) or isinstance(homepage, (str, unicode))), homepage
assert ((private is github.GithubObject.NotSet) o... |
':calls: `POST /orgs/:org/teams <http://developer.github.com/v3/orgs/teams>`_
:param name: string
:param repo_names: list of :class:`github.Repository.Repository`
:param permission: string
:rtype: :class:`github.Team.Team`'
| def create_team(self, name, repo_names=github.GithubObject.NotSet, permission=github.GithubObject.NotSet):
| assert isinstance(name, (str, unicode)), name
assert ((repo_names is github.GithubObject.NotSet) or all((isinstance(element, github.Repository.Repository) for element in repo_names))), repo_names
assert ((permission is github.GithubObject.NotSet) or isinstance(permission, (str, unicode))), permission
po... |
':calls: `PATCH /orgs/:org <http://developer.github.com/v3/orgs>`_
:param billing_email: string
:param blog: string
:param company: string
:param email: string
:param location: string
:param name: string
:rtype: None'
| def edit(self, billing_email=github.GithubObject.NotSet, blog=github.GithubObject.NotSet, company=github.GithubObject.NotSet, email=github.GithubObject.NotSet, location=github.GithubObject.NotSet, name=github.GithubObject.NotSet):
| assert ((billing_email is github.GithubObject.NotSet) or isinstance(billing_email, (str, unicode))), billing_email
assert ((blog is github.GithubObject.NotSet) or isinstance(blog, (str, unicode))), blog
assert ((company is github.GithubObject.NotSet) or isinstance(company, (str, unicode))), company
asse... |
':calls: `GET /orgs/:org/events <http://developer.github.com/v3/activity/events>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`'
| def get_events(self):
| return github.PaginatedList.PaginatedList(github.Event.Event, self._requester, (self.url + '/events'), None)
|
':calls: `GET /orgs/:org/issues <http://developer.github.com/v3/issues>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Issue.Issue`
:param filter: string
:param state: string
:param labels: list of :class:`github.Label.Label`
:param sort: string
:param direction: string
:param since: datetime.d... | def get_issues(self, filter=github.GithubObject.NotSet, state=github.GithubObject.NotSet, labels=github.GithubObject.NotSet, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet, since=github.GithubObject.NotSet):
| assert ((filter is github.GithubObject.NotSet) or isinstance(filter, (str, unicode))), filter
assert ((state is github.GithubObject.NotSet) or isinstance(state, (str, unicode))), state
assert ((labels is github.GithubObject.NotSet) or all((isinstance(element, github.Label.Label) for element in labels))), la... |
':calls: `GET /orgs/:org/members <http://developer.github.com/v3/orgs/members>`_
:param filter_: string
:param role: string
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`'
| def get_members(self, filter_=github.GithubObject.NotSet, role=github.GithubObject.NotSet):
| assert ((filter_ is github.GithubObject.NotSet) or isinstance(filter_, (str, unicode))), filter_
assert ((role is github.GithubObject.NotSet) or isinstance(role, (str, unicode))), role
url_parameters = {}
if (filter_ is not github.GithubObject.NotSet):
url_parameters['filter'] = filter_
if (... |
':calls: `GET /orgs/:org/public_members <http://developer.github.com/v3/orgs/members>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`'
| def get_public_members(self):
| return github.PaginatedList.PaginatedList(github.NamedUser.NamedUser, self._requester, (self.url + '/public_members'), None)
|
':calls: `GET /repos/:owner/:repo <http://developer.github.com/v3/repos>`_
:param name: string
:rtype: :class:`github.Repository.Repository`'
| def get_repo(self, name):
| assert isinstance(name, (str, unicode)), name
(headers, data) = self._requester.requestJsonAndCheck('GET', ((('/repos/' + self.login) + '/') + name))
return github.Repository.Repository(self._requester, headers, data, completed=True)
|
':calls: `GET /orgs/:org/repos <http://developer.github.com/v3/repos>`_
:param type: string
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`'
| def get_repos(self, type=github.GithubObject.NotSet):
| assert ((type is github.GithubObject.NotSet) or isinstance(type, (str, unicode))), type
url_parameters = dict()
if (type is not github.GithubObject.NotSet):
url_parameters['type'] = type
return github.PaginatedList.PaginatedList(github.Repository.Repository, self._requester, (self.url + '/repos'... |
':calls: `GET /teams/:id <http://developer.github.com/v3/orgs/teams>`_
:param id: integer
:rtype: :class:`github.Team.Team`'
| def get_team(self, id):
| assert isinstance(id, (int, long)), id
(headers, data) = self._requester.requestJsonAndCheck('GET', ('/teams/' + str(id)))
return github.Team.Team(self._requester, headers, data, completed=True)
|
':calls: `GET /orgs/:org/teams <http://developer.github.com/v3/orgs/teams>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team`'
| def get_teams(self):
| return github.PaginatedList.PaginatedList(github.Team.Team, self._requester, (self.url + '/teams'), None)
|
':calls: `GET /orgs/:org/members/:user <http://developer.github.com/v3/orgs/members>`_
:param member: :class:`github.NamedUser.NamedUser`
:rtype: bool'
| def has_in_members(self, member):
| assert isinstance(member, github.NamedUser.NamedUser), member
(status, headers, data) = self._requester.requestJson('GET', ((self.url + '/members/') + member._identity))
return (status == 204)
|
':calls: `GET /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_
:param public_member: :class:`github.NamedUser.NamedUser`
:rtype: bool'
| def has_in_public_members(self, public_member):
| assert isinstance(public_member, github.NamedUser.NamedUser), public_member
(status, headers, data) = self._requester.requestJson('GET', ((self.url + '/public_members/') + public_member._identity))
return (status == 204)
|
':calls: `DELETE /orgs/:org/members/:user <http://developer.github.com/v3/orgs/members>`_
:param member: :class:`github.NamedUser.NamedUser`
:rtype: None'
| def remove_from_members(self, member):
| assert isinstance(member, github.NamedUser.NamedUser), member
(headers, data) = self._requester.requestJsonAndCheck('DELETE', ((self.url + '/members/') + member._identity))
|
':calls: `DELETE /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_
:param public_member: :class:`github.NamedUser.NamedUser`
:rtype: None'
| def remove_from_public_members(self, public_member):
| assert isinstance(public_member, github.NamedUser.NamedUser), public_member
(headers, data) = self._requester.requestJsonAndCheck('DELETE', ((self.url + '/public_members/') + public_member._identity))
|
':type: string'
| @property
def sha(self):
| return self._sha.value
|
':type: string'
| @property
def type(self):
| return self._type.value
|
':type: string'
| @property
def url(self):
| return self._url.value
|
':type: :class:`github.NamedUser.NamedUser`'
| @property
def author(self):
| self._completeIfNotSet(self._author)
return self._author.value
|
':type: string'
| @property
def comments_url(self):
| self._completeIfNotSet(self._comments_url)
return self._comments_url.value
|
':type: :class:`github.GitCommit.GitCommit`'
| @property
def commit(self):
| self._completeIfNotSet(self._commit)
return self._commit.value
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.