files-com 1.6.32__py3-none-any.whl → 1.6.101__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.
Files changed (50) hide show
  1. README.md +80 -18
  2. _VERSION +1 -1
  3. {files_com-1.6.32.dist-info → files_com-1.6.101.dist-info}/METADATA +81 -19
  4. {files_com-1.6.32.dist-info → files_com-1.6.101.dist-info}/RECORD +50 -47
  5. files_sdk/__init__.py +9 -1
  6. files_sdk/error.py +98 -23
  7. files_sdk/models/__init__.py +5 -0
  8. files_sdk/models/api_key.py +10 -0
  9. files_sdk/models/api_request_log.py +6 -6
  10. files_sdk/models/automation.py +48 -5
  11. files_sdk/models/automation_log.py +6 -6
  12. files_sdk/models/behavior.py +2 -2
  13. files_sdk/models/bundle.py +1 -1
  14. files_sdk/models/bundle_action.py +5 -1
  15. files_sdk/models/bundle_registration.py +1 -1
  16. files_sdk/models/child_site_management_policy.py +278 -0
  17. files_sdk/models/email_log.py +6 -6
  18. files_sdk/models/exavault_api_request_log.py +6 -6
  19. files_sdk/models/file.py +8 -0
  20. files_sdk/models/file_migration_log.py +6 -6
  21. files_sdk/models/folder.py +11 -1
  22. files_sdk/models/ftp_action_log.py +6 -6
  23. files_sdk/models/gpg_key.py +29 -9
  24. files_sdk/models/history_export.py +4 -4
  25. files_sdk/models/history_export_result.py +2 -2
  26. files_sdk/models/inbox_registration.py +1 -1
  27. files_sdk/models/invoice_line_item.py +5 -0
  28. files_sdk/models/outbound_connection_log.py +6 -6
  29. files_sdk/models/partner.py +296 -0
  30. files_sdk/models/permission.py +10 -2
  31. files_sdk/models/public_hosting_request_log.py +6 -6
  32. files_sdk/models/public_key.py +7 -3
  33. files_sdk/models/remote_mount_backend.py +1 -0
  34. files_sdk/models/remote_server.py +19 -91
  35. files_sdk/models/remote_server_configuration_file.py +1 -0
  36. files_sdk/models/scim_log.py +88 -0
  37. files_sdk/models/sftp_action_log.py +6 -6
  38. files_sdk/models/siem_http_destination.py +16 -16
  39. files_sdk/models/site.py +29 -12
  40. files_sdk/models/sso_strategy.py +2 -1
  41. files_sdk/models/sync.py +74 -10
  42. files_sdk/models/sync_log.py +8 -7
  43. files_sdk/models/sync_run.py +31 -17
  44. files_sdk/models/user.py +80 -3
  45. files_sdk/models/user_cipher_use.py +24 -1
  46. files_sdk/models/user_lifecycle_rule.py +81 -40
  47. files_sdk/models/web_dav_action_log.py +6 -6
  48. {files_com-1.6.32.dist-info → files_com-1.6.101.dist-info}/WHEEL +0 -0
  49. {files_com-1.6.32.dist-info → files_com-1.6.101.dist-info}/licenses/LICENSE +0 -0
  50. {files_com-1.6.32.dist-info → files_com-1.6.101.dist-info}/top_level.txt +0 -0
@@ -13,9 +13,16 @@ class GpgKey:
13
13
  "id": None, # int64 - Your GPG key ID.
14
14
  "expires_at": None, # date-time - Your GPG key expiration date.
15
15
  "name": None, # string - Your GPG key name.
16
- "user_id": None, # int64 - GPG owner's user id
17
- "public_key": None, # string - Your GPG public key
18
- "private_key": None, # string - Your GPG private key.
16
+ "partner_id": None, # int64 - Partner ID who owns this GPG Key, if applicable.
17
+ "partner_name": None, # string - Name of the Partner who owns this GPG Key, if applicable.
18
+ "user_id": None, # int64 - User ID who owns this GPG Key, if applicable.
19
+ "public_key_md5": None, # string - MD5 hash of your GPG public key
20
+ "private_key_md5": None, # string - MD5 hash of your GPG private key.
21
+ "generated_public_key": None, # string - Your GPG public key
22
+ "generated_private_key": None, # string - Your GPG private key.
23
+ "private_key_password_md5": None, # string - Your GPG private key password. Only required for password protected keys.
24
+ "public_key": None, # string - MD5 hash of your GPG public key
25
+ "private_key": None, # string - MD5 hash of your GPG private key.
19
26
  "private_key_password": None, # string - Your GPG private key password. Only required for password protected keys.
