Module aiogithubapi.objects.repos.label

Class object for AIOGitHubAPIReposLabel Documentation: https://docs.github.com/en/rest/reference/issues#get-a-label

Generated by generate/generate.py - 2020-08-02 10:32:07.005845

Expand source code
"""
Class object for AIOGitHubAPIReposLabel
Documentation: https://docs.github.com/en/rest/reference/issues#get-a-label

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


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

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

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

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

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

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

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

Classes

class AIOGitHubAPIReposLabel (attributes)

Base class for AIOGitHubAPI.

Initialize.

Expand source code
class AIOGitHubAPIReposLabel(AIOGitHubAPIBase):
    @property
    def id(self):
        return self.attributes.get("id", None)

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

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

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

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

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

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

Ancestors

Instance variables

var color
Expand source code
@property
def color(self):
    return self.attributes.get("color", "")
var default
Expand source code
@property
def default(self):
    return self.attributes.get("default", True)
var description
Expand source code
@property
def description(self):
    return self.attributes.get("description", "")
var id
Expand source code
@property
def id(self):
    return self.attributes.get("id", None)
var name
Expand source code
@property
def name(self):
    return self.attributes.get("name", "")
var node_id
Expand source code
@property
def node_id(self):
    return self.attributes.get("node_id", "")
var url
Expand source code
@property
def url(self):
    return self.attributes.get("url", "")