forked from python/typeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stubsabot] Bump hvac to 2.2.* (python#11839)
- Loading branch information
1 parent
9a86dcd
commit 489e8db
Showing
10 changed files
with
65 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters