massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / boto / s3 / connection.pyi
1 from .bucket import Bucket\r
2 \r
3 from typing import Any, Dict, Optional, Text, Type\r
4 from boto.connection import AWSAuthConnection\r
5 from boto.exception import BotoClientError\r
6 \r
7 def check_lowercase_bucketname(n): ...\r
8 def assert_case_insensitive(f): ...\r
9 \r
10 class _CallingFormat:\r
11     def get_bucket_server(self, server, bucket): ...\r
12     def build_url_base(self, connection, protocol, server, bucket, key: str = ...): ...\r
13     def build_host(self, server, bucket): ...\r
14     def build_auth_path(self, bucket, key: str = ...): ...\r
15     def build_path_base(self, bucket, key: str = ...): ...\r
16 \r
17 class SubdomainCallingFormat(_CallingFormat):\r
18     def get_bucket_server(self, server, bucket): ...\r
19 \r
20 class VHostCallingFormat(_CallingFormat):\r
21     def get_bucket_server(self, server, bucket): ...\r
22 \r
23 class OrdinaryCallingFormat(_CallingFormat):\r
24     def get_bucket_server(self, server, bucket): ...\r
25     def build_path_base(self, bucket, key: str = ...): ...\r
26 \r
27 class ProtocolIndependentOrdinaryCallingFormat(OrdinaryCallingFormat):\r
28     def build_url_base(self, connection, protocol, server, bucket, key: str = ...): ...\r
29 \r
30 class Location:\r
31     DEFAULT = ...  # type: str\r
32     EU = ...  # type: str\r
33     EUCentral1 = ...  # type: str\r
34     USWest = ...  # type: str\r
35     USWest2 = ...  # type: str\r
36     SAEast = ...  # type: str\r
37     APNortheast = ...  # type: str\r
38     APSoutheast = ...  # type: str\r
39     APSoutheast2 = ...  # type: str\r
40     CNNorth1 = ...  # type: str\r
41 \r
42 class NoHostProvided: ...\r
43 class HostRequiredError(BotoClientError): ...\r
44 \r
45 class S3Connection(AWSAuthConnection):\r
46     DefaultHost = ...  # type: Any\r
47     DefaultCallingFormat = ...  # type: Any\r
48     QueryString = ...  # type: str\r
49     calling_format = ...  # type: Any\r
50     bucket_class = ...  # type: Type[Bucket]\r
51     anon = ...  # type: Any\r
52     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: Any = ..., debug: int = ..., https_connection_factory: Optional[Any] = ..., calling_format: Any = ..., path: str = ..., provider: str = ..., bucket_class: Type[Bucket] = ..., security_token: Optional[Any] = ..., suppress_consec_slashes: bool = ..., anon: bool = ..., validate_certs: Optional[Any] = ..., profile_name: Optional[Any] = ...) -> None: ...\r
53     def __iter__(self): ...\r
54     def __contains__(self, bucket_name): ...\r
55     def set_bucket_class(self, bucket_class: Type[Bucket]) -> None: ...\r
56     def build_post_policy(self, expiration_time, conditions): ...\r
57     def build_post_form_args(self, bucket_name, key, expires_in: int = ..., acl: Optional[Any] = ..., success_action_redirect: Optional[Any] = ..., max_content_length: Optional[Any] = ..., http_method: str = ..., fields: Optional[Any] = ..., conditions: Optional[Any] = ..., storage_class: str = ..., server_side_encryption: Optional[Any] = ...): ...\r
58     def generate_url_sigv4(self, expires_in, method, bucket: str = ..., key: str = ..., headers: Optional[Dict[Text, Text]] = ..., force_http: bool = ..., response_headers: Optional[Dict[Text, Text]] = ..., version_id: Optional[Any] = ..., iso_date: Optional[Any] = ...): ...\r
59     def generate_url(self, expires_in, method, bucket: str = ..., key: str = ..., headers: Optional[Dict[Text, Text]] = ..., query_auth: bool = ..., force_http: bool = ..., response_headers: Optional[Dict[Text, Text]] = ..., expires_in_absolute: bool = ..., version_id: Optional[Any] = ...): ...\r
60     def get_all_buckets(self, headers: Optional[Dict[Text, Text]] = ...): ...\r
61     def get_canonical_user_id(self, headers: Optional[Dict[Text, Text]] = ...): ...\r
62     def get_bucket(self, bucket_name: Text, validate: bool = ..., headers: Optional[Dict[Text, Text]] = ...) -> Bucket: ...\r
63     def head_bucket(self, bucket_name, headers: Optional[Dict[Text, Text]] = ...): ...\r
64     def lookup(self, bucket_name, validate: bool = ..., headers: Optional[Dict[Text, Text]] = ...): ...\r
65     def create_bucket(self, bucket_name, headers: Optional[Dict[Text, Text]] = ..., location: Any = ..., policy: Optional[Any] = ...): ...\r
66     def delete_bucket(self, bucket, headers: Optional[Dict[Text, Text]] = ...): ...\r
67     def make_request(self, method, bucket: str = ..., key: str = ..., headers: Optional[Any] = ..., data: str = ..., query_args: Optional[Any] = ..., sender: Optional[Any] = ..., override_num_retries: Optional[Any] = ..., retry_handler: Optional[Any] = ..., *args, **kwargs): ...  # type: ignore # https://github.com/python/mypy/issues/1237\r