Module aiogithubapi.objects.repos.branch

Class object for AIOGitHubAPIReposBranch Documentation: https://docs.github.com/en/rest/reference/repos#get-a-branch

Generated by generate/generate.py - 2020-08-02 10:29:03.550853

Expand source code
"""
Class object for AIOGitHubAPIReposBranch
Documentation: https://docs.github.com/en/rest/reference/repos#get-a-branch

Generated by generate/generate.py - 2020-08-02 10:29:03.550853
"""
from ..base import AIOGitHubAPIBase


class CommitCommitAuthor(AIOGitHubAPIBase):
    @property
    def name(self):
        return self.attributes.get("name", "")

    @property
    def date(self):
        return self.attributes.get("date", "")

    @property
    def email(self):
        return self.attributes.get("email", "")


class CommitCommitTree(AIOGitHubAPIBase):
    @property
    def sha(self):
        return self.attributes.get("sha", "")

    @property
    def url(self):
        return self.attributes.get("url", "")


class CommitCommitCommitter(AIOGitHubAPIBase):
    @property
    def name(self):
        return self.attributes.get("name", "")

    @property
    def date(self):
        return self.attributes.get("date", "")

    @property
    def email(self):
        return self.attributes.get("email", "")


class CommitCommitVerification(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 CommitCommit(AIOGitHubAPIBase):
    @property
    def author(self):
        return CommitCommitAuthor(self.attributes.get("author", {}))

    @property
    def url(self):
        return self.attributes.get("url", "")

    @property
    def message(self):
        return self.attributes.get("message", "")

    @property
    def tree(self):
        return CommitCommitTree(self.attributes.get("tree", {}))

    @property
    def committer(self):
        return CommitCommitCommitter(self.attributes.get("committer", {}))

    @property
    def verification(self):
        return CommitCommitVerification(self.attributes.get("verification", {}))


class CommitAuthor(AIOGitHubAPIBase):
    @property
    def gravatar_id(self):
        return self.attributes.get("gravatar_id", "")

    @property
    def avatar_url(self):
        return self.attributes.get("avatar_url", "")

    @property
    def url(self):
        return self.attributes.get("url", "")

    @property
    def id(self):
        return self.attributes.get("id", None)

    @property
    def login(self):
        return self.attributes.get("login", "")


class Parents(AIOGitHubAPIBase):
    @property
    def sha(self):
        return self.attributes.get("sha", "")

    @property
    def url(self):
        return self.attributes.get("url", "")


class CommitCommitter(AIOGitHubAPIBase):
    @property
    def gravatar_id(self):
        return self.attributes.get("gravatar_id", "")

    @property
    def avatar_url(self):
        return self.attributes.get("avatar_url", "")

    @property
    def url(self):
        return self.attributes.get("url", "")

    @property
    def id(self):
        return self.attributes.get("id", None)

    @property
    def login(self):
        return self.attributes.get("login", "")


class Commit(AIOGitHubAPIBase):
    @property
    def sha(self):
        return self.attributes.get("sha", "")

    @property
    def node_id(self):
        return self.attributes.get("node_id", "")

    @property
    def commit(self):
        return CommitCommit(self.attributes.get("commit", {}))

    @property
    def author(self):
        return CommitAuthor(self.attributes.get("author", {}))

    @property
    def parents(self):
        return [Parents(x) for x in self.attributes.get("parents", [])]

    @property
    def url(self):
        return self.attributes.get("url", "")

    @property
    def committer(self):
        return CommitCommitter(self.attributes.get("committer", {}))


class ProtectionRequiredStatusChecks(AIOGitHubAPIBase):
    @property
    def enforcement_level(self):
        return self.attributes.get("enforcement_level", "")

    @property
    def contexts(self):
        return self.attributes.get("contexts", [])


class Protection(AIOGitHubAPIBase):
    @property
    def enabled(self):
        return self.attributes.get("enabled", True)

    @property
    def required_status_checks(self):
        return ProtectionRequiredStatusChecks(self.attributes.get("required_status_checks", {}))


class AIOGitHubAPIReposBranch(AIOGitHubAPIBase):
    @property
    def name(self):
        return self.attributes.get("name", "")

    @property
    def commit(self):
        return Commit(self.attributes.get("commit", {}))

    @property
    def protected(self):
        return self.attributes.get("protected", True)

    @property
    def protection(self):
        return Protection(self.attributes.get("protection", {}))

    @property
    def protection_url(self):
        return self.attributes.get("protection_url", "")

Classes

class AIOGitHubAPIReposBranch (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class AIOGitHubAPIReposBranch(AIOGitHubAPIBase):
    @property
    def name(self):
        return self.attributes.get("name", "")

    @property
    def commit(self):
        return Commit(self.attributes.get("commit", {}))

    @property
    def protected(self):
        return self.attributes.get("protected", True)

    @property
    def protection(self):
        return Protection(self.attributes.get("protection", {}))

    @property
    def protection_url(self):
        return self.attributes.get("protection_url", "")

Ancestors

Instance variables

var commit
Expand source code
@property
def commit(self):
    return Commit(self.attributes.get("commit", {}))
var name
Expand source code
@property
def name(self):
    return self.attributes.get("name", "")
var protected
Expand source code
@property
def protected(self):
    return self.attributes.get("protected", True)
var protection
Expand source code
@property
def protection(self):
    return Protection(self.attributes.get("protection", {}))
var protection_url
Expand source code
@property
def protection_url(self):
    return self.attributes.get("protection_url", "")
class Commit (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class Commit(AIOGitHubAPIBase):
    @property
    def sha(self):
        return self.attributes.get("sha", "")

    @property
    def node_id(self):
        return self.attributes.get("node_id", "")

    @property
    def commit(self):
        return CommitCommit(self.attributes.get("commit", {}))

    @property
    def author(self):
        return CommitAuthor(self.attributes.get("author", {}))

    @property
    def parents(self):
        return [Parents(x) for x in self.attributes.get("parents", [])]

    @property
    def url(self):
        return self.attributes.get("url", "")

    @property
    def committer(self):
        return CommitCommitter(self.attributes.get("committer", {}))

Ancestors

Instance variables

var author
Expand source code
@property
def author(self):
    return CommitAuthor(self.attributes.get("author", {}))
var commit
Expand source code
@property
def commit(self):
    return CommitCommit(self.attributes.get("commit", {}))
var committer
Expand source code
@property
def committer(self):
    return CommitCommitter(self.attributes.get("committer", {}))
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 url
Expand source code
@property
def url(self):
    return self.attributes.get("url", "")
class CommitAuthor (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class CommitAuthor(AIOGitHubAPIBase):
    @property
    def gravatar_id(self):
        return self.attributes.get("gravatar_id", "")

    @property
    def avatar_url(self):
        return self.attributes.get("avatar_url", "")

    @property
    def url(self):
        return self.attributes.get("url", "")

    @property
    def id(self):
        return self.attributes.get("id", None)

    @property
    def login(self):
        return self.attributes.get("login", "")

Ancestors

Instance variables

var avatar_url
Expand source code
@property
def avatar_url(self):
    return self.attributes.get("avatar_url", "")
var gravatar_id
Expand source code
@property
def gravatar_id(self):
    return self.attributes.get("gravatar_id", "")
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 url
Expand source code
@property
def url(self):
    return self.attributes.get("url", "")
class CommitCommit (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class CommitCommit(AIOGitHubAPIBase):
    @property
    def author(self):
        return CommitCommitAuthor(self.attributes.get("author", {}))

    @property
    def url(self):
        return self.attributes.get("url", "")

    @property
    def message(self):
        return self.attributes.get("message", "")

    @property
    def tree(self):
        return CommitCommitTree(self.attributes.get("tree", {}))

    @property
    def committer(self):
        return CommitCommitCommitter(self.attributes.get("committer", {}))

    @property
    def verification(self):
        return CommitCommitVerification(self.attributes.get("verification", {}))

Ancestors

Instance variables

var author
Expand source code
@property
def author(self):
    return CommitCommitAuthor(self.attributes.get("author", {}))
var committer
Expand source code
@property
def committer(self):
    return CommitCommitCommitter(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 CommitCommitTree(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 CommitCommitVerification(self.attributes.get("verification", {}))
class CommitCommitAuthor (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class CommitCommitAuthor(AIOGitHubAPIBase):
    @property
    def name(self):
        return self.attributes.get("name", "")

    @property
    def date(self):
        return self.attributes.get("date", "")

    @property
    def email(self):
        return self.attributes.get("email", "")

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 CommitCommitCommitter (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class CommitCommitCommitter(AIOGitHubAPIBase):
    @property
    def name(self):
        return self.attributes.get("name", "")

    @property
    def date(self):
        return self.attributes.get("date", "")

    @property
    def email(self):
        return self.attributes.get("email", "")

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 CommitCommitTree (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class CommitCommitTree(AIOGitHubAPIBase):
    @property
    def sha(self):
        return self.attributes.get("sha", "")

    @property
    def url(self):
        return self.attributes.get("url", "")

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 CommitCommitVerification (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class CommitCommitVerification(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 CommitCommitter (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class CommitCommitter(AIOGitHubAPIBase):
    @property
    def gravatar_id(self):
        return self.attributes.get("gravatar_id", "")

    @property
    def avatar_url(self):
        return self.attributes.get("avatar_url", "")

    @property
    def url(self):
        return self.attributes.get("url", "")

    @property
    def id(self):
        return self.attributes.get("id", None)

    @property
    def login(self):
        return self.attributes.get("login", "")

Ancestors

Instance variables

var avatar_url
Expand source code
@property
def avatar_url(self):
    return self.attributes.get("avatar_url", "")
var gravatar_id
Expand source code
@property
def gravatar_id(self):
    return self.attributes.get("gravatar_id", "")
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 url
Expand source code
@property
def url(self):
    return self.attributes.get("url", "")
class Parents (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class Parents(AIOGitHubAPIBase):
    @property
    def sha(self):
        return self.attributes.get("sha", "")

    @property
    def url(self):
        return self.attributes.get("url", "")

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 Protection (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class Protection(AIOGitHubAPIBase):
    @property
    def enabled(self):
        return self.attributes.get("enabled", True)

    @property
    def required_status_checks(self):
        return ProtectionRequiredStatusChecks(self.attributes.get("required_status_checks", {}))

Ancestors

Instance variables

var enabled
Expand source code
@property
def enabled(self):
    return self.attributes.get("enabled", True)
var required_status_checks
Expand source code
@property
def required_status_checks(self):
    return ProtectionRequiredStatusChecks(self.attributes.get("required_status_checks", {}))
class ProtectionRequiredStatusChecks (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class ProtectionRequiredStatusChecks(AIOGitHubAPIBase):
    @property
    def enforcement_level(self):
        return self.attributes.get("enforcement_level", "")

    @property
    def contexts(self):
        return self.attributes.get("contexts", [])

Ancestors

Instance variables

var contexts
Expand source code
@property
def contexts(self):
    return self.attributes.get("contexts", [])
var enforcement_level
Expand source code
@property
def enforcement_level(self):
    return self.attributes.get("enforcement_level", "")