egnyte-client 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- egnyte_client/__init__.py +160 -0
- egnyte_client/async_client.py +2901 -0
- egnyte_client/cli/__init__.py +132 -0
- egnyte_client/cli/__main__.py +4 -0
- egnyte_client/cli/commands/__init__.py +0 -0
- egnyte_client/cli/commands/audit.py +1226 -0
- egnyte_client/cli/commands/auth.py +32 -0
- egnyte_client/cli/commands/bookmarks.py +63 -0
- egnyte_client/cli/commands/comments.py +101 -0
- egnyte_client/cli/commands/events.py +91 -0
- egnyte_client/cli/commands/fs.py +690 -0
- egnyte_client/cli/commands/groups.py +178 -0
- egnyte_client/cli/commands/links.py +138 -0
- egnyte_client/cli/commands/metadata.py +737 -0
- egnyte_client/cli/commands/perms.py +245 -0
- egnyte_client/cli/commands/search.py +109 -0
- egnyte_client/cli/commands/trash.py +183 -0
- egnyte_client/cli/commands/users.py +138 -0
- egnyte_client/cli/commands/webhooks.py +218 -0
- egnyte_client/cli/context.py +47 -0
- egnyte_client/cli/group.py +72 -0
- egnyte_client/cli/options.py +139 -0
- egnyte_client/cli/output.py +64 -0
- egnyte_client/client.py +2870 -0
- egnyte_client/errors.py +320 -0
- egnyte_client/oauth.py +45 -0
- egnyte_client/operations/__init__.py +11 -0
- egnyte_client/operations/audit.py +807 -0
- egnyte_client/operations/auth.py +54 -0
- egnyte_client/operations/bookmark.py +100 -0
- egnyte_client/operations/comment.py +110 -0
- egnyte_client/operations/event.py +63 -0
- egnyte_client/operations/filesystem.py +814 -0
- egnyte_client/operations/generic.py +228 -0
- egnyte_client/operations/group.py +184 -0
- egnyte_client/operations/insights.py +23 -0
- egnyte_client/operations/link.py +161 -0
- egnyte_client/operations/metadata.py +473 -0
- egnyte_client/operations/permission.py +118 -0
- egnyte_client/operations/search.py +79 -0
- egnyte_client/operations/trash.py +135 -0
- egnyte_client/operations/user.py +192 -0
- egnyte_client/operations/webhook.py +230 -0
- egnyte_client/py.typed +0 -0
- egnyte_client/schemas/audit.py +775 -0
- egnyte_client/schemas/auth.py +89 -0
- egnyte_client/schemas/bookmark.py +60 -0
- egnyte_client/schemas/comment.py +76 -0
- egnyte_client/schemas/event.py +253 -0
- egnyte_client/schemas/filesystem.py +491 -0
- egnyte_client/schemas/generic.py +73 -0
- egnyte_client/schemas/group.py +97 -0
- egnyte_client/schemas/insights.py +71 -0
- egnyte_client/schemas/link.py +159 -0
- egnyte_client/schemas/metadata.py +362 -0
- egnyte_client/schemas/permission.py +79 -0
- egnyte_client/schemas/search.py +259 -0
- egnyte_client/schemas/trash.py +241 -0
- egnyte_client/schemas/user.py +213 -0
- egnyte_client/schemas/webhook.py +253 -0
- egnyte_client/transport.py +341 -0
- egnyte_client-0.1.0.dist-info/METADATA +576 -0
- egnyte_client-0.1.0.dist-info/RECORD +66 -0
- egnyte_client-0.1.0.dist-info/WHEEL +4 -0
- egnyte_client-0.1.0.dist-info/entry_points.txt +3 -0
- egnyte_client-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
from egnyte_client.async_client import AsyncEgnyteClient
|
|
2
|
+
from egnyte_client.client import EgnyteClient
|
|
3
|
+
from egnyte_client.errors import (
|
|
4
|
+
EgnyteAPIError,
|
|
5
|
+
EgnyteAuthError,
|
|
6
|
+
EgnyteConfigurationError,
|
|
7
|
+
EgnyteConflictError,
|
|
8
|
+
EgnyteError,
|
|
9
|
+
EgnyteForbiddenError,
|
|
10
|
+
EgnyteNotFoundError,
|
|
11
|
+
EgnyteQuotaExceededError,
|
|
12
|
+
EgnyteRateLimitError,
|
|
13
|
+
EgnyteServerError,
|
|
14
|
+
EgnyteValidationError,
|
|
15
|
+
)
|
|
16
|
+
from egnyte_client.oauth import build_authorization_url
|
|
17
|
+
from egnyte_client.operations.webhook import verify_webhook_authorization
|
|
18
|
+
from egnyte_client.schemas.audit import (
|
|
19
|
+
AuditEvent,
|
|
20
|
+
AuditEventPage,
|
|
21
|
+
AuditJob,
|
|
22
|
+
AuditJobStatus,
|
|
23
|
+
AuditRecord,
|
|
24
|
+
AuditReport,
|
|
25
|
+
QualityDocsCategoryFilter,
|
|
26
|
+
)
|
|
27
|
+
from egnyte_client.schemas.auth import OAuthToken, TokenInfo, UserInfo
|
|
28
|
+
from egnyte_client.schemas.bookmark import Bookmark
|
|
29
|
+
from egnyte_client.schemas.comment import Comment
|
|
30
|
+
from egnyte_client.schemas.event import (
|
|
31
|
+
ChangedPermission,
|
|
32
|
+
ChangePermissionEvent,
|
|
33
|
+
Event,
|
|
34
|
+
EventCursor,
|
|
35
|
+
EventData,
|
|
36
|
+
EventPage,
|
|
37
|
+
PermissionChangeAttributes,
|
|
38
|
+
PermissionEntry,
|
|
39
|
+
)
|
|
40
|
+
from egnyte_client.schemas.filesystem import (
|
|
41
|
+
CreatedFolder,
|
|
42
|
+
DeletedItem,
|
|
43
|
+
File,
|
|
44
|
+
FileLock,
|
|
45
|
+
FileVersion,
|
|
46
|
+
Folder,
|
|
47
|
+
FolderStats,
|
|
48
|
+
ItemReference,
|
|
49
|
+
UploadedFile,
|
|
50
|
+
)
|
|
51
|
+
from egnyte_client.schemas.group import Group, GroupMember, GroupSummary
|
|
52
|
+
from egnyte_client.schemas.insights import RecentFile, RecentFiles
|
|
53
|
+
from egnyte_client.schemas.link import Link, LinkUrl
|
|
54
|
+
from egnyte_client.schemas.metadata import (
|
|
55
|
+
FolderAssociation,
|
|
56
|
+
MetadataKey,
|
|
57
|
+
MetadataKeyDefinition,
|
|
58
|
+
MetadataNamespace,
|
|
59
|
+
)
|
|
60
|
+
from egnyte_client.schemas.permission import EffectivePermission, FolderPermissions
|
|
61
|
+
from egnyte_client.schemas.search import (
|
|
62
|
+
CustomProperty,
|
|
63
|
+
MetadataFilter,
|
|
64
|
+
MetadataRange,
|
|
65
|
+
SearchResult,
|
|
66
|
+
SearchResults,
|
|
67
|
+
)
|
|
68
|
+
from egnyte_client.schemas.trash import (
|
|
69
|
+
DataRetentionInfo,
|
|
70
|
+
TrashItem,
|
|
71
|
+
TrashItemOwner,
|
|
72
|
+
TrashItemStatus,
|
|
73
|
+
TrashPage,
|
|
74
|
+
)
|
|
75
|
+
from egnyte_client.schemas.user import User, UserGroup, UserName
|
|
76
|
+
from egnyte_client.schemas.webhook import (
|
|
77
|
+
Webhook,
|
|
78
|
+
WebhookDelivery,
|
|
79
|
+
WebhookDetails,
|
|
80
|
+
WebhookEvent,
|
|
81
|
+
WebhookEventUser,
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
__all__ = [
|
|
85
|
+
"AsyncEgnyteClient",
|
|
86
|
+
"AuditEvent",
|
|
87
|
+
"AuditEventPage",
|
|
88
|
+
"AuditJob",
|
|
89
|
+
"AuditJobStatus",
|
|
90
|
+
"AuditRecord",
|
|
91
|
+
"AuditReport",
|
|
92
|
+
"Bookmark",
|
|
93
|
+
"ChangePermissionEvent",
|
|
94
|
+
"ChangedPermission",
|
|
95
|
+
"Comment",
|
|
96
|
+
"CreatedFolder",
|
|
97
|
+
"CustomProperty",
|
|
98
|
+
"DataRetentionInfo",
|
|
99
|
+
"DeletedItem",
|
|
100
|
+
"EffectivePermission",
|
|
101
|
+
"EgnyteAPIError",
|
|
102
|
+
"EgnyteAuthError",
|
|
103
|
+
"EgnyteClient",
|
|
104
|
+
"EgnyteConfigurationError",
|
|
105
|
+
"EgnyteConflictError",
|
|
106
|
+
"EgnyteError",
|
|
107
|
+
"EgnyteForbiddenError",
|
|
108
|
+
"EgnyteNotFoundError",
|
|
109
|
+
"EgnyteQuotaExceededError",
|
|
110
|
+
"EgnyteRateLimitError",
|
|
111
|
+
"EgnyteServerError",
|
|
112
|
+
"EgnyteValidationError",
|
|
113
|
+
"Event",
|
|
114
|
+
"EventCursor",
|
|
115
|
+
"EventData",
|
|
116
|
+
"EventPage",
|
|
117
|
+
"File",
|
|
118
|
+
"FileLock",
|
|
119
|
+
"FileVersion",
|
|
120
|
+
"Folder",
|
|
121
|
+
"FolderAssociation",
|
|
122
|
+
"FolderPermissions",
|
|
123
|
+
"FolderStats",
|
|
124
|
+
"Group",
|
|
125
|
+
"GroupMember",
|
|
126
|
+
"GroupSummary",
|
|
127
|
+
"ItemReference",
|
|
128
|
+
"Link",
|
|
129
|
+
"LinkUrl",
|
|
130
|
+
"MetadataFilter",
|
|
131
|
+
"MetadataKey",
|
|
132
|
+
"MetadataKeyDefinition",
|
|
133
|
+
"MetadataNamespace",
|
|
134
|
+
"MetadataRange",
|
|
135
|
+
"OAuthToken",
|
|
136
|
+
"PermissionChangeAttributes",
|
|
137
|
+
"PermissionEntry",
|
|
138
|
+
"QualityDocsCategoryFilter",
|
|
139
|
+
"RecentFile",
|
|
140
|
+
"RecentFiles",
|
|
141
|
+
"SearchResult",
|
|
142
|
+
"SearchResults",
|
|
143
|
+
"TokenInfo",
|
|
144
|
+
"TrashItem",
|
|
145
|
+
"TrashItemOwner",
|
|
146
|
+
"TrashItemStatus",
|
|
147
|
+
"TrashPage",
|
|
148
|
+
"UploadedFile",
|
|
149
|
+
"User",
|
|
150
|
+
"UserGroup",
|
|
151
|
+
"UserInfo",
|
|
152
|
+
"UserName",
|
|
153
|
+
"Webhook",
|
|
154
|
+
"WebhookDelivery",
|
|
155
|
+
"WebhookDetails",
|
|
156
|
+
"WebhookEvent",
|
|
157
|
+
"WebhookEventUser",
|
|
158
|
+
"build_authorization_url",
|
|
159
|
+
"verify_webhook_authorization",
|
|
160
|
+
]
|