mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 14:00:12 +08:00
[hvac] remove most Incompletes (#15029)
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from hvac.api.auth_methods.approle import AppRole as AppRole
|
||||
from hvac.api.auth_methods.aws import Aws as Aws
|
||||
from hvac.api.auth_methods.azure import Azure as Azure
|
||||
@@ -15,6 +13,7 @@ from hvac.api.auth_methods.okta import Okta as Okta
|
||||
from hvac.api.auth_methods.radius import Radius as Radius
|
||||
from hvac.api.auth_methods.token import Token as Token
|
||||
from hvac.api.auth_methods.userpass import Userpass as Userpass
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
from hvac.api.vault_api_category import VaultApiCategory
|
||||
|
||||
__all__ = (
|
||||
@@ -37,5 +36,5 @@ __all__ = (
|
||||
)
|
||||
|
||||
class AuthMethods(VaultApiCategory):
|
||||
implemented_classes: Incomplete
|
||||
unimplemented_classes: Incomplete
|
||||
implemented_classes: list[type[VaultApiBase]]
|
||||
unimplemented_classes: list[str]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from _typeshed import Incomplete
|
||||
import logging
|
||||
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
|
||||
logger: Incomplete
|
||||
logger: logging.Logger
|
||||
|
||||
class Aws(VaultApiBase):
|
||||
def configure(
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
from _typeshed import Incomplete
|
||||
import logging
|
||||
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
|
||||
DEFAULT_MOUNT_POINT: str
|
||||
logger: Incomplete
|
||||
|
||||
logger: logging.Logger
|
||||
|
||||
class Azure(VaultApiBase):
|
||||
def configure(self, tenant_id, resource, environment=None, client_id=None, client_secret=None, mount_point="azure"): ...
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
from _typeshed import Incomplete
|
||||
import logging
|
||||
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
|
||||
DEFAULT_MOUNT_POINT: str
|
||||
logger: Incomplete
|
||||
|
||||
logger: logging.Logger
|
||||
|
||||
class Gcp(VaultApiBase):
|
||||
def configure(
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
|
||||
SUPPORTED_MFA_TYPES: Incomplete
|
||||
SUPPORTED_AUTH_METHODS: Incomplete
|
||||
SUPPORTED_MFA_TYPES: list[str]
|
||||
SUPPORTED_AUTH_METHODS: list[str]
|
||||
|
||||
class LegacyMfa(VaultApiBase):
|
||||
def configure(self, mount_point, mfa_type: str = "duo", force: bool = False): ...
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from hvac.api.secrets_engines.active_directory import ActiveDirectory as ActiveDirectory
|
||||
from hvac.api.secrets_engines.aws import Aws as Aws
|
||||
from hvac.api.secrets_engines.azure import Azure as Azure
|
||||
@@ -15,6 +13,7 @@ from hvac.api.secrets_engines.rabbitmq import RabbitMQ as RabbitMQ
|
||||
from hvac.api.secrets_engines.ssh import Ssh as Ssh
|
||||
from hvac.api.secrets_engines.transform import Transform as Transform
|
||||
from hvac.api.secrets_engines.transit import Transit as Transit
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
from hvac.api.vault_api_category import VaultApiCategory
|
||||
|
||||
__all__ = (
|
||||
@@ -37,5 +36,5 @@ __all__ = (
|
||||
)
|
||||
|
||||
class SecretsEngines(VaultApiCategory):
|
||||
implemented_classes: Incomplete
|
||||
unimplemented_classes: Incomplete
|
||||
implemented_classes: list[type[VaultApiBase]]
|
||||
unimplemented_classes: list[str]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from _typeshed import Incomplete
|
||||
import logging
|
||||
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
|
||||
logger: Incomplete
|
||||
logger: logging.Logger
|
||||
|
||||
class Identity(VaultApiBase):
|
||||
def create_or_update_entity(
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from _typeshed import Incomplete
|
||||
import logging
|
||||
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
|
||||
logger: Incomplete
|
||||
logger: logging.Logger
|
||||
|
||||
class Kv(VaultApiBase):
|
||||
allowed_kv_versions: Incomplete
|
||||
allowed_kv_versions: list[str]
|
||||
def __init__(self, adapter, default_kv_version: str = "2") -> None: ...
|
||||
@property
|
||||
def v1(self): ...
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from hvac.api.system_backend.audit import Audit as Audit
|
||||
from hvac.api.system_backend.auth import Auth as Auth
|
||||
from hvac.api.system_backend.capabilities import Capabilities as Capabilities
|
||||
@@ -17,6 +15,7 @@ from hvac.api.system_backend.raft import Raft as Raft
|
||||
from hvac.api.system_backend.seal import Seal as Seal
|
||||
from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin as SystemBackendMixin
|
||||
from hvac.api.system_backend.wrapping import Wrapping as Wrapping
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
from hvac.api.vault_api_category import VaultApiCategory
|
||||
|
||||
__all__ = (
|
||||
@@ -59,5 +58,5 @@ class SystemBackend(
|
||||
Seal,
|
||||
Wrapping,
|
||||
):
|
||||
implemented_classes: Incomplete
|
||||
unimplemented_classes: Incomplete
|
||||
implemented_classes: list[type[VaultApiBase]]
|
||||
unimplemented_classes: list[str]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from _typeshed import Incomplete
|
||||
import logging
|
||||
from abc import ABCMeta
|
||||
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
|
||||
logger: Incomplete
|
||||
logger: logging.Logger
|
||||
|
||||
class SystemBackendMixin(VaultApiBase, metaclass=ABCMeta): ...
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin
|
||||
from requests.models import _JSON
|
||||
|
||||
class Wrapping(SystemBackendMixin):
|
||||
def unwrap(self, token=None): ...
|
||||
def wrap(self, payload: dict[Incomplete, Incomplete] | None = None, ttl: int = 60): ...
|
||||
def wrap(self, payload: _JSON | None = None, ttl: int = 60): ...
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from abc import ABCMeta, abstractmethod
|
||||
from collections.abc import Sequence
|
||||
from logging import Logger
|
||||
from typing import Any
|
||||
|
||||
@@ -9,7 +8,7 @@ from hvac.api.vault_api_base import VaultApiBase
|
||||
logger: Logger
|
||||
|
||||
class VaultApiCategory(VaultApiBase, metaclass=ABCMeta):
|
||||
implemented_class_names: Sequence[str]
|
||||
implemented_class_names: list[str]
|
||||
def __init__(self, adapter: Adapter[Any]) -> None: ...
|
||||
def __getattr__(self, item): ...
|
||||
@property
|
||||
@@ -20,6 +19,6 @@ class VaultApiCategory(VaultApiBase, metaclass=ABCMeta):
|
||||
@abstractmethod
|
||||
def implemented_classes(self): ...
|
||||
@property
|
||||
def unimplemented_classes(self) -> None: ...
|
||||
def unimplemented_classes(self) -> list[str]: ...
|
||||
@staticmethod
|
||||
def get_private_attr_name(class_name): ...
|
||||
|
||||
Reference in New Issue
Block a user