mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
* Added DeploymentStatus class * Added stubs for DeploymentStatus class * Fixed headers for DeploymentStatus.py * Added get/list/create deployment status methods * Added DeploymentStatus repr * Added attribute check tests for DeploymentStatus * Added "create deployment status" test * Added test for Deployment.get_statuses() * Added Deployment.get_status() method Fixes #1586
47 lines
1.4 KiB
Python
47 lines
1.4 KiB
Python
from datetime import datetime
|
|
from typing import Any, Dict, Union
|
|
|
|
from github.DeploymentStatus import DeploymentStatus
|
|
from github.GithubObject import CompletableGithubObject, _NotSetType
|
|
from github.NamedUser import NamedUser
|
|
from github.PaginatedList import PaginatedList
|
|
|
|
class Deployment(CompletableGithubObject):
|
|
def __repr__(self) -> str: ...
|
|
def _initAttributes(self) -> None: ...
|
|
def _useAttributes(self, attributes: Dict[str, Any]) -> None: ...
|
|
def get_statuses(self) -> PaginatedList[DeploymentStatus]: ...
|
|
def get_status(self, id_: int) -> DeploymentStatus: ...
|
|
def create_status(
|
|
self,
|
|
state: str,
|
|
target_url: Union[str, _NotSetType] = ...,
|
|
description: Union[str, _NotSetType] = ...,
|
|
) -> DeploymentStatus: ...
|
|
@property
|
|
def id(self) -> int: ...
|
|
@property
|
|
def url(self) -> str: ...
|
|
@property
|
|
def sha(self) -> str: ...
|
|
@property
|
|
def task(self) -> str: ...
|
|
@property
|
|
def payload(self) -> Dict[str, Any]: ...
|
|
@property
|
|
def original_environment(self) -> str: ...
|
|
@property
|
|
def environment(self) -> str: ...
|
|
@property
|
|
def description(self) -> str: ...
|
|
@property
|
|
def creator(self) -> NamedUser: ...
|
|
@property
|
|
def created_at(self) -> datetime: ...
|
|
@property
|
|
def updated_at(self) -> datetime: ...
|
|
@property
|
|
def statuses_url(self) -> str: ...
|
|
@property
|
|
def repository_url(self) -> str: ...
|