Files.com 1.4.227__tar.gz → 1.4.229__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 (115) hide show
  1. {Files.com-1.4.227 → Files.com-1.4.229}/Files.com.egg-info/PKG-INFO +1 -1
  2. {Files.com-1.4.227 → Files.com-1.4.229}/Files.com.egg-info/SOURCES.txt +1 -0
  3. {Files.com-1.4.227 → Files.com-1.4.229}/PKG-INFO +1 -1
  4. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/__init__.py +3 -1
  5. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/__init__.py +1 -0
  6. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/automation.py +8 -8
  7. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/automation_run.py +1 -1
  8. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/request.py +1 -1
  9. Files.com-1.4.229/files_sdk/models/usage_by_top_level_dir.py +41 -0
  10. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/usage_daily_snapshot.py +5 -5
  11. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/usage_snapshot.py +2 -2
  12. {Files.com-1.4.227 → Files.com-1.4.229}/Files.com.egg-info/dependency_links.txt +0 -0
  13. {Files.com-1.4.227 → Files.com-1.4.229}/Files.com.egg-info/requires.txt +0 -0
  14. {Files.com-1.4.227 → Files.com-1.4.229}/Files.com.egg-info/top_level.txt +0 -0
  15. {Files.com-1.4.227 → Files.com-1.4.229}/README.md +0 -0
  16. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/api.py +0 -0
  17. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/api_client.py +0 -0
  18. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/error.py +0 -0
  19. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/list_obj.py +0 -0
  20. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/account_line_item.py +0 -0
  21. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/action.py +0 -0
  22. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/action_notification_export.py +0 -0
  23. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/action_notification_export_result.py +0 -0
  24. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/api_key.py +0 -0
  25. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/api_request_log.py +0 -0
  26. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/app.py +0 -0
  27. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/as2_incoming_message.py +0 -0
  28. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/as2_outgoing_message.py +0 -0
  29. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/as2_partner.py +0 -0
  30. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/as2_station.py +0 -0
  31. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/auto.py +0 -0
  32. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/automation_log.py +0 -0
  33. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/bandwidth_snapshot.py +0 -0
  34. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/behavior.py +0 -0
  35. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/bundle.py +0 -0
  36. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/bundle_action.py +0 -0
  37. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/bundle_download.py +0 -0
  38. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/bundle_notification.py +0 -0
  39. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/bundle_path.py +0 -0
  40. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/bundle_recipient.py +0 -0
  41. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/bundle_registration.py +0 -0
  42. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/clickwrap.py +0 -0
  43. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/dns_record.py +0 -0
  44. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/email_incoming_message.py +0 -0
  45. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/email_log.py +0 -0
  46. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/errors.py +0 -0
  47. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/exavault_api_request_log.py +0 -0
  48. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/external_event.py +0 -0
  49. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/file.py +0 -0
  50. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/file_action.py +0 -0
  51. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/file_comment.py +0 -0
  52. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/file_comment_reaction.py +0 -0
  53. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/file_migration.py +0 -0
  54. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/file_migration_log.py +0 -0
  55. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/file_upload_part.py +0 -0
  56. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/folder.py +0 -0
  57. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/form_field.py +0 -0
  58. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/form_field_set.py +0 -0
  59. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/ftp_action_log.py +0 -0
  60. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/gpg_key.py +0 -0
  61. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/group.py +0 -0
  62. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/group_user.py +0 -0
  63. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/history.py +0 -0
  64. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/history_export.py +0 -0
  65. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/history_export_result.py +0 -0
  66. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/image.py +0 -0
  67. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/inbox_recipient.py +0 -0
  68. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/inbox_registration.py +0 -0
  69. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/inbox_upload.py +0 -0
  70. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/invoice.py +0 -0
  71. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/invoice_line_item.py +0 -0
  72. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/ip_address.py +0 -0
  73. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/lock.py +0 -0
  74. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/message.py +0 -0
  75. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/message_comment.py +0 -0
  76. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/message_comment_reaction.py +0 -0
  77. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/message_reaction.py +0 -0
  78. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/notification.py +0 -0
  79. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/outbound_connection_log.py +0 -0
  80. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/payment.py +0 -0
  81. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/payment_line_item.py +0 -0
  82. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/permission.py +0 -0
  83. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/preview.py +0 -0
  84. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/priority.py +0 -0
  85. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/project.py +0 -0
  86. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/public_hosting_request_log.py +0 -0
  87. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/public_ip_address.py +0 -0
  88. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/public_key.py +0 -0
  89. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
  90. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/remote_server.py +0 -0
  91. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/remote_server_configuration_file.py +0 -0
  92. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/session.py +0 -0
  93. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/settings_change.py +0 -0
  94. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/sftp_action_log.py +0 -0
  95. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/sftp_host_key.py +0 -0
  96. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/share_group.py +0 -0
  97. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/share_group_member.py +0 -0
  98. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/siem_http_destination.py +0 -0
  99. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/site.py +0 -0
  100. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/snapshot.py +0 -0
  101. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/sso_strategy.py +0 -0
  102. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/status.py +0 -0
  103. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/style.py +0 -0
  104. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/sync_log.py +0 -0
  105. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/user.py +0 -0
  106. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/user_cipher_use.py +0 -0
  107. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/user_request.py +0 -0
  108. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/user_sftp_client_use.py +0 -0
  109. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/web_dav_action_log.py +0 -0
  110. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/models/webhook_test.py +0 -0
  111. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/path_util.py +0 -0
  112. {Files.com-1.4.227 → Files.com-1.4.229}/files_sdk/util.py +0 -0
  113. {Files.com-1.4.227 → Files.com-1.4.229}/pyproject.toml +0 -0
  114. {Files.com-1.4.227 → Files.com-1.4.229}/setup.cfg +0 -0
  115. {Files.com-1.4.227 → Files.com-1.4.229}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: Files.com
