files-com 1.6.7__py3-none-any.whl → 1.6.113__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.
- README.md +80 -18
- _VERSION +1 -1
- {files_com-1.6.7.dist-info → files_com-1.6.113.dist-info}/METADATA +81 -19
- {files_com-1.6.7.dist-info → files_com-1.6.113.dist-info}/RECORD +53 -46
- files_sdk/__init__.py +17 -1
- files_sdk/error.py +98 -23
- files_sdk/models/__init__.py +9 -0
- files_sdk/models/api_key.py +10 -0
- files_sdk/models/api_request_log.py +21 -3
- files_sdk/models/as2_partner.py +31 -9
- files_sdk/models/as2_station.py +1 -1
- files_sdk/models/automation.py +65 -5
- files_sdk/models/automation_log.py +20 -3
- files_sdk/models/behavior.py +2 -16
- files_sdk/models/bundle.py +1 -1
- files_sdk/models/bundle_action.py +5 -1
- files_sdk/models/bundle_registration.py +1 -1
- files_sdk/models/child_site_management_policy.py +278 -0
- files_sdk/models/email_log.py +17 -7
- files_sdk/models/exavault_api_request_log.py +20 -3
- files_sdk/models/file.py +8 -0
- files_sdk/models/file_migration_log.py +17 -7
- files_sdk/models/folder.py +11 -1
- files_sdk/models/ftp_action_log.py +20 -3
- files_sdk/models/gpg_key.py +61 -9
- files_sdk/models/history_export.py +4 -4
- files_sdk/models/history_export_result.py +2 -2
- files_sdk/models/holiday_region.py +58 -0
- files_sdk/models/inbox_registration.py +1 -1
- files_sdk/models/invoice_line_item.py +5 -0
- files_sdk/models/outbound_connection_log.py +20 -3
- files_sdk/models/partner.py +296 -0
- files_sdk/models/permission.py +10 -2
- files_sdk/models/public_hosting_request_log.py +27 -8
- files_sdk/models/public_key.py +59 -3
- files_sdk/models/remote_mount_backend.py +438 -0
- files_sdk/models/remote_server.py +19 -91
- files_sdk/models/remote_server_configuration_file.py +1 -0
- files_sdk/models/scim_log.py +88 -0
- files_sdk/models/sftp_action_log.py +20 -3
- files_sdk/models/siem_http_destination.py +98 -19
- files_sdk/models/site.py +37 -31
- files_sdk/models/sso_strategy.py +2 -1
- files_sdk/models/sync.py +574 -0
- files_sdk/models/sync_log.py +19 -8
- files_sdk/models/sync_run.py +123 -0
- files_sdk/models/user.py +105 -12
- files_sdk/models/user_cipher_use.py +24 -1
- files_sdk/models/user_lifecycle_rule.py +94 -39
- files_sdk/models/web_dav_action_log.py +20 -3
- {files_com-1.6.7.dist-info → files_com-1.6.113.dist-info}/WHEEL +0 -0
- {files_com-1.6.7.dist-info → files_com-1.6.113.dist-info}/licenses/LICENSE +0 -0
- {files_com-1.6.7.dist-info → files_com-1.6.113.dist-info}/top_level.txt +0 -0
files_sdk/models/automation.py
CHANGED
|
@@ -11,6 +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_serialize_jobs": None, # boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
14
15
|
"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
16
|
"automation": None, # string - Automation type
|
|
16
17
|
"deleted": None, # boolean - Indicates if the automation has been deleted.
|
|
@@ -40,13 +41,15 @@ class Automation:
|
|
|
40
41
|
"schedule_times_of_day": None, # array(string) - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
|
|
41
42
|
"schedule_time_zone": None, # string - If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
|
|
42
43
|
"source": None, # string - Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
|
43
|
-
"
|
|
44
|
-
"
|
|
44
|
+
"legacy_sync_ids": None, # array(int64) - IDs of remote sync folder behaviors to run by this Automation
|
|
45
|
+
"sync_ids": None, # array(int64) - IDs of syncs to run by this Automation. This is the new way to specify syncs, and it is recommended to use this instead of `legacy_sync_ids`.
|
|
46
|
+
"trigger_actions": None, # array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, archived_delete, copy
|
|
45
47
|
"trigger": None, # string - How this automation is triggered to run.
|
|
46
48
|
"user_id": None, # int64 - User ID of the Automation's creator.
|
|
47
49
|
"user_ids": None, # array(int64) - IDs of Users for the Automation (i.e. who to Request File from)
|
|
48
50
|
"value": None, # object - A Hash of attributes specific to the automation type.
|
|
49
51
|
"webhook_url": None, # string - If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
|
|
52
|
+
"holiday_region": None, # string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
def __init__(self, attributes=None, options=None):
|
|
@@ -95,13 +98,16 @@ class Automation:
|
|
|
95
98
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
96
99
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
97
100
|
# path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
101
|
+
# legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
98
102
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
99
103
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
100
104
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
101
105
|
# 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
106
|
# 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
107
|
# schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
|
108
|
+
# holiday_region - string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
|
|
104
109
|
# 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`.
|
|
110
|
+
# always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
105
111
|
# description - string - Description for the this Automation.
|
|
106
112
|
# disabled - boolean - If true, this automation will not run.
|
|
107
113
|
# exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
@@ -115,7 +121,7 @@ class Automation:
|
|
|
115
121
|
# 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
122
|
# 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.
|
|
117
123
|
# trigger - string - How this automation is triggered to run.
|
|
118
|
-
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
|
124
|
+
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, archived_delete, copy
|
|
119
125
|
# value - object - A Hash of attributes specific to the automation type.
|
|
120
126
|
# recurring_day - int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
|
121
127
|
# automation - string - Automation type
|
|
@@ -157,6 +163,12 @@ class Automation:
|
|
|
157
163
|
)
|
|
158
164
|
if "path" in params and not isinstance(params["path"], str):
|
|
159
165
|
raise InvalidParameterError("Bad parameter: path must be an str")
|
|
166
|
+
if "legacy_sync_ids" in params and not isinstance(
|
|
167
|
+
params["legacy_sync_ids"], str
|
|
168
|
+
):
|
|
169
|
+
raise InvalidParameterError(
|
|
170
|
+
"Bad parameter: legacy_sync_ids must be an str"
|
|
171
|
+
)
|
|
160
172
|
if "sync_ids" in params and not isinstance(params["sync_ids"], str):
|
|
161
173
|
raise InvalidParameterError(
|
|
162
174
|
"Bad parameter: sync_ids must be an str"
|
|
@@ -187,6 +199,12 @@ class Automation:
|
|
|
187
199
|
raise InvalidParameterError(
|
|
188
200
|
"Bad parameter: schedule_time_zone must be an str"
|
|
189
201
|
)
|
|
202
|
+
if "holiday_region" in params and not isinstance(
|
|
203
|
+
params["holiday_region"], str
|
|
204
|
+
):
|
|
205
|
+
raise InvalidParameterError(
|
|
206
|
+
"Bad parameter: holiday_region must be an str"
|
|
207
|
+
)
|
|
190
208
|
if "description" in params and not isinstance(
|
|
191
209
|
params["description"], str
|
|
192
210
|
):
|
|
@@ -361,13 +379,16 @@ def get(id, params=None, options=None):
|
|
|
361
379
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
362
380
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
363
381
|
# path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
382
|
+
# legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
364
383
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
365
384
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
366
385
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
367
386
|
# 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
387
|
# 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
388
|
# schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
|
389
|
+
# holiday_region - string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
|
|
370
390
|
# 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`.
|
|
391
|
+
# always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
371
392
|
# description - string - Description for the this Automation.
|
|
372
393
|
# disabled - boolean - If true, this automation will not run.
|
|
373
394
|
# exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
@@ -381,7 +402,7 @@ def get(id, params=None, options=None):
|
|
|
381
402
|
# 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
403
|
# 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.
|
|
383
404
|
# trigger - string - How this automation is triggered to run.
|
|
384
|
-
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
|
405
|
+
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, archived_delete, copy
|
|
385
406
|
# value - object - A Hash of attributes specific to the automation type.
|
|
386
407
|
# recurring_day - int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
|
387
408
|
# automation (required) - string - Automation type
|
|
@@ -414,6 +435,12 @@ def create(params=None, options=None):
|
|
|
414
435
|
raise InvalidParameterError("Bad parameter: interval must be an str")
|
|
415
436
|
if "path" in params and not isinstance(params["path"], str):
|
|
416
437
|
raise InvalidParameterError("Bad parameter: path must be an str")
|
|
438
|
+
if "legacy_sync_ids" in params and not isinstance(
|
|
439
|
+
params["legacy_sync_ids"], str
|
|
440
|
+
):
|
|
441
|
+
raise InvalidParameterError(
|
|
442
|
+
"Bad parameter: legacy_sync_ids must be an str"
|
|
443
|
+
)
|
|
417
444
|
if "sync_ids" in params and not isinstance(params["sync_ids"], str):
|
|
418
445
|
raise InvalidParameterError("Bad parameter: sync_ids must be an str")
|
|
419
446
|
if "user_ids" in params and not isinstance(params["user_ids"], str):
|
|
@@ -438,12 +465,24 @@ def create(params=None, options=None):
|
|
|
438
465
|
raise InvalidParameterError(
|
|
439
466
|
"Bad parameter: schedule_time_zone must be an str"
|
|
440
467
|
)
|
|
468
|
+
if "holiday_region" in params and not isinstance(
|
|
469
|
+
params["holiday_region"], str
|
|
470
|
+
):
|
|
471
|
+
raise InvalidParameterError(
|
|
472
|
+
"Bad parameter: holiday_region must be an str"
|
|
473
|
+
)
|
|
441
474
|
if "always_overwrite_size_matching_files" in params and not isinstance(
|
|
442
475
|
params["always_overwrite_size_matching_files"], bool
|
|
443
476
|
):
|
|
444
477
|
raise InvalidParameterError(
|
|
445
478
|
"Bad parameter: always_overwrite_size_matching_files must be an bool"
|
|
446
479
|
)
|
|
480
|
+
if "always_serialize_jobs" in params and not isinstance(
|
|
481
|
+
params["always_serialize_jobs"], bool
|
|
482
|
+
):
|
|
483
|
+
raise InvalidParameterError(
|
|
484
|
+
"Bad parameter: always_serialize_jobs must be an bool"
|
|
485
|
+
)
|
|
447
486
|
if "description" in params and not isinstance(params["description"], str):
|
|
448
487
|
raise InvalidParameterError(
|
|
449
488
|
"Bad parameter: description must be an str"
|
|
@@ -558,13 +597,16 @@ def manual_run(id, params=None, options=None):
|
|
|
558
597
|
# destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
|
559
598
|
# interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
560
599
|
# path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
600
|
+
# legacy_sync_ids - string - A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
561
601
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
562
602
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
563
603
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
564
604
|
# 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.
|
|
565
605
|
# 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.
|
|
566
606
|
# schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
|
607
|
+
# holiday_region - string - If trigger is `custom_schedule`, the Automation will check if there is a formal, observed holiday for the region, and if so, it will not run.
|
|
567
608
|
# 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`.
|
|
609
|
+
# always_serialize_jobs - boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
|
|
568
610
|
# description - string - Description for the this Automation.
|
|
569
611
|
# disabled - boolean - If true, this automation will not run.
|
|
570
612
|
# exclude_pattern - string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
|
@@ -578,7 +620,7 @@ def manual_run(id, params=None, options=None):
|
|
|
578
620
|
# 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.
|
|
579
621
|
# 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.
|
|
580
622
|
# trigger - string - How this automation is triggered to run.
|
|
581
|
-
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
|
623
|
+
# trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, archived_delete, copy
|
|
582
624
|
# value - object - A Hash of attributes specific to the automation type.
|
|
583
625
|
# recurring_day - int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
|
584
626
|
# automation - string - Automation type
|
|
@@ -614,6 +656,12 @@ def update(id, params=None, options=None):
|
|
|
614
656
|
raise InvalidParameterError("Bad parameter: interval must be an str")
|
|
615
657
|
if "path" in params and not isinstance(params["path"], str):
|
|
616
658
|
raise InvalidParameterError("Bad parameter: path must be an str")
|
|
659
|
+
if "legacy_sync_ids" in params and not isinstance(
|
|
660
|
+
params["legacy_sync_ids"], str
|
|
661
|
+
):
|
|
662
|
+
raise InvalidParameterError(
|
|
663
|
+
"Bad parameter: legacy_sync_ids must be an str"
|
|
664
|
+
)
|
|
617
665
|
if "sync_ids" in params and not isinstance(params["sync_ids"], str):
|
|
618
666
|
raise InvalidParameterError("Bad parameter: sync_ids must be an str")
|
|
619
667
|
if "user_ids" in params and not isinstance(params["user_ids"], str):
|
|
@@ -638,12 +686,24 @@ def update(id, params=None, options=None):
|
|
|
638
686
|
raise InvalidParameterError(
|
|
639
687
|
"Bad parameter: schedule_time_zone must be an str"
|
|
640
688
|
)
|
|
689
|
+
if "holiday_region" in params and not isinstance(
|
|
690
|
+
params["holiday_region"], str
|
|
691
|
+
):
|
|
692
|
+
raise InvalidParameterError(
|
|
693
|
+
"Bad parameter: holiday_region must be an str"
|
|
694
|
+
)
|
|
641
695
|
if "always_overwrite_size_matching_files" in params and not isinstance(
|
|
642
696
|
params["always_overwrite_size_matching_files"], bool
|
|
643
697
|
):
|
|
644
698
|
raise InvalidParameterError(
|
|
645
699
|
"Bad parameter: always_overwrite_size_matching_files must be an bool"
|
|
646
700
|
)
|
|
701
|
+
if "always_serialize_jobs" in params and not isinstance(
|
|
702
|
+
params["always_serialize_jobs"], bool
|
|
703
|
+
):
|
|
704
|
+
raise InvalidParameterError(
|
|
705
|
+
"Bad parameter: always_serialize_jobs must be an bool"
|
|
706
|
+
)
|
|
647
707
|
if "description" in params and not isinstance(params["description"], str):
|
|
648
708
|
raise InvalidParameterError(
|
|
649
709
|
"Bad parameter: description must be an str"
|
|
@@ -10,7 +10,7 @@ from files_sdk.error import ( # noqa: F401
|
|
|
10
10
|
|
|
11
11
|
class AutomationLog:
|
|
12
12
|
default_attributes = {
|
|
13
|
-
"timestamp": None, # date-time - Start Time of Action
|
|
13
|
+
"timestamp": None, # date-time - Start Time of Action. Deprecrated: Use created_at.
|
|
14
14
|
"automation_id": None, # int64 - Automation ID
|
|
15
15
|
"automation_run_id": None, # int64 - Automation Run ID
|
|
16
16
|
"dest_path": None, # string - Destination path, for moves and copies
|
|
@@ -19,6 +19,7 @@ class AutomationLog:
|
|
|
19
19
|
"operation": None, # string - Operation type
|
|
20
20
|
"path": None, # string - File path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
21
21
|
"status": None, # string - Status
|
|
22
|
+
"created_at": None, # date-time - Start Time of Action
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
def __init__(self, attributes=None, options=None):
|
|
@@ -47,8 +48,12 @@ class AutomationLog:
|
|
|
47
48
|
# Parameters:
|
|
48
49
|
# 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.
|
|
49
50
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
50
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `
|
|
51
|
-
#
|
|
51
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation_id`, `automation_run_id`, `operation`, `path`, `status` or `created_at`. Valid field combinations are `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ created_at ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_id, created_at ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ automation_run_id, created_at ]`, `[ operation, path ]`, `[ operation, status ]`, `[ operation, created_at ]`, `[ path, status ]`, `[ path, created_at ]`, `[ status, created_at ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, automation_run_id, created_at ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, operation, created_at ]`, `[ automation_id, path, status ]`, `[ automation_id, path, created_at ]`, `[ automation_id, status, created_at ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, operation, created_at ]`, `[ automation_run_id, path, status ]`, `[ automation_run_id, path, created_at ]`, `[ automation_run_id, status, created_at ]`, `[ operation, path, status ]`, `[ operation, path, created_at ]`, `[ operation, status, created_at ]`, `[ path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, operation, created_at ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, automation_run_id, path, created_at ]`, `[ automation_id, automation_run_id, status, created_at ]`, `[ automation_id, operation, path, status ]`, `[ automation_id, operation, path, created_at ]`, `[ automation_id, operation, status, created_at ]`, `[ automation_id, path, status, created_at ]`, `[ automation_run_id, operation, path, status ]`, `[ automation_run_id, operation, path, created_at ]`, `[ automation_run_id, operation, status, created_at ]`, `[ automation_run_id, path, status, created_at ]`, `[ operation, path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, created_at ]`, `[ automation_id, automation_run_id, operation, status, created_at ]`, `[ automation_id, automation_run_id, path, status, created_at ]`, `[ automation_id, operation, path, status, created_at ]`, `[ automation_run_id, operation, path, status, created_at ]` or `[ automation_id, automation_run_id, operation, path, status, created_at ]`.
|
|
52
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ created_at ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_id, created_at ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ automation_run_id, created_at ]`, `[ operation, path ]`, `[ operation, status ]`, `[ operation, created_at ]`, `[ path, status ]`, `[ path, created_at ]`, `[ status, created_at ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, automation_run_id, created_at ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, operation, created_at ]`, `[ automation_id, path, status ]`, `[ automation_id, path, created_at ]`, `[ automation_id, status, created_at ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, operation, created_at ]`, `[ automation_run_id, path, status ]`, `[ automation_run_id, path, created_at ]`, `[ automation_run_id, status, created_at ]`, `[ operation, path, status ]`, `[ operation, path, created_at ]`, `[ operation, status, created_at ]`, `[ path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, operation, created_at ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, automation_run_id, path, created_at ]`, `[ automation_id, automation_run_id, status, created_at ]`, `[ automation_id, operation, path, status ]`, `[ automation_id, operation, path, created_at ]`, `[ automation_id, operation, status, created_at ]`, `[ automation_id, path, status, created_at ]`, `[ automation_run_id, operation, path, status ]`, `[ automation_run_id, operation, path, created_at ]`, `[ automation_run_id, operation, status, created_at ]`, `[ automation_run_id, path, status, created_at ]`, `[ operation, path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, created_at ]`, `[ automation_id, automation_run_id, operation, status, created_at ]`, `[ automation_id, automation_run_id, path, status, created_at ]`, `[ automation_id, operation, path, status, created_at ]`, `[ automation_run_id, operation, path, status, created_at ]` or `[ automation_id, automation_run_id, operation, path, status, created_at ]`.
|
|
53
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ created_at ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_id, created_at ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ automation_run_id, created_at ]`, `[ operation, path ]`, `[ operation, status ]`, `[ operation, created_at ]`, `[ path, status ]`, `[ path, created_at ]`, `[ status, created_at ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, automation_run_id, created_at ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, operation, created_at ]`, `[ automation_id, path, status ]`, `[ automation_id, path, created_at ]`, `[ automation_id, status, created_at ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, operation, created_at ]`, `[ automation_run_id, path, status ]`, `[ automation_run_id, path, created_at ]`, `[ automation_run_id, status, created_at ]`, `[ operation, path, status ]`, `[ operation, path, created_at ]`, `[ operation, status, created_at ]`, `[ path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, operation, created_at ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, automation_run_id, path, created_at ]`, `[ automation_id, automation_run_id, status, created_at ]`, `[ automation_id, operation, path, status ]`, `[ automation_id, operation, path, created_at ]`, `[ automation_id, operation, status, created_at ]`, `[ automation_id, path, status, created_at ]`, `[ automation_run_id, operation, path, status ]`, `[ automation_run_id, operation, path, created_at ]`, `[ automation_run_id, operation, status, created_at ]`, `[ automation_run_id, path, status, created_at ]`, `[ operation, path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, created_at ]`, `[ automation_id, automation_run_id, operation, status, created_at ]`, `[ automation_id, automation_run_id, path, status, created_at ]`, `[ automation_id, operation, path, status, created_at ]`, `[ automation_run_id, operation, path, status, created_at ]` or `[ automation_id, automation_run_id, operation, path, status, created_at ]`.
|
|
54
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`. Valid field combinations are `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ created_at ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_id, created_at ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ automation_run_id, created_at ]`, `[ operation, path ]`, `[ operation, status ]`, `[ operation, created_at ]`, `[ path, status ]`, `[ path, created_at ]`, `[ status, created_at ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, automation_run_id, created_at ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, operation, created_at ]`, `[ automation_id, path, status ]`, `[ automation_id, path, created_at ]`, `[ automation_id, status, created_at ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, operation, created_at ]`, `[ automation_run_id, path, status ]`, `[ automation_run_id, path, created_at ]`, `[ automation_run_id, status, created_at ]`, `[ operation, path, status ]`, `[ operation, path, created_at ]`, `[ operation, status, created_at ]`, `[ path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, operation, created_at ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, automation_run_id, path, created_at ]`, `[ automation_id, automation_run_id, status, created_at ]`, `[ automation_id, operation, path, status ]`, `[ automation_id, operation, path, created_at ]`, `[ automation_id, operation, status, created_at ]`, `[ automation_id, path, status, created_at ]`, `[ automation_run_id, operation, path, status ]`, `[ automation_run_id, operation, path, created_at ]`, `[ automation_run_id, operation, status, created_at ]`, `[ automation_run_id, path, status, created_at ]`, `[ operation, path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, created_at ]`, `[ automation_id, automation_run_id, operation, status, created_at ]`, `[ automation_id, automation_run_id, path, status, created_at ]`, `[ automation_id, operation, path, status, created_at ]`, `[ automation_run_id, operation, path, status, created_at ]` or `[ automation_id, automation_run_id, operation, path, status, created_at ]`.
|
|
55
|
+
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ created_at ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_id, created_at ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ automation_run_id, created_at ]`, `[ operation, path ]`, `[ operation, status ]`, `[ operation, created_at ]`, `[ path, status ]`, `[ path, created_at ]`, `[ status, created_at ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, automation_run_id, created_at ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, operation, created_at ]`, `[ automation_id, path, status ]`, `[ automation_id, path, created_at ]`, `[ automation_id, status, created_at ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, operation, created_at ]`, `[ automation_run_id, path, status ]`, `[ automation_run_id, path, created_at ]`, `[ automation_run_id, status, created_at ]`, `[ operation, path, status ]`, `[ operation, path, created_at ]`, `[ operation, status, created_at ]`, `[ path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, operation, created_at ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, automation_run_id, path, created_at ]`, `[ automation_id, automation_run_id, status, created_at ]`, `[ automation_id, operation, path, status ]`, `[ automation_id, operation, path, created_at ]`, `[ automation_id, operation, status, created_at ]`, `[ automation_id, path, status, created_at ]`, `[ automation_run_id, operation, path, status ]`, `[ automation_run_id, operation, path, created_at ]`, `[ automation_run_id, operation, status, created_at ]`, `[ automation_run_id, path, status, created_at ]`, `[ operation, path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, created_at ]`, `[ automation_id, automation_run_id, operation, status, created_at ]`, `[ automation_id, automation_run_id, path, status, created_at ]`, `[ automation_id, operation, path, status, created_at ]`, `[ automation_run_id, operation, path, status, created_at ]` or `[ automation_id, automation_run_id, operation, path, status, created_at ]`.
|
|
56
|
+
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ created_at ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_id, created_at ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ automation_run_id, created_at ]`, `[ operation, path ]`, `[ operation, status ]`, `[ operation, created_at ]`, `[ path, status ]`, `[ path, created_at ]`, `[ status, created_at ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, automation_run_id, created_at ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, operation, created_at ]`, `[ automation_id, path, status ]`, `[ automation_id, path, created_at ]`, `[ automation_id, status, created_at ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, operation, created_at ]`, `[ automation_run_id, path, status ]`, `[ automation_run_id, path, created_at ]`, `[ automation_run_id, status, created_at ]`, `[ operation, path, status ]`, `[ operation, path, created_at ]`, `[ operation, status, created_at ]`, `[ path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, operation, created_at ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, automation_run_id, path, created_at ]`, `[ automation_id, automation_run_id, status, created_at ]`, `[ automation_id, operation, path, status ]`, `[ automation_id, operation, path, created_at ]`, `[ automation_id, operation, status, created_at ]`, `[ automation_id, path, status, created_at ]`, `[ automation_run_id, operation, path, status ]`, `[ automation_run_id, operation, path, created_at ]`, `[ automation_run_id, operation, status, created_at ]`, `[ automation_run_id, path, status, created_at ]`, `[ operation, path, status, created_at ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, created_at ]`, `[ automation_id, automation_run_id, operation, status, created_at ]`, `[ automation_id, automation_run_id, path, status, created_at ]`, `[ automation_id, operation, path, status, created_at ]`, `[ automation_run_id, operation, path, status, created_at ]` or `[ automation_id, automation_run_id, operation, path, status, created_at ]`.
|
|
52
57
|
def list(params=None, options=None):
|
|
53
58
|
if not isinstance(params, dict):
|
|
54
59
|
params = {}
|
|
@@ -60,12 +65,24 @@ def list(params=None, options=None):
|
|
|
60
65
|
raise InvalidParameterError("Bad parameter: per_page must be an int")
|
|
61
66
|
if "filter" in params and not isinstance(params["filter"], dict):
|
|
62
67
|
raise InvalidParameterError("Bad parameter: filter must be an dict")
|
|
68
|
+
if "filter_gt" in params and not isinstance(params["filter_gt"], dict):
|
|
69
|
+
raise InvalidParameterError("Bad parameter: filter_gt must be an dict")
|
|
70
|
+
if "filter_gteq" in params and not isinstance(params["filter_gteq"], dict):
|
|
71
|
+
raise InvalidParameterError(
|
|
72
|
+
"Bad parameter: filter_gteq must be an dict"
|
|
73
|
+
)
|
|
63
74
|
if "filter_prefix" in params and not isinstance(
|
|
64
75
|
params["filter_prefix"], dict
|
|
65
76
|
):
|
|
66
77
|
raise InvalidParameterError(
|
|
67
78
|
"Bad parameter: filter_prefix must be an dict"
|
|
68
79
|
)
|
|
80
|
+
if "filter_lt" in params and not isinstance(params["filter_lt"], dict):
|
|
81
|
+
raise InvalidParameterError("Bad parameter: filter_lt must be an dict")
|
|
82
|
+
if "filter_lteq" in params and not isinstance(params["filter_lteq"], dict):
|
|
83
|
+
raise InvalidParameterError(
|
|
84
|
+
"Bad parameter: filter_lteq must be an dict"
|
|
85
|
+
)
|
|
69
86
|
return ListObj(AutomationLog, "GET", "/automation_logs", params, options)
|
|
70
87
|
|
|
71
88
|
|
files_sdk/models/behavior.py
CHANGED
|
@@ -117,8 +117,7 @@ class Behavior:
|
|
|
117
117
|
# 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.
|
|
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
|
-
# 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`.
|
|
120
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, 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
|
|
|
@@ -171,8 +164,7 @@ def get(id, params=None, options=None):
|
|
|
171
164
|
# 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.
|
|
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
|
-
# 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`.
|
|
167
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, 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(
|
files_sdk/models/bundle.py
CHANGED
|
@@ -264,7 +264,7 @@ class Bundle:
|
|
|
264
264
|
# 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.
|
|
265
265
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
266
266
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
267
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
267
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, created_at ]` and `[ user_id, expires_at ]`.
|
|
268
268
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
269
269
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
270
270
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -16,6 +16,10 @@ class BundleAction:
|
|
|
16
16
|
"destination": None, # string - The destination path for this bundle action, if applicable
|
|
17
17
|
"path": None, # string - Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
18
18
|
"source": None, # string - The source path for this bundle action, if applicable
|
|
19
|
+
"bundle_registration_id": None, # int64 - Identifier of the associated bundle registration
|
|
20
|
+
"bundle_registration_name": None, # string - Name of the registrant who performed the action
|
|
21
|
+
"bundle_registration_email": None, # string - Email of the registrant
|
|
22
|
+
"bundle_registration_ip": None, # string - IP address of the registrant
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
def __init__(self, attributes=None, options=None):
|
|
@@ -45,7 +49,7 @@ class BundleAction:
|
|
|
45
49
|
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
46
50
|
# 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.
|
|
47
51
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
48
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
52
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at` and `bundle_registration_id`.
|
|
49
53
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `bundle_id` or `bundle_registration_id`. Valid field combinations are `[ bundle_id, created_at ]`, `[ bundle_registration_id, created_at ]`, `[ bundle_id, bundle_registration_id ]` or `[ bundle_id, bundle_registration_id, created_at ]`.
|
|
50
54
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
51
55
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
@@ -52,7 +52,7 @@ class BundleRegistration:
|
|
|
52
52
|
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
53
53
|
# 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.
|
|
54
54
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
55
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
|
|
55
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id` and `created_at`.
|
|
56
56
|
# bundle_id - int64 - ID of the associated Bundle
|
|
57
57
|
def list(params=None, options=None):
|
|
58
58
|
if not isinstance(params, dict):
|