Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions stubs/hvac/hvac/api/auth_methods/__init__.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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__ = (
Expand All @@ -37,5 +36,5 @@ __all__ = (
)

class AuthMethods(VaultApiCategory):
implemented_classes: Incomplete
unimplemented_classes: Incomplete
implemented_classes: list[type[VaultApiBase]]
unimplemented_classes: list[str]
4 changes: 2 additions & 2 deletions stubs/hvac/hvac/api/auth_methods/aws.pyi
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
5 changes: 3 additions & 2 deletions stubs/hvac/hvac/api/auth_methods/azure.pyi
Original file line number Diff line number Diff line change
@@ -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"): ...
Expand Down
5 changes: 3 additions & 2 deletions stubs/hvac/hvac/api/auth_methods/gcp.pyi
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
6 changes: 2 additions & 4 deletions stubs/hvac/hvac/api/auth_methods/legacy_mfa.pyi
Original file line number Diff line number Diff line change
@@ -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): ...
Expand Down
7 changes: 3 additions & 4 deletions stubs/hvac/hvac/api/secrets_engines/__init__.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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__ = (
Expand All @@ -37,5 +36,5 @@ __all__ = (
)

class SecretsEngines(VaultApiCategory):
implemented_classes: Incomplete
unimplemented_classes: Incomplete
implemented_classes: list[type[VaultApiBase]]
unimplemented_classes: list[str]
4 changes: 2 additions & 2 deletions stubs/hvac/hvac/api/secrets_engines/identity.pyi
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
6 changes: 3 additions & 3 deletions stubs/hvac/hvac/api/secrets_engines/kv.pyi
Original file line number Diff line number Diff line change
@@ -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): ...
Expand Down
7 changes: 3 additions & 4 deletions stubs/hvac/hvac/api/system_backend/__init__.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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__ = (
Expand Down Expand Up @@ -59,5 +58,5 @@ class SystemBackend(
Seal,
Wrapping,
):
implemented_classes: Incomplete
unimplemented_classes: Incomplete
implemented_classes: list[type[VaultApiBase]]
unimplemented_classes: list[str]
4 changes: 2 additions & 2 deletions stubs/hvac/hvac/api/system_backend/system_backend_mixin.pyi
Original file line number Diff line number Diff line change
@@ -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): ...
5 changes: 2 additions & 3 deletions stubs/hvac/hvac/api/system_backend/wrapping.pyi
Original file line number Diff line number Diff line change
@@ -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): ...
5 changes: 2 additions & 3 deletions stubs/hvac/hvac/api/vault_api_category.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from abc import ABCMeta, abstractmethod
from collections.abc import Sequence
from logging import Logger
from typing import Any

Expand All @@ -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
Expand All @@ -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): ...