Skip to content

Commit a8ff43a

Browse files
author
Max Rozentsveyg
committed
fixes
1 parent a3e45b5 commit a8ff43a

File tree

2 files changed

+99
-197
lines changed

2 files changed

+99
-197
lines changed

third_party/2and3/boto/provider.pyi

Lines changed: 1 addition & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1,111 +1 @@
1-
from typing import Any, Optional, Text, Union
2-
3-
from boto.exceptions import BotoServerError
4-
from boto.gs.acl import CannedACLStrings as CannedGSACLStrings
5-
from boto.pyami.config import Config
6-
from boto.s3.acl import Acl, Policy
7-
from boto.s3.acl import CannedACLStrings as CannedS3ACLStrings
8-
9-
HEADER_PREFIX_KEY = ... # type: Text
10-
METADATA_PREFIX_KEY = ... # type: Text
11-
AWS_HEADER_PREFIX = ... # type: Text
12-
GOOG_HEADER_PREFIX = ... # type: Text
13-
ACL_HEADER_KEY = ... # type: Text
14-
AUTH_HEADER_KEY = ... # type: Text
15-
COPY_SOURCE_HEADER_KEY = ... # type: Text
16-
COPY_SOURCE_VERSION_ID_HEADER_KEY = ... # type: Text
17-
COPY_SOURCE_RANGE_HEADER_KEY = ... # type: Text
18-
DELETE_MARKER_HEADER_KEY = ... # type: Text
19-
DATE_HEADER_KEY = ... # type: Text
20-
METADATA_DIRECTIVE_HEADER_KEY = ... # type: Text
21-
RESUMABLE_UPLOAD_HEADER_KEY = ... # type: Text
22-
SECURITY_TOKEN_HEADER_KEY = ... # type: Text
23-
STORAGE_CLASS_HEADER_KEY = ... # type: Text
24-
MFA_HEADER_KEY = ... # type: Text
25-
SERVER_SIDE_ENCRYPTION_KEY = ... # type: Text
26-
VERSION_ID_HEADER_KEY = ... # type: Text
27-
RESTORE_HEADER_KEY = ... # type: Text
28-
STORAGE_COPY_ERROR = ... # type: Text
29-
STORAGE_CREATE_ERROR = ... # type: Text
30-
STORAGE_DATA_ERROR = ... # type: Text
31-
STORAGE_PERMISSIONS_ERROR = ... # type: Text
32-
STORAGE_RESPONSE_ERROR = ... # type: Text
33-
NO_CREDENTIALS_PROVIDED = ... # type: object
34-
35-
class ProfileNotFoundError(ValueError): ...
36-
37-
class Provider:
38-
CredentialMap = ... # type: Dict[Text, Tuple[Text, Text, Text, Text]
39-
AclClassMap = ... # type: Dict[Text, Union[Policy, Acl]]
40-
CannedAclsMap = ... # type: Dict[Text, Union[CannedS3ACLStrings, CannedGSACLStrings]]
41-
HostKeyMap = ... # type: Dict[Text, Text]
42-
ChunkedTransferSupport = ... # type: Dict[Text, bool]
43-
MetadataServiceSupport = ... # type: Dict[Text, bool]
44-
HeaderInfoMap = ... # type: Dict[Text, Dict[Text, Optional[Text]]]
45-
ErrorMap = ... # type: Dict[Text, BotoServerError]
46-
47-
host = ... # type: Optional[Text]
48-
port = ... # type: Optional[int]
49-
host_header = ... # type: Optional[Text]
50-
access_key = ... # type: Text
51-
secret_key = ... # type: Text
52-
security_token = ... # type: Optional[Text]
53-
profile_name = ... # type: Optional[Text]
54-
name = ... # type: Text
55-
acl_class = ... # type: Union[Policy, Acl]
56-
canned_acls = ... # type: Union[CannedS3ACLStrings, CannedGSACLStrings]
57-
shared_credentials = ... # type: Any
58-
59-
def __init__(
60-
self,
61-
name: Text,
62-
access_key: Optional[Text] = ...,
63-
secret_key: Optional[Text] = ...,
64-
security_token: Optional[Text] = ...,
65-
profile_name: Optional[Text] = ...,
66-
): ...
67-
def get_access_key(self): ...
68-
def set_access_key(self, value: Text): ...
69-
def get_secret_key(self): ...
70-
def set_secret_key(self, value: Text): ...
71-
def get_security_token(self): ...
72-
def set_security_token(self, value: Text): ...
73-
def get_credentials(
74-
self,
75-
access_key: Optional[Text] = ...,
76-
secret_key: Optional[Text] = ...,
77-
security_token: Optional[Text] = ...,
78-
profile_name: Optional[Text] = ...,
79-
):...
80-
81-
metadata_prefix = ... # type: Text
82-
header_prefix = ... # type: Text
83-
acl_header = ... # type: Text
84-
auth_header = ... # type: Text
85-
copy_source_header = ... # type: Text
86-
copy_source_version_id = ... # type: Text
87-
copy_source_range_header = ... # type: Optional[Text]
88-
date_header = ... # type: Text
89-
delete_marker = ... # type: Text
90-
metadata_directive_header = ... # type: Text
91-
security_token_header = ... # type: Text
92-
resumable_upload_header = ... # type: Optional[Text]
93-
server_side_encryption_header = ... # type: Optional[Text]
94-
storage_class_header = ... # type: Text
95-
version_id = ... # type: Text
96-
mfa_header = ... # type: Optional[Text]
97-
restore_header = ... # type: Optional[Text]
98-
99-
def configure_headers(self): ...
100-
101-
storage_copy_error = ... # type: BotoServerError
102-
storage_create_error = ... # type: BotoServerError
103-
storage_data_error = ... # type: BotoServerError
104-
storage_permissions_error = ... # type: BotoServerError
105-
storage_response_error = ... # type: BotoServerError
106-
107-
def configure_errors(self): ...
108-
def get_provider_name(self) -> Text: ...
109-
def supports_chunked_transfer(self) -> bool: ...
110-
111-
def get_default() -> Provider: ...
1+
class Provider: ...

0 commit comments

Comments
 (0)