files-com 1.6.0__py3-none-any.whl → 1.6.1__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.

README.md CHANGED
@@ -357,7 +357,7 @@ except files_sdk.error.Error as err:
357
357
 
358
358
  ## Foreign Language Support
359
359
 
360
- The Files.com PHP SDK supports localized responses by using the `files_sdk.set_language` configuration method.
360
+ The Files.com Python SDK supports localized responses by using the `files_sdk.set_language` configuration method.
361
361
  When configured, this guides the API in selecting a preferred language for applicable response content.
362
362
 
363
363
  Language support currently applies to select human-facing fields only, such as notification messages
_VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.6.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.0
3
+ Version: 1.6.1
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -369,7 +369,7 @@ except files_sdk.error.Error as err:
369
369
 
370
370
  ## Foreign Language Support
371
371
 
372
- The Files.com PHP SDK supports localized responses by using the `files_sdk.set_language` configuration method.
372
+ The Files.com Python SDK supports localized responses by using the `files_sdk.set_language` configuration method.
373
373
  When configured, this guides the API in selecting a preferred language for applicable response content.
374
374
 
375
375
  Language support currently applies to select human-facing fields only, such as notification messages
@@ -1,7 +1,7 @@
1
- README.md,sha256=g4zPluTMBI4fOaRMhczJi2WgpYWAUVg8YJsXEZwQvmM,28378
2
- _VERSION,sha256=yx2aMLxKuKOX85t9eGu4KsoLgWB37vw118giAX119qU,6
3
- files_com-1.6.0.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=fa-JZ5RGXnGEYJCEuDbC6tkEQOG58K2ozFYaDaEvpSc,12329
1
+ README.md,sha256=GQCCzxqH5x0hd1fryYAQ16MHbnFHYN-GcppNTTCe3x4,28381
2
+ _VERSION,sha256=ZDCiQulIYJPvb3HZCG1I9huhAvDS-w9blTNMYAekbbM,6
3
+ files_com-1.6.1.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=jcCiqnzFLR4p82DfRKZKRcPRwpvAplk8spQ_LPP0ILw,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
@@ -26,10 +26,10 @@ files_sdk/models/automation_log.py,sha256=hzaEoc1_ZG8aLmymK4QpB1OD-tYphg2NTNggF8
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
28
28
  files_sdk/models/behavior.py,sha256=uzjgb559rhcwYKDJy3ofnkhQRjzje4bHpOIt9axLuRE,18369
29
- files_sdk/models/bundle.py,sha256=Fsc4-IKCFnkzbgnf5Ss8Ie0cmhy6ARF4M9fu6FTGY2Q,34172
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=ryYyNXjcLDnnWO3bP5S5xBG-EwhPOL9sxoE2G_VTK7U,9418
32
+ files_sdk/models/bundle_notification.py,sha256=ZjnS4oYsk-dGEU9hwjMb-oX5CGZXXezy92HrxQ4bqpg,9489
33
33
  files_sdk/models/bundle_path.py,sha256=UQc3Y1zD6s2AWEoFZ1H5_FuXr3cuNoLw18XGHxauMVA,1249
34
34
  files_sdk/models/bundle_recipient.py,sha256=g0kULXfY-RgR0SRVoVXQNKTo3Z9Xzt5EqoVZsTRdVo0,5806
35
35
  files_sdk/models/bundle_registration.py,sha256=Igvrg3K2dT0re8MO4hmXg6u02ljiR569nOOyG0L7NHE,3910
@@ -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.0.dist-info/METADATA,sha256=jwQIDyUdXRdH9rdGR0FZPUr24WcmUusDqGdTbb0Yx4M,28669
111
- files_com-1.6.0.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
112
- files_com-1.6.0.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
113
- files_com-1.6.0.dist-info/RECORD,,
110
+ files_com-1.6.1.dist-info/METADATA,sha256=V5RmWEW8fZW21RmFzxtsrtmhotmIK2n5WpGjWXmA4_Q,28672
111
+ files_com-1.6.1.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
112
+ files_com-1.6.1.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
113
+ files_com-1.6.1.dist-info/RECORD,,
files_sdk/__init__.py CHANGED
@@ -213,7 +213,7 @@ session_id = None
213
213
  source_ip = None
