Module aiogithubapi.objects.repos.commit
Class object for AIOGitHubAPIReposCommit Documentation: https://docs.github.com/en/rest/reference/repos#get-a-commit
Generated by generate/generate.py - 2020-08-02 15:48:55.441838
Expand source code
"""
Class object for AIOGitHubAPIReposCommit
Documentation: https://docs.github.com/en/rest/reference/repos#get-a-commit
Generated by generate/generate.py - 2020-08-02 15:48:55.441838
"""
from ..base import AIOGitHubAPIBase
class CommitAuthor(AIOGitHubAPIBase):
@property
def name(self):
return self.attributes.get("name", "")
@property
def email(self):
return self.attributes.get("email", "")
@property
def date(self):
return self.attributes.get("date", "")
class CommitCommitter(AIOGitHubAPIBase):
@property
def name(self):
return self.attributes.get("name", "")
@property
def email(self):
return self.attributes.get("email", "")
@property
def date(self):
return self.attributes.get("date", "")
class CommitTree(AIOGitHubAPIBase):
@property
def url(self):
return self.attributes.get("url", "")
@property
def sha(self):
return self.attributes.get("sha", "")
class CommitVerification(AIOGitHubAPIBase):
@property
def verified(self):
return self.attributes.get("verified", False)
@property
def reason(self):
return self.attributes.get("reason", "")
@property
def signature(self):
return self.attributes.get("signature", None)
@property
def payload(self):
return self.attributes.get("payload", None)
class Commit(AIOGitHubAPIBase):
@property
def url(self):
return self.attributes.get("url", "")
@property
def author(self):
return CommitAuthor(self.attributes.get("author", {}))
@property
def committer(self):
return CommitCommitter(self.attributes.get("committer", {}))
@property
def message(self):
return self.attributes.get("message", "")
@property
def tree(self):
return CommitTree(self.attributes.get("tree", {}))
@property
def comment_count(self):
return self.attributes.get("comment_count", None)
@property
def verification(self):
return CommitVerification(self.attributes.get("verification", {}))
class Author(AIOGitHubAPIBase):
@property
def login(self):
return self.attributes.get("login", "")
@property
def id(self):
return self.attributes.get("id", None)
@property
def node_id(self):
return self.attributes.get("node_id", "")
@property
def avatar_url(self):
return self.attributes.get("avatar_url", "")
@property
def gravatar_id(self):
return self.attributes.get("gravatar_id", "")
@property
def url(self):
return self.attributes.get("url", "")
@property
def html_url(self):
return self.attributes.get("html_url", "")
@property
def followers_url(self):
return self.attributes.get("followers_url", "")
@property
def following_url(self):
return self.attributes.get("following_url", "")
@property
def gists_url(self):
return self.attributes.get("gists_url", "")
@property
def starred_url(self):
return self.attributes.get("starred_url", "")
@property
def subscriptions_url(self):
return self.attributes.get("subscriptions_url", "")
@property
def organizations_url(self):
return self.attributes.get("organizations_url", "")
@property
def repos_url(self):
return self.attributes.get("repos_url", "")
@property
def events_url(self):
return self.attributes.get("events_url", "")
@property
def received_events_url(self):
return self.attributes.get("received_events_url", "")
@property
def type(self):
return self.attributes.get("type", "")
@property
def site_admin(self):
return self.attributes.get("site_admin", False)
class Committer(AIOGitHubAPIBase):
@property
def login(self):
return self.attributes.get("login", "")
@property
def id(self):
return self.attributes.get("id", None)
@property
def node_id(self):
return self.attributes.get("node_id", "")
@property
def avatar_url(self):
return self.attributes.get("avatar_url", "")
@property
def gravatar_id(self):
return self.attributes.get("gravatar_id", "")
@property
def url(self):
return self.attributes.get("url", "")
@property
def html_url(self):
return self.attributes.get("html_url", "")
@property
def followers_url(self):
return self.attributes.get("followers_url", "")
@property
def following_url(self):
return self.attributes.get("following_url", "")
@property
def gists_url(self):
return self.attributes.get("gists_url", "")
@property
def starred_url(self):
return self.attributes.get("starred_url", "")
@property
def subscriptions_url(self):
return self.attributes.get("subscriptions_url", "")
@property
def organizations_url(self):
return self.attributes.get("organizations_url", "")
@property
def repos_url(self):
return self.attributes.get("repos_url", "")
@property
def events_url(self):
return self.attributes.get("events_url", "")
@property
def received_events_url(self):
return self.attributes.get("received_events_url", "")
@property
def type(self):
return self.attributes.get("type", "")
@property
def site_admin(self):
return self.attributes.get("site_admin", False)
class Parents(AIOGitHubAPIBase):
@property
def url(self):
return self.attributes.get("url", "")
@property
def sha(self):
return self.attributes.get("sha", "")
class Stats(AIOGitHubAPIBase):
@property
def additions(self):
return self.attributes.get("additions", None)
@property
def deletions(self):
return self.attributes.get("deletions", None)
@property
def total(self):
return self.attributes.get("total", None)
class Files(AIOGitHubAPIBase):
@property
def filename(self):
return self.attributes.get("filename", "")
@property
def additions(self):
return self.attributes.get("additions", None)
@property
def deletions(self):
return self.attributes.get("deletions", None)
@property
def changes(self):
return self.attributes.get("changes", None)
@property
def status(self):
return self.attributes.get("status", "")
@property
def raw_url(self):
return self.attributes.get("raw_url", "")
@property
def blob_url(self):
return self.attributes.get("blob_url", "")
@property
def patch(self):
return self.attributes.get("patch", "")
class AIOGitHubAPIReposCommit(AIOGitHubAPIBase):
@property
def url(self):
return self.attributes.get("url", "")
@property
def sha(self):
return self.attributes.get("sha", "")
@property
def node_id(self):
return self.attributes.get("node_id", "")
@property
def html_url(self):
return self.attributes.get("html_url", "")
@property
def comments_url(self):
return self.attributes.get("comments_url", "")
@property
def commit(self):
return Commit(self.attributes.get("commit", {}))
@property
def author(self):
return Author(self.attributes.get("author", {}))
@property
def committer(self):
return Committer(self.attributes.get("committer", {}))
@property
def parents(self):
return [Parents(x) for x in self.attributes.get("parents", [])]
@property
def stats(self):
return Stats(self.attributes.get("stats", {}))
@property
def files(self):
return [Files(x) for x in self.attributes.get("files", [])]
Classes
class AIOGitHubAPIReposCommit (attributes)
-
Base class for AIOGitHubAPI.
Initialize.
Expand source code
class AIOGitHubAPIReposCommit(AIOGitHubAPIBase): @property def url(self): return self.attributes.get("url", "") @property def sha(self): return self.attributes.get("sha", "") @property def node_id(self): return self.attributes.get("node_id", "") @property def html_url(self): return self.attributes.get("html_url", "") @property def comments_url(self): return self.attributes.get("comments_url", "") @property def commit(self): return Commit(self.attributes.get("commit", {})) @property def author(self): return Author(self.attributes.get("author", {})) @property def committer(self): return Committer(self.attributes.get("committer", {})) @property def parents(self): return [Parents(x) for x in self.attributes.get("parents", [])] @property def stats(self): return Stats(self.attributes.get("stats", {})) @property def files(self): return [Files(x) for x in self.attributes.get("files", [])]
Ancestors
Instance variables
-
Expand source code
@property def author(self): return Author(self.attributes.get("author", {}))
var comments_url
-
Expand source code
@property def comments_url(self): return self.attributes.get("comments_url", "")
var commit
-
Expand source code
@property def commit(self): return Commit(self.attributes.get("commit", {}))
var committer
-
Expand source code
@property def committer(self): return Committer(self.attributes.get("committer", {}))
var files
-
Expand source code
@property def files(self): return [Files(x) for x in self.attributes.get("files", [])]
var html_url
-
Expand source code
@property def html_url(self): return self.attributes.get("html_url", "")
var node_id
-
Expand source code
@property def node_id(self): return self.attributes.get("node_id", "")
var parents
-
Expand source code
@property def parents(self): return [Parents(x) for x in self.attributes.get("parents", [])]
var sha
-
Expand source code
@property def sha(self): return self.attributes.get("sha", "")
var stats
-
Expand source code
@property def stats(self): return Stats(self.attributes.get("stats", {}))
var url
-
Expand source code
@property def url(self): return self.attributes.get("url", "")
-
class Author (attributes)
-
Base class for AIOGitHubAPI.
Initialize.
Expand source code
class Author(AIOGitHubAPIBase): @property def login(self): return self.attributes.get("login", "") @property def id(self): return self.attributes.get("id", None) @property def node_id(self): return self.attributes.get("node_id", "") @property def avatar_url(self): return self.attributes.get("avatar_url", "") @property def gravatar_id(self): return self.attributes.get("gravatar_id", "") @property def url(self): return self.attributes.get("url", "") @property def html_url(self): return self.attributes.get("html_url", "") @property def followers_url(self): return self.attributes.get("followers_url", "") @property def following_url(self): return self.attributes.get("following_url", "") @property def gists_url(self): return self.attributes.get("gists_url", "") @property def starred_url(self): return self.attributes.get("starred_url", "") @property def subscriptions_url(self): return self.attributes.get("subscriptions_url", "") @property def organizations_url(self): return self.attributes.get("organizations_url", "") @property def repos_url(self): return self.attributes.get("repos_url", "") @property def events_url(self): return self.attributes.get("events_url", "") @property def received_events_url(self): return self.attributes.get("received_events_url", "") @property def type(self): return self.attributes.get("type", "") @property def site_admin(self): return self.attributes.get("site_admin", False)
Ancestors
Instance variables
var avatar_url
-
Expand source code
@property def avatar_url(self): return self.attributes.get("avatar_url", "")
var events_url
-
Expand source code
@property def events_url(self): return self.attributes.get("events_url", "")
var followers_url
-
Expand source code
@property def followers_url(self): return self.attributes.get("followers_url", "")
var following_url
-
Expand source code
@property def following_url(self): return self.attributes.get("following_url", "")
var gists_url
-
Expand source code
@property def gists_url(self): return self.attributes.get("gists_url", "")
var gravatar_id
-
Expand source code
@property def gravatar_id(self): return self.attributes.get("gravatar_id", "")
var html_url
-
Expand source code
@property def html_url(self): return self.attributes.get("html_url", "")
var id
-
Expand source code
@property def id(self): return self.attributes.get("id", None)
var login
-
Expand source code
@property def login(self): return self.attributes.get("login", "")
var node_id
-
Expand source code
@property def node_id(self): return self.attributes.get("node_id", "")
var organizations_url
-
Expand source code
@property def organizations_url(self): return self.attributes.get("organizations_url", "")
var received_events_url
-
Expand source code
@property def received_events_url(self): return self.attributes.get("received_events_url", "")
var repos_url
-
Expand source code
@property def repos_url(self): return self.attributes.get("repos_url", "")
var site_admin
-
Expand source code
@property def site_admin(self): return self.attributes.get("site_admin", False)
var starred_url
-
Expand source code
@property def starred_url(self): return self.attributes.get("starred_url", "")
var subscriptions_url
-
Expand source code
@property def subscriptions_url(self): return self.attributes.get("subscriptions_url", "")
var type
-
Expand source code
@property def type(self): return self.attributes.get("type", "")
var url
-
Expand source code
@property def url(self): return self.attributes.get("url", "")
class Commit (attributes)
-
Base class for AIOGitHubAPI.
Initialize.
Expand source code
class Commit(AIOGitHubAPIBase): @property def url(self): return self.attributes.get("url", "") @property def author(self): return CommitAuthor(self.attributes.get("author", {})) @property def committer(self): return CommitCommitter(self.attributes.get("committer", {})) @property def message(self): return self.attributes.get("message", "") @property def tree(self): return CommitTree(self.attributes.get("tree", {})) @property def comment_count(self): return self.attributes.get("comment_count", None) @property def verification(self): return CommitVerification(self.attributes.get("verification", {}))
Ancestors
Instance variables
-
Expand source code
@property def author(self): return CommitAuthor(self.attributes.get("author", {}))
var comment_count
-
Expand source code
@property def comment_count(self): return self.attributes.get("comment_count", None)
var committer
-
Expand source code
@property def committer(self): return CommitCommitter(self.attributes.get("committer", {}))
var message
-
Expand source code
@property def message(self): return self.attributes.get("message", "")
var tree
-
Expand source code
@property def tree(self): return CommitTree(self.attributes.get("tree", {}))
var url
-
Expand source code
@property def url(self): return self.attributes.get("url", "")
var verification
-
Expand source code
@property def verification(self): return CommitVerification(self.attributes.get("verification", {}))
-
class CommitAuthor (attributes)
-
Base class for AIOGitHubAPI.
Initialize.
Expand source code
class CommitAuthor(AIOGitHubAPIBase): @property def name(self): return self.attributes.get("name", "") @property def email(self): return self.attributes.get("email", "") @property def date(self): return self.attributes.get("date", "")
Ancestors
Instance variables
var date
-
Expand source code
@property def date(self): return self.attributes.get("date", "")
var email
-
Expand source code
@property def email(self): return self.attributes.get("email", "")
var name
-
Expand source code
@property def name(self): return self.attributes.get("name", "")
class CommitCommitter (attributes)
-
Base class for AIOGitHubAPI.
Initialize.
Expand source code
class CommitCommitter(AIOGitHubAPIBase): @property def name(self): return self.attributes.get("name", "") @property def email(self): return self.attributes.get("email", "") @property def date(self): return self.attributes.get("date", "")
Ancestors
Instance variables
var date
-
Expand source code
@property def date(self): return self.attributes.get("date", "")
var email
-
Expand source code
@property def email(self): return self.attributes.get("email", "")
var name
-
Expand source code
@property def name(self): return self.attributes.get("name", "")
class CommitTree (attributes)
-
Base class for AIOGitHubAPI.
Initialize.
Expand source code
class CommitTree(AIOGitHubAPIBase): @property def url(self): return self.attributes.get("url", "") @property def sha(self): return self.attributes.get("sha", "")
Ancestors
Instance variables
var sha
-
Expand source code
@property def sha(self): return self.attributes.get("sha", "")
var url
-
Expand source code
@property def url(self): return self.attributes.get("url", "")
class CommitVerification (attributes)
-
Base class for AIOGitHubAPI.
Initialize.
Expand source code
class CommitVerification(AIOGitHubAPIBase): @property def verified(self): return self.attributes.get("verified", False) @property def reason(self): return self.attributes.get("reason", "") @property def signature(self): return self.attributes.get("signature", None) @property def payload(self): return self.attributes.get("payload", None)
Ancestors
Instance variables
var payload
-
Expand source code
@property def payload(self): return self.attributes.get("payload", None)
var reason
-
Expand source code
@property def reason(self): return self.attributes.get("reason", "")
var signature
-
Expand source code
@property def signature(self): return self.attributes.get("signature", None)
var verified
-
Expand source code
@property def verified(self): return self.attributes.get("verified", False)
class Committer (attributes)
-
Base class for AIOGitHubAPI.
Initialize.
Expand source code
class Committer(AIOGitHubAPIBase): @property def login(self): return self.attributes.get("login", "") @property def id(self): return self.attributes.get("id", None) @property def node_id(self): return self.attributes.get("node_id", "") @property def avatar_url(self): return self.attributes.get("avatar_url", "") @property def gravatar_id(self): return self.attributes.get("gravatar_id", "") @property def url(self): return self.attributes.get("url", "") @property def html_url(self): return self.attributes.get("html_url", "") @property def followers_url(self): return self.attributes.get("followers_url", "") @property def following_url(self): return self.attributes.get("following_url", "") @property def gists_url(self): return self.attributes.get("gists_url", "") @property def starred_url(self): return self.attributes.get("starred_url", "") @property def subscriptions_url(self): return self.attributes.get("subscriptions_url", "") @property def organizations_url(self): return self.attributes.get("organizations_url", "") @property def repos_url(self): return self.attributes.get("repos_url", "") @property def events_url(self): return self.attributes.get("events_url", "") @property def received_events_url(self): return self.attributes.get("received_events_url", "") @property def type(self): return self.attributes.get("type", "") @property def site_admin(self): return self.attributes.get("site_admin", False)
Ancestors
Instance variables
var avatar_url
-
Expand source code
@property def avatar_url(self): return self.attributes.get("avatar_url", "")
var events_url
-
Expand source code
@property def events_url(self): return self.attributes.get("events_url", "")
var followers_url
-
Expand source code
@property def followers_url(self): return self.attributes.get("followers_url", "")
var following_url
-
Expand source code
@property def following_url(self): return self.attributes.get("following_url", "")
var gists_url
-
Expand source code
@property def gists_url(self): return self.attributes.get("gists_url", "")
var gravatar_id
-
Expand source code
@property def gravatar_id(self): return self.attributes.get("gravatar_id", "")
var html_url
-
Expand source code
@property def html_url(self): return self.attributes.get("html_url", "")
var id
-
Expand source code
@property def id(self): return self.attributes.get("id", None)
var login
-
Expand source code
@property def login(self): return self.attributes.get("login", "")
var node_id
-
Expand source code
@property def node_id(self): return self.attributes.get("node_id", "")
var organizations_url
-
Expand source code
@property def organizations_url(self): return self.attributes.get("organizations_url", "")
var received_events_url
-
Expand source code
@property def received_events_url(self): return self.attributes.get("received_events_url", "")
var repos_url
-
Expand source code
@property def repos_url(self): return self.attributes.get("repos_url", "")
var site_admin
-
Expand source code
@property def site_admin(self): return self.attributes.get("site_admin", False)
var starred_url
-
Expand source code
@property def starred_url(self): return self.attributes.get("starred_url", "")
var subscriptions_url
-
Expand source code
@property def subscriptions_url(self): return self.attributes.get("subscriptions_url", "")
var type
-
Expand source code
@property def type(self): return self.attributes.get("type", "")
var url
-
Expand source code
@property def url(self): return self.attributes.get("url", "")
class Files (attributes)
-
Base class for AIOGitHubAPI.
Initialize.
Expand source code
class Files(AIOGitHubAPIBase): @property def filename(self): return self.attributes.get("filename", "") @property def additions(self): return self.attributes.get("additions", None) @property def deletions(self): return self.attributes.get("deletions", None) @property def changes(self): return self.attributes.get("changes", None) @property def status(self): return self.attributes.get("status", "") @property def raw_url(self): return self.attributes.get("raw_url", "") @property def blob_url(self): return self.attributes.get("blob_url", "") @property def patch(self): return self.attributes.get("patch", "")
Ancestors
Instance variables
var additions
-
Expand source code
@property def additions(self): return self.attributes.get("additions", None)
var blob_url
-
Expand source code
@property def blob_url(self): return self.attributes.get("blob_url", "")
var changes
-
Expand source code
@property def changes(self): return self.attributes.get("changes", None)
var deletions
-
Expand source code
@property def deletions(self): return self.attributes.get("deletions", None)
var filename
-
Expand source code
@property def filename(self): return self.attributes.get("filename", "")
var patch
-
Expand source code
@property def patch(self): return self.attributes.get("patch", "")
var raw_url
-
Expand source code
@property def raw_url(self): return self.attributes.get("raw_url", "")
var status
-
Expand source code
@property def status(self): return self.attributes.get("status", "")
class Parents (attributes)
-
Base class for AIOGitHubAPI.
Initialize.
Expand source code
class Parents(AIOGitHubAPIBase): @property def url(self): return self.attributes.get("url", "") @property def sha(self): return self.attributes.get("sha", "")
Ancestors
Instance variables
var sha
-
Expand source code
@property def sha(self): return self.attributes.get("sha", "")
var url
-
Expand source code
@property def url(self): return self.attributes.get("url", "")
class Stats (attributes)
-
Base class for AIOGitHubAPI.
Initialize.
Expand source code
class Stats(AIOGitHubAPIBase): @property def additions(self): return self.attributes.get("additions", None) @property def deletions(self): return self.attributes.get("deletions", None) @property def total(self): return self.attributes.get("total", None)
Ancestors
Instance variables
var additions
-
Expand source code
@property def additions(self): return self.attributes.get("additions", None)
var deletions
-
Expand source code
@property def deletions(self): return self.attributes.get("deletions", None)
var total
-
Expand source code
@property def total(self): return self.attributes.get("total", None)