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