214
214
  base_url = "https://app.files.com"
215
215
  base_path = "api/rest/v1"
216
- version = "1.6.0"
216
+ version = "1.6.1"
217
217
 
218
218
  __version__ = version
219
219
 
@@ -264,6 +264,12 @@ class Bundle:
264
264
  # 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.
265
265
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
266
266
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
267
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
268
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
269
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
270
+ # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
271
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at` and `expires_at`.
272
+ # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
267
273
  def list(params=None, options=None):
268
274
  if not isinstance(params, dict):
269
275
  params = {}
@@ -277,6 +283,26 @@ def list(params=None, options=None):
277
283
  raise InvalidParameterError("Bad parameter: per_page must be an int")
278
284
  if "sort_by" in params and not isinstance(params["sort_by"], dict):
279
285
  raise InvalidParameterError("Bad parameter: sort_by must be an dict")
286
+ if "filter" in params and not isinstance(params["filter"], dict):
287
+ raise InvalidParameterError("Bad parameter: filter must be an dict")
288
+ if "filter_gt" in params and not isinstance(params["filter_gt"], dict):
289
+ raise InvalidParameterError("Bad parameter: filter_gt must be an dict")
290
+ if "filter_gteq" in params and not isinstance(params["filter_gteq"], dict):
291
+ raise InvalidParameterError(
292
+ "Bad parameter: filter_gteq must be an dict"
293
+ )
294
+ if "filter_prefix" in params and not isinstance(
295
+ params["filter_prefix"], dict
296
+ ):
297
+ raise InvalidParameterError(
298
+ "Bad parameter: filter_prefix must be an dict"
299
+ )
300
+ if "filter_lt" in params and not isinstance(params["filter_lt"], dict):
301
+ raise InvalidParameterError("Bad parameter: filter_lt must be an dict")
302
+ if "filter_lteq" in params and not isinstance(params["filter_lteq"], dict):
303
+ raise InvalidParameterError(
304
+ "Bad parameter: filter_lteq must be an dict"
305
+ )
280
306
  return ListObj(Bundle, "GET", "/bundles", params, options)
281
307
 
282
308
 
@@ -14,7 +14,7 @@ class BundleNotification:
14
14
  "id": None, # int64 - Bundle Notification ID
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
- "user_id": None, # int64 - The id of the user to notify.
17
+ "notify_user_id": None, # int64 - The id of the user to notify.
18
18
  }
19
19
 
20
20
  def __init__(self, attributes=None, options=None):
@@ -149,7 +149,7 @@ def get(id, params=None, options=None):
149
149
 
150
150
  # Parameters:
151
151
  # bundle_id (required) - int64 - Bundle ID to notify on
152
- # user_id - int64 - The id of the user to notify.
152
+ # notify_user_id - int64 - The id of the user to notify.
153
153
  # notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
154
154
  # notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
155
155
  def create(params=None, options=None):
@@ -159,8 +159,12 @@ def create(params=None, options=None):
159
159
  options = {}
160
160
  if "bundle_id" in params and not isinstance(params["bundle_id"], int):
161
161
  raise InvalidParameterError("Bad parameter: bundle_id must be an int")
162
- if "user_id" in params and not isinstance(params["user_id"], int):
163
- raise InvalidParameterError("Bad parameter: user_id must be an int")
162
+ if "notify_user_id" in params and not isinstance(
163
+ params["notify_user_id"], int
164
+ ):
165
+ raise InvalidParameterError(
166
+ "Bad parameter: notify_user_id must be an int"
167
+ )
164
168
  if "notify_on_registration" in params and not isinstance(
165
169
  params["notify_on_registration"], bool
166
170
  ):