files-com 1.6.30__py3-none-any.whl → 1.6.32__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.
_VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.30
1
+ 1.6.32
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.30
3
+ Version: 1.6.32
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=PfJdPIeiJm1oSZ9yT_lVfv-OBA0z8TPl_6dS0tU9zK0,7
3
- files_com-1.6.30.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=pJ08a-0_kWIXL8vowoeaiiGH1JzlgDHile5nKuBsGHk,12884
2
+ _VERSION,sha256=b6PcBwjJIkfwHFfngxBnsbNIjrMzwEijz0qXp69tlLk,7
3
+ files_com-1.6.32.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=BkXY8Zq-P8SJnZj7egRi47nt6Z18HWkITnS_X7uSKhQ,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
@@ -25,7 +25,7 @@ files_sdk/models/automation.py,sha256=u1FPXXJF5sjsAWcVLggzoJjnKcVzkhkALLB-iX3Ujc
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
28
- files_sdk/models/behavior.py,sha256=uzjgb559rhcwYKDJy3ofnkhQRjzje4bHpOIt9axLuRE,18369
28
+ files_sdk/models/behavior.py,sha256=8a9Q0FEwf39595BIv2kCDsN12CaSmcZKTGT813YOUdU,17677
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
@@ -82,7 +82,7 @@ files_sdk/models/public_hosting_request_log.py,sha256=wEoNH5wiUtsE50q3SEWBJxhevJ
82
82
  files_sdk/models/public_ip_address.py,sha256=5VSlJ4PZQilV6tpGRCnyvGJzqRzdSRpwVDZxKwsplcU,1259
83
83
  files_sdk/models/public_key.py,sha256=o_lyVnKLCGsX50Jmz5UJ4EZ3Wv-eETZHW5crBANNCvM,12306
84
84
  files_sdk/models/remote_bandwidth_snapshot.py,sha256=kryNewGqe_ZN4D3JBL26DoVYKDowubUNLXn7NQtEJb8,4476
85
- files_sdk/models/remote_mount_backend.py,sha256=vIcKsBsSev1HuYXM3JenXJMYUsXYAxADDTD0tjOEBRY,20843
85
+ files_sdk/models/remote_mount_backend.py,sha256=u4AmTgGotiXC2l55RbcQKVALCnBwkDO2a-X3Xn3ua98,19265
86
86
  files_sdk/models/remote_server.py,sha256=crDqrWv56GEYW49Y0vUiZhXCvjymMyn-ByWmqfEof3k,86036
87
87
  files_sdk/models/remote_server_configuration_file.py,sha256=m6kfh5yUAYTP42nHuYJ-GFu73981kjjqPuZX3SeHbiA,3330
88
88
  files_sdk/models/request.py,sha256=mWOS36b5pRiAZqDuf1tGidw-FAikYPDqfv5LXdDJA9Q,8867
@@ -112,7 +112,7 @@ files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6q
112
112
  files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
113
113
  files_sdk/models/web_dav_action_log.py,sha256=7__LZvb_fInvXwy90ur7IrcRSxKOwF8L6OwpjJbS73Y,355354
114
114
  files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
115
- files_com-1.6.30.dist-info/METADATA,sha256=V_djcizc-Hy1S10Nrt39zp9KJckco3rToQ926EcgTYA,29050
116
- files_com-1.6.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
- files_com-1.6.30.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
- files_com-1.6.30.dist-info/RECORD,,
115
+ files_com-1.6.32.dist-info/METADATA,sha256=iYkXEck5oHxk-QzP4QUIjHEheHGmaSDQMl3Nl78Yd7s,29050
116
+ files_com-1.6.32.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ files_com-1.6.32.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
+ files_com-1.6.32.dist-info/RECORD,,
files_sdk/__init__.py CHANGED
@@ -223,7 +223,7 @@ session_id = None
223
223
  source_ip = None
224
224
  base_url = "https://app.files.com"
225
225
  base_path = "api/rest/v1"
226
- version = "1.6.30"
226
+ version = "1.6.32"
227
227
 
228
228
  __version__ = version
229
229
 
