files-com 1.6.27__py3-none-any.whl → 1.6.28__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 CHANGED
@@ -1 +1 @@
1
- 1.6.27
1
+ 1.6.28
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.27
3
+ Version: 1.6.28
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -1,7 +1,7 @@
1
1
  README.md,sha256=dJpTjuJA-JJIQ4CKgQhlbqyxanVatHk0RXgCD6KFl3A,28758
2
- _VERSION,sha256=4bFDd-KPlKokkCJahtievo38duMTSUE0-kPoVz4gNxA,7
3
- files_com-1.6.27.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=dA3HsyOG7-TWFcLi36iDXVCsNIEN5tqvJg9sVBiZ_5U,12769
2
+ _VERSION,sha256=6lWguq-7ZVIMO_dKpRRqpFyjwOaTEUflNeMR6gEgvkw,7
3
+ files_com-1.6.28.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=_SDTfqH3vKpExnfKMRIn4sXorWp4tdLeueZYrtpVuaE,12769
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
@@ -81,7 +81,7 @@ files_sdk/models/public_hosting_request_log.py,sha256=wEoNH5wiUtsE50q3SEWBJxhevJ
81
81
  files_sdk/models/public_ip_address.py,sha256=5VSlJ4PZQilV6tpGRCnyvGJzqRzdSRpwVDZxKwsplcU,1259
82
82
  files_sdk/models/public_key.py,sha256=o_lyVnKLCGsX50Jmz5UJ4EZ3Wv-eETZHW5crBANNCvM,12306
83
83
  files_sdk/models/remote_bandwidth_snapshot.py,sha256=kryNewGqe_ZN4D3JBL26DoVYKDowubUNLXn7NQtEJb8,4476
84
- files_sdk/models/remote_mount_backend.py,sha256=4twrZnD0IMylK5XwTssELl4mCk9EkzDyPXPtv3J4D1o,20539
84
+ files_sdk/models/remote_mount_backend.py,sha256=vIcKsBsSev1HuYXM3JenXJMYUsXYAxADDTD0tjOEBRY,20843
85
85
  files_sdk/models/remote_server.py,sha256=crDqrWv56GEYW49Y0vUiZhXCvjymMyn-ByWmqfEof3k,86036
86
86
  files_sdk/models/remote_server_configuration_file.py,sha256=m6kfh5yUAYTP42nHuYJ-GFu73981kjjqPuZX3SeHbiA,3330
87
87
  files_sdk/models/request.py,sha256=mWOS36b5pRiAZqDuf1tGidw-FAikYPDqfv5LXdDJA9Q,8867
@@ -111,7 +111,7 @@ files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6q
111
111
  files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
112
112
  files_sdk/models/web_dav_action_log.py,sha256=7__LZvb_fInvXwy90ur7IrcRSxKOwF8L6OwpjJbS73Y,355354
113
113
  files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
114
- files_com-1.6.27.dist-info/METADATA,sha256=SXrI9xqVQ6fMGPF2IrS-Uc79-4pB_VaRSsN2kgvGAfY,29050
115
- files_com-1.6.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
116
- files_com-1.6.27.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
117
- files_com-1.6.27.dist-info/RECORD,,
114
+ files_com-1.6.28.dist-info/METADATA,sha256=dEW_IJvua37VzwVrcZM6dbbaTly-DXLAxQhaFVHXZRY,29050
115
+ files_com-1.6.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
116
+ files_com-1.6.28.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
117
+ files_com-1.6.28.dist-info/RECORD,,
files_sdk/__init__.py CHANGED
@@ -221,7 +221,7 @@ session_id = None
221
221
  source_ip = None
222
222
  base_url = "https://app.files.com"
223
223
  base_path = "api/rest/v1"
224
- version = "1.6.27"
224
+ version = "1.6.28"
225
225
 
226
226
  __version__ = version
227
227
 
@@ -15,6 +15,7 @@ class RemoteMountBackend:
15
15
  "fall": None, # int64 - Number of consecutive failures before considering the backend unhealthy.
16
16
  "health_check_enabled": None, # boolean - True if health checks are enabled for this backend.
17
17
  "health_check_type": None, # string - Type of health check to perform.
18
+ "id": None, # int64 - Unique identifier for this backend.
18
19
  "interval": None, # int64 - Interval in seconds between health checks.
19
20
  "min_free_cpu": None, # double - Minimum free CPU percentage required for this backend to be considered healthy.
20
21
  "min_free_mem": None, # double - Minimum free memory percentage required for this backend to be considered healthy.
@@ -25,7 +26,6 @@ class RemoteMountBackend:
25
26
  "rise": None, # int64 - Number of consecutive successes before considering the backend healthy.
26
27
  "status": None, # string - Status of this backend.
27
28
  "undergoing_maintenance": None, # boolean - True if this backend is undergoing maintenance.
28
- "id": None, # int64 - Remote Mount Backend ID.
29
29
  }
30
30
 
31
31
  def __init__(self, attributes=None, options=None):
@@ -190,6 +190,7 @@ class RemoteMountBackend:
190
190
  # Parameters:
191
191
  # 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.
192
192
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
193
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `remote_server_mount_id`.
193
194
  def list(params=None, options=None):
194
195
  if not isinstance(params, dict):
195
196
  params = {}
@@ -199,6 +200,8 @@ def list(params=None, options=None):
199
200
  raise InvalidParameterError("Bad parameter: cursor must be an str")
200
201
  if "per_page" in params and not isinstance(params["per_page"], int):
201
202
  raise InvalidParameterError("Bad parameter: per_page must be an int")
203
+ if "filter" in params and not isinstance(params["filter"], dict):
204
+ raise InvalidParameterError("Bad parameter: filter must be an dict")
202
205
  return ListObj(
203
206
  RemoteMountBackend, "GET", "/remote_mount_backends", params, options
204
207
  )