mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-25 10:14:05 +08:00
Bump python-jenkins to 1.8.3 (#14520)
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
version = "1.8.*"
|
||||
version = "~=1.8.3"
|
||||
upstream_repository = "https://opendev.org/jjb/python-jenkins"
|
||||
requires = ["types-requests"]
|
||||
|
||||
@@ -2,7 +2,7 @@ from _typeshed import Incomplete
|
||||
from collections.abc import Mapping, MutableMapping, Sequence
|
||||
from re import Pattern
|
||||
from typing import Any, Final, Literal, overload
|
||||
from typing_extensions import TypeAlias
|
||||
from typing_extensions import TypeAlias, deprecated
|
||||
|
||||
import requests
|
||||
from requests.models import Request, Response
|
||||
@@ -14,6 +14,7 @@ LAUNCHER_JNLP: Final[str]
|
||||
LAUNCHER_WINDOWS_SERVICE: Final[str]
|
||||
DEFAULT_HEADERS: Final[dict[str, str]]
|
||||
DEFAULT_TIMEOUT: Final[float]
|
||||
DEFAULT_RETRIES: Final = 0
|
||||
INFO: Final[str]
|
||||
PLUGIN_INFO: Final[str]
|
||||
CRUMB_URL: Final[str]
|
||||
@@ -96,7 +97,9 @@ class Jenkins:
|
||||
auth: _Auth | None
|
||||
crumb: Mapping[str, Incomplete] | bool | Incomplete
|
||||
timeout: int
|
||||
def __init__(self, url: str, username: str | None = None, password: str | None = None, timeout: int = ...) -> None: ...
|
||||
def __init__(
|
||||
self, url: str, username: str | None = None, password: str | None = None, timeout: int = ..., retries: int = 0
|
||||
) -> None: ...
|
||||
def maybe_add_crumb(self, req: Request) -> None: ...
|
||||
def get_job_info(self, name: str, depth: int = 0, fetch_all_builds: bool = False) -> _JSON: ...
|
||||
def get_job_info_regex(
|
||||
@@ -112,7 +115,7 @@ class Jenkins:
|
||||
def get_queue_item(self, number: int, depth: int = 0) -> _JSON: ...
|
||||
def get_build_info(self, name: str, number: int, depth: int = 0) -> _JSON: ...
|
||||
def get_build_env_vars(self, name: str, number: int, depth: int = 0) -> _JSON | None: ...
|
||||
def get_build_test_report(self, name: str, number: int, depth: int = 0) -> _JSON | None: ...
|
||||
def get_build_test_report(self, name: str, number: int, depth: int = 0, tree: str | None = None) -> _JSON | None: ...
|
||||
def get_build_artifact(self, name: str, number: int, artifact: str) -> _JSON: ...
|
||||
def get_build_artifact_as_bytes(self, name: str, number: int, artifact: str) -> bytes: ...
|
||||
def get_build_stages(self, name: str, number: int) -> _JSON: ...
|
||||
@@ -121,6 +124,7 @@ class Jenkins:
|
||||
def get_info(self, item: str = "", query: str | None = None) -> _JSON: ...
|
||||
def get_whoami(self, depth: int = 0) -> _JSON: ...
|
||||
def get_version(self) -> str: ...
|
||||
@deprecated("Deprecated since 0.4.9. Use `get_plugins` instead.")
|
||||
def get_plugins_info(self, depth: int = 2) -> _JSON: ...
|
||||
def get_plugin_info(self, name: str, depth: int = 2) -> _JSON: ...
|
||||
def get_plugins(self, depth: int = 2) -> _JSON: ...
|
||||
@@ -179,6 +183,7 @@ class Jenkins:
|
||||
def delete_build(self, name: str, number: int) -> None: ...
|
||||
def wipeout_job_workspace(self, name: str) -> None: ...
|
||||
def get_running_builds(self) -> list[_JSON]: ...
|
||||
def get_nodes_with_info(self, depth: int = 0) -> list[_JSON]: ...
|
||||
def get_nodes(self, depth: int = 0) -> list[_JSON]: ...
|
||||
def get_node_info(self, name: str, depth: int = 0) -> _JSON: ...
|
||||
def node_exists(self, name: str) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user