octomachinery.github.models package¶
Submodules¶
Module contents¶
Models representing objects in GitHub API.
-
class
octomachinery.github.models.
GitHubAppInstallation
(id, app_id, app_slug, created_at, updated_at, account: Dict[str, Any], events: List[str], permissions: Dict[str, Any], repository_selection, single_file_name: Optional[str], target_id, target_type: str, access_tokens_url, html_url, repositories_url, suspended_at: Optional[str], suspended_by: Optional[str], has_multiple_single_files: Optional[bool], single_file_paths: List[str])[source]¶ Bases:
object
Represents a GitHub App installed into a user or an organization profile.
It has its own ID for installation which is a unique combo of an app and a profile (user or org).
-
created_at
: datetime.datetime¶ Date time when the installation has been installed.
-
updated_at
: datetime.datetime¶ Date time when the installation was last updated.
-
-
class
octomachinery.github.models.
GitHubInstallationAccessToken
(token, expires_at, permissions: Dict[str, str], repository_selection, repositories=[], single_file: Optional[str] = None, has_multiple_single_files: Optional[bool] = False, single_file_paths: List[str] = None)[source]¶ Bases:
object
Struct for installation access token response from GitHub API.
-
property
expired
¶ Check whether this token has expired already.
-
expires_at
: datetime.datetime¶ Token expiration time.
-
token
: octomachinery.github.models.utils.SecretStr¶ Access token for GitHub App Installation.
-
property