Skip to content

Commit

Permalink
[stubsabot] Bump hvac to 2.2.* (python#11839)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 21, 2024
1 parent 9a86dcd commit 489e8db
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stubs/hvac/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version = "2.1.*"
version = "2.2.*"
upstream_repository = "https://github.com/hvac/hvac"
requires = ["types-requests"]
8 changes: 7 additions & 1 deletion stubs/hvac/hvac/api/auth_methods/aws.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion stubs/hvac/hvac/api/auth_methods/jwt.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions stubs/hvac/hvac/api/secrets_engines/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -25,6 +26,7 @@ __all__ = (
"Kv",
"KvV1",
"KvV2",
"Ldap",
"Pki",
"Transform",
"Transit",
Expand Down
1 change: 0 additions & 1 deletion stubs/hvac/hvac/api/secrets_engines/identity.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
41 changes: 41 additions & 0 deletions stubs/hvac/hvac/api/secrets_engines/ldap.pyi
Original file line number Diff line number Diff line change
@@ -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"): ...
6 changes: 4 additions & 2 deletions stubs/hvac/hvac/api/secrets_engines/transit.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion stubs/hvac/hvac/api/vault_api_base.pyi
Original file line number Diff line number Diff line change
@@ -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: ...
2 changes: 2 additions & 0 deletions stubs/hvac/hvac/constants/identity.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from collections.abc import Iterable
from typing import Final

ALLOWED_GROUP_TYPES: Iterable[str]
DEFAULT_MOUNT_POINT: Final = "identity"
2 changes: 2 additions & 0 deletions stubs/hvac/hvac/exceptions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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): ...
Expand Down

0 comments on commit 489e8db

Please sign in to comment.