@@ -118,7 +118,6 @@ class Behavior:
118
118
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
119
119
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
120
120
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
121
- # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
122
121
  def list(params=None, options=None):
123
122
  if not isinstance(params, dict):
124
123
  params = {}
@@ -132,12 +131,6 @@ def list(params=None, options=None):
132
131
  raise InvalidParameterError("Bad parameter: sort_by must be an dict")
133
132
  if "filter" in params and not isinstance(params["filter"], dict):
134
133
  raise InvalidParameterError("Bad parameter: filter must be an dict")
135
- if "filter_prefix" in params and not isinstance(
136
- params["filter_prefix"], dict
137
- ):
138
- raise InvalidParameterError(
139
- "Bad parameter: filter_prefix must be an dict"
140
- )
141
134
  return ListObj(Behavior, "GET", "/behaviors", params, options)
142
135
 
143
136
 
@@ -172,7 +165,6 @@ def get(id, params=None, options=None):
172
165
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
173
166
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
174
167
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
175
- # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
176
168
  # path (required) - string - Path to operate on.
177
169
  # ancestor_behaviors - boolean - If `true`, behaviors above this path are shown.
178
170
  def list_for(path, params=None, options=None):
@@ -189,12 +181,6 @@ def list_for(path, params=None, options=None):
189
181
  raise InvalidParameterError("Bad parameter: sort_by must be an dict")
190
182
  if "filter" in params and not isinstance(params["filter"], dict):
191
183
  raise InvalidParameterError("Bad parameter: filter must be an dict")
192
- if "filter_prefix" in params and not isinstance(
193
- params["filter_prefix"], dict
194
- ):
195
- raise InvalidParameterError(
196
- "Bad parameter: filter_prefix must be an dict"
197
- )
198
184
  if "path" in params and not isinstance(params["path"], str):
199
185
  raise InvalidParameterError("Bad parameter: path must be an str")
200
186
  if "ancestor_behaviors" in params and not isinstance(
@@ -71,9 +71,6 @@ class RemoteMountBackend:
71
71
  )
72
72
 
73
73
  # Parameters:
74
- # canary_file_path (required) - string - Path to the canary file used for health checks.
75
- # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
76
- # remote_server_id (required) - int64 - The remote server that this backend is associated with.
77
74
  # enabled - boolean - True if this backend is enabled.
78
75
  # fall - int64 - Number of consecutive failures before considering the backend unhealthy.
79
76
  # health_check_enabled - boolean - True if health checks are enabled for this backend.
@@ -84,6 +81,8 @@ class RemoteMountBackend:
84
81
  # priority - int64 - Priority of this backend.
85
82
  # remote_path - string - Path on the remote server to treat as the root of this mount.
86
83
  # rise - int64 - Number of consecutive successes before considering the backend healthy.
84
+ # canary_file_path - string - Path to the canary file used for health checks.
85
+ # remote_server_id - int64 - The remote server that this backend is associated with.
87
86
  def update(self, params=None):
88
87
  if not isinstance(params, dict):
89
88
  params = {}
@@ -94,34 +93,8 @@ class RemoteMountBackend:
94
93
  raise MissingParameterError("Current object doesn't have a id")
95
94
  if "id" not in params:
96
95
  raise MissingParameterError("Parameter missing: id")
97
- if "canary_file_path" not in params:
98
- raise MissingParameterError("Parameter missing: canary_file_path")
99
- if "remote_server_mount_id" not in params:
100
- raise MissingParameterError(
101
- "Parameter missing: remote_server_mount_id"
102
- )
103
- if "remote_server_id" not in params:
104
- raise MissingParameterError("Parameter missing: remote_server_id")
105
96
  if "id" in params and not isinstance(params["id"], int):
106
97
  raise InvalidParameterError("Bad parameter: id must be an int")
