massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / boto / boto / auth.pyi
1 from typing import Any
2
3 from boto.auth_handler import AuthHandler
4
5 SIGV4_DETECT: Any
6
7 class HmacKeys:
8     host: Any
9     def __init__(self, host, config, provider) -> None: ...
10     def update_provider(self, provider): ...
11     def algorithm(self): ...
12     def sign_string(self, string_to_sign): ...
13
14 class AnonAuthHandler(AuthHandler, HmacKeys):
15     capability: Any
16     def __init__(self, host, config, provider) -> None: ...
17     def add_auth(self, http_request, **kwargs): ...
18
19 class HmacAuthV1Handler(AuthHandler, HmacKeys):
20     capability: Any
21     def __init__(self, host, config, provider) -> None: ...
22     def update_provider(self, provider): ...
23     def add_auth(self, http_request, **kwargs): ...
24
25 class HmacAuthV2Handler(AuthHandler, HmacKeys):
26     capability: Any
27     def __init__(self, host, config, provider) -> None: ...
28     def update_provider(self, provider): ...
29     def add_auth(self, http_request, **kwargs): ...
30
31 class HmacAuthV3Handler(AuthHandler, HmacKeys):
32     capability: Any
33     def __init__(self, host, config, provider) -> None: ...
34     def add_auth(self, http_request, **kwargs): ...
35
36 class HmacAuthV3HTTPHandler(AuthHandler, HmacKeys):
37     capability: Any
38     def __init__(self, host, config, provider) -> None: ...
39     def headers_to_sign(self, http_request): ...
40     def canonical_headers(self, headers_to_sign): ...
41     def string_to_sign(self, http_request): ...
42     def add_auth(self, req, **kwargs): ...
43
44 class HmacAuthV4Handler(AuthHandler, HmacKeys):
45     capability: Any
46     service_name: Any
47     region_name: Any
48     def __init__(self, host, config, provider, service_name: Any | None = ..., region_name: Any | None = ...) -> None: ...
49     def headers_to_sign(self, http_request): ...
50     def host_header(self, host, http_request): ...
51     def query_string(self, http_request): ...
52     def canonical_query_string(self, http_request): ...
53     def canonical_headers(self, headers_to_sign): ...
54     def signed_headers(self, headers_to_sign): ...
55     def canonical_uri(self, http_request): ...
56     def payload(self, http_request): ...
57     def canonical_request(self, http_request): ...
58     def scope(self, http_request): ...
59     def split_host_parts(self, host): ...
60     def determine_region_name(self, host): ...
61     def determine_service_name(self, host): ...
62     def credential_scope(self, http_request): ...
63     def string_to_sign(self, http_request, canonical_request): ...
64     def signature(self, http_request, string_to_sign): ...
65     def add_auth(self, req, **kwargs): ...
66
67 class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler):
68     capability: Any
69     region_name: Any
70     def __init__(self, *args, **kwargs) -> None: ...
71     def clean_region_name(self, region_name): ...
72     def canonical_uri(self, http_request): ...
73     def canonical_query_string(self, http_request): ...
74     def host_header(self, host, http_request): ...
75     def headers_to_sign(self, http_request): ...
76     def determine_region_name(self, host): ...
77     def determine_service_name(self, host): ...
78     def mangle_path_and_params(self, req): ...
79     def payload(self, http_request): ...
80     def add_auth(self, req, **kwargs): ...
81     def presign(self, req, expires, iso_date: Any | None = ...): ...
82
83 class STSAnonHandler(AuthHandler):
84     capability: Any
85     def add_auth(self, http_request, **kwargs): ...
86
87 class QuerySignatureHelper(HmacKeys):
88     def add_auth(self, http_request, **kwargs): ...
89
90 class QuerySignatureV0AuthHandler(QuerySignatureHelper, AuthHandler):
91     SignatureVersion: int
92     capability: Any
93
94 class QuerySignatureV1AuthHandler(QuerySignatureHelper, AuthHandler):
95     SignatureVersion: int
96     capability: Any
97     def __init__(self, *args, **kw) -> None: ...
98
99 class QuerySignatureV2AuthHandler(QuerySignatureHelper, AuthHandler):
100     SignatureVersion: int
101     capability: Any
102
103 class POSTPathQSV2AuthHandler(QuerySignatureV2AuthHandler, AuthHandler):
104     capability: Any
105     def add_auth(self, req, **kwargs): ...
106
107 def get_auth_handler(host, config, provider, requested_capability: Any | None = ...): ...
108 def detect_potential_sigv4(func): ...
109 def detect_potential_s3sigv4(func): ...