20
27
  "generate_expires_at": None, # string - Expiration date of the key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
21
28
  "generate_keypair": None, # boolean - If true, generate a new GPG key pair. Can not be used with `public_key`/`private_key`
@@ -43,8 +50,9 @@ class GpgKey:
43
50
  }
44
51
 
45
52
  # Parameters:
46
- # public_key - string - Your GPG public key
47
- # private_key - string - Your GPG private key.
53
+ # partner_id - int64 - Partner ID who owns this GPG Key, if applicable.
54
+ # public_key - string - MD5 hash of your GPG public key
55
+ # private_key - string - MD5 hash of your GPG private key.
48
56
  # private_key_password - string - Your GPG private key password. Only required for password protected keys.
49
57
  # name - string - Your GPG key name.
50
58
  def update(self, params=None):
@@ -59,6 +67,12 @@ class GpgKey:
59
67
  raise MissingParameterError("Parameter missing: id")
60
68
  if "id" in params and not isinstance(params["id"], int):
61
69
  raise InvalidParameterError("Bad parameter: id must be an int")
70
+ if "partner_id" in params and not isinstance(
71
+ params["partner_id"], int
72
+ ):
73
+ raise InvalidParameterError(
74
+ "Bad parameter: partner_id must be an int"
75
+ )
62
76
  if "public_key" in params and not isinstance(
63
77
  params["public_key"], str
64
78
  ):
@@ -169,8 +183,9 @@ def get(id, params=None, options=None):
169
183
 
170
184
  # Parameters:
171
185
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
172
- # public_key - string - Your GPG public key
173
- # private_key - string - Your GPG private key.
186
+ # partner_id - int64 - Partner ID who owns this GPG Key, if applicable.
187
+ # public_key - string - MD5 hash of your GPG public key
188
+ # private_key - string - MD5 hash of your GPG private key.
174
189
  # private_key_password - string - Your GPG private key password. Only required for password protected keys.
175
190
  # name (required) - string - Your GPG key name.
176
191
  # generate_expires_at - string - Expiration date of the key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
@@ -184,6 +199,8 @@ def create(params=None, options=None):
184
199
  options = {}
185
200
  if "user_id" in params and not isinstance(params["user_id"], int):
186
201
  raise InvalidParameterError("Bad parameter: user_id must be an int")
202
+ if "partner_id" in params and not isinstance(params["partner_id"], int):
203
+ raise InvalidParameterError("Bad parameter: partner_id must be an int")
187
204
  if "public_key" in params and not isinstance(params["public_key"], str):
188
205
  raise InvalidParameterError("Bad parameter: public_key must be an str")
189
206
  if "private_key" in params and not isinstance(params["private_key"], str):
@@ -229,8 +246,9 @@ def create(params=None, options=None):
229
246
 
230
247
 
231
248
  # Parameters:
232
- # public_key - string - Your GPG public key
233
- # private_key - string - Your GPG private key.
249
+ # partner_id - int64 - Partner ID who owns this GPG Key, if applicable.
250
+ # public_key - string - MD5 hash of your GPG public key
251
+ # private_key - string - MD5 hash of your GPG private key.
234
252
  # private_key_password - string - Your GPG private key password. Only required for password protected keys.
235
253
  # name - string - Your GPG key name.
236
254
  def update(id, params=None, options=None):
@@ -241,6 +259,8 @@ def update(id, params=None, options=None):
241
259
  params["id"] = id
242
260
  if "id" in params and not isinstance(params["id"], int):
243
261
  raise InvalidParameterError("Bad parameter: id must be an int")