107
- if "canary_file_path" in params and not isinstance(
108
- params["canary_file_path"], str
109
- ):
110
- raise InvalidParameterError(
111
- "Bad parameter: canary_file_path must be an str"
112
- )
113
- if "remote_server_mount_id" in params and not isinstance(
114
- params["remote_server_mount_id"], int
115
- ):
116
- raise InvalidParameterError(
117
- "Bad parameter: remote_server_mount_id must be an int"
118
- )
119
- if "remote_server_id" in params and not isinstance(
120
- params["remote_server_id"], int
121
- ):
122
- raise InvalidParameterError(
123
- "Bad parameter: remote_server_id must be an int"
124
- )
125
98
  if "fall" in params and not isinstance(params["fall"], int):
126
99
  raise InvalidParameterError("Bad parameter: fall must be an int")
127
100
  if "health_check_type" in params and not isinstance(
@@ -146,6 +119,18 @@ class RemoteMountBackend:
146
119
  )
147
120
  if "rise" in params and not isinstance(params["rise"], int):
148
121
  raise InvalidParameterError("Bad parameter: rise must be an int")
122
+ if "canary_file_path" in params and not isinstance(
123
+ params["canary_file_path"], str
124
+ ):
125
+ raise InvalidParameterError(
126
+ "Bad parameter: canary_file_path must be an str"
127
+ )
128
+ if "remote_server_id" in params and not isinstance(
129
+ params["remote_server_id"], int
130
+ ):
131
+ raise InvalidParameterError(
132
+ "Bad parameter: remote_server_id must be an int"
133
+ )
149
134
  response, _options = Api.send_request(
150
135
  "PATCH",
151
136
  "/remote_mount_backends/{id}".format(id=params["id"]),
@@ -237,9 +222,6 @@ def get(id, params=None, options=None):
237
222
 
238
223
 
239
224
  # Parameters:
240
- # canary_file_path (required) - string - Path to the canary file used for health checks.
241
- # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
242
- # remote_server_id (required) - int64 - The remote server that this backend is associated with.
243
225
  # enabled - boolean - True if this backend is enabled.
244
226
  # fall - int64 - Number of consecutive failures before considering the backend unhealthy.
245
227
  # health_check_enabled - boolean - True if health checks are enabled for this backend.
@@ -250,29 +232,14 @@ def get(id, params=None, options=None):
250
232
  # priority - int64 - Priority of this backend.
251
233
  # remote_path - string - Path on the remote server to treat as the root of this mount.
252
234
  # rise - int64 - Number of consecutive successes before considering the backend healthy.
235
+ # canary_file_path (required) - string - Path to the canary file used for health checks.
236
+ # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
237
+ # remote_server_id (required) - int64 - The remote server that this backend is associated with.
253
238
  def create(params=None, options=None):
254
239
  if not isinstance(params, dict):
255
240
  params = {}
256
241
  if not isinstance(options, dict):
257
242
  options = {}
258
- if "canary_file_path" in params and not isinstance(
259
- params["canary_file_path"], str
260
- ):
261
- raise InvalidParameterError(
262
- "Bad parameter: canary_file_path must be an str"
263
- )
264
- if "remote_server_mount_id" in params and not isinstance(
265
- params["remote_server_mount_id"], int
266
- ):
267
- raise InvalidParameterError(
268
- "Bad parameter: remote_server_mount_id must be an int"
269
- )
270
- if "remote_server_id" in params and not isinstance(
271
- params["remote_server_id"], int
272
- ):
273
- raise InvalidParameterError(
274
- "Bad parameter: remote_server_id must be an int"
275
- )
276
243
  if "enabled" in params and not isinstance(params["enabled"], bool):
277
244
  raise InvalidParameterError("Bad parameter: enabled must be an bool")
278
245
  if "fall" in params and not isinstance(params["fall"], int):
@@ -311,6 +278,24 @@ def create(params=None, options=None):
311
278
  )
312
279
  if "rise" in params and not isinstance(params["rise"], int):
313
280
  raise InvalidParameterError("Bad parameter: rise must be an int")
281
+ if "canary_file_path" in params and not isinstance(
282
+ params["canary_file_path"], str
283
+ ):
284
+ raise InvalidParameterError(
285
+ "Bad parameter: canary_file_path must be an str"
286
+ )
287
+ if "remote_server_mount_id" in params and not isinstance(
288
+ params["remote_server_mount_id"], int
289
+ ):
290
+ raise InvalidParameterError(
291
+ "Bad parameter: remote_server_mount_id must be an int"
292
+ )
293
+ if "remote_server_id" in params and not isinstance(
294
+ params["remote_server_id"], int
295
+ ):
296
+ raise InvalidParameterError(
297
+ "Bad parameter: remote_server_id must be an int"
298
+ )
314
299
  if "canary_file_path" not in params:
