basedpyright 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/README.md +10 -11
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/builtins.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/distutils/core.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/optparse.pyi +57 -54
- package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageSequence.pyi +11 -8
- package/dist/typeshed-fallback/stubs/croniter/croniter/croniter.pyi +5 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/nodes.pyi +84 -26
- package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +9 -2
- package/dist/typeshed-fallback/stubs/hdbcli/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/hvac/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/adapters.pyi +60 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/__init__.pyi +7 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/__init__.pyi +41 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/approle.pyi +54 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/aws.pyi +110 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/azure.pyi +49 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/cert.pyi +41 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/gcp.pyi +44 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/github.pyi +21 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/jwt.pyi +60 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/kubernetes.pyi +35 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/ldap.pyi +60 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/legacy_mfa.pyi +15 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/oidc.pyi +35 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/okta.pyi +29 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/radius.pyi +23 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/token.pyi +74 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/userpass.pyi +15 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/__init__.pyi +39 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/active_directory.pyi +28 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/aws.pyi +43 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/azure.pyi +23 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/consul.pyi +23 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/database.pyi +47 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/gcp.pyi +73 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/identity.pyi +163 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/kv.pyi +18 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/kv_v1.pyi +11 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/kv_v2.pyi +37 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/pki.pyi +50 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/rabbitmq.pyi +18 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/ssh.pyi +73 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/transform.pyi +109 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/transit.pyi +114 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/__init__.pyi +63 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/audit.pyi +16 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/auth.pyi +30 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/capabilities.pyi +6 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/health.pyi +16 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/init.pyi +18 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/key.pyi +29 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/leader.pyi +5 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/lease.pyi +11 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/mount.pyi +36 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/namespace.pyi +6 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/policies.pyi +15 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/policy.pyi +7 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/quota.pyi +19 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/raft.pyi +18 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/seal.pyi +10 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/system_backend_mixin.pyi +8 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/wrapping.pyi +6 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/vault_api_base.pyi +7 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/vault_api_category.pyi +24 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/aws_utils.pyi +9 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/constants/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/constants/approle.pyi +4 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/constants/aws.pyi +7 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/constants/azure.pyi +3 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/constants/client.pyi +8 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/constants/gcp.pyi +8 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/constants/identity.pyi +3 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/constants/transit.pyi +12 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/exceptions.pyi +42 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/utils.pyi +45 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/v1/__init__.pyi +72 -0
- package/dist/typeshed-fallback/stubs/influxdb-client/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/flux_csv_parser.pyi +1 -0
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/query_api.pyi +12 -9
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/query_api_async.pyi +17 -9
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/util/helpers.pyi +4 -1
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/domain/organization.pyi +3 -3
- package/dist/typeshed-fallback/stubs/paho-mqtt/METADATA.toml +1 -0
- package/dist/typeshed-fallback/stubs/pika/pika/compat.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/__init__.pyi +8 -2
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/relativedelta.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pywin32/_win32typing.pyi +0 -3
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32evtlogutil.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32pdhquery.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/odbc.pyi +12 -10
- package/dist/typeshed-fallback/stubs/pywin32/win32com/server/policy.pyi +1 -1
- package/dist/typeshed-fallback/stubs/requests-oauthlib/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/distutils/archive_util.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/ccompiler.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/cmd.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/bdist_rpm.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/build.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/build_clib.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/build_ext.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/build_py.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/install.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/install_scripts.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/register.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/sdist.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/upload.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/config.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/dep_util.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/dist.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/errors.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/extension.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/filelist.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/sysconfig.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/util.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/__init__.pyi +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from abc import ABCMeta, abstractmethod
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from typing import Any
|
|
5
|
+
from typing_extensions import Self
|
|
6
|
+
|
|
7
|
+
class Adapter(metaclass=ABCMeta):
|
|
8
|
+
@classmethod
|
|
9
|
+
def from_adapter(cls, adapter: Adapter) -> Self: ...
|
|
10
|
+
base_uri: str
|
|
11
|
+
token: str | None
|
|
12
|
+
namespace: str | None
|
|
13
|
+
session: bool
|
|
14
|
+
allow_redirects: bool
|
|
15
|
+
ignore_exceptions: bool
|
|
16
|
+
strict_http: bool
|
|
17
|
+
request_header: bool
|
|
18
|
+
def __init__(
|
|
19
|
+
self,
|
|
20
|
+
base_uri: str = "http://localhost:8200",
|
|
21
|
+
token: str | None = None,
|
|
22
|
+
cert: tuple[str, str] | None = None,
|
|
23
|
+
verify: bool = True,
|
|
24
|
+
timeout: int = 30,
|
|
25
|
+
proxies: Mapping[str, str] | None = None,
|
|
26
|
+
allow_redirects: bool = True,
|
|
27
|
+
session: Incomplete | None = None,
|
|
28
|
+
namespace: str | None = None,
|
|
29
|
+
ignore_exceptions: bool = False,
|
|
30
|
+
strict_http: bool = False,
|
|
31
|
+
request_header: bool = True,
|
|
32
|
+
) -> None: ...
|
|
33
|
+
@staticmethod
|
|
34
|
+
def urljoin(*args: object) -> str: ...
|
|
35
|
+
def close(self) -> None: ...
|
|
36
|
+
def get(self, url: str, **kwargs: Any): ...
|
|
37
|
+
def post(self, url: str, **kwargs: Any): ...
|
|
38
|
+
def put(self, url: str, **kwargs: Any): ...
|
|
39
|
+
def delete(self, url: str, **kwargs: Any): ...
|
|
40
|
+
def list(self, url: str, **kwargs: Any): ...
|
|
41
|
+
def head(self, url: str, **kwargs: Any): ...
|
|
42
|
+
def login(self, url: str, use_token: bool = True, **kwargs: Any): ...
|
|
43
|
+
@abstractmethod
|
|
44
|
+
def get_login_token(self, response) -> str: ...
|
|
45
|
+
@abstractmethod
|
|
46
|
+
def request(
|
|
47
|
+
self, method, url: str, headers: Mapping[str, str] | None = None, raise_exception: bool = True, **kwargs: Any
|
|
48
|
+
): ...
|
|
49
|
+
|
|
50
|
+
class RawAdapter(Adapter):
|
|
51
|
+
def get_login_token(self, response) -> str: ...
|
|
52
|
+
def request(
|
|
53
|
+
self, method: str, url: str, headers: Mapping[str, str] | None = None, raise_exception: bool = True, **kwargs: Any
|
|
54
|
+
): ...
|
|
55
|
+
|
|
56
|
+
class JSONAdapter(RawAdapter):
|
|
57
|
+
def get_login_token(self, response) -> str: ...
|
|
58
|
+
def request(self, *args: Any, **kwargs: Any): ...
|
|
59
|
+
|
|
60
|
+
Request = RawAdapter
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
from hvac.api.auth_methods import AuthMethods as AuthMethods
|
|
2
|
+
from hvac.api.secrets_engines import SecretsEngines as SecretsEngines
|
|
3
|
+
from hvac.api.system_backend import SystemBackend as SystemBackend
|
|
4
|
+
from hvac.api.vault_api_base import VaultApiBase as VaultApiBase
|
|
5
|
+
from hvac.api.vault_api_category import VaultApiCategory as VaultApiCategory
|
|
6
|
+
|
|
7
|
+
__all__ = ("AuthMethods", "SecretsEngines", "SystemBackend", "VaultApiBase", "VaultApiCategory")
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.auth_methods.approle import AppRole as AppRole
|
|
4
|
+
from hvac.api.auth_methods.aws import Aws as Aws
|
|
5
|
+
from hvac.api.auth_methods.azure import Azure as Azure
|
|
6
|
+
from hvac.api.auth_methods.cert import Cert as Cert
|
|
7
|
+
from hvac.api.auth_methods.gcp import Gcp as Gcp
|
|
8
|
+
from hvac.api.auth_methods.github import Github as Github
|
|
9
|
+
from hvac.api.auth_methods.jwt import JWT as JWT
|
|
10
|
+
from hvac.api.auth_methods.kubernetes import Kubernetes as Kubernetes
|
|
11
|
+
from hvac.api.auth_methods.ldap import Ldap as Ldap
|
|
12
|
+
from hvac.api.auth_methods.legacy_mfa import LegacyMfa as LegacyMfa
|
|
13
|
+
from hvac.api.auth_methods.oidc import OIDC as OIDC
|
|
14
|
+
from hvac.api.auth_methods.okta import Okta as Okta
|
|
15
|
+
from hvac.api.auth_methods.radius import Radius as Radius
|
|
16
|
+
from hvac.api.auth_methods.token import Token as Token
|
|
17
|
+
from hvac.api.auth_methods.userpass import Userpass as Userpass
|
|
18
|
+
from hvac.api.vault_api_category import VaultApiCategory
|
|
19
|
+
|
|
20
|
+
__all__ = (
|
|
21
|
+
"AuthMethods",
|
|
22
|
+
"AppRole",
|
|
23
|
+
"Azure",
|
|
24
|
+
"Gcp",
|
|
25
|
+
"Github",
|
|
26
|
+
"JWT",
|
|
27
|
+
"Kubernetes",
|
|
28
|
+
"Ldap",
|
|
29
|
+
"Userpass",
|
|
30
|
+
"LegacyMfa",
|
|
31
|
+
"OIDC",
|
|
32
|
+
"Okta",
|
|
33
|
+
"Radius",
|
|
34
|
+
"Token",
|
|
35
|
+
"Aws",
|
|
36
|
+
"Cert",
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
class AuthMethods(VaultApiCategory):
|
|
40
|
+
implemented_classes: Incomplete
|
|
41
|
+
unimplemented_classes: Incomplete
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.vault_api_base import VaultApiBase
|
|
4
|
+
|
|
5
|
+
class AppRole(VaultApiBase):
|
|
6
|
+
def create_or_update_approle(
|
|
7
|
+
self,
|
|
8
|
+
role_name,
|
|
9
|
+
bind_secret_id: Incomplete | None = None,
|
|
10
|
+
secret_id_bound_cidrs: Incomplete | None = None,
|
|
11
|
+
secret_id_num_uses: Incomplete | None = None,
|
|
12
|
+
secret_id_ttl: Incomplete | None = None,
|
|
13
|
+
enable_local_secret_ids: Incomplete | None = None,
|
|
14
|
+
token_ttl: Incomplete | None = None,
|
|
15
|
+
token_max_ttl: Incomplete | None = None,
|
|
16
|
+
token_policies: Incomplete | None = None,
|
|
17
|
+
token_bound_cidrs: Incomplete | None = None,
|
|
18
|
+
token_explicit_max_ttl: Incomplete | None = None,
|
|
19
|
+
token_no_default_policy: Incomplete | None = None,
|
|
20
|
+
token_num_uses: Incomplete | None = None,
|
|
21
|
+
token_period: Incomplete | None = None,
|
|
22
|
+
token_type: Incomplete | None = None,
|
|
23
|
+
mount_point="approle",
|
|
24
|
+
): ...
|
|
25
|
+
def list_roles(self, mount_point="approle"): ...
|
|
26
|
+
def read_role(self, role_name, mount_point="approle"): ...
|
|
27
|
+
def delete_role(self, role_name, mount_point="approle"): ...
|
|
28
|
+
def read_role_id(self, role_name, mount_point="approle"): ...
|
|
29
|
+
def update_role_id(self, role_name, role_id, mount_point="approle"): ...
|
|
30
|
+
def generate_secret_id(
|
|
31
|
+
self,
|
|
32
|
+
role_name,
|
|
33
|
+
metadata: Incomplete | None = None,
|
|
34
|
+
cidr_list: Incomplete | None = None,
|
|
35
|
+
token_bound_cidrs: Incomplete | None = None,
|
|
36
|
+
mount_point="approle",
|
|
37
|
+
wrap_ttl: Incomplete | None = None,
|
|
38
|
+
): ...
|
|
39
|
+
def create_custom_secret_id(
|
|
40
|
+
self,
|
|
41
|
+
role_name,
|
|
42
|
+
secret_id,
|
|
43
|
+
metadata: Incomplete | None = None,
|
|
44
|
+
cidr_list: Incomplete | None = None,
|
|
45
|
+
token_bound_cidrs: Incomplete | None = None,
|
|
46
|
+
mount_point="approle",
|
|
47
|
+
wrap_ttl: Incomplete | None = None,
|
|
48
|
+
): ...
|
|
49
|
+
def read_secret_id(self, role_name, secret_id, mount_point="approle"): ...
|
|
50
|
+
def destroy_secret_id(self, role_name, secret_id, mount_point="approle"): ...
|
|
51
|
+
def list_secret_id_accessors(self, role_name, mount_point="approle"): ...
|
|
52
|
+
def read_secret_id_accessor(self, role_name, secret_id_accessor, mount_point="approle"): ...
|
|
53
|
+
def destroy_secret_id_accessor(self, role_name, secret_id_accessor, mount_point="approle"): ...
|
|
54
|
+
def login(self, role_id, secret_id: Incomplete | None = None, use_token: bool = True, mount_point="approle"): ...
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.vault_api_base import VaultApiBase
|
|
4
|
+
|
|
5
|
+
logger: Incomplete
|
|
6
|
+
|
|
7
|
+
class Aws(VaultApiBase):
|
|
8
|
+
def configure(
|
|
9
|
+
self,
|
|
10
|
+
max_retries: Incomplete | None = None,
|
|
11
|
+
access_key: Incomplete | None = None,
|
|
12
|
+
secret_key: Incomplete | None = None,
|
|
13
|
+
endpoint: Incomplete | None = None,
|
|
14
|
+
iam_endpoint: Incomplete | None = None,
|
|
15
|
+
sts_endpoint: Incomplete | None = None,
|
|
16
|
+
iam_server_id_header_value: Incomplete | None = None,
|
|
17
|
+
mount_point: str = "aws",
|
|
18
|
+
): ...
|
|
19
|
+
def read_config(self, mount_point: str = "aws"): ...
|
|
20
|
+
def delete_config(self, mount_point: str = "aws"): ...
|
|
21
|
+
def configure_identity_integration(
|
|
22
|
+
self, iam_alias: Incomplete | None = None, ec2_alias: Incomplete | None = None, mount_point: str = "aws"
|
|
23
|
+
): ...
|
|
24
|
+
def read_identity_integration(self, mount_point: str = "aws"): ...
|
|
25
|
+
def create_certificate_configuration(
|
|
26
|
+
self, cert_name, aws_public_cert, document_type: Incomplete | None = None, mount_point: str = "aws"
|
|
27
|
+
): ...
|
|
28
|
+
def read_certificate_configuration(self, cert_name, mount_point: str = "aws"): ...
|
|
29
|
+
def delete_certificate_configuration(self, cert_name, mount_point: str = "aws"): ...
|
|
30
|
+
def list_certificate_configurations(self, mount_point: str = "aws"): ...
|
|
31
|
+
def create_sts_role(self, account_id, sts_role, mount_point: str = "aws"): ...
|
|
32
|
+
def read_sts_role(self, account_id, mount_point: str = "aws"): ...
|
|
33
|
+
def list_sts_roles(self, mount_point: str = "aws"): ...
|
|
34
|
+
def delete_sts_role(self, account_id, mount_point: str = "aws"): ...
|
|
35
|
+
def configure_identity_whitelist_tidy(
|
|
36
|
+
self, safety_buffer: Incomplete | None = None, disable_periodic_tidy: Incomplete | None = None, mount_point: str = "aws"
|
|
37
|
+
): ...
|
|
38
|
+
def read_identity_whitelist_tidy(self, mount_point: str = "aws"): ...
|
|
39
|
+
def delete_identity_whitelist_tidy(self, mount_point: str = "aws"): ...
|
|
40
|
+
def configure_role_tag_blacklist_tidy(
|
|
41
|
+
self, safety_buffer: Incomplete | None = None, disable_periodic_tidy: Incomplete | None = None, mount_point: str = "aws"
|
|
42
|
+
): ...
|
|
43
|
+
def read_role_tag_blacklist_tidy(self, mount_point: str = "aws"): ...
|
|
44
|
+
def delete_role_tag_blacklist_tidy(self, mount_point: str = "aws"): ...
|
|
45
|
+
def create_role(
|
|
46
|
+
self,
|
|
47
|
+
role,
|
|
48
|
+
auth_type: Incomplete | None = None,
|
|
49
|
+
bound_ami_id: Incomplete | None = None,
|
|
50
|
+
bound_account_id: Incomplete | None = None,
|
|
51
|
+
bound_region: Incomplete | None = None,
|
|
52
|
+
bound_vpc_id: Incomplete | None = None,
|
|
53
|
+
bound_subnet_id: Incomplete | None = None,
|
|
54
|
+
bound_iam_role_arn: Incomplete | None = None,
|
|
55
|
+
bound_iam_instance_profile_arn: Incomplete | None = None,
|
|
56
|
+
bound_ec2_instance_id: Incomplete | None = None,
|
|
57
|
+
role_tag: Incomplete | None = None,
|
|
58
|
+
bound_iam_principal_arn: Incomplete | None = None,
|
|
59
|
+
inferred_entity_type: Incomplete | None = None,
|
|
60
|
+
inferred_aws_region: Incomplete | None = None,
|
|
61
|
+
resolve_aws_unique_ids: Incomplete | None = None,
|
|
62
|
+
ttl: Incomplete | None = None,
|
|
63
|
+
max_ttl: Incomplete | None = None,
|
|
64
|
+
period: Incomplete | None = None,
|
|
65
|
+
policies: Incomplete | None = None,
|
|
66
|
+
allow_instance_migration: Incomplete | None = None,
|
|
67
|
+
disallow_reauthentication: Incomplete | None = None,
|
|
68
|
+
mount_point: str = "aws",
|
|
69
|
+
): ...
|
|
70
|
+
def read_role(self, role, mount_point: str = "aws"): ...
|
|
71
|
+
def list_roles(self, mount_point: str = "aws"): ...
|
|
72
|
+
def delete_role(self, role, mount_point: str = "aws"): ...
|
|
73
|
+
def create_role_tags(
|
|
74
|
+
self,
|
|
75
|
+
role,
|
|
76
|
+
policies: Incomplete | None = None,
|
|
77
|
+
max_ttl: Incomplete | None = None,
|
|
78
|
+
instance_id: Incomplete | None = None,
|
|
79
|
+
allow_instance_migration: Incomplete | None = None,
|
|
80
|
+
disallow_reauthentication: Incomplete | None = None,
|
|
81
|
+
mount_point: str = "aws",
|
|
82
|
+
): ...
|
|
83
|
+
def iam_login(
|
|
84
|
+
self,
|
|
85
|
+
access_key,
|
|
86
|
+
secret_key,
|
|
87
|
+
session_token: Incomplete | None = None,
|
|
88
|
+
header_value: Incomplete | None = None,
|
|
89
|
+
role: Incomplete | None = None,
|
|
90
|
+
use_token: bool = True,
|
|
91
|
+
region: str = "us-east-1",
|
|
92
|
+
mount_point: str = "aws",
|
|
93
|
+
): ...
|
|
94
|
+
def ec2_login(
|
|
95
|
+
self,
|
|
96
|
+
pkcs7,
|
|
97
|
+
nonce: Incomplete | None = None,
|
|
98
|
+
role: Incomplete | None = None,
|
|
99
|
+
use_token: bool = True,
|
|
100
|
+
mount_point: str = "aws",
|
|
101
|
+
): ...
|
|
102
|
+
def place_role_tags_in_blacklist(self, role_tag, mount_point: str = "aws"): ...
|
|
103
|
+
def read_role_tag_blacklist(self, role_tag, mount_point: str = "aws"): ...
|
|
104
|
+
def list_blacklist_tags(self, mount_point: str = "aws"): ...
|
|
105
|
+
def delete_blacklist_tags(self, role_tag, mount_point: str = "aws"): ...
|
|
106
|
+
def tidy_blacklist_tags(self, safety_buffer: str = "72h", mount_point: str = "aws"): ...
|
|
107
|
+
def read_identity_whitelist(self, instance_id, mount_point: str = "aws"): ...
|
|
108
|
+
def list_identity_whitelist(self, mount_point: str = "aws"): ...
|
|
109
|
+
def delete_identity_whitelist_entries(self, instance_id, mount_point: str = "aws"): ...
|
|
110
|
+
def tidy_identity_whitelist_entries(self, safety_buffer: str = "72h", mount_point: str = "aws"): ...
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.vault_api_base import VaultApiBase
|
|
4
|
+
|
|
5
|
+
DEFAULT_MOUNT_POINT: str
|
|
6
|
+
logger: Incomplete
|
|
7
|
+
|
|
8
|
+
class Azure(VaultApiBase):
|
|
9
|
+
def configure(
|
|
10
|
+
self,
|
|
11
|
+
tenant_id,
|
|
12
|
+
resource,
|
|
13
|
+
environment: Incomplete | None = None,
|
|
14
|
+
client_id: Incomplete | None = None,
|
|
15
|
+
client_secret: Incomplete | None = None,
|
|
16
|
+
mount_point="azure",
|
|
17
|
+
): ...
|
|
18
|
+
def read_config(self, mount_point="azure"): ...
|
|
19
|
+
def delete_config(self, mount_point="azure"): ...
|
|
20
|
+
def create_role(
|
|
21
|
+
self,
|
|
22
|
+
name,
|
|
23
|
+
policies: Incomplete | None = None,
|
|
24
|
+
ttl: Incomplete | None = None,
|
|
25
|
+
max_ttl: Incomplete | None = None,
|
|
26
|
+
period: Incomplete | None = None,
|
|
27
|
+
bound_service_principal_ids: Incomplete | None = None,
|
|
28
|
+
bound_group_ids: Incomplete | None = None,
|
|
29
|
+
bound_locations: Incomplete | None = None,
|
|
30
|
+
bound_subscription_ids: Incomplete | None = None,
|
|
31
|
+
bound_resource_groups: Incomplete | None = None,
|
|
32
|
+
bound_scale_sets: Incomplete | None = None,
|
|
33
|
+
num_uses: Incomplete | None = None,
|
|
34
|
+
mount_point="azure",
|
|
35
|
+
): ...
|
|
36
|
+
def read_role(self, name, mount_point="azure"): ...
|
|
37
|
+
def list_roles(self, mount_point="azure"): ...
|
|
38
|
+
def delete_role(self, name, mount_point="azure"): ...
|
|
39
|
+
def login(
|
|
40
|
+
self,
|
|
41
|
+
role,
|
|
42
|
+
jwt,
|
|
43
|
+
subscription_id: Incomplete | None = None,
|
|
44
|
+
resource_group_name: Incomplete | None = None,
|
|
45
|
+
vm_name: Incomplete | None = None,
|
|
46
|
+
vmss_name: Incomplete | None = None,
|
|
47
|
+
use_token: bool = True,
|
|
48
|
+
mount_point="azure",
|
|
49
|
+
): ...
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from hvac.api.vault_api_base import VaultApiBase
|
|
2
|
+
|
|
3
|
+
class Cert(VaultApiBase):
|
|
4
|
+
def create_ca_certificate_role(
|
|
5
|
+
self,
|
|
6
|
+
name,
|
|
7
|
+
certificate: str = "",
|
|
8
|
+
certificate_file: str = "",
|
|
9
|
+
allowed_common_names: str = "",
|
|
10
|
+
allowed_dns_sans: str = "",
|
|
11
|
+
allowed_email_sans: str = "",
|
|
12
|
+
allowed_uri_sans: str = "",
|
|
13
|
+
allowed_organizational_units: str = "",
|
|
14
|
+
required_extensions: str = "",
|
|
15
|
+
display_name: str = "",
|
|
16
|
+
token_ttl: int = 0,
|
|
17
|
+
token_max_ttl: int = 0,
|
|
18
|
+
token_policies=[],
|
|
19
|
+
token_bound_cidrs=[],
|
|
20
|
+
token_explicit_max_ttl: int = 0,
|
|
21
|
+
token_no_default_policy: bool = False,
|
|
22
|
+
token_num_uses: int = 0,
|
|
23
|
+
token_period: int = 0,
|
|
24
|
+
token_type: str = "",
|
|
25
|
+
mount_point: str = "cert",
|
|
26
|
+
): ...
|
|
27
|
+
def read_ca_certificate_role(self, name, mount_point: str = "cert"): ...
|
|
28
|
+
def list_certificate_roles(self, mount_point: str = "cert"): ...
|
|
29
|
+
def delete_certificate_role(self, name, mount_point: str = "cert"): ...
|
|
30
|
+
def configure_tls_certificate(self, mount_point: str = "cert", disable_binding: bool = False): ...
|
|
31
|
+
def login(
|
|
32
|
+
self,
|
|
33
|
+
name: str = "",
|
|
34
|
+
cacert: bool = False,
|
|
35
|
+
cert_pem: str = "",
|
|
36
|
+
key_pem: str = "",
|
|
37
|
+
mount_point: str = "cert",
|
|
38
|
+
use_token: bool = True,
|
|
39
|
+
): ...
|
|
40
|
+
|
|
41
|
+
class CertificateAuthError(Exception): ...
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.vault_api_base import VaultApiBase
|
|
4
|
+
|
|
5
|
+
DEFAULT_MOUNT_POINT: str
|
|
6
|
+
logger: Incomplete
|
|
7
|
+
|
|
8
|
+
class Gcp(VaultApiBase):
|
|
9
|
+
def configure(
|
|
10
|
+
self,
|
|
11
|
+
credentials: Incomplete | None = None,
|
|
12
|
+
google_certs_endpoint="https://www.googleapis.com/oauth2/v3/certs",
|
|
13
|
+
mount_point="gcp",
|
|
14
|
+
): ...
|
|
15
|
+
def read_config(self, mount_point="gcp"): ...
|
|
16
|
+
def delete_config(self, mount_point="gcp"): ...
|
|
17
|
+
def create_role(
|
|
18
|
+
self,
|
|
19
|
+
name,
|
|
20
|
+
role_type,
|
|
21
|
+
project_id,
|
|
22
|
+
ttl: Incomplete | None = None,
|
|
23
|
+
max_ttl: Incomplete | None = None,
|
|
24
|
+
period: Incomplete | None = None,
|
|
25
|
+
policies: Incomplete | None = None,
|
|
26
|
+
bound_service_accounts: Incomplete | None = None,
|
|
27
|
+
max_jwt_exp: Incomplete | None = None,
|
|
28
|
+
allow_gce_inference: Incomplete | None = None,
|
|
29
|
+
bound_zones: Incomplete | None = None,
|
|
30
|
+
bound_regions: Incomplete | None = None,
|
|
31
|
+
bound_instance_groups: Incomplete | None = None,
|
|
32
|
+
bound_labels: Incomplete | None = None,
|
|
33
|
+
mount_point="gcp",
|
|
34
|
+
): ...
|
|
35
|
+
def edit_service_accounts_on_iam_role(
|
|
36
|
+
self, name, add: Incomplete | None = None, remove: Incomplete | None = None, mount_point="gcp"
|
|
37
|
+
): ...
|
|
38
|
+
def edit_labels_on_gce_role(
|
|
39
|
+
self, name, add: Incomplete | None = None, remove: Incomplete | None = None, mount_point="gcp"
|
|
40
|
+
): ...
|
|
41
|
+
def read_role(self, name, mount_point="gcp"): ...
|
|
42
|
+
def list_roles(self, mount_point="gcp"): ...
|
|
43
|
+
def delete_role(self, role, mount_point="gcp"): ...
|
|
44
|
+
def login(self, role, jwt, use_token: bool = True, mount_point="gcp"): ...
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.vault_api_base import VaultApiBase
|
|
4
|
+
|
|
5
|
+
DEFAULT_MOUNT_POINT: str
|
|
6
|
+
|
|
7
|
+
class Github(VaultApiBase):
|
|
8
|
+
def configure(
|
|
9
|
+
self,
|
|
10
|
+
organization,
|
|
11
|
+
base_url: Incomplete | None = None,
|
|
12
|
+
ttl: Incomplete | None = None,
|
|
13
|
+
max_ttl: Incomplete | None = None,
|
|
14
|
+
mount_point="github",
|
|
15
|
+
): ...
|
|
16
|
+
def read_configuration(self, mount_point="github"): ...
|
|
17
|
+
def map_team(self, team_name, policies: Incomplete | None = None, mount_point="github"): ...
|
|
18
|
+
def read_team_mapping(self, team_name, mount_point="github"): ...
|
|
19
|
+
def map_user(self, user_name, policies: Incomplete | None = None, mount_point="github"): ...
|
|
20
|
+
def read_user_mapping(self, user_name, mount_point="github"): ...
|
|
21
|
+
def login(self, token, use_token: bool = True, mount_point="github"): ...
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.vault_api_base import VaultApiBase
|
|
4
|
+
|
|
5
|
+
class JWT(VaultApiBase):
|
|
6
|
+
DEFAULT_PATH: str
|
|
7
|
+
def resolve_path(self, path): ...
|
|
8
|
+
def configure(
|
|
9
|
+
self,
|
|
10
|
+
oidc_discovery_url: Incomplete | None = None,
|
|
11
|
+
oidc_discovery_ca_pem: Incomplete | None = None,
|
|
12
|
+
oidc_client_id: Incomplete | None = None,
|
|
13
|
+
oidc_client_secret: Incomplete | None = None,
|
|
14
|
+
oidc_response_mode: Incomplete | None = None,
|
|
15
|
+
oidc_response_types: Incomplete | None = None,
|
|
16
|
+
jwks_url: Incomplete | None = None,
|
|
17
|
+
jwks_ca_pem: Incomplete | None = None,
|
|
18
|
+
jwt_validation_pubkeys: Incomplete | None = None,
|
|
19
|
+
bound_issuer: Incomplete | None = None,
|
|
20
|
+
jwt_supported_algs: Incomplete | None = None,
|
|
21
|
+
default_role: Incomplete | None = None,
|
|
22
|
+
provider_config: Incomplete | None = None,
|
|
23
|
+
path: Incomplete | None = None,
|
|
24
|
+
): ...
|
|
25
|
+
def read_config(self, path: Incomplete | None = None): ...
|
|
26
|
+
def create_role(
|
|
27
|
+
self,
|
|
28
|
+
name,
|
|
29
|
+
user_claim,
|
|
30
|
+
allowed_redirect_uris,
|
|
31
|
+
role_type: str = "jwt",
|
|
32
|
+
bound_audiences: Incomplete | None = None,
|
|
33
|
+
clock_skew_leeway: Incomplete | None = None,
|
|
34
|
+
expiration_leeway: Incomplete | None = None,
|
|
35
|
+
not_before_leeway: Incomplete | None = None,
|
|
36
|
+
bound_subject: Incomplete | None = None,
|
|
37
|
+
bound_claims: Incomplete | None = None,
|
|
38
|
+
groups_claim: Incomplete | None = None,
|
|
39
|
+
claim_mappings: Incomplete | None = None,
|
|
40
|
+
oidc_scopes: Incomplete | None = None,
|
|
41
|
+
bound_claims_type: str = "string",
|
|
42
|
+
verbose_oidc_logging: bool = False,
|
|
43
|
+
token_ttl: Incomplete | None = None,
|
|
44
|
+
token_max_ttl: Incomplete | None = None,
|
|
45
|
+
token_policies: Incomplete | None = None,
|
|
46
|
+
token_bound_cidrs: Incomplete | None = None,
|
|
47
|
+
token_explicit_max_ttl: Incomplete | None = None,
|
|
48
|
+
token_no_default_policy: Incomplete | None = None,
|
|
49
|
+
token_num_uses: Incomplete | None = None,
|
|
50
|
+
token_period: Incomplete | None = None,
|
|
51
|
+
token_type: Incomplete | None = None,
|
|
52
|
+
path: Incomplete | None = None,
|
|
53
|
+
user_claim_json_pointer: Incomplete | None = None,
|
|
54
|
+
): ...
|
|
55
|
+
def read_role(self, name, path: Incomplete | None = None): ...
|
|
56
|
+
def list_roles(self, path: Incomplete | None = None): ...
|
|
57
|
+
def delete_role(self, name, path: Incomplete | None = None): ...
|
|
58
|
+
def oidc_authorization_url_request(self, role, redirect_uri, path: Incomplete | None = None): ...
|
|
59
|
+
def oidc_callback(self, state, nonce, code, path: Incomplete | None = None): ...
|
|
60
|
+
def jwt_login(self, role, jwt, use_token: bool = True, path: Incomplete | None = None): ...
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.vault_api_base import VaultApiBase
|
|
4
|
+
|
|
5
|
+
DEFAULT_MOUNT_POINT: str
|
|
6
|
+
|
|
7
|
+
class Kubernetes(VaultApiBase):
|
|
8
|
+
def configure(
|
|
9
|
+
self,
|
|
10
|
+
kubernetes_host,
|
|
11
|
+
kubernetes_ca_cert: Incomplete | None = None,
|
|
12
|
+
token_reviewer_jwt: Incomplete | None = None,
|
|
13
|
+
pem_keys: Incomplete | None = None,
|
|
14
|
+
issuer: Incomplete | None = None,
|
|
15
|
+
mount_point="kubernetes",
|
|
16
|
+
disable_local_ca_jwt: bool = False,
|
|
17
|
+
): ...
|
|
18
|
+
def read_config(self, mount_point="kubernetes"): ...
|
|
19
|
+
def create_role(
|
|
20
|
+
self,
|
|
21
|
+
name,
|
|
22
|
+
bound_service_account_names,
|
|
23
|
+
bound_service_account_namespaces,
|
|
24
|
+
ttl: Incomplete | None = None,
|
|
25
|
+
max_ttl: Incomplete | None = None,
|
|
26
|
+
period: Incomplete | None = None,
|
|
27
|
+
policies: Incomplete | None = None,
|
|
28
|
+
token_type: str = "",
|
|
29
|
+
mount_point="kubernetes",
|
|
30
|
+
alias_name_source: Incomplete | None = None,
|
|
31
|
+
): ...
|
|
32
|
+
def read_role(self, name, mount_point="kubernetes"): ...
|
|
33
|
+
def list_roles(self, mount_point="kubernetes"): ...
|
|
34
|
+
def delete_role(self, name, mount_point="kubernetes"): ...
|
|
35
|
+
def login(self, role, jwt, use_token: bool = True, mount_point="kubernetes"): ...
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.vault_api_base import VaultApiBase
|
|
4
|
+
|
|
5
|
+
DEFAULT_MOUNT_POINT: str
|
|
6
|
+
|
|
7
|
+
class Ldap(VaultApiBase):
|
|
8
|
+
def configure(
|
|
9
|
+
self,
|
|
10
|
+
userdn: Incomplete | None = None,
|
|
11
|
+
groupdn: Incomplete | None = None,
|
|
12
|
+
url: Incomplete | None = None,
|
|
13
|
+
case_sensitive_names: Incomplete | None = None,
|
|
14
|
+
starttls: Incomplete | None = None,
|
|
15
|
+
tls_min_version: Incomplete | None = None,
|
|
16
|
+
tls_max_version: Incomplete | None = None,
|
|
17
|
+
insecure_tls: Incomplete | None = None,
|
|
18
|
+
certificate: Incomplete | None = None,
|
|
19
|
+
binddn: Incomplete | None = None,
|
|
20
|
+
bindpass: Incomplete | None = None,
|
|
21
|
+
userattr: Incomplete | None = None,
|
|
22
|
+
discoverdn: Incomplete | None = None,
|
|
23
|
+
deny_null_bind: bool = True,
|
|
24
|
+
upndomain: Incomplete | None = None,
|
|
25
|
+
groupfilter: Incomplete | None = None,
|
|
26
|
+
groupattr: Incomplete | None = None,
|
|
27
|
+
use_token_groups: Incomplete | None = None,
|
|
28
|
+
token_ttl: Incomplete | None = None,
|
|
29
|
+
token_max_ttl: Incomplete | None = None,
|
|
30
|
+
mount_point="ldap",
|
|
31
|
+
*,
|
|
32
|
+
anonymous_group_search: Incomplete | None = None,
|
|
33
|
+
client_tls_cert: Incomplete | None = None,
|
|
34
|
+
client_tls_key: Incomplete | None = None,
|
|
35
|
+
connection_timeout: Incomplete | None = None,
|
|
36
|
+
dereference_aliases: Incomplete | None = None,
|
|
37
|
+
max_page_size: Incomplete | None = None,
|
|
38
|
+
request_timeout: Incomplete | None = None,
|
|
39
|
+
token_bound_cidrs: Incomplete | None = None,
|
|
40
|
+
token_explicit_max_ttl: Incomplete | None = None,
|
|
41
|
+
token_no_default_policy: Incomplete | None = None,
|
|
42
|
+
token_num_uses: Incomplete | None = None,
|
|
43
|
+
token_period: Incomplete | None = None,
|
|
44
|
+
token_policies: Incomplete | None = None,
|
|
45
|
+
token_type: Incomplete | None = None,
|
|
46
|
+
userfilter: Incomplete | None = None,
|
|
47
|
+
username_as_alias: Incomplete | None = None,
|
|
48
|
+
): ...
|
|
49
|
+
def read_configuration(self, mount_point="ldap"): ...
|
|
50
|
+
def create_or_update_group(self, name, policies: Incomplete | None = None, mount_point="ldap"): ...
|
|
51
|
+
def list_groups(self, mount_point="ldap"): ...
|
|
52
|
+
def read_group(self, name, mount_point="ldap"): ...
|
|
53
|
+
def delete_group(self, name, mount_point="ldap"): ...
|
|
54
|
+
def create_or_update_user(
|
|
55
|
+
self, username, policies: Incomplete | None = None, groups: Incomplete | None = None, mount_point="ldap"
|
|
56
|
+
): ...
|
|
57
|
+
def list_users(self, mount_point="ldap"): ...
|
|
58
|
+
def read_user(self, username, mount_point="ldap"): ...
|
|
59
|
+
def delete_user(self, username, mount_point="ldap"): ...
|
|
60
|
+
def login(self, username, password, use_token: bool = True, mount_point="ldap"): ...
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.vault_api_base import VaultApiBase
|
|
4
|
+
|
|
5
|
+
SUPPORTED_MFA_TYPES: Incomplete
|
|
6
|
+
SUPPORTED_AUTH_METHODS: Incomplete
|
|
7
|
+
|
|
8
|
+
class LegacyMfa(VaultApiBase):
|
|
9
|
+
def configure(self, mount_point, mfa_type: str = "duo", force: bool = False): ...
|
|
10
|
+
def read_configuration(self, mount_point): ...
|
|
11
|
+
def configure_duo_access(self, mount_point, host, integration_key, secret_key): ...
|
|
12
|
+
def configure_duo_behavior(
|
|
13
|
+
self, mount_point, push_info: Incomplete | None = None, user_agent: Incomplete | None = None, username_format: str = "%s"
|
|
14
|
+
): ...
|
|
15
|
+
def read_duo_behavior_configuration(self, mount_point): ...
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.auth_methods.jwt import JWT
|
|
4
|
+
|
|
5
|
+
class OIDC(JWT):
|
|
6
|
+
DEFAULT_PATH: str
|
|
7
|
+
def create_role(
|
|
8
|
+
self,
|
|
9
|
+
name,
|
|
10
|
+
user_claim,
|
|
11
|
+
allowed_redirect_uris,
|
|
12
|
+
role_type: str = "oidc",
|
|
13
|
+
bound_audiences: Incomplete | None = None,
|
|
14
|
+
clock_skew_leeway: Incomplete | None = None,
|
|
15
|
+
expiration_leeway: Incomplete | None = None,
|
|
16
|
+
not_before_leeway: Incomplete | None = None,
|
|
17
|
+
bound_subject: Incomplete | None = None,
|
|
18
|
+
bound_claims: Incomplete | None = None,
|
|
19
|
+
groups_claim: Incomplete | None = None,
|
|
20
|
+
claim_mappings: Incomplete | None = None,
|
|
21
|
+
oidc_scopes: Incomplete | None = None,
|
|
22
|
+
bound_claims_type: str = "string",
|
|
23
|
+
verbose_oidc_logging: bool = False,
|
|
24
|
+
token_ttl: Incomplete | None = None,
|
|
25
|
+
token_max_ttl: Incomplete | None = None,
|
|
26
|
+
token_policies: Incomplete | None = None,
|
|
27
|
+
token_bound_cidrs: Incomplete | None = None,
|
|
28
|
+
token_explicit_max_ttl: Incomplete | None = None,
|
|
29
|
+
token_no_default_policy: Incomplete | None = None,
|
|
30
|
+
token_num_uses: Incomplete | None = None,
|
|
31
|
+
token_period: Incomplete | None = None,
|
|
32
|
+
token_type: Incomplete | None = None,
|
|
33
|
+
path: Incomplete | None = None,
|
|
34
|
+
user_claim_json_pointer: Incomplete | None = None,
|
|
35
|
+
) -> None: ...
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from hvac.api.vault_api_base import VaultApiBase
|
|
4
|
+
|
|
5
|
+
DEFAULT_MOUNT_POINT: str
|
|
6
|
+
|
|
7
|
+
class Okta(VaultApiBase):
|
|
8
|
+
def configure(
|
|
9
|
+
self,
|
|
10
|
+
org_name,
|
|
11
|
+
api_token: Incomplete | None = None,
|
|
12
|
+
base_url: Incomplete | None = None,
|
|
13
|
+
ttl: Incomplete | None = None,
|
|
14
|
+
max_ttl: Incomplete | None = None,
|
|
15
|
+
bypass_okta_mfa: Incomplete | None = None,
|
|
16
|
+
mount_point="okta",
|
|
17
|
+
): ...
|
|
18
|
+
def read_config(self, mount_point="okta"): ...
|
|
19
|
+
def list_users(self, mount_point="okta"): ...
|
|
20
|
+
def register_user(
|
|
21
|
+
self, username, groups: Incomplete | None = None, policies: Incomplete | None = None, mount_point="okta"
|
|
22
|
+
): ...
|
|
23
|
+
def read_user(self, username, mount_point="okta"): ...
|
|
24
|
+
def delete_user(self, username, mount_point="okta"): ...
|
|
25
|
+
def list_groups(self, mount_point="okta"): ...
|
|
26
|
+
def register_group(self, name, policies: Incomplete | None = None, mount_point="okta"): ...
|
|
27
|
+
def read_group(self, name, mount_point="okta"): ...
|
|
28
|
+
def delete_group(self, name, mount_point="okta"): ...
|
|
29
|
+
def login(self, username, password, use_token: bool = True, mount_point="okta"): ...
|