files-com 1.6.28__py3-none-any.whl → 1.6.29__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.
Potentially problematic release.
This version of files-com might be problematic. Click here for more details.
- _VERSION +1 -1
- {files_com-1.6.28.dist-info → files_com-1.6.29.dist-info}/METADATA +1 -1
- {files_com-1.6.28.dist-info → files_com-1.6.29.dist-info}/RECORD +11 -10
- files_sdk/__init__.py +3 -1
- files_sdk/models/__init__.py +1 -0
- files_sdk/models/automation.py +1 -0
- files_sdk/models/holiday_region.py +58 -0
- files_sdk/models/sync.py +1 -0
- {files_com-1.6.28.dist-info → files_com-1.6.29.dist-info}/WHEEL +0 -0
- {files_com-1.6.28.dist-info → files_com-1.6.29.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.28.dist-info → files_com-1.6.29.dist-info}/top_level.txt +0 -0
_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.6.
|
|
1
|
+
1.6.29
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
README.md,sha256=dJpTjuJA-JJIQ4CKgQhlbqyxanVatHk0RXgCD6KFl3A,28758
|
|
2
|
-
_VERSION,sha256=
|
|
3
|
-
files_com-1.6.
|
|
4
|
-
files_sdk/__init__.py,sha256=
|
|
2
|
+
_VERSION,sha256=tMPkRSsBnLDmJkEqcXIEQqRWw2lRNuq0y4Kno_fyY7A,7
|
|
3
|
+
files_com-1.6.29.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
|
|
4
|
+
files_sdk/__init__.py,sha256=J8wQIV3YtLcrk18kfRUccSkOIZwr-sYBUY8WjNx-KjM,12884
|
|
5
5
|
files_sdk/api.py,sha256=HOLk50HLQCbnHwnAr9OElQEWvdA_BABBSEvvFSt1S4A,1846
|
|
6
6
|
files_sdk/api_client.py,sha256=cfFvm-o4Ao8SWADiJv7t7qnJfG_LJmWV3l6ALTC-Opo,11264
|
|
7
7
|
files_sdk/error.py,sha256=lZKht6lYj9i99CzRbHschmdSs6T2Y51-YrZX_5Y_o7A,64945
|
|
8
8
|
files_sdk/list_obj.py,sha256=MWgmESLAmfh1uaSw76PWxmnf9f6_08TLUHe8_mCYKL4,1157
|
|
9
9
|
files_sdk/path_util.py,sha256=7x8X3JLoMkcqNefCaBeHYXD8MGvPby4AOy-xnBX_LNk,1694
|
|
10
10
|
files_sdk/util.py,sha256=6aA4N0Wq_ykINW7eMrs2ntFAL2hRLM6IvJf6n_yP34c,962
|
|
11
|
-
files_sdk/models/__init__.py,sha256=
|
|
11
|
+
files_sdk/models/__init__.py,sha256=T3P5rFWVBuEhcTdIXu40Vic0EnG-FM08A4BLadgWxKY,5821
|
|
12
12
|
files_sdk/models/account_line_item.py,sha256=8FLg83Aqpz4y_QYy3fZ_KZsZFWv1f1KGD9T5CH1WSGs,1929
|
|
13
13
|
files_sdk/models/action.py,sha256=M1lyMybE7SKht2nGXtYWp2l8b4oVkeImo6KF8DLiCos,2034
|
|
14
14
|
files_sdk/models/action_notification_export.py,sha256=4cdEo2ZCDV3RH3GLSqHV7RWyJ2ONRSUq0glCEi94zd0,6636
|
|
@@ -21,7 +21,7 @@ files_sdk/models/as2_outgoing_message.py,sha256=7mSM2Ce-9HUsk7klRmS30kBBPMJBRWsX
|
|
|
21
21
|
files_sdk/models/as2_partner.py,sha256=e7gPlPqTYZorX7XZSA8iSaDAkV9U12ANAFKCviw3T3U,22467
|
|
22
22
|
files_sdk/models/as2_station.py,sha256=XKgf0t8HVPevF1nkx8IrvGb00leahz-LSU9RG6Rn2Y4,11003
|
|
23
23
|
files_sdk/models/auto.py,sha256=nODYUPqEsTw7suz0s6zDTsFd8j5yeSIzBELTiaXxzRE,995
|
|
24
|
-
files_sdk/models/automation.py,sha256=
|
|
24
|
+
files_sdk/models/automation.py,sha256=u1FPXXJF5sjsAWcVLggzoJjnKcVzkhkALLB-iX3UjcY,48283
|
|
25
25
|
files_sdk/models/automation_log.py,sha256=wiv5ih_lUk0NKoV777IuevJz6JChm2lcpasqzW6o26c,85083
|
|
26
26
|
files_sdk/models/automation_run.py,sha256=ThDA_5inLYaunKOcNgXFD9QLlhndJXC2TOl7-GqK098,5341
|
|
27
27
|
files_sdk/models/bandwidth_snapshot.py,sha256=IBcRP5r_iFl86lhHOb5o5UZdsT8_-cBrAjKyPAc7OBw,4722
|
|
@@ -57,6 +57,7 @@ files_sdk/models/group_user.py,sha256=ZVl2vQ2FuPFC9YW5Geo9iST438eLvs6Pc_BlQRGg9S
|
|
|
57
57
|
files_sdk/models/history.py,sha256=Elc04ji3rWWhEc68KzPzcEeCqfMSA4Jmjb9sAZ4LvKc,14138
|
|
58
58
|
files_sdk/models/history_export.py,sha256=M7sfb60oVCWTsP5ZnIsQTx7743BlehM2ciLv6WOqHMk,14400
|
|
59
59
|
files_sdk/models/history_export_result.py,sha256=bn7GrrQRN4v09uyWsf9kELgj4PXtfDtbhjvL4vWmutg,6358
|
|
60
|
+
files_sdk/models/holiday_region.py,sha256=WJyvwskMxRf3WwGgxH0bndf04xTnf1cwNEpnjZs0QUQ,2259
|
|
60
61
|
files_sdk/models/image.py,sha256=xGDz4VULw5EkYGS0h6cmsRkpYv-c1qi5bhOgiyLA3mM,1052
|
|
61
62
|
files_sdk/models/inbox_recipient.py,sha256=_iUVVsBJLmAU2GatfjxYNBTEiv4D-DoJ0vbBKAwbG1I,5762
|
|
62
63
|
files_sdk/models/inbox_registration.py,sha256=d2JxmVNko0G3W1_YHdGwgs6o1RiCxagtEFMf4UKS0mA,3341
|
|
@@ -98,7 +99,7 @@ files_sdk/models/snapshot.py,sha256=zmdQWKR8EhUkF1mFQHFzWfreaEVXG1p_jEtmY4j3cKA,
|
|
|
98
99
|
files_sdk/models/sso_strategy.py,sha256=vWNCPfot8z15xUhAoFsS52W-1vg8IpKIqAALZ6pBwd0,9112
|
|
99
100
|
files_sdk/models/status.py,sha256=IIY3RiJ2RZ2yPByAAh8eIq_cgZFTj13eR4UpqHTANQI,1363
|
|
100
101
|
files_sdk/models/style.py,sha256=KZY0fZ4kP4AtwZpCi24EtNXL8WFLhE9a1Jme1gA6Kkw,5201
|
|
101
|
-
files_sdk/models/sync.py,sha256=
|
|
102
|
+
files_sdk/models/sync.py,sha256=R2FlrQOgqPpwBVQsTSTWBSXR2iDQSd0nbN8PolXhJu0,24979
|
|
102
103
|
files_sdk/models/sync_log.py,sha256=N8hRyRNkvKYJhQkSlwre47aFL_JWLlvj_bVrvHBVPsE,40135
|
|
103
104
|
files_sdk/models/sync_run.py,sha256=o7JXDrLqivKxK-NkUIle3m6Ukk0d_0yX7i5gPjuAjtg,5302
|
|
104
105
|
files_sdk/models/usage_by_top_level_dir.py,sha256=o_dETvzcgEA9lsdES_yzwPVAZVFk4ZcnsCTugR8O8eY,1185
|
|
@@ -111,7 +112,7 @@ files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6q
|
|
|
111
112
|
files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
|
|
112
113
|
files_sdk/models/web_dav_action_log.py,sha256=7__LZvb_fInvXwy90ur7IrcRSxKOwF8L6OwpjJbS73Y,355354
|
|
113
114
|
files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
|
|
114
|
-
files_com-1.6.
|
|
115
|
-
files_com-1.6.
|
|
116
|
-
files_com-1.6.
|
|
117
|
-
files_com-1.6.
|
|
115
|
+
files_com-1.6.29.dist-info/METADATA,sha256=xjgGjubuE4EZMazNfvgnRIny0mpRZlwFUpDJmoPVhSI,29050
|
|
116
|
+
files_com-1.6.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
117
|
+
files_com-1.6.29.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
|
|
118
|
+
files_com-1.6.29.dist-info/RECORD,,
|
files_sdk/__init__.py
CHANGED
|
@@ -47,6 +47,7 @@ import files_sdk.models.group_user as group_user
|
|
|
47
47
|
import files_sdk.models.history as history
|
|
48
48
|
import files_sdk.models.history_export as history_export
|
|
49
49
|
import files_sdk.models.history_export_result as history_export_result
|
|
50
|
+
import files_sdk.models.holiday_region as holiday_region
|
|
50
51
|
import files_sdk.models.image as image
|
|
51
52
|
import files_sdk.models.inbox_recipient as inbox_recipient
|
|
52
53
|
import files_sdk.models.inbox_registration as inbox_registration
|
|
@@ -154,6 +155,7 @@ from files_sdk.models.group_user import GroupUser
|
|
|
154
155
|
from files_sdk.models.history import History
|
|
155
156
|
from files_sdk.models.history_export import HistoryExport
|
|
156
157
|
from files_sdk.models.history_export_result import HistoryExportResult
|
|
158
|
+
from files_sdk.models.holiday_region import HolidayRegion
|
|
157
159
|
from files_sdk.models.image import Image
|
|
158
160
|
from files_sdk.models.inbox_recipient import InboxRecipient
|
|
159
161
|
from files_sdk.models.inbox_registration import InboxRegistration
|
|
@@ -221,7 +223,7 @@ session_id = None
|
|
|
221
223
|
source_ip = None
|
|
222
224
|
base_url = "https://app.files.com"
|
|
223
225
|
base_path = "api/rest/v1"
|
|
224
|
-
version = "1.6.
|
|
226
|
+
version = "1.6.29"
|
|
225
227
|
|
|
226
228
|
__version__ = version
|
|
227
229
|
|
files_sdk/models/__init__.py
CHANGED
|
@@ -50,6 +50,7 @@ from files_sdk.models.group_user import GroupUser
|
|
|
50
50
|
from files_sdk.models.history import History
|
|
51
51
|
from files_sdk.models.history_export import HistoryExport
|
|
52
52
|
from files_sdk.models.history_export_result import HistoryExportResult
|
|
53
|
+
from files_sdk.models.holiday_region import HolidayRegion
|
|
53
54
|
from files_sdk.models.image import Image
|
|
54
55
|
from files_sdk.models.inbox_recipient import InboxRecipient
|
|
55
56
|
from files_sdk.models.inbox_registration import InboxRegistration
|
files_sdk/models/automation.py
CHANGED
|
@@ -48,6 +48,7 @@ class Automation:
|
|
|
48
48
|
"user_ids": None, # array(int64) - IDs of Users for the Automation (i.e. who to Request File from)
|
|
49
49
|
"value": None, # object - A Hash of attributes specific to the automation type.
|
|
50
50
|
"webhook_url": None, # string - If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
|
|
51
|
+
"holiday_region": None, # string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
def __init__(self, attributes=None, options=None):
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import builtins # noqa: F401
|
|
2
|
+
from files_sdk.api import Api # noqa: F401
|
|
3
|
+
from files_sdk.list_obj import ListObj
|
|
4
|
+
from files_sdk.error import ( # noqa: F401
|
|
5
|
+
InvalidParameterError,
|
|
6
|
+
MissingParameterError,
|
|
7
|
+
NotImplementedError,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class HolidayRegion:
|
|
12
|
+
default_attributes = {
|
|
13
|
+
"code": None, # string - The code representing a region
|
|
14
|
+
"name": None, # string - The name of the region
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
def __init__(self, attributes=None, options=None):
|
|
18
|
+
if not isinstance(attributes, dict):
|
|
19
|
+
attributes = {}
|
|
20
|
+
if not isinstance(options, dict):
|
|
21
|
+
options = {}
|
|
22
|
+
self.set_attributes(attributes)
|
|
23
|
+
self.options = options
|
|
24
|
+
|
|
25
|
+
def set_attributes(self, attributes):
|
|
26
|
+
for (
|
|
27
|
+
attribute,
|
|
28
|
+
default_value,
|
|
29
|
+
) in HolidayRegion.default_attributes.items():
|
|
30
|
+
setattr(self, attribute, attributes.get(attribute, default_value))
|
|
31
|
+
|
|
32
|
+
def get_attributes(self):
|
|
33
|
+
return {
|
|
34
|
+
k: getattr(self, k, None)
|
|
35
|
+
for k in HolidayRegion.default_attributes
|
|
36
|
+
if getattr(self, k, None) is not None
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# Parameters:
|
|
41
|
+
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
42
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
43
|
+
def get_supported(params=None, options=None):
|
|
44
|
+
if not isinstance(params, dict):
|
|
45
|
+
params = {}
|
|
46
|
+
if not isinstance(options, dict):
|
|
47
|
+
options = {}
|
|
48
|
+
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
49
|
+
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
50
|
+
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
51
|
+
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
52
|
+
return ListObj(
|
|
53
|
+
HolidayRegion, "GET", "/holiday_regions/supported", params, options
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def new(*args, **kwargs):
|
|
58
|
+
return HolidayRegion(*args, **kwargs)
|
files_sdk/models/sync.py
CHANGED
|
@@ -35,6 +35,7 @@ class Sync:
|
|
|
35
35
|
"schedule_days_of_week": None, # array(int64) - If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
|
|
36
36
|
"schedule_times_of_day": None, # array(string) - If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. Times of day in HH:MM format.
|
|
37
37
|
"schedule_time_zone": None, # string - If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
|
|
38
|
+
"holiday_region": None, # string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
def __init__(self, attributes=None, options=None):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|