315
300
  raise MissingParameterError("Parameter missing: canary_file_path")
316
301
  if "remote_server_mount_id" not in params:
@@ -345,9 +330,6 @@ def reset_status(id, params=None, options=None):
345
330
 
346
331
 
347
332
  # Parameters:
348
- # canary_file_path (required) - string - Path to the canary file used for health checks.
349
- # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
350
- # remote_server_id (required) - int64 - The remote server that this backend is associated with.
351
333
  # enabled - boolean - True if this backend is enabled.
352
334
  # fall - int64 - Number of consecutive failures before considering the backend unhealthy.
353
335
  # health_check_enabled - boolean - True if health checks are enabled for this backend.
@@ -358,6 +340,8 @@ def reset_status(id, params=None, options=None):
358
340
  # priority - int64 - Priority of this backend.
359
341
  # remote_path - string - Path on the remote server to treat as the root of this mount.
360
342
  # rise - int64 - Number of consecutive successes before considering the backend healthy.
343
+ # canary_file_path - string - Path to the canary file used for health checks.
344
+ # remote_server_id - int64 - The remote server that this backend is associated with.
361
345
  def update(id, params=None, options=None):
362
346
  if not isinstance(params, dict):
363
347
  params = {}
@@ -366,24 +350,6 @@ def update(id, params=None, options=None):
366
350
  params["id"] = id
367
351
  if "id" in params and not isinstance(params["id"], int):
368
352
  raise InvalidParameterError("Bad parameter: id must be an int")
369
- if "canary_file_path" in params and not isinstance(
370
- params["canary_file_path"], str
371
- ):
372
- raise InvalidParameterError(
373
- "Bad parameter: canary_file_path must be an str"
374
- )
375
- if "remote_server_mount_id" in params and not isinstance(
376
- params["remote_server_mount_id"], int
377
- ):
378
- raise InvalidParameterError(
379
- "Bad parameter: remote_server_mount_id must be an int"
380
- )
381
- if "remote_server_id" in params and not isinstance(
382
- params["remote_server_id"], int
383
- ):
384
- raise InvalidParameterError(
385
- "Bad parameter: remote_server_id must be an int"
386
- )
387
353
  if "enabled" in params and not isinstance(params["enabled"], bool):
388
354
  raise InvalidParameterError("Bad parameter: enabled must be an bool")
389
355
  if "fall" in params and not isinstance(params["fall"], int):
@@ -422,16 +388,20 @@ def update(id, params=None, options=None):
422
388
  )
423
389
  if "rise" in params and not isinstance(params["rise"], int):
424
390
  raise InvalidParameterError("Bad parameter: rise must be an int")
391
+ if "canary_file_path" in params and not isinstance(
392
+ params["canary_file_path"], str
393
+ ):
394
+ raise InvalidParameterError(
395
+ "Bad parameter: canary_file_path must be an str"
396
+ )
397
+ if "remote_server_id" in params and not isinstance(
398
+ params["remote_server_id"], int
399
+ ):
400
+ raise InvalidParameterError(
401
+ "Bad parameter: remote_server_id must be an int"
402
+ )
425
403
  if "id" not in params:
426
404
  raise MissingParameterError("Parameter missing: id")
427
- if "canary_file_path" not in params:
428
- raise MissingParameterError("Parameter missing: canary_file_path")
429
- if "remote_server_mount_id" not in params:
430
- raise MissingParameterError(
431
- "Parameter missing: remote_server_mount_id"
432
- )
433
- if "remote_server_id" not in params:
434
- raise MissingParameterError("Parameter missing: remote_server_id")
435
405
  response, options = Api.send_request(
436
406
  "PATCH",
437
407
  "/remote_mount_backends/{id}".format(id=params["id"]),