mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 05:22:23 +08:00
[stubsabot] Bump hvac to 2.2.* (#11839)
This commit is contained in:
committed by
GitHub
parent
9a86dcd21a
commit
489e8dbf41
@@ -1,3 +1,3 @@
|
||||
version = "2.1.*"
|
||||
version = "2.2.*"
|
||||
upstream_repository = "https://github.com/hvac/hvac"
|
||||
requires = ["types-requests"]
|
||||
|
||||
@@ -15,11 +15,17 @@ class Aws(VaultApiBase):
|
||||
sts_endpoint: Incomplete | None = None,
|
||||
iam_server_id_header_value: Incomplete | None = None,
|
||||
mount_point: str = "aws",
|
||||
sts_region: str | None = None,
|
||||
): ...
|
||||
def read_config(self, mount_point: str = "aws"): ...
|
||||
def delete_config(self, mount_point: str = "aws"): ...
|
||||
def configure_identity_integration(
|
||||
self, iam_alias: Incomplete | None = None, ec2_alias: Incomplete | None = None, mount_point: str = "aws"
|
||||
self,
|
||||
iam_alias: Incomplete | None = None,
|
||||
ec2_alias: Incomplete | None = None,
|
||||
mount_point: str = "aws",
|
||||
iam_metadata: str | list[str] | None = None,
|
||||
ec2_metadata: str | list[str] | None = None,
|
||||
): ...
|
||||
def read_identity_integration(self, mount_point: str = "aws"): ...
|
||||
def create_certificate_configuration(
|
||||
|
||||
@@ -20,7 +20,8 @@ class JWT(VaultApiBase):
|
||||
jwt_supported_algs: Incomplete | None = None,
|
||||
default_role: Incomplete | None = None,
|
||||
provider_config: Incomplete | None = None,
|
||||
path: Incomplete | None = None,
|
||||
path: str | None = None,
|
||||
namespace_in_state: bool | None = None,
|
||||
): ...
|
||||
def read_config(self, path: Incomplete | None = None): ...
|
||||
def create_role(
|
||||
|
||||
@@ -9,6 +9,7 @@ from hvac.api.secrets_engines.identity import Identity as Identity
|
||||
from hvac.api.secrets_engines.kv import Kv as Kv
|
||||
from hvac.api.secrets_engines.kv_v1 import KvV1 as KvV1
|
||||
from hvac.api.secrets_engines.kv_v2 import KvV2 as KvV2
|
||||
from hvac.api.secrets_engines.ldap import Ldap as Ldap
|
||||
from hvac.api.secrets_engines.pki import Pki as Pki
|
||||
from hvac.api.secrets_engines.rabbitmq import RabbitMQ as RabbitMQ
|
||||
from hvac.api.secrets_engines.ssh import Ssh as Ssh
|
||||
@@ -25,6 +26,7 @@ __all__ = (
|
||||
"Kv",
|
||||
"KvV1",
|
||||
"KvV2",
|
||||
"Ldap",
|
||||
"Pki",
|
||||
"Transform",
|
||||
"Transit",
|
||||
|
||||
@@ -2,7 +2,6 @@ from _typeshed import Incomplete
|
||||
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
|
||||
DEFAULT_MOUNT_POINT: str
|
||||
logger: Incomplete
|
||||
|
||||
class Identity(VaultApiBase):
|
||||
|
||||
41
stubs/hvac/hvac/api/secrets_engines/ldap.pyi
Normal file
41
stubs/hvac/hvac/api/secrets_engines/ldap.pyi
Normal file
@@ -0,0 +1,41 @@
|
||||
from typing import Final
|
||||
|
||||
from hvac.api.vault_api_base import VaultApiBase
|
||||
|
||||
DEFAULT_MOUNT_POINT: Final = "ldap"
|
||||
|
||||
class Ldap(VaultApiBase):
|
||||
def configure(
|
||||
self,
|
||||
binddn: str | None = None,
|
||||
bindpass: str | None = None,
|
||||
url: str | None = None,
|
||||
password_policy: str | None = None,
|
||||
schema: str | None = None,
|
||||
userdn: str | None = None,
|
||||
userattr: str | None = None,
|
||||
upndomain: str | None = None,
|
||||
connection_timeout: int | str | None = None,
|
||||
request_timeout: int | str | None = None,
|
||||
starttls: bool | None = None,
|
||||
insecure_tls: bool | None = None,
|
||||
certificate: str | None = None,
|
||||
client_tls_cert: str | None = None,
|
||||
client_tls_key: str | None = None,
|
||||
mount_point: str = "ldap",
|
||||
): ...
|
||||
def read_config(self, mount_point: str = "ldap"): ...
|
||||
def rotate_root(self, mount_point: str = "ldap"): ...
|
||||
def create_or_update_static_role(
|
||||
self,
|
||||
name: str,
|
||||
username: str | None = None,
|
||||
dn: str | None = None,
|
||||
rotation_period: str | None = None,
|
||||
mount_point: str = "ldap",
|
||||
): ...
|
||||
def read_static_role(self, name: str, mount_point: str = "ldap"): ...
|
||||
def list_static_roles(self, mount_point: str = "ldap"): ...
|
||||
def delete_static_role(self, name: str, mount_point: str = "ldap"): ...
|
||||
def generate_static_credentials(self, name: str, mount_point: str = "ldap"): ...
|
||||
def rotate_static_credentials(self, name: str, mount_point: str = "ldap"): ...
|
||||
@@ -42,7 +42,8 @@ class Transit(VaultApiBase):
|
||||
batch_input: Incomplete | None = None,
|
||||
type: Incomplete | None = None,
|
||||
convergent_encryption: Incomplete | None = None,
|
||||
mount_point="transit",
|
||||
mount_point: str = "transit",
|
||||
associated_data: str | None = None,
|
||||
): ...
|
||||
def decrypt_data(
|
||||
self,
|
||||
@@ -51,7 +52,8 @@ class Transit(VaultApiBase):
|
||||
context: Incomplete | None = None,
|
||||
nonce: Incomplete | None = None,
|
||||
batch_input: Incomplete | None = None,
|
||||
mount_point="transit",
|
||||
mount_point: str = "transit",
|
||||
associated_data: str | None = None,
|
||||
): ...
|
||||
def rewrap_data(
|
||||
self,
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
from _typeshed import Incomplete
|
||||
from abc import ABCMeta
|
||||
from logging import Logger
|
||||
|
||||
from hvac.adapters import Adapter
|
||||
|
||||
logger: Logger
|
||||
|
||||
class VaultApiBase(metaclass=ABCMeta):
|
||||
def __init__(self, adapter) -> None: ...
|
||||
def __init__(self, adapter: Adapter[Incomplete]) -> None: ...
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from collections.abc import Iterable
|
||||
from typing import Final
|
||||
|
||||
ALLOWED_GROUP_TYPES: Iterable[str]
|
||||
DEFAULT_MOUNT_POINT: Final = "identity"
|
||||
|
||||
@@ -33,6 +33,8 @@ class InvalidRequest(VaultError): ...
|
||||
class Unauthorized(VaultError): ...
|
||||
class Forbidden(VaultError): ...
|
||||
class InvalidPath(VaultError): ...
|
||||
class UnsupportedOperation(VaultError): ...
|
||||
class PreconditionFailed(VaultError): ...
|
||||
class RateLimitExceeded(VaultError): ...
|
||||
class InternalServerError(VaultError): ...
|
||||
class VaultNotInitialized(VaultError): ...
|
||||
|
||||
Reference in New Issue
Block a user