1 from typing import Any, Dict, Optional, Text
\r
2 from six.moves import http_client
\r
4 HAVE_HTTPS_CONNECTION = ... # type: bool
\r
5 ON_APP_ENGINE = ... # type: Any
\r
6 PORTS_BY_SECURITY = ... # type: Any
\r
7 DEFAULT_CA_CERTS_FILE = ... # type: Any
\r
9 class HostConnectionPool:
\r
10 queue = ... # type: Any
\r
11 def __init__(self) -> None: ...
\r
13 def put(self, conn): ...
\r
15 def clean(self): ...
\r
17 class ConnectionPool:
\r
18 CLEAN_INTERVAL = ... # type: float
\r
19 STALE_DURATION = ... # type: float
\r
20 host_to_pool = ... # type: Any
\r
21 last_clean_time = ... # type: float
\r
22 mutex = ... # type: Any
\r
23 def __init__(self) -> None: ...
\r
25 def get_http_connection(self, host, port, is_secure): ...
\r
26 def put_http_connection(self, host, port, is_secure, conn): ...
\r
27 def clean(self): ...
\r
30 method = ... # type: Any
\r
31 protocol = ... # type: Any
\r
32 host = ... # type: Any
\r
33 port = ... # type: Any
\r
34 path = ... # type: Any
\r
35 auth_path = ... # type: Any
\r
36 params = ... # type: Any
\r
37 headers = ... # type: Any
\r
38 body = ... # type: Any
\r
39 def __init__(self, method, protocol, host, port, path, auth_path, params, headers, body) -> None: ...
\r
40 def authorize(self, connection, **kwargs): ...
\r
42 class HTTPResponse(http_client.HTTPResponse):
\r
43 def __init__(self, *args, **kwargs) -> None: ...
\r
44 def read(self, amt: Optional[Any] = ...): ...
\r
46 class AWSAuthConnection:
\r
47 suppress_consec_slashes = ... # type: Any
\r
48 num_retries = ... # type: int
\r
49 is_secure = ... # type: Any
\r
50 https_validate_certificates = ... # type: Any
\r
51 ca_certificates_file = ... # type: Any
\r
52 port = ... # type: Any
\r
53 http_exceptions = ... # type: Any
\r
54 http_unretryable_exceptions = ... # type: Any
\r
55 socket_exception_values = ... # type: Any
\r
56 https_connection_factory = ... # type: Any
\r
57 protocol = ... # type: str
\r
58 host = ... # type: Any
\r
59 path = ... # type: Any
\r
60 debug = ... # type: Any
\r
61 host_header = ... # type: Any
\r
62 http_connection_kwargs = ... # type: Any
\r
63 provider = ... # type: Any
\r
64 auth_service_name = ... # type: Any
\r
65 request_hook = ... # type: Any
\r
66 def __init__(self, host, aws_access_key_id: Optional[Any] = ..., aws_secret_access_key: Optional[Any] = ..., is_secure: bool = ..., port: Optional[Any] = ..., proxy: Optional[Any] = ..., proxy_port: Optional[Any] = ..., proxy_user: Optional[Any] = ..., proxy_pass: Optional[Any] = ..., debug: int = ..., https_connection_factory: Optional[Any] = ..., path: str = ..., provider: str = ..., security_token: Optional[Any] = ..., suppress_consec_slashes: bool = ..., validate_certs: bool = ..., profile_name: Optional[Any] = ...) -> None: ...
\r
67 auth_region_name = ... # type: Any
\r
69 def connection(self): ...
\r
71 def aws_access_key_id(self): ...
\r
73 def gs_access_key_id(self): ... # type: Any
\r
74 access_key = ... # type: Any
\r
76 def aws_secret_access_key(self): ...
\r
78 def gs_secret_access_key(self): ...
\r
79 secret_key = ... # type: Any
\r
81 def profile_name(self): ...
\r
82 def get_path(self, path: str = ...): ...
\r
83 def server_name(self, port: Optional[Any] = ...): ...
\r
84 proxy = ... # type: Any
\r
85 proxy_port = ... # type: Any
\r
86 proxy_user = ... # type: Any
\r
87 proxy_pass = ... # type: Any
\r
88 no_proxy = ... # type: Any
\r
89 use_proxy = ... # type: Any
\r
90 def handle_proxy(self, proxy, proxy_port, proxy_user, proxy_pass): ...
\r
91 def get_http_connection(self, host, port, is_secure): ...
\r
92 def skip_proxy(self, host): ...
\r
93 def new_http_connection(self, host, port, is_secure): ...
\r
94 def put_http_connection(self, host, port, is_secure, connection): ...
\r
95 def proxy_ssl(self, host: Optional[Any] = ..., port: Optional[Any] = ...): ...
\r
96 def prefix_proxy_to_path(self, path, host: Optional[Any] = ...): ...
\r
97 def get_proxy_auth_header(self): ...
\r
98 def get_proxy_url_with_auth(self): ...
\r
99 def set_host_header(self, request): ...
\r
100 def set_request_hook(self, hook): ...
\r
101 def build_base_http_request(self, method, path, auth_path, params: Optional[Any] = ..., headers: Optional[Any] = ..., data: str = ..., host: Optional[Any] = ...): ...
\r
102 def make_request(self, method, path, headers: Optional[Any] = ..., data: str = ..., host: Optional[Any] = ..., auth_path: Optional[Any] = ..., sender: Optional[Any] = ..., override_num_retries: Optional[Any] = ..., params: Optional[Any] = ..., retry_handler: Optional[Any] = ...): ...
\r
103 def close(self): ...
\r
105 class AWSQueryConnection(AWSAuthConnection):
\r
106 APIVersion = ... # type: str
\r
107 ResponseError = ... # type: Any
\r
108 def __init__(self, aws_access_key_id: Optional[Any] = ..., aws_secret_access_key: Optional[Any] = ..., is_secure: bool = ..., port: Optional[Any] = ..., proxy: Optional[Any] = ..., proxy_port: Optional[Any] = ..., proxy_user: Optional[Any] = ..., proxy_pass: Optional[Any] = ..., host: Optional[Any] = ..., debug: int = ..., https_connection_factory: Optional[Any] = ..., path: str = ..., security_token: Optional[Any] = ..., validate_certs: bool = ..., profile_name: Optional[Any] = ..., provider: str = ...) -> None: ...
\r
109 def get_utf8_value(self, value): ...
\r
110 def make_request(self, action, params: Optional[Any] = ..., path: str = ..., verb: str = ..., *args, **kwargs): ... # type: ignore # https://github.com/python/mypy/issues/1237
\r
111 def build_list_params(self, params, items, label): ...
\r
112 def build_complex_list_params(self, params, items, label, names): ...
\r
113 def get_list(self, action, params, markers, path: str = ..., parent: Optional[Any] = ..., verb: str = ...): ...
\r
114 def get_object(self, action, params, cls, path: str = ..., parent: Optional[Any] = ..., verb: str = ...): ...
\r
115 def get_status(self, action, params, path: str = ..., parent: Optional[Any] = ..., verb: str = ...): ...
\r