files-com 1.6.1__py3-none-any.whl → 1.6.2__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.1.dist-info → files_com-1.6.2.dist-info}/METADATA +1 -1
- {files_com-1.6.1.dist-info → files_com-1.6.2.dist-info}/RECORD +9 -9
- {files_com-1.6.1.dist-info → files_com-1.6.2.dist-info}/WHEEL +1 -1
- files_sdk/__init__.py +1 -1
- files_sdk/models/bundle_notification.py +7 -0
- files_sdk/models/bundle_recipient.py +7 -0
- {files_com-1.6.1.dist-info → files_com-1.6.2.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.1.dist-info → files_com-1.6.2.dist-info}/top_level.txt +0 -0
_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.6.
|
|
1
|
+
1.6.2
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
README.md,sha256=GQCCzxqH5x0hd1fryYAQ16MHbnFHYN-GcppNTTCe3x4,28381
|
|
2
|
-
_VERSION,sha256=
|
|
3
|
-
files_com-1.6.
|
|
4
|
-
files_sdk/__init__.py,sha256=
|
|
2
|
+
_VERSION,sha256=otXiaP5wl5yszYlRVrPTO9YaPMfmYKt6WwcGaEmz4kg,6
|
|
3
|
+
files_com-1.6.2.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
|
|
4
|
+
files_sdk/__init__.py,sha256=R7CbGLxT3p2BHkS1u-w9b9u0MpJRtAL1paknpg9ZXGc,12329
|
|
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
|
|
@@ -29,9 +29,9 @@ files_sdk/models/behavior.py,sha256=uzjgb559rhcwYKDJy3ofnkhQRjzje4bHpOIt9axLuRE,
|
|
|
29
29
|
files_sdk/models/bundle.py,sha256=DO6vTAnbdh7A1mkRkHqdv629t701XRwRAl4hrNepUHo,36214
|
|
30
30
|
files_sdk/models/bundle_action.py,sha256=lgDrrFake0zkxE0Cq5QDwlJi2M2ZyJrquP5sgh_XnA0,5039
|
|
31
31
|
files_sdk/models/bundle_download.py,sha256=ZSjf6R0kCiFGgjQq7bu5nsFAtaW0sE72IZhCx2g5D10,4832
|
|
32
|
-
files_sdk/models/bundle_notification.py,sha256=
|
|
32
|
+
files_sdk/models/bundle_notification.py,sha256=tMauRH6qmejEisqsneVeprh4rb6UIjB43i6GY022NK8,10081
|
|
33
33
|
files_sdk/models/bundle_path.py,sha256=UQc3Y1zD6s2AWEoFZ1H5_FuXr3cuNoLw18XGHxauMVA,1249
|
|
34
|
-
files_sdk/models/bundle_recipient.py,sha256=
|
|
34
|
+
files_sdk/models/bundle_recipient.py,sha256=cOn-pPcT5xzQAcSxMYN5RtfdkZ5c5T7yI9J8gVBNmx0,6398
|
|
35
35
|
files_sdk/models/bundle_registration.py,sha256=Igvrg3K2dT0re8MO4hmXg6u02ljiR569nOOyG0L7NHE,3910
|
|
36
36
|
files_sdk/models/clickwrap.py,sha256=6xCBvo38zlA2s7U0lIH1nmbEjv2U2A_FL_5pAtbjkGE,11563
|
|
37
37
|
files_sdk/models/dns_record.py,sha256=iXrDPyaovMmPopCGaiPcK1hcuKCYaqnhnsj0Olxjq8g,2370
|
|
@@ -107,7 +107,7 @@ files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6q
|
|
|
107
107
|
files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
|
|
108
108
|
files_sdk/models/web_dav_action_log.py,sha256=jPX4sOmR9TbYnsU8DU3b0-KQ8E2cHNaqdmFZKTjzpwE,56358
|
|
109
109
|
files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
|
|
110
|
-
files_com-1.6.
|
|
111
|
-
files_com-1.6.
|
|
112
|
-
files_com-1.6.
|
|
113
|
-
files_com-1.6.
|
|
110
|
+
files_com-1.6.2.dist-info/METADATA,sha256=zI3gEQ4sRKiu5NpQFspXhwPSfCDOvL_Py5knoGFsAYQ,28672
|
|
111
|
+
files_com-1.6.2.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
112
|
+
files_com-1.6.2.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
|
|
113
|
+
files_com-1.6.2.dist-info/RECORD,,
|
files_sdk/__init__.py
CHANGED
|
@@ -15,6 +15,7 @@ class BundleNotification:
|
|
|
15
15
|
"notify_on_registration": None, # boolean - Triggers bundle notification when a registration action occurs for it.
|
|
16
16
|
"notify_on_upload": None, # boolean - Triggers bundle notification when a upload action occurs for it.
|
|
17
17
|
"notify_user_id": None, # int64 - The id of the user to notify.
|
|
18
|
+
"user_id": None, # int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
def __init__(self, attributes=None, options=None):
|
|
@@ -96,6 +97,7 @@ class BundleNotification:
|
|
|
96
97
|
|
|
97
98
|
|
|
98
99
|
# Parameters:
|
|
100
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
99
101
|
# 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.
|
|
100
102
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
101
103
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
|
|
@@ -105,6 +107,8 @@ def list(params=None, options=None):
|
|
|
105
107
|
params = {}
|
|
106
108
|
if not isinstance(options, dict):
|
|
107
109
|
options = {}
|
|
110
|
+
if "user_id" in params and not isinstance(params["user_id"], int):
|
|
111
|
+
raise InvalidParameterError("Bad parameter: user_id must be an int")
|
|
108
112
|
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
109
113
|
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
110
114
|
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
@@ -148,6 +152,7 @@ def get(id, params=None, options=None):
|
|
|
148
152
|
|
|
149
153
|
|
|
150
154
|
# Parameters:
|
|
155
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
151
156
|
# bundle_id (required) - int64 - Bundle ID to notify on
|
|
152
157
|
# notify_user_id - int64 - The id of the user to notify.
|
|
153
158
|
# notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
|
@@ -157,6 +162,8 @@ def create(params=None, options=None):
|
|
|
157
162
|
params = {}
|
|
158
163
|
if not isinstance(options, dict):
|
|
159
164
|
options = {}
|
|
165
|
+
if "user_id" in params and not isinstance(params["user_id"], int):
|
|
166
|
+
raise InvalidParameterError("Bad parameter: user_id must be an int")
|
|
160
167
|
if "bundle_id" in params and not isinstance(params["bundle_id"], int):
|
|
161
168
|
raise InvalidParameterError("Bad parameter: bundle_id must be an int")
|
|
162
169
|
if "notify_user_id" in params and not isinstance(
|
|
@@ -15,6 +15,7 @@ class BundleRecipient:
|
|
|
15
15
|
"note": None, # string - A note sent to the recipient with the bundle.
|
|
16
16
|
"recipient": None, # string - The recipient's email address.
|
|
17
17
|
"sent_at": None, # date-time - When the Bundle was shared with this recipient.
|
|
18
|
+
"user_id": None, # int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
18
19
|
"bundle_id": None, # int64 - Bundle to share.
|
|
19
20
|
"share_after_create": None, # boolean - Set to true to share the link with the recipient upon creation.
|
|
20
21
|
}
|
|
@@ -53,6 +54,7 @@ class BundleRecipient:
|
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
# Parameters:
|
|
57
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
56
58
|
# 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.
|
|
57
59
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
58
60
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
@@ -63,6 +65,8 @@ def list(params=None, options=None):
|
|
|
63
65
|
params = {}
|
|
64
66
|
if not isinstance(options, dict):
|
|
65
67
|
options = {}
|
|
68
|
+
if "user_id" in params and not isinstance(params["user_id"], int):
|
|
69
|
+
raise InvalidParameterError("Bad parameter: user_id must be an int")
|
|
66
70
|
if "cursor" in params and not isinstance(params["cursor"], str):
|
|
67
71
|
raise InvalidParameterError("Bad parameter: cursor must be an str")
|
|
68
72
|
if "per_page" in params and not isinstance(params["per_page"], int):
|
|
@@ -85,6 +89,7 @@ def all(params=None, options=None):
|
|
|
85
89
|
|
|
86
90
|
|
|
87
91
|
# Parameters:
|
|
92
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
88
93
|
# bundle_id (required) - int64 - Bundle to share.
|
|
89
94
|
# recipient (required) - string - Email addresses to share this bundle with.
|
|
90
95
|
# name - string - Name of recipient.
|
|
@@ -96,6 +101,8 @@ def create(params=None, options=None):
|
|
|
96
101
|
params = {}
|
|
97
102
|
if not isinstance(options, dict):
|
|
98
103
|
options = {}
|
|
104
|
+
if "user_id" in params and not isinstance(params["user_id"], int):
|
|
105
|
+
raise InvalidParameterError("Bad parameter: user_id must be an int")
|
|
99
106
|
if "bundle_id" in params and not isinstance(params["bundle_id"], int):
|
|
100
107
|
raise InvalidParameterError("Bad parameter: bundle_id must be an int")
|
|
101
108
|
if "recipient" in params and not isinstance(params["recipient"], str):
|
|
File without changes
|
|
File without changes
|