Files.com 1.4.142__tar.gz → 1.4.144__tar.gz

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.
Files changed (113) hide show
  1. {Files.com-1.4.142 → Files.com-1.4.144}/Files.com.egg-info/PKG-INFO +1 -1
  2. {Files.com-1.4.142 → Files.com-1.4.144}/PKG-INFO +1 -1
  3. {Files.com-1.4.142 → Files.com-1.4.144}/README.md +36 -47
  4. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/__init__.py +1 -1
  5. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/permission.py +6 -4
  6. {Files.com-1.4.142 → Files.com-1.4.144}/Files.com.egg-info/SOURCES.txt +0 -0
  7. {Files.com-1.4.142 → Files.com-1.4.144}/Files.com.egg-info/dependency_links.txt +0 -0
  8. {Files.com-1.4.142 → Files.com-1.4.144}/Files.com.egg-info/requires.txt +0 -0
  9. {Files.com-1.4.142 → Files.com-1.4.144}/Files.com.egg-info/top_level.txt +0 -0
  10. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/api.py +0 -0
  11. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/api_client.py +0 -0
  12. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/error.py +0 -0
  13. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/list_obj.py +0 -0
  14. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/__init__.py +0 -0
  15. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/account_line_item.py +0 -0
  16. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/action.py +0 -0
  17. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/action_notification_export.py +0 -0
  18. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/action_notification_export_result.py +0 -0
  19. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/api_key.py +0 -0
  20. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/api_request_log.py +0 -0
  21. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/app.py +0 -0
  22. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/as2_incoming_message.py +0 -0
  23. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/as2_outgoing_message.py +0 -0
  24. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/as2_partner.py +0 -0
  25. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/as2_station.py +0 -0
  26. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/auto.py +0 -0
  27. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/automation.py +0 -0
  28. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/automation_log.py +0 -0
  29. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/automation_run.py +0 -0
  30. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/bandwidth_snapshot.py +0 -0
  31. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/behavior.py +0 -0
  32. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/bundle.py +0 -0
  33. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/bundle_action.py +0 -0
  34. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/bundle_download.py +0 -0
  35. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/bundle_notification.py +0 -0
  36. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/bundle_path.py +0 -0
  37. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/bundle_recipient.py +0 -0
  38. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/bundle_registration.py +0 -0
  39. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/clickwrap.py +0 -0
  40. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/dns_record.py +0 -0
  41. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/email_incoming_message.py +0 -0
  42. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/email_log.py +0 -0
  43. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/errors.py +0 -0
  44. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/exavault_api_request_log.py +0 -0
  45. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/external_event.py +0 -0
  46. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/file.py +0 -0
  47. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/file_action.py +0 -0
  48. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/file_comment.py +0 -0
  49. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/file_comment_reaction.py +0 -0
  50. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/file_migration.py +0 -0
  51. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/file_migration_log.py +0 -0
  52. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/file_upload_part.py +0 -0
  53. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/folder.py +0 -0
  54. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/form_field.py +0 -0
  55. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/form_field_set.py +0 -0
  56. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/ftp_action_log.py +0 -0
  57. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/gpg_key.py +0 -0
  58. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/group.py +0 -0
  59. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/group_user.py +0 -0
  60. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/history.py +0 -0
  61. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/history_export.py +0 -0
  62. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/history_export_result.py +0 -0
  63. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/image.py +0 -0
  64. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/inbox_recipient.py +0 -0
  65. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/inbox_registration.py +0 -0
  66. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/inbox_upload.py +0 -0
  67. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/invoice.py +0 -0
  68. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/invoice_line_item.py +0 -0
  69. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/ip_address.py +0 -0
  70. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/lock.py +0 -0
  71. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/message.py +0 -0
  72. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/message_comment.py +0 -0
  73. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/message_comment_reaction.py +0 -0
  74. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/message_reaction.py +0 -0
  75. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/notification.py +0 -0
  76. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/outbound_connection_log.py +0 -0
  77. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/payment.py +0 -0
  78. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/payment_line_item.py +0 -0
  79. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/preview.py +0 -0
  80. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/priority.py +0 -0
  81. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/project.py +0 -0
  82. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/public_hosting_request_log.py +0 -0
  83. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/public_ip_address.py +0 -0
  84. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/public_key.py +0 -0
  85. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
  86. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/remote_server.py +0 -0
  87. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/remote_server_configuration_file.py +0 -0
  88. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/request.py +0 -0
  89. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/session.py +0 -0
  90. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/settings_change.py +0 -0
  91. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/sftp_action_log.py +0 -0
  92. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/sftp_host_key.py +0 -0
  93. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/share_group.py +0 -0
  94. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/share_group_member.py +0 -0
  95. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/siem_http_destination.py +0 -0
  96. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/site.py +0 -0
  97. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/snapshot.py +0 -0
  98. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/sso_strategy.py +0 -0
  99. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/status.py +0 -0
  100. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/style.py +0 -0
  101. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/sync_log.py +0 -0
  102. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/usage_daily_snapshot.py +0 -0
  103. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/usage_snapshot.py +0 -0
  104. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/user.py +0 -0
  105. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/user_cipher_use.py +0 -0
  106. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/user_request.py +0 -0
  107. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/web_dav_action_log.py +0 -0
  108. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/models/webhook_test.py +0 -0
  109. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/path_util.py +0 -0
  110. {Files.com-1.4.142 → Files.com-1.4.144}/files_sdk/util.py +0 -0
  111. {Files.com-1.4.142 → Files.com-1.4.144}/pyproject.toml +0 -0
  112. {Files.com-1.4.142 → Files.com-1.4.144}/setup.cfg +0 -0
  113. {Files.com-1.4.142 → Files.com-1.4.144}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: Files.com