262
+ if "partner_id" in params and not isinstance(params["partner_id"], int):
263
+ raise InvalidParameterError("Bad parameter: partner_id must be an int")
244
264
  if "public_key" in params and not isinstance(params["public_key"], str):
245
265
  raise InvalidParameterError("Bad parameter: public_key must be an str")
246
266
  if "private_key" in params and not isinstance(params["private_key"], str):
@@ -14,8 +14,8 @@ class HistoryExport:
14
14
  "start_at": None, # date-time - Start date/time of export range.
15
15
  "end_at": None, # date-time - End date/time of export range.
16
16
  "status": None, # string - Status of export. Will be: `building`, `ready`, or `failed`
17
- "query_action": None, # string - Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
18
- "query_interface": None, # string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
17
+ "query_action": None, # string - Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`, `archived_delete`
18
+ "query_interface": None, # string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
19
19
  "query_user_id": None, # string - Return results that are actions performed by the user indicated by this User ID
20
20
  "query_file_id": None, # string - Return results that are file actions related to the file indicated by this File ID
21
21
  "query_parent_id": None, # string - Return results that are file actions inside the parent folder specified by this folder ID
@@ -96,8 +96,8 @@ def get(id, params=None, options=None):
96
96
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
97
97
  # start_at - string - Start date/time of export range.
98
98
  # end_at - string - End date/time of export range.
99
- # query_action - string - Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
100
- # query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
99
+ # query_action - string - Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`, `archived_delete`
100
+ # query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
101
101
  # query_user_id - string - Return results that are actions performed by the user indicated by this User ID
102
102
  # query_file_id - string - Return results that are file actions related to the file indicated by this File ID
103
103
  # query_parent_id - string - Return results that are file actions inside the parent folder specified by this folder ID
@@ -23,9 +23,9 @@ class HistoryExportResult:
23
23
  "ip": None, # string - Client IP that performed the action
24
24
  "username": None, # string - Username of the user that performed the action
25
25
  "user_is_from_parent_site": None, # boolean - true if this change was performed by a user on a parent site.
26
- "action": None, # string - What action was taken. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
26
+ "action": None, # string - What action was taken. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`, `archived_delete`
27
27
  "failure_type": None, # string - The type of login failure, if applicable. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`, `insecure_ftp`, `insecure_cipher`, `rate_limited`
28
- "interface": None, # string - Interface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
28
+ "interface": None, # string - Interface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
29
29
  "target_id": None, # int64 - ID of the object (such as Users, or API Keys) on which the action was taken
30
30
  "target_name": None, # string - Name of the User, Group or other object with a name related to this action
31
31
  "target_permission": None, # string - Permission level of the action
@@ -50,7 +50,7 @@ class InboxRegistration:
50
50
  # Parameters:
51
51
  # 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.
52
52
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
53
- # folder_behavior_id - int64 - ID of the associated Inbox.
53
+ # folder_behavior_id - int64 - ID of the associated Inbox. This is required if the user is not a site admin.
54
54
  def list(params=None, options=None):
55
55
  if not isinstance(params, dict):
56
56
  params = {}
@@ -9,6 +9,7 @@ from files_sdk.error import ( # noqa: F401
9
9
 
10
10
  class InvoiceLineItem:
11
11
  default_attributes = {
12
+ "id": None, # int64 - Invoice Line item Id
12
13
  "amount": None, # double - Invoice line item amount
13
14
  "created_at": None, # date-time - Invoice line item created at date/time
14
15
  "description": None, # string - Invoice line item description
@@ -17,6 +18,10 @@ class InvoiceLineItem:
17
18
  "service_start_at": None, # date-time - Invoice line item service start date/time
18
19
  "plan": None, # string - Plan name
19
20
  "site": None, # string - Site name
21
+ "prepaid_bytes": None, # int64 - Prepaid bytes purchased for this invoice line item
22
+ "prepaid_bytes_expire_at": None, # date-time - When the prepaid bytes expire
23
+ "prepaid_bytes_used": None, # int64 - Total prepaid bytes used for this invoice line item
24
+ "prepaid_bytes_available": None, # int64 - Available prepaid bytes for this invoice line item
20
25
  }
21
26
 
22
27
  def __init__(self, attributes=None, options=None):