-
Notifications
You must be signed in to change notification settings - Fork 448
Closed
Labels
Description
Today in the code we have request options for various requests, some applicable to many endpoints, some only one...
- pageSize
- pageNumber
- filters
- sort order
- flags (overwrite=T, resolution=high)
They're implemented, in most cases, as nested enums in request_options.py requiring sequences like this in user-code:
req_option.filter.add(TSC.Filter(TSC.RequestOptions.Field.Name,
TSC.RequestOptions.Operator.Equals, args.view_name))
request_options = TSC.RequestOptions(pagesize=1000)
all_workbooks = list(TSC.Pager(server.workbooks, request_options))
I'm opening this issue to track discussion of other options.
Reactions are currently unavailable