3
- Version: 1.4.227
3
+ Version: 1.4.229
4
4
  Summary: Python bindings for the Files.com API
5
5
  Home-page: UNKNOWN
6
6
  License: MIT
@@ -102,6 +102,7 @@ files_sdk/models/sso_strategy.py
102
102
  files_sdk/models/status.py
103
103
  files_sdk/models/style.py
104
104
  files_sdk/models/sync_log.py
105
+ files_sdk/models/usage_by_top_level_dir.py
105
106
  files_sdk/models/usage_daily_snapshot.py
106
107
  files_sdk/models/usage_snapshot.py
107
108
  files_sdk/models/user.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: Files.com
3
- Version: 1.4.227
3
+ Version: 1.4.229
4
4
  Summary: Python bindings for the Files.com API
5
5
  Home-page: UNKNOWN
6
6
  License: MIT
@@ -87,6 +87,7 @@ import files_sdk.models.sso_strategy as sso_strategy
87
87
  import files_sdk.models.status as status
88
88
  import files_sdk.models.style as style
89
89
  import files_sdk.models.sync_log as sync_log
90
+ import files_sdk.models.usage_by_top_level_dir as usage_by_top_level_dir
90
91
  import files_sdk.models.usage_daily_snapshot as usage_daily_snapshot
91
92
  import files_sdk.models.usage_snapshot as usage_snapshot
92
93
  import files_sdk.models.user as user
@@ -190,6 +191,7 @@ from files_sdk.models.sso_strategy import SsoStrategy
190
191
  from files_sdk.models.status import Status
191
192
  from files_sdk.models.style import Style
192
193
  from files_sdk.models.sync_log import SyncLog
194
+ from files_sdk.models.usage_by_top_level_dir import UsageByTopLevelDir
193
195
  from files_sdk.models.usage_daily_snapshot import UsageDailySnapshot
194
196
  from files_sdk.models.usage_snapshot import UsageSnapshot
195
197
  from files_sdk.models.user import User
@@ -208,7 +210,7 @@ session_id = None
208
210
  source_ip = None
209
211
  base_url = "https://app.files.com"
210
212
  base_path = "api/rest/v1"
211
- version = "1.4.227"
213
+ version = "1.4.229"
212
214
 
213
215
  __version__ = version
214
216
 
@@ -92,6 +92,7 @@ from files_sdk.models.sso_strategy import SsoStrategy
92
92
  from files_sdk.models.status import Status
93
93
  from files_sdk.models.style import Style
94
94
  from files_sdk.models.sync_log import SyncLog
95
+ from files_sdk.models.usage_by_top_level_dir import UsageByTopLevelDir
95
96
  from files_sdk.models.usage_daily_snapshot import UsageDailySnapshot
96
97
  from files_sdk.models.usage_snapshot import UsageSnapshot
97
98
  from files_sdk.models.user import User