3
- Version: 1.4.142
3
+ Version: 1.4.144
4
4
  Summary: Python bindings for the Files.com API
5
5
  Home-page: UNKNOWN
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: Files.com
3
- Version: 1.4.142
3
+ Version: 1.4.144
4
4
  Summary: Python bindings for the Files.com API
5
5
  Home-page: UNKNOWN
6
6
  License: MIT
@@ -195,45 +195,18 @@ files_sdk.source_ip = '10.1.2.3'
195
195
 
196
196
  ## Sort and Filter
197
197
 
198
- Several of the Files.com API resources have list operations that return multiple instances of the resource. The List operations
199
- can be sorted and filtered.
198
+ Several of the Files.com API resources have list operations that return multiple instances of the
199
+ resource. The List operations can be sorted and filtered.
200
200
 
201
201
  ### Sorting
202
202
 
203
- The returned data can be sorted by passing in the ```sort_by``` method argument.
203
+ To sort the returned data, pass in the ```sort_by``` method argument.
204
204
 
205
- Each resource has a set of valid fields for sorting and can be sorted by one field at a time.
205
+ Each resource supports a unique set of valid sort fields and can only be sorted by one field at a
206
+ time.
206
207
 
207
- The argument value is a Python dictionary that has a key of the resource field name sort on and a value of either ```"asc"``` or ```"desc"``` to specify the sort order.
208
-
209
- ### Filters
210
-
211
- Filters apply selection criteria to the underlying query that returns the results. Filters can be applied individually to select resource fields
212
- and/or in a combination with each other. The results of applying filters and filter combinations can be sorted by a single field.
213
-
214
- The passed in argument value is a Python dictionary that has a key of the resource field name to filter on and a passed in value to use in the filter comparison.
215
-
216
- Each resource has their own set of valid filters and fields, valid combinations of filters, and sortable fields.
217
-
218
- #### Types of Filters
219
-
220
- ##### Exact Filter
221
-
222
- `filter` - find resources that have an exact field value match to a passed in value. (i.e., FIELD_VALUE = PASS_IN_VALUE).
223
-
224
- #### Range Filters
225
-
226
- `filter_gt` - find resources that have a field value that is greater than the passed in value. (i.e., FIELD_VALUE > PASS_IN_VALUE).
227
-
228
- `filter_gte` - find resources that have a field value that is greater than or equal to the passed in value. (i.e., FIELD_VALUE >= PASS_IN_VALUE).
229
-
230
- `filter_lt` - find resources that have a field value that is less than the passed in value. (i.e., FIELD_VALUE < PASS_IN_VALUE).
231
-
232
- `filter_lte` - find resources that have a field value that is less than or equal to the passed in value. (i.e., FIELD_VALUE \<= PASS_IN_VALUE).
233
-
234
- ##### Pattern Filter
235
-
236
- `filter_prefix` - find resources where the specified field is prefixed by the supplied value. This is applicable to values that are strings.
208
+ The argument value is a Python dictionary that has a key of the resource field name sort on and a
209
+ value of either ```"asc"``` or ```"desc"``` to specify the sort order.
237
210
 
238
211
  ```python title="Sort Example"
239
212
  ## users sorted by username
@@ -243,46 +216,63 @@ users = files_sdk.user.list({
243
216
  })
244
217
  for user in users.auto_paging_iter():
245
218
  # Operate on user
246
-
247
219
  ````
248
220
 
221
+ ### Filtering
222
+
223
+ Filters apply selection criteria to the underlying query that returns the results. They can be
224
+ applied individually or combined with other filters, and the resulting data can be sorted by a
225
+ single field.
226
+
227
+ Each resource supports a unique set of valid filter fields, filter combinations, and combinations of
228
+ filters and sort fields.
229
+
230
+ The passed in argument value is a Python dictionary that has a key of the resource field name to
231
+ filter on and a passed in value to use in the filter comparison.
232
+
233
+ #### Filter Types
234
+
235
+ | Filter | Type | Description |
236
+ | --------- | --------- | --------- |
237
+ | `filter` | Exact | Find resources that have an exact field value match to a passed in value. (i.e., FIELD_VALUE = PASS_IN_VALUE). |
238
+ | `filter_prefix` | Pattern | Find resources where the specified field is prefixed by the supplied value. This is applicable to values that are strings. |
239
+ | `filter_gt` | Range | Find resources that have a field value that is greater than the passed in value. (i.e., FIELD_VALUE > PASS_IN_VALUE). |
240
+ | `filter_gteq` | Range | Find resources that have a field value that is greater than or equal to the passed in value. (i.e., FIELD_VALUE >= PASS_IN_VALUE). |
241
+ | `filter_lt` | Range | Find resources that have a field value that is less than the passed in value. (i.e., FIELD_VALUE < PASS_IN_VALUE). |
242
+ | `filter_lteq` | Range | Find resources that have a field value that is less than or equal to the passed in value. (i.e., FIELD_VALUE \<= PASS_IN_VALUE). |
243
+
249
244
  ```python title="Exact Filter Example"
