1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
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: ...
@staticmethod
def _get_accept_header() -> 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] = ...,
environment: Union[str, _NotSetType] = ...,
environment_url: Union[str, _NotSetType] = ...,
auto_inactive: Union[bool, _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 production_environment(self) -> bool: ...
@property
def transient_environment(self) -> bool: ...
@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: ...
|