@@ -11,7 +11,7 @@ from files_sdk.error import ( # noqa: F401
11
11
  class Automation:
12
12
  default_attributes = {
13
13
  "id": None, # int64 - Automation ID
14
- "always_overwrite_size_matching_files": None, # boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
14
+ "always_overwrite_size_matching_files": None, # boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
15
15
  "automation": None, # string - Automation type
16
16
  "deleted": None, # boolean - Indicates if the automation has been deleted.
17
17
  "description": None, # string - Description for the this Automation.
@@ -28,7 +28,7 @@ class Automation:
28
28
  "last_modified_at": None, # date-time - Time when automation was last modified. Does not change for name or description updates.
29
29
  "legacy_folder_matching": None, # boolean - If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
30
30
  "name": None, # string - Name for this automation.
31
- "overwrite_files": None, # boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
31
+ "overwrite_files": None, # boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
32
32
  "path": None, # string - Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
33
33
  "path_time_zone": None, # string - Timezone to use when rendering timestamps in paths.
34
34
  "recurring_day": None, # int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
@@ -101,7 +101,7 @@ class Automation:
101
101
  # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
102
102
  # schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
103
103
  # schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
104
- # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
104
+ # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
105
105
  # description - string - Description for the this Automation.
106
106
  # disabled - boolean - If true, this automation will not run.
107
107
  # exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
@@ -110,7 +110,7 @@ class Automation:
110
110
  # ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
111
111
  # legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
112
112
  # name - string - Name for this automation.
113
- # overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
113
+ # overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
114
114
  # path_time_zone - string - Timezone to use when rendering timestamps in paths.
115
115
  # retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
116
116
  # retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
@@ -367,7 +367,7 @@ def get(id, params=None, options=None):
367
367
  # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
368
368
  # schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
369
369
  # schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
370
- # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
370
+ # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
371
371
  # description - string - Description for the this Automation.
372
372
  # disabled - boolean - If true, this automation will not run.
373
373
  # exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
@@ -376,7 +376,7 @@ def get(id, params=None, options=None):
376
376
  # ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
377
377
  # legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
378
378
  # name - string - Name for this automation.
379
- # overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
379
+ # overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
380
380
  # path_time_zone - string - Timezone to use when rendering timestamps in paths.
381
381
  # retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
382
382
  # retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
@@ -532,7 +532,7 @@ def manual_run(id, params=None, options=None):
532
532
  # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
533
533
  # schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
534
534
  # schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
535
- # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
535
+ # always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
536
536
  # description - string - Description for the this Automation.
537
537
  # disabled - boolean - If true, this automation will not run.
538
538
  # exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
@@ -541,7 +541,7 @@ def manual_run(id, params=None, options=None):
541
541
  # ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
542
542
  # legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
543
543
  # name - string - Name for this automation.
544
- # overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `:always_overwrite_size_matching_files` option to override this.
544
+ # overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
545
545
  # path_time_zone - string - Timezone to use when rendering timestamps in paths.
546
546
  # retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
547
547
  # retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
@@ -14,7 +14,7 @@ class AutomationRun:
14
14
  "automation_id": None, # int64 - ID of the associated Automation.
15
15
  "completed_at": None, # date-time - Automation run completion/failure date/time.
16
16
  "created_at": None, # date-time - Automation run start date/time.
17
- "retry_at": None, # string - If set, this automation will be retried at this date/time due to `failure` or `partial_failure`.
17
+ "retry_at": None, # date-time - If set, this automation will be retried at this date/time due to `failure` or `partial_failure`.
18
18
  "retried_at": None, # date-time - If set, this Automation run was retried due to `failure` or `partial_failure`.
19
19
  "retried_in_run_id": None, # int64 - ID of the run that is or will be retrying this run.
20
20
  "retry_of_run_id": None, # int64 - ID of the original run that this run is retrying.
@@ -14,7 +14,7 @@ class Request:
14
14
  "path": None, # string - Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
15
15
  "source": None, # string - Source filename, if applicable
16
16
  "destination": None, # string - Destination filename
17
- "automation_id": None, # string - ID of automation that created request
17
+ "automation_id": None, # int64 - ID of automation that created request
18
18
  "user_display_name": None, # string - User making the request (if applicable)
19
19
  "user_ids": None, # string - A list of user IDs to request the file from. If sent as a string, it should be comma-delimited.
20
20
  "group_ids": None, # string - A list of group IDs to request the file from. If sent as a string, it should be comma-delimited.
@@ -0,0 +1,41 @@
1
+ import builtins # noqa: F401
2
+ from files_sdk.api import Api # noqa: F401
3
+ from files_sdk.error import ( # noqa: F401
4
+ InvalidParameterError,
5
+ MissingParameterError,
6
+ NotImplementedError,
7
+ )
8
+
9
+
10
+ class UsageByTopLevelDir:
11
+ default_attributes = {
12
+ "dir": None, # string - Directory name
13
+ "size": None, # int64 - Usage
14
+ "count": None, # int64 - File count
15
+ }
16
+
17
+ def __init__(self, attributes=None, options=None):
18
+ if not isinstance(attributes, dict):
19
+ attributes = {}
20
+ if not isinstance(options, dict):
21
+ options = {}
22
+ self.set_attributes(attributes)
23
+ self.options = options
24
+
25
+ def set_attributes(self, attributes):
26
+ for (
27
+ attribute,
28
+ default_value,
29
+ ) in UsageByTopLevelDir.default_attributes.items():
30
+ setattr(self, attribute, attributes.get(attribute, default_value))
31
+
32
+ def get_attributes(self):
33
+ return {
34
+ k: getattr(self, k, None)
35
+ for k in UsageByTopLevelDir.default_attributes
36
+ if getattr(self, k, None) is not None
37
+ }
38
+
39
+
40
+ def new(*args, **kwargs):
41
+ return UsageByTopLevelDir(*args, **kwargs)
@@ -16,11 +16,11 @@ class UsageDailySnapshot:
16
16
  "read_api_usage": None, # int64 - Read API Calls used on this day. Note: only updated for days before the current day.
17
17
  "write_api_usage": None, # int64 - Write API Calls used on this day. Note: only updated for days before the current day.
18
18
  "user_count": None, # int64 - Number of billable users as of this day.
19
- "current_storage": None, # int64 - GB of Files Native Storage used on this day.
20
- "deleted_files_storage": None, # int64 - GB of Files Native Storage used on this day for files that have been deleted and are stored as backups.
21
- "deleted_files_counted_in_minimum": None, # int64 - GB of Files Native Storage used on this day for files that have been permanently deleted but were uploaded less than 30 days ago, and are still billable.
22
- "root_storage": None, # int64 - GB of Files Native Storage used for the root folder. Included here because this value will not be part of `usage_by_top_level_dir`
23
- "usage_by_top_level_dir": None, # object - Usage broken down by each top-level folder
19
+ "current_storage": None, # double - GB of Files Native Storage used on this day.
20
+ "deleted_files_storage": None, # double - GB of Files Native Storage used on this day for files that have been deleted and are stored as backups.
21
+ "deleted_files_counted_in_minimum": None, # double - GB of Files Native Storage used on this day for files that have been permanently deleted but were uploaded less than 30 days ago, and are still billable.
22
+ "root_storage": None, # double - GB of Files Native Storage used for the root folder. Included here because this value will not be part of `usage_by_top_level_dir`
23
+ "usage_by_top_level_dir": None, # array(object) - Usage broken down by each top-level folder
24
24
  }
25
25
 
26
26
  def __init__(self, attributes=None, options=None):
@@ -13,10 +13,9 @@ class UsageSnapshot:
13
13
  "id": None, # int64 - Usage snapshot ID
14
14
  "start_at": None, # date-time - Usage snapshot start date/time
15
15
  "end_at": None, # date-time - Usage snapshot end date/time
16
- "high_water_user_count": None, # double - Highest user count number in time period
16
+ "high_water_user_count": None, # int64 - Highest user count number in time period
17
17
  "current_storage": None, # double - Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)
18
18
  "high_water_storage": None, # double - Highest Storage Usage GB recorded in time period (used for billing)
19
- "usage_by_top_level_dir": None, # object - Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
20
19
  "root_storage": None, # double - Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
21
20
  "deleted_files_counted_in_minimum": None, # double - Storage Usage for files that are deleted but uploaded within last 30 days as of end date (not necessarily high water mark, which is used for billing)
22
21
  "deleted_files_storage": None, # double - Storage Usage for files that are deleted but retained as backups as of end date (not necessarily high water mark, which is used for billing)
@@ -25,6 +24,7 @@ class UsageSnapshot:
25
24
  "bytes_sent": None, # double - Transfer Usage for period - Outbound GB from Files Native Storage
26
25
  "sync_bytes_received": None, # double - Transfer Usage for period - Inbound GB to Remote Servers (Sync/Mount)
27
26
  "sync_bytes_sent": None, # double - Transfer Usage for period - Outbound GB from Remote Servers (Sync/Mount)
27
+ "usage_by_top_level_dir": None, # array(object) - Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
28
28
  }
29
29
 
30
30
  def __init__(self, attributes=None, options=None):
File without changes
File without changes
File without changes
File without changes