250
245
  ## non admin users
251
246
  files_sdk.set_api_key("my-key")
252
247
  users = files_sdk.user.list({
253
- "filter": { "not_site_admin": true},
254
- "sort_by": { "username": "asc"}
248
+ "filter": { "not_site_admin": true}
255
249
  })
256
250
  for user in users.auto_paging_iter():
257
251
  # Operate on user
258
-
259
252
  ````
260
253
 
261
254
  ```python title="Range Filter Example"
262
255
  ## users who haven't logged in since 2024-01-01
263
256
  files_sdk.set_api_key("my-key")
264
257
  users = files_sdk.user.list({
265
- "filter_gte": { "last_login_at": "2024-01-01" },
266
- "sort_by": { "last_login_at": "asc" }
258
+ "filter_gteq": { "last_login_at": "2024-01-01" }
267
259
  })
268
260
  for user in users.auto_paging_iter():
269
261
  # Operate on user
270
262
  ```
271
263
 
272
264
  ```python title="Pattern Filter Example"
273
- ## users who usernames start with 'test'
265
+ ## users whose usernames start with 'test'
274
266
  files_sdk.set_api_key("my-key")
275
267
  users = files_sdk.user.list({
276
- "filter_prefix": { "username": "test" },
277
- "sort_by": { "username": "asc"}
268
+ "filter_prefix": { "username": "test" }
278
269
  })
279
270
  for user in users.auto_paging_iter():
280
271
  # Operate on user
281
-
282
272
  ```
283
273
 
284
- ```python title="Combined Filter Example"
285
- ## users who usernames start with 'test' and are not admins
274
+ ```python title="Combination Filter with Sort Example"
275
+ ## users whose usernames start with 'test' and are not admins
286
276
  files_sdk.set_api_key("my-key")
287
277
  users = files_sdk.user.list({
288
278
  "filter_prefix": { "username": "test" },
@@ -291,7 +281,6 @@ users = files_sdk.user.list({
291
281
  })
292
282
  for user in users.auto_paging_iter():
293
283
  # Operate on user
294
-
295
284
  ```
296
285
 
297
286
  ## Errors
@@ -206,7 +206,7 @@ session_id = None
206
206
  source_ip = None
207
207
  base_url = "https://app.files.com"
208
208
  base_path = "api/rest/v1"
209
- version = "1.4.142"
209
+ version = "1.4.144"
210
210
 
211
211
  __version__ = version
212
212
 
@@ -115,9 +115,9 @@ def all(params=None, options=None):
115
115
 
116
116
 
117
117
  # Parameters:
118
+ # path (required) - string - Folder path
118
119
  # group_id - int64 - Group ID
119
- # path - string - Folder path
120
- # permission - string - Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `list`, or `history`
120
+ # permission - string - Permission type. Can be `admin`, `full`, `readonly`, `writeonly`, `list`, or `history`
121
121
  # recursive - boolean - Apply to subfolders recursively?
122
122
  # user_id - int64 - User ID. Provide `username` or `user_id`
123
123
  # username - string - User username. Provide `username` or `user_id`
@@ -126,16 +126,18 @@ def create(params=None, options=None):
126
126
  params = {}
127
127
  if not isinstance(options, dict):
128
128
  options = {}
129
- if "group_id" in params and not isinstance(params["group_id"], int):
130
- raise InvalidParameterError("Bad parameter: group_id must be an int")
131
129
  if "path" in params and not isinstance(params["path"], str):
132
130
  raise InvalidParameterError("Bad parameter: path must be an str")
131
+ if "group_id" in params and not isinstance(params["group_id"], int):
132
+ raise InvalidParameterError("Bad parameter: group_id must be an int")
133
133
  if "permission" in params and not isinstance(params["permission"], str):
134
134
  raise InvalidParameterError("Bad parameter: permission must be an str")
135
135
  if "user_id" in params and not isinstance(params["user_id"], int):
136
136
  raise InvalidParameterError("Bad parameter: user_id must be an int")
137
137
  if "username" in params and not isinstance(params["username"], str):
138
138
  raise InvalidParameterError("Bad parameter: username must be an str")
139
+ if "path" not in params:
140
+ raise MissingParameterError("Parameter missing: path")
139
141
  response, options = Api.send_request(
140
142
  "POST", "/permissions", params, options
141
143
  )
File without changes
File without changes
File without changes