diff --git a/.gitignore b/.gitignore index e43b0f9..43995bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,66 @@ -.DS_Store +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.venv/ +.python-version +.pytest_cache + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/build.sh b/build.sh index 9aa015d..9bd77d0 100755 --- a/build.sh +++ b/build.sh @@ -9,14 +9,8 @@ function teardown() { } trap teardown exit -# ensure we've got a djangolang executable available (required for templating) -if [[ "${FORCE_UPDATE}" == "1" ]] || ! command -v djangolang >/dev/null 2>&1; then - GOPRIVATE="${GOPRIVATE:-}" go install github.com/initialed85/djangolang@latest - GOPRIVATE="${GOPRIVATE:-}" go get -u github.com/initialed85/djangolang@latest -fi - -# we need oapi-codegen to generate the client for use by Go code -if ! command -v oapi-codegen; then +# # we need oapi-codegen to generate the client for use by Go code +if ! command -v oapi-codegen >/dev/null 2>&1; then go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@main fi @@ -32,6 +26,12 @@ if ! docker compose ps | grep camry | grep postgres | grep healthy >/dev/null 2> exit 1 fi +# ensure we've got a djangolang executable available (required for templating) +if [[ "${FORCE_UPDATE_DJANGOLANG}" == "1" ]] || ! command -v djangolang >/dev/null 2>&1; then + GOPRIVATE="${GOPRIVATE:-}" go install github.com/initialed85/djangolang@latest + GOPRIVATE="${GOPRIVATE:-}" go get -u github.com/initialed85/djangolang@latest +fi + # introspect the database and generate the Djangolang API # note: the environment variables are coupled to the environment described in docker-compose.yaml echo -e "\ngenerating the api..." @@ -44,18 +44,23 @@ DJANGOLANG_API_ROOT=/api ./pkg/api/bin/api dump-openapi-json >./schema/openapi.j # generate the client for use by the frontend echo -e "\ngenerating typescript client..." cd frontend -if [[ "${FORCE_UPDATE}" == "1" ]]; then +if [[ "${SKIP_UPDATE_FRONTEND}" != "1" ]]; then npm ci fi npm run openapi-typescript npm run prettier cd .. -# generate the client for use by Go code -echo -e "\ngenerating go client..." -mkdir -p ./pkg/api_client -oapi-codegen --generate 'types,client,spec' -package api_client -o ./pkg/api_client/client.go ./schema/openapi.json -go mod tidy -goimports -w . -go get ./... -go fmt ./... +# generate the client for use by Python code +mkdir -p object_detector/ +openapi-generator-cli generate -i schema/openapi.json -g python -o object_detector/ + +# TODO: disabled for now- some bug in the 3rd party generator doesn't like $ref or something +# # generate the client for use by Go code +# echo -e "\ngenerating go client..." +# mkdir -p ./pkg/api_client +# oapi-codegen --generate 'types,client,spec' -package api_client -o ./pkg/api_client/client.go ./schema/openapi.json +# go mod tidy +# goimports -w . +# go get ./... +# go fmt ./... diff --git a/database/migrations/00001_initial.up.sql b/database/migrations/00001_initial.up.sql index cbc86c4..de24b0b 100644 --- a/database/migrations/00001_initial.up.sql +++ b/database/migrations/00001_initial.up.sql @@ -90,6 +90,14 @@ CREATE INDEX video_ended_at ON public.video (ended_at); CREATE INDEX video_camera_id_ended_at ON public.video (camera_id, ended_at); +CREATE INDEX video_file_name ON public.video (file_name); + +CREATE INDEX video_camera_id_file_name ON public.video (camera_id, file_name); + +CREATE INDEX video_status ON public.video (status); + +CREATE INDEX video_camera_id_status ON public.video (camera_id, status); + -- -- detection -- @@ -107,6 +115,7 @@ CREATE TABLE score float NOT NULL, centroid Point NOT NULL, bounding_box Polygon NOT NULL, + video_id uuid NOT NULL REFERENCES public.video (id), camera_id uuid NOT NULL REFERENCES public.camera (id) ); @@ -118,11 +127,11 @@ CREATE INDEX detection_class_id_seen_at ON public.detection (class_id, seen_at); CREATE INDEX detection_class_name_seen_at ON public.detection (class_name, seen_at); -CREATE INDEX detection_camera_id_seen_at ON public.detection (camera_id, seen_at); +CREATE INDEX detection_video_id_seen_at ON public.detection (video_id, seen_at); -CREATE INDEX detection_camera_id_class_id_seen_at ON public.detection (camera_id, class_id, seen_at); +CREATE INDEX detection_video_id_class_id_seen_at ON public.detection (video_id, class_id, seen_at); -CREATE INDEX detection_camera_id_class_name_seen_at ON public.detection (camera_id, class_name, seen_at); +CREATE INDEX detection_video_id_class_name_seen_at ON public.detection (video_id, class_name, seen_at); -- -- triggers for camera diff --git a/frontend/src/api/api.d.ts b/frontend/src/api/api.d.ts index dd260e5..ae52eee 100644 --- a/frontend/src/api/api.d.ts +++ b/frontend/src/api/api.d.ts @@ -121,12 +121,14 @@ export interface components { updated_at?: string; }; Detection: { - bounding_box?: { - /** Format: double */ - X?: number; - /** Format: double */ - Y?: number; - }[]; + bounding_box?: + | { + /** Format: double */ + X?: number; + /** Format: double */ + Y?: number; + }[] + | null; /** Format: uuid */ camera_id?: string; camera_id_object?: components["schemas"]["NullableCamera"]; @@ -151,10 +153,13 @@ export interface components { seen_at?: string; /** Format: date-time */ updated_at?: string; + /** Format: uuid */ + video_id?: string; + video_id_object?: components["schemas"]["NullableVideo"]; }; - NullableArrayOfCamera: components["schemas"]["Camera"][]; - NullableArrayOfDetection: components["schemas"]["Detection"][]; - NullableArrayOfVideo: components["schemas"]["Video"][]; + NullableArrayOfCamera: components["schemas"]["Camera"][] | null; + NullableArrayOfDetection: components["schemas"]["Detection"][] | null; + NullableArrayOfVideo: components["schemas"]["Video"][] | null; NullableCamera: components["schemas"]["Camera"]; NullableDetection: components["schemas"]["Detection"]; NullableVideo: components["schemas"]["Video"]; @@ -181,6 +186,7 @@ export interface components { file_size?: number | null; /** Format: uuid */ id?: string; + referenced_by_detection_video_id_objects?: components["schemas"]["NullableArrayOfDetection"]; /** Format: date-time */ started_at?: string; status?: string; @@ -1060,35 +1066,35 @@ export interface operations { /** @description SQL NOT IN operator, permits comma-separated values */ class_id__notin?: number; /** @description SQL IS NULL operator, value is ignored (presence of key is sufficient) */ - class_id__isnull?: number; + class_id__isnull?: string; /** @description SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) */ - class_id__nisnull?: number; + class_id__nisnull?: string; /** @description SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) */ - class_id__isnotnull?: number; + class_id__isnotnull?: string; /** @description SQL LIKE operator, value is implicitly prefixed and suffixed with % */ - class_id__l?: number; + class_id__l?: string; /** @description SQL LIKE operator, value is implicitly prefixed and suffixed with % */ - class_id__like?: number; + class_id__like?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - class_id__nl?: number; + class_id__nl?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - class_id__nlike?: number; + class_id__nlike?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - class_id__notlike?: number; + class_id__notlike?: string; /** @description SQL ILIKE operator, value is implicitly prefixed and suffixed with % */ - class_id__il?: number; + class_id__il?: string; /** @description SQL ILIKE operator, value is implicitly prefixed and suffixed with % */ - class_id__ilike?: number; + class_id__ilike?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - class_id__nil?: number; + class_id__nil?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - class_id__nilike?: number; + class_id__nilike?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - class_id__notilike?: number; + class_id__notilike?: string; /** @description SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) */ - class_id__desc?: number; + class_id__desc?: string; /** @description SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) */ - class_id__asc?: number; + class_id__asc?: string; /** @description SQL = operator */ class_name__eq?: string; /** @description SQL != operator */ @@ -1156,35 +1162,83 @@ export interface operations { /** @description SQL NOT IN operator, permits comma-separated values */ score__notin?: number; /** @description SQL IS NULL operator, value is ignored (presence of key is sufficient) */ - score__isnull?: number; + score__isnull?: string; + /** @description SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) */ + score__nisnull?: string; + /** @description SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) */ + score__isnotnull?: string; + /** @description SQL LIKE operator, value is implicitly prefixed and suffixed with % */ + score__l?: string; + /** @description SQL LIKE operator, value is implicitly prefixed and suffixed with % */ + score__like?: string; + /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ + score__nl?: string; + /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ + score__nlike?: string; + /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ + score__notlike?: string; + /** @description SQL ILIKE operator, value is implicitly prefixed and suffixed with % */ + score__il?: string; + /** @description SQL ILIKE operator, value is implicitly prefixed and suffixed with % */ + score__ilike?: string; + /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ + score__nil?: string; + /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ + score__nilike?: string; + /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ + score__notilike?: string; + /** @description SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) */ + score__desc?: string; + /** @description SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) */ + score__asc?: string; + /** @description SQL = operator */ + video_id__eq?: string; + /** @description SQL != operator */ + video_id__ne?: string; + /** @description SQL > operator, may not work with all column types */ + video_id__gt?: string; + /** @description SQL >= operator, may not work with all column types */ + video_id__gte?: string; + /** @description SQL < operator, may not work with all column types */ + video_id__lt?: string; + /** @description SQL <= operator, may not work with all column types */ + video_id__lte?: string; + /** @description SQL IN operator, permits comma-separated values */ + video_id__in?: string; + /** @description SQL NOT IN operator, permits comma-separated values */ + video_id__nin?: string; + /** @description SQL NOT IN operator, permits comma-separated values */ + video_id__notin?: string; + /** @description SQL IS NULL operator, value is ignored (presence of key is sufficient) */ + video_id__isnull?: string; /** @description SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) */ - score__nisnull?: number; + video_id__nisnull?: string; /** @description SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) */ - score__isnotnull?: number; + video_id__isnotnull?: string; /** @description SQL LIKE operator, value is implicitly prefixed and suffixed with % */ - score__l?: number; + video_id__l?: string; /** @description SQL LIKE operator, value is implicitly prefixed and suffixed with % */ - score__like?: number; + video_id__like?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - score__nl?: number; + video_id__nl?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - score__nlike?: number; + video_id__nlike?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - score__notlike?: number; + video_id__notlike?: string; /** @description SQL ILIKE operator, value is implicitly prefixed and suffixed with % */ - score__il?: number; + video_id__il?: string; /** @description SQL ILIKE operator, value is implicitly prefixed and suffixed with % */ - score__ilike?: number; + video_id__ilike?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - score__nil?: number; + video_id__nil?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - score__nilike?: number; + video_id__nilike?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - score__notilike?: number; + video_id__notilike?: string; /** @description SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) */ - score__desc?: number; + video_id__desc?: string; /** @description SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) */ - score__asc?: number; + video_id__asc?: string; /** @description SQL = operator */ camera_id__eq?: string; /** @description SQL != operator */ @@ -1849,35 +1903,35 @@ export interface operations { /** @description SQL NOT IN operator, permits comma-separated values */ duration__notin?: number; /** @description SQL IS NULL operator, value is ignored (presence of key is sufficient) */ - duration__isnull?: number; + duration__isnull?: string; /** @description SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) */ - duration__nisnull?: number; + duration__nisnull?: string; /** @description SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) */ - duration__isnotnull?: number; + duration__isnotnull?: string; /** @description SQL LIKE operator, value is implicitly prefixed and suffixed with % */ - duration__l?: number; + duration__l?: string; /** @description SQL LIKE operator, value is implicitly prefixed and suffixed with % */ - duration__like?: number; + duration__like?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - duration__nl?: number; + duration__nl?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - duration__nlike?: number; + duration__nlike?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - duration__notlike?: number; + duration__notlike?: string; /** @description SQL ILIKE operator, value is implicitly prefixed and suffixed with % */ - duration__il?: number; + duration__il?: string; /** @description SQL ILIKE operator, value is implicitly prefixed and suffixed with % */ - duration__ilike?: number; + duration__ilike?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - duration__nil?: number; + duration__nil?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - duration__nilike?: number; + duration__nilike?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - duration__notilike?: number; + duration__notilike?: string; /** @description SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) */ - duration__desc?: number; + duration__desc?: string; /** @description SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) */ - duration__asc?: number; + duration__asc?: string; /** @description SQL = operator */ file_size__eq?: number; /** @description SQL != operator */ @@ -1897,35 +1951,35 @@ export interface operations { /** @description SQL NOT IN operator, permits comma-separated values */ file_size__notin?: number; /** @description SQL IS NULL operator, value is ignored (presence of key is sufficient) */ - file_size__isnull?: number; + file_size__isnull?: string; /** @description SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) */ - file_size__nisnull?: number; + file_size__nisnull?: string; /** @description SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) */ - file_size__isnotnull?: number; + file_size__isnotnull?: string; /** @description SQL LIKE operator, value is implicitly prefixed and suffixed with % */ - file_size__l?: number; + file_size__l?: string; /** @description SQL LIKE operator, value is implicitly prefixed and suffixed with % */ - file_size__like?: number; + file_size__like?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - file_size__nl?: number; + file_size__nl?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - file_size__nlike?: number; + file_size__nlike?: string; /** @description SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % */ - file_size__notlike?: number; + file_size__notlike?: string; /** @description SQL ILIKE operator, value is implicitly prefixed and suffixed with % */ - file_size__il?: number; + file_size__il?: string; /** @description SQL ILIKE operator, value is implicitly prefixed and suffixed with % */ - file_size__ilike?: number; + file_size__ilike?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - file_size__nil?: number; + file_size__nil?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - file_size__nilike?: number; + file_size__nilike?: string; /** @description SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % */ - file_size__notilike?: number; + file_size__notilike?: string; /** @description SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) */ - file_size__desc?: number; + file_size__desc?: string; /** @description SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) */ - file_size__asc?: number; + file_size__asc?: string; /** @description SQL = operator */ thumbnail_name__eq?: string; /** @description SQL != operator */ diff --git a/go.mod b/go.mod index a2ffbb4..5314ef9 100644 --- a/go.mod +++ b/go.mod @@ -4,49 +4,43 @@ go 1.21.7 require ( github.com/cridenour/go-postgis v1.0.0 - github.com/getkin/kin-openapi v0.127.0 github.com/go-chi/chi/v5 v5.1.0 github.com/gomodule/redigo v1.9.2 github.com/google/uuid v1.6.0 - github.com/initialed85/djangolang v0.0.27 - github.com/jackc/pgtype v1.14.3 + github.com/initialed85/djangolang v0.0.47 github.com/jackc/pgx/v5 v5.6.0 github.com/jmoiron/sqlx v1.4.0 github.com/lib/pq v1.10.9 - github.com/oapi-codegen/runtime v1.1.1 - github.com/paulmach/orb v0.11.1 golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa gopkg.in/yaml.v2 v2.4.0 ) +require ( + github.com/go-test/deep v1.0.8 // indirect + github.com/jackc/pgtype v1.14.3 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/paulmach/orb v0.11.1 // indirect +) + require ( github.com/alfg/mp4 v0.0.0-20210728035756-55ea58c08aeb - github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect github.com/aymericbeaumet/go-tsvector v0.0.0-20210303220322-b3114343d43a // indirect github.com/chanced/caps v1.0.2 // indirect github.com/gertd/go-pluralize v0.2.1 // indirect - github.com/go-openapi/jsonpointer v0.21.0 // indirect - github.com/go-openapi/swag v0.23.0 // indirect github.com/gorilla/websocket v1.5.3 // indirect github.com/initialed85/structmeta v0.0.0-20240802152142-39f398ef1ab7 // indirect - github.com/invopop/yaml v0.3.1 // indirect github.com/jackc/pgio v1.0.0 // indirect github.com/jackc/pglogrepl v0.0.0-20240307033717-828fbfe908e9 // indirect github.com/jackc/pgpassfile v1.0.0 // indirect github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect github.com/jinzhu/inflection v1.0.0 // indirect github.com/jinzhu/now v1.1.5 // indirect - github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/mailru/easyjson v0.7.7 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect - github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect - github.com/perimeterx/marshmallow v1.1.5 // indirect - github.com/twpayne/go-geom v1.5.5 // indirect + github.com/twpayne/go-geom v1.5.7 // indirect go.mongodb.org/mongo-driver v1.16.1 // indirect golang.org/x/crypto v0.26.0 // indirect golang.org/x/text v0.17.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect gorm.io/gorm v1.25.11 // indirect ) diff --git a/go.sum b/go.sum index 24fcc00..1245b0f 100644 --- a/go.sum +++ b/go.sum @@ -1,27 +1,22 @@ filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/DATA-DOG/go-sqlmock v1.5.2 h1:OcvFkGmslmlZibjAjaHm3L//6LiuBgolP7OputlJIzU= -github.com/DATA-DOG/go-sqlmock v1.5.2/go.mod h1:88MAG/4G7SMwSE3CeA0ZKzrT5CiOU3OJ+JlNzwDqpNU= github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= -github.com/RaveNoX/go-jsoncommentstrip v1.0.0/go.mod h1:78ihd09MekBnJnxpICcwzCMzGrKSKYe4AqU6PDYYpjk= -github.com/alecthomas/assert/v2 v2.6.0 h1:o3WJwILtexrEUk3cUVal3oiQY2tfgr/FHWiz/v2n4FU= -github.com/alecthomas/assert/v2 v2.6.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k= +github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY= +github.com/alecthomas/assert/v2 v2.10.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k= github.com/alecthomas/repr v0.4.0 h1:GhI2A8MACjfegCPVq9f1FLvIBS+DrQ2KQBFZP1iFzXc= github.com/alecthomas/repr v0.4.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/alfg/mp4 v0.0.0-20210728035756-55ea58c08aeb h1:v8z8Yym2Z/NCYgXO/aFqmYDYa/d3uRyVMq1DjgMfzn4= github.com/alfg/mp4 v0.0.0-20210728035756-55ea58c08aeb/go.mod h1:RfuO8OqkqAcWXXkaS3MuymrBQJbKJWi04H/bs6vNvh0= -github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= -github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= github.com/aymericbeaumet/go-tsvector v0.0.0-20210303220322-b3114343d43a h1:UnJe6N+4ZxYwmTNz6xHQMjB9z+TR6pXYlWwVLEkJBVI= github.com/aymericbeaumet/go-tsvector v0.0.0-20210303220322-b3114343d43a/go.mod h1:fN49qLuwWC9zjHldXC1zssmDBx7fAAOiSbRhOdakHyI= -github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= github.com/chanced/caps v1.0.2 h1:RELvNN4lZajqSXJGzPaU7z8B4LK2+o2Oc/upeWdgMOA= github.com/chanced/caps v1.0.2/go.mod h1:SJhRzeYLKJ3OmzyQXhdZ7Etj7lqqWoPtQ1zcSJRtQjs= github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/cridenour/go-postgis v1.0.0 h1:yK82fCY6k0MBCkyeEZDFijalxLNqPECekyNlcjC/B9Q= github.com/cridenour/go-postgis v1.0.0/go.mod h1:AtTeWrKgwtl5WjwG1oJwcc3AHIf/EC1ngklA0XZKLls= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -29,16 +24,10 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/gertd/go-pluralize v0.2.1 h1:M3uASbVjMnTsPb0PNqg+E/24Vwigyo/tvyMTtAlLgiA= github.com/gertd/go-pluralize v0.2.1/go.mod h1:rbYaKDbsXxmRfr8uygAEKhOWsjyrrqrkHVpZvoOp8zk= -github.com/getkin/kin-openapi v0.127.0 h1:Mghqi3Dhryf3F8vR370nN67pAERW+3a95vomb3MAREY= -github.com/getkin/kin-openapi v0.127.0/go.mod h1:OZrfXzUfGrNbsKj+xmFBx6E5c6yH3At/tAKSc2UszXM= github.com/go-chi/chi/v5 v5.1.0 h1:acVI1TYaD+hhedDJ3r54HyA6sExp3HfXq7QWEEY/xMw= github.com/go-chi/chi/v5 v5.1.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= -github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= -github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= -github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y= github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= @@ -64,12 +53,10 @@ github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aN github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= -github.com/initialed85/djangolang v0.0.27 h1:y/+0WwvKmJ0eyJIq/fWGqVFjyNHRgclkZiSV7kf/r7w= -github.com/initialed85/djangolang v0.0.27/go.mod h1:3mqaFDBq9zfX/18jyDCHs5UpH2r5XGgBj/SlRcgfY64= +github.com/initialed85/djangolang v0.0.47 h1:mcq/7sopi2dqSv196wFhITl7IyULBuSMpVzJjPxvDjA= +github.com/initialed85/djangolang v0.0.47/go.mod h1:dNv0Y77p1Lgzs6A4eJoyTQqFOrvkUqOi49piz/kMSgw= github.com/initialed85/structmeta v0.0.0-20240802152142-39f398ef1ab7 h1:G9Z1k4TyxQ/9Kk4ZSuw82WZCxJayZf12Aos2MorzKRg= github.com/initialed85/structmeta v0.0.0-20240802152142-39f398ef1ab7/go.mod h1:hTGWTsfgy6Um+L8e3Qcj8/pBkHGcIGxEpZAKziWhQfc= -github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso= -github.com/invopop/yaml v0.3.1/go.mod h1:PMOp3nn4/12yEZUFfmOuNHJsZToEEOwoWsT+D81KkeA= github.com/jackc/chunkreader v1.0.0 h1:4s39bBR8ByfqH+DKm8rQA3E1LHZWB9XWcrz8fqaZbe0= github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo= github.com/jackc/chunkreader/v2 v2.0.0/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk= @@ -150,11 +137,8 @@ github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ= github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= github.com/jmoiron/sqlx v1.4.0 h1:1PLqN7S1UYp5t4SrVVnt4nUVNemrDAtxlulVe+Qgm3o= github.com/jmoiron/sqlx v1.4.0/go.mod h1:ZrZ7UsYB/weZdl2Bxg6jCRO9c3YHl8r3ahlKmRT4JLY= -github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= -github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= @@ -175,8 +159,6 @@ github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= @@ -192,21 +174,17 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw= -github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= -github.com/oapi-codegen/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmtpMYro= -github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg= github.com/paulmach/orb v0.11.1 h1:3koVegMC4X/WeiXYz9iswopaTwMem53NzTJuTF20JzU= github.com/paulmach/orb v0.11.1/go.mod h1:5mULz1xQfs3bmQm63QEJA6lNGujuRafwA5S/EnuLaLU= github.com/paulmach/protoscan v0.2.1/go.mod h1:SpcSwydNLrxUGSDvXvO0P7g7AuhJ7lcKfDlhJCDw2gY= -github.com/perimeterx/marshmallow v1.1.5 h1:a2LALqQ1BlHM8PZblsDdidgv1mWi1DgC2UmX50IvK2s= -github.com/perimeterx/marshmallow v1.1.5/go.mod h1:dsXbUu8CRzfYP5a87xpp0xq9S3u0Vchtcl8we9tYaXw= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= @@ -218,7 +196,6 @@ github.com/shopspring/decimal v0.0.0-20200227202807-02e2044944cc/go.mod h1:DKyhr github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= @@ -236,10 +213,8 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/twpayne/go-geom v1.5.5 h1:7ODOrO615dEIXPORHgakLOIyqTGMKp6EYtEz2Emhfzw= -github.com/twpayne/go-geom v1.5.5/go.mod h1:Makq3Z/s8PogsC3Kz8JEr6wBPs3GB2bjoqGYvhDrfE4= -github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= -github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= +github.com/twpayne/go-geom v1.5.7 h1:7fdceDUr03/MP7rAKOaTV6x9njMiQdxB/D0PDzMTCDc= +github.com/twpayne/go-geom v1.5.7/go.mod h1:y4fTAQtLedXW8eG2Yo4tYrIGN1yIwwKkmA+K3iSHKBA= github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= diff --git a/object_detector/.github/workflows/python.yml b/object_detector/.github/workflows/python.yml new file mode 100644 index 0000000..f128ba2 --- /dev/null +++ b/object_detector/.github/workflows/python.yml @@ -0,0 +1,38 @@ +# NOTE: This file is auto generated by OpenAPI Generator. +# URL: https://openapi-generator.tech +# +# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: openapi_client Python package + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest diff --git a/object_detector/.gitignore b/object_detector/.gitignore new file mode 100644 index 0000000..43995bd --- /dev/null +++ b/object_detector/.gitignore @@ -0,0 +1,66 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.venv/ +.python-version +.pytest_cache + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/object_detector/.gitlab-ci.yml b/object_detector/.gitlab-ci.yml new file mode 100644 index 0000000..29da721 --- /dev/null +++ b/object_detector/.gitlab-ci.yml @@ -0,0 +1,31 @@ +# NOTE: This file is auto generated by OpenAPI Generator. +# URL: https://openapi-generator.tech +# +# ref: https://docs.gitlab.com/ee/ci/README.html +# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml + +stages: + - test + +.pytest: + stage: test + script: + - pip install -r requirements.txt + - pip install -r test-requirements.txt + - pytest --cov=openapi_client + +pytest-3.7: + extends: .pytest + image: python:3.7-alpine +pytest-3.8: + extends: .pytest + image: python:3.8-alpine +pytest-3.9: + extends: .pytest + image: python:3.9-alpine +pytest-3.10: + extends: .pytest + image: python:3.10-alpine +pytest-3.11: + extends: .pytest + image: python:3.11-alpine diff --git a/object_detector/.openapi-generator-ignore b/object_detector/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/object_detector/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/object_detector/.openapi-generator/FILES b/object_detector/.openapi-generator/FILES new file mode 100644 index 0000000..17a44b8 --- /dev/null +++ b/object_detector/.openapi-generator/FILES @@ -0,0 +1,58 @@ +.github/workflows/python.yml +.gitignore +.gitlab-ci.yml +.travis.yml +README.md +docs/Camera.md +docs/CameraApi.md +docs/Detection.md +docs/DetectionApi.md +docs/DetectionBoundingBoxInner.md +docs/GetCameras200Response.md +docs/GetCamerasDefaultResponse.md +docs/GetDetections200Response.md +docs/GetVideos200Response.md +docs/Vec2.md +docs/Video.md +docs/VideoApi.md +git_push.sh +openapi_client/__init__.py +openapi_client/api/__init__.py +openapi_client/api/camera_api.py +openapi_client/api/detection_api.py +openapi_client/api/video_api.py +openapi_client/api_client.py +openapi_client/api_response.py +openapi_client/configuration.py +openapi_client/exceptions.py +openapi_client/models/__init__.py +openapi_client/models/camera.py +openapi_client/models/detection.py +openapi_client/models/detection_bounding_box_inner.py +openapi_client/models/get_cameras200_response.py +openapi_client/models/get_cameras_default_response.py +openapi_client/models/get_detections200_response.py +openapi_client/models/get_videos200_response.py +openapi_client/models/vec2.py +openapi_client/models/video.py +openapi_client/py.typed +openapi_client/rest.py +pyproject.toml +requirements.txt +setup.cfg +setup.py +test-requirements.txt +test/__init__.py +test/test_camera.py +test/test_camera_api.py +test/test_detection.py +test/test_detection_api.py +test/test_detection_bounding_box_inner.py +test/test_get_cameras200_response.py +test/test_get_cameras_default_response.py +test/test_get_detections200_response.py +test/test_get_videos200_response.py +test/test_vec2.py +test/test_video.py +test/test_video_api.py +tox.ini diff --git a/object_detector/.openapi-generator/VERSION b/object_detector/.openapi-generator/VERSION new file mode 100644 index 0000000..1985849 --- /dev/null +++ b/object_detector/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.7.0 diff --git a/object_detector/.travis.yml b/object_detector/.travis.yml new file mode 100644 index 0000000..fd888f7 --- /dev/null +++ b/object_detector/.travis.yml @@ -0,0 +1,17 @@ +# ref: https://docs.travis-ci.com/user/languages/python +language: python +python: + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + # uncomment the following if needed + #- "3.11-dev" # 3.11 development branch + #- "nightly" # nightly build +# command to install dependencies +install: + - "pip install -r requirements.txt" + - "pip install -r test-requirements.txt" +# command to run tests +script: pytest --cov=openapi_client diff --git a/object_detector/README.md b/object_detector/README.md new file mode 100644 index 0000000..be6ac5d --- /dev/null +++ b/object_detector/README.md @@ -0,0 +1,128 @@ +# openapi-client +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: 1.0 +- Package version: 1.0.0 +- Generator version: 7.7.0 +- Build package: org.openapitools.codegen.languages.PythonClientCodegen + +## Requirements. + +Python 3.7+ + +## Installation & Usage +### pip install + +If the python package is hosted on a repository, you can install directly using: + +```sh +pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git +``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) + +Then import the package: +```python +import openapi_client +``` + +### Setuptools + +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import openapi_client +``` + +### Tests + +Execute `pytest` to run the tests. + +## Getting Started + +Please follow the [installation procedure](#installation--usage) and then run the following: + +```python + +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.CameraApi(api_client) + primary_key = None # object | Primary key for Camera + + try: + api_instance.delete_camera(primary_key) + except ApiException as e: + print("Exception when calling CameraApi->delete_camera: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*CameraApi* | [**delete_camera**](docs/CameraApi.md#delete_camera) | **DELETE** /api/cameras/{primaryKey} | +*CameraApi* | [**get_camera**](docs/CameraApi.md#get_camera) | **GET** /api/cameras/{primaryKey} | +*CameraApi* | [**get_cameras**](docs/CameraApi.md#get_cameras) | **GET** /api/cameras | +*CameraApi* | [**patch_camera**](docs/CameraApi.md#patch_camera) | **PATCH** /api/cameras/{primaryKey} | +*CameraApi* | [**post_cameras**](docs/CameraApi.md#post_cameras) | **POST** /api/cameras | +*CameraApi* | [**put_camera**](docs/CameraApi.md#put_camera) | **PUT** /api/cameras/{primaryKey} | +*DetectionApi* | [**delete_detection**](docs/DetectionApi.md#delete_detection) | **DELETE** /api/detections/{primaryKey} | +*DetectionApi* | [**get_detection**](docs/DetectionApi.md#get_detection) | **GET** /api/detections/{primaryKey} | +*DetectionApi* | [**get_detections**](docs/DetectionApi.md#get_detections) | **GET** /api/detections | +*DetectionApi* | [**patch_detection**](docs/DetectionApi.md#patch_detection) | **PATCH** /api/detections/{primaryKey} | +*DetectionApi* | [**post_detections**](docs/DetectionApi.md#post_detections) | **POST** /api/detections | +*DetectionApi* | [**put_detection**](docs/DetectionApi.md#put_detection) | **PUT** /api/detections/{primaryKey} | +*VideoApi* | [**delete_video**](docs/VideoApi.md#delete_video) | **DELETE** /api/videos/{primaryKey} | +*VideoApi* | [**get_video**](docs/VideoApi.md#get_video) | **GET** /api/videos/{primaryKey} | +*VideoApi* | [**get_videos**](docs/VideoApi.md#get_videos) | **GET** /api/videos | +*VideoApi* | [**patch_video**](docs/VideoApi.md#patch_video) | **PATCH** /api/videos/{primaryKey} | +*VideoApi* | [**post_videos**](docs/VideoApi.md#post_videos) | **POST** /api/videos | +*VideoApi* | [**put_video**](docs/VideoApi.md#put_video) | **PUT** /api/videos/{primaryKey} | + + +## Documentation For Models + + - [Camera](docs/Camera.md) + - [Detection](docs/Detection.md) + - [DetectionBoundingBoxInner](docs/DetectionBoundingBoxInner.md) + - [GetCameras200Response](docs/GetCameras200Response.md) + - [GetCamerasDefaultResponse](docs/GetCamerasDefaultResponse.md) + - [GetDetections200Response](docs/GetDetections200Response.md) + - [GetVideos200Response](docs/GetVideos200Response.md) + - [Vec2](docs/Vec2.md) + - [Video](docs/Video.md) + + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Author + + + + diff --git a/object_detector/__init__.py b/object_detector/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/object_detector/__main__.py b/object_detector/__main__.py new file mode 100644 index 0000000..53c8392 --- /dev/null +++ b/object_detector/__main__.py @@ -0,0 +1,13 @@ +import sys +import os + +try: + sys.path.index(os.path.join(os.getcwd(), "object_detector")) +except ValueError: + sys.path.append(os.path.join(os.getcwd(), "object_detector")) + +from .object_detector import run + + +if __name__ == "__main__": + run() diff --git a/object_detector/docs/Camera.md b/object_detector/docs/Camera.md new file mode 100644 index 0000000..6584ef0 --- /dev/null +++ b/object_detector/docs/Camera.md @@ -0,0 +1,37 @@ +# Camera + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | **datetime** | | [optional] +**deleted_at** | **datetime** | | [optional] +**id** | **str** | | [optional] +**last_seen** | **datetime** | | [optional] +**name** | **str** | | [optional] +**referenced_by_detection_camera_id_objects** | [**List[Detection]**](Detection.md) | | [optional] +**referenced_by_video_camera_id_objects** | [**List[Video]**](Video.md) | | [optional] +**stream_url** | **str** | | [optional] +**updated_at** | **datetime** | | [optional] + +## Example + +```python +from openapi_client.models.camera import Camera + +# TODO update the JSON string below +json = "{}" +# create an instance of Camera from a JSON string +camera_instance = Camera.from_json(json) +# print the JSON string representation of the object +print(Camera.to_json()) + +# convert the object into a dict +camera_dict = camera_instance.to_dict() +# create an instance of Camera from a dict +camera_from_dict = Camera.from_dict(camera_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/object_detector/docs/CameraApi.md b/object_detector/docs/CameraApi.md new file mode 100644 index 0000000..b4d0ecd --- /dev/null +++ b/object_detector/docs/CameraApi.md @@ -0,0 +1,752 @@ +# openapi_client.CameraApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_camera**](CameraApi.md#delete_camera) | **DELETE** /api/cameras/{primaryKey} | +[**get_camera**](CameraApi.md#get_camera) | **GET** /api/cameras/{primaryKey} | +[**get_cameras**](CameraApi.md#get_cameras) | **GET** /api/cameras | +[**patch_camera**](CameraApi.md#patch_camera) | **PATCH** /api/cameras/{primaryKey} | +[**post_cameras**](CameraApi.md#post_cameras) | **POST** /api/cameras | +[**put_camera**](CameraApi.md#put_camera) | **PUT** /api/cameras/{primaryKey} | + + +# **delete_camera** +> delete_camera(primary_key) + + + +### Example + + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.CameraApi(api_client) + primary_key = None # object | Primary key for Camera + + try: + api_instance.delete_camera(primary_key) + except Exception as e: + print("Exception when calling CameraApi->delete_camera: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Camera | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful Item Delete for Cameras | - | +**0** | Failed Item Delete for Cameras | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_camera** +> GetCameras200Response get_camera(primary_key) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.get_cameras200_response import GetCameras200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.CameraApi(api_client) + primary_key = None # object | Primary key for Camera + + try: + api_response = api_instance.get_camera(primary_key) + print("The response of CameraApi->get_camera:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CameraApi->get_camera: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Camera | + +### Return type + +[**GetCameras200Response**](GetCameras200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Item Fetch for Cameras | - | +**0** | Failed Item Fetch for Cameras | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cameras** +> GetCameras200Response get_cameras(limit=limit, offset=offset, id__eq=id__eq, id__ne=id__ne, id__gt=id__gt, id__gte=id__gte, id__lt=id__lt, id__lte=id__lte, id__in=id__in, id__nin=id__nin, id__notin=id__notin, id__isnull=id__isnull, id__nisnull=id__nisnull, id__isnotnull=id__isnotnull, id__l=id__l, id__like=id__like, id__nl=id__nl, id__nlike=id__nlike, id__notlike=id__notlike, id__il=id__il, id__ilike=id__ilike, id__nil=id__nil, id__nilike=id__nilike, id__notilike=id__notilike, id__desc=id__desc, id__asc=id__asc, created_at__eq=created_at__eq, created_at__ne=created_at__ne, created_at__gt=created_at__gt, created_at__gte=created_at__gte, created_at__lt=created_at__lt, created_at__lte=created_at__lte, created_at__in=created_at__in, created_at__nin=created_at__nin, created_at__notin=created_at__notin, created_at__isnull=created_at__isnull, created_at__nisnull=created_at__nisnull, created_at__isnotnull=created_at__isnotnull, created_at__l=created_at__l, created_at__like=created_at__like, created_at__nl=created_at__nl, created_at__nlike=created_at__nlike, created_at__notlike=created_at__notlike, created_at__il=created_at__il, created_at__ilike=created_at__ilike, created_at__nil=created_at__nil, created_at__nilike=created_at__nilike, created_at__notilike=created_at__notilike, created_at__desc=created_at__desc, created_at__asc=created_at__asc, updated_at__eq=updated_at__eq, updated_at__ne=updated_at__ne, updated_at__gt=updated_at__gt, updated_at__gte=updated_at__gte, updated_at__lt=updated_at__lt, updated_at__lte=updated_at__lte, updated_at__in=updated_at__in, updated_at__nin=updated_at__nin, updated_at__notin=updated_at__notin, updated_at__isnull=updated_at__isnull, updated_at__nisnull=updated_at__nisnull, updated_at__isnotnull=updated_at__isnotnull, updated_at__l=updated_at__l, updated_at__like=updated_at__like, updated_at__nl=updated_at__nl, updated_at__nlike=updated_at__nlike, updated_at__notlike=updated_at__notlike, updated_at__il=updated_at__il, updated_at__ilike=updated_at__ilike, updated_at__nil=updated_at__nil, updated_at__nilike=updated_at__nilike, updated_at__notilike=updated_at__notilike, updated_at__desc=updated_at__desc, updated_at__asc=updated_at__asc, deleted_at__eq=deleted_at__eq, deleted_at__ne=deleted_at__ne, deleted_at__gt=deleted_at__gt, deleted_at__gte=deleted_at__gte, deleted_at__lt=deleted_at__lt, deleted_at__lte=deleted_at__lte, deleted_at__in=deleted_at__in, deleted_at__nin=deleted_at__nin, deleted_at__notin=deleted_at__notin, deleted_at__isnull=deleted_at__isnull, deleted_at__nisnull=deleted_at__nisnull, deleted_at__isnotnull=deleted_at__isnotnull, deleted_at__l=deleted_at__l, deleted_at__like=deleted_at__like, deleted_at__nl=deleted_at__nl, deleted_at__nlike=deleted_at__nlike, deleted_at__notlike=deleted_at__notlike, deleted_at__il=deleted_at__il, deleted_at__ilike=deleted_at__ilike, deleted_at__nil=deleted_at__nil, deleted_at__nilike=deleted_at__nilike, deleted_at__notilike=deleted_at__notilike, deleted_at__desc=deleted_at__desc, deleted_at__asc=deleted_at__asc, name__eq=name__eq, name__ne=name__ne, name__gt=name__gt, name__gte=name__gte, name__lt=name__lt, name__lte=name__lte, name__in=name__in, name__nin=name__nin, name__notin=name__notin, name__isnull=name__isnull, name__nisnull=name__nisnull, name__isnotnull=name__isnotnull, name__l=name__l, name__like=name__like, name__nl=name__nl, name__nlike=name__nlike, name__notlike=name__notlike, name__il=name__il, name__ilike=name__ilike, name__nil=name__nil, name__nilike=name__nilike, name__notilike=name__notilike, name__desc=name__desc, name__asc=name__asc, stream_url__eq=stream_url__eq, stream_url__ne=stream_url__ne, stream_url__gt=stream_url__gt, stream_url__gte=stream_url__gte, stream_url__lt=stream_url__lt, stream_url__lte=stream_url__lte, stream_url__in=stream_url__in, stream_url__nin=stream_url__nin, stream_url__notin=stream_url__notin, stream_url__isnull=stream_url__isnull, stream_url__nisnull=stream_url__nisnull, stream_url__isnotnull=stream_url__isnotnull, stream_url__l=stream_url__l, stream_url__like=stream_url__like, stream_url__nl=stream_url__nl, stream_url__nlike=stream_url__nlike, stream_url__notlike=stream_url__notlike, stream_url__il=stream_url__il, stream_url__ilike=stream_url__ilike, stream_url__nil=stream_url__nil, stream_url__nilike=stream_url__nilike, stream_url__notilike=stream_url__notilike, stream_url__desc=stream_url__desc, stream_url__asc=stream_url__asc, last_seen__eq=last_seen__eq, last_seen__ne=last_seen__ne, last_seen__gt=last_seen__gt, last_seen__gte=last_seen__gte, last_seen__lt=last_seen__lt, last_seen__lte=last_seen__lte, last_seen__in=last_seen__in, last_seen__nin=last_seen__nin, last_seen__notin=last_seen__notin, last_seen__isnull=last_seen__isnull, last_seen__nisnull=last_seen__nisnull, last_seen__isnotnull=last_seen__isnotnull, last_seen__l=last_seen__l, last_seen__like=last_seen__like, last_seen__nl=last_seen__nl, last_seen__nlike=last_seen__nlike, last_seen__notlike=last_seen__notlike, last_seen__il=last_seen__il, last_seen__ilike=last_seen__ilike, last_seen__nil=last_seen__nil, last_seen__nilike=last_seen__nilike, last_seen__notilike=last_seen__notilike, last_seen__desc=last_seen__desc, last_seen__asc=last_seen__asc) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.get_cameras200_response import GetCameras200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.CameraApi(api_client) + limit = 56 # int | SQL LIMIT operator (optional) + offset = 56 # int | SQL OFFSET operator (optional) + id__eq = 'id__eq_example' # str | SQL = operator (optional) + id__ne = 'id__ne_example' # str | SQL != operator (optional) + id__gt = 'id__gt_example' # str | SQL > operator, may not work with all column types (optional) + id__gte = 'id__gte_example' # str | SQL >= operator, may not work with all column types (optional) + id__lt = 'id__lt_example' # str | SQL < operator, may not work with all column types (optional) + id__lte = 'id__lte_example' # str | SQL <= operator, may not work with all column types (optional) + id__in = 'id__in_example' # str | SQL IN operator, permits comma-separated values (optional) + id__nin = 'id__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + id__notin = 'id__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + id__isnull = 'id__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + id__nisnull = 'id__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + id__isnotnull = 'id__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + id__l = 'id__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__like = 'id__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nl = 'id__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nlike = 'id__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__notlike = 'id__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__il = 'id__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__ilike = 'id__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nil = 'id__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nilike = 'id__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__notilike = 'id__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__desc = 'id__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + id__asc = 'id__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + created_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + created_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + created_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + created_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + created_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + created_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + created_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + created_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + created_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + created_at__isnull = 'created_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + created_at__nisnull = 'created_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + created_at__isnotnull = 'created_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + created_at__l = 'created_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__like = 'created_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nl = 'created_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nlike = 'created_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__notlike = 'created_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__il = 'created_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__ilike = 'created_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nil = 'created_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nilike = 'created_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__notilike = 'created_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__desc = 'created_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + created_at__asc = 'created_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + updated_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + updated_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + updated_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + updated_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + updated_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + updated_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + updated_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + updated_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + updated_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + updated_at__isnull = 'updated_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + updated_at__nisnull = 'updated_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + updated_at__isnotnull = 'updated_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + updated_at__l = 'updated_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__like = 'updated_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nl = 'updated_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nlike = 'updated_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__notlike = 'updated_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__il = 'updated_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__ilike = 'updated_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nil = 'updated_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nilike = 'updated_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__notilike = 'updated_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__desc = 'updated_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + updated_at__asc = 'updated_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + deleted_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + deleted_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + deleted_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + deleted_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + deleted_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + deleted_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + deleted_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + deleted_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + deleted_at__isnull = 'deleted_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__nisnull = 'deleted_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__isnotnull = 'deleted_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__l = 'deleted_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__like = 'deleted_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nl = 'deleted_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nlike = 'deleted_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__notlike = 'deleted_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__il = 'deleted_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__ilike = 'deleted_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nil = 'deleted_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nilike = 'deleted_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__notilike = 'deleted_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__desc = 'deleted_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__asc = 'deleted_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + name__eq = 'name__eq_example' # str | SQL = operator (optional) + name__ne = 'name__ne_example' # str | SQL != operator (optional) + name__gt = 'name__gt_example' # str | SQL > operator, may not work with all column types (optional) + name__gte = 'name__gte_example' # str | SQL >= operator, may not work with all column types (optional) + name__lt = 'name__lt_example' # str | SQL < operator, may not work with all column types (optional) + name__lte = 'name__lte_example' # str | SQL <= operator, may not work with all column types (optional) + name__in = 'name__in_example' # str | SQL IN operator, permits comma-separated values (optional) + name__nin = 'name__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + name__notin = 'name__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + name__isnull = 'name__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + name__nisnull = 'name__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + name__isnotnull = 'name__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + name__l = 'name__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + name__like = 'name__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + name__nl = 'name__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + name__nlike = 'name__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + name__notlike = 'name__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + name__il = 'name__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + name__ilike = 'name__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + name__nil = 'name__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + name__nilike = 'name__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + name__notilike = 'name__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + name__desc = 'name__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + name__asc = 'name__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + stream_url__eq = 'stream_url__eq_example' # str | SQL = operator (optional) + stream_url__ne = 'stream_url__ne_example' # str | SQL != operator (optional) + stream_url__gt = 'stream_url__gt_example' # str | SQL > operator, may not work with all column types (optional) + stream_url__gte = 'stream_url__gte_example' # str | SQL >= operator, may not work with all column types (optional) + stream_url__lt = 'stream_url__lt_example' # str | SQL < operator, may not work with all column types (optional) + stream_url__lte = 'stream_url__lte_example' # str | SQL <= operator, may not work with all column types (optional) + stream_url__in = 'stream_url__in_example' # str | SQL IN operator, permits comma-separated values (optional) + stream_url__nin = 'stream_url__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + stream_url__notin = 'stream_url__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + stream_url__isnull = 'stream_url__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + stream_url__nisnull = 'stream_url__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + stream_url__isnotnull = 'stream_url__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + stream_url__l = 'stream_url__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + stream_url__like = 'stream_url__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + stream_url__nl = 'stream_url__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + stream_url__nlike = 'stream_url__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + stream_url__notlike = 'stream_url__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + stream_url__il = 'stream_url__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + stream_url__ilike = 'stream_url__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + stream_url__nil = 'stream_url__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + stream_url__nilike = 'stream_url__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + stream_url__notilike = 'stream_url__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + stream_url__desc = 'stream_url__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + stream_url__asc = 'stream_url__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + last_seen__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + last_seen__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + last_seen__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + last_seen__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + last_seen__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + last_seen__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + last_seen__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + last_seen__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + last_seen__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + last_seen__isnull = 'last_seen__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + last_seen__nisnull = 'last_seen__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + last_seen__isnotnull = 'last_seen__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + last_seen__l = 'last_seen__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + last_seen__like = 'last_seen__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + last_seen__nl = 'last_seen__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + last_seen__nlike = 'last_seen__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + last_seen__notlike = 'last_seen__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + last_seen__il = 'last_seen__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + last_seen__ilike = 'last_seen__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + last_seen__nil = 'last_seen__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + last_seen__nilike = 'last_seen__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + last_seen__notilike = 'last_seen__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + last_seen__desc = 'last_seen__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + last_seen__asc = 'last_seen__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + + try: + api_response = api_instance.get_cameras(limit=limit, offset=offset, id__eq=id__eq, id__ne=id__ne, id__gt=id__gt, id__gte=id__gte, id__lt=id__lt, id__lte=id__lte, id__in=id__in, id__nin=id__nin, id__notin=id__notin, id__isnull=id__isnull, id__nisnull=id__nisnull, id__isnotnull=id__isnotnull, id__l=id__l, id__like=id__like, id__nl=id__nl, id__nlike=id__nlike, id__notlike=id__notlike, id__il=id__il, id__ilike=id__ilike, id__nil=id__nil, id__nilike=id__nilike, id__notilike=id__notilike, id__desc=id__desc, id__asc=id__asc, created_at__eq=created_at__eq, created_at__ne=created_at__ne, created_at__gt=created_at__gt, created_at__gte=created_at__gte, created_at__lt=created_at__lt, created_at__lte=created_at__lte, created_at__in=created_at__in, created_at__nin=created_at__nin, created_at__notin=created_at__notin, created_at__isnull=created_at__isnull, created_at__nisnull=created_at__nisnull, created_at__isnotnull=created_at__isnotnull, created_at__l=created_at__l, created_at__like=created_at__like, created_at__nl=created_at__nl, created_at__nlike=created_at__nlike, created_at__notlike=created_at__notlike, created_at__il=created_at__il, created_at__ilike=created_at__ilike, created_at__nil=created_at__nil, created_at__nilike=created_at__nilike, created_at__notilike=created_at__notilike, created_at__desc=created_at__desc, created_at__asc=created_at__asc, updated_at__eq=updated_at__eq, updated_at__ne=updated_at__ne, updated_at__gt=updated_at__gt, updated_at__gte=updated_at__gte, updated_at__lt=updated_at__lt, updated_at__lte=updated_at__lte, updated_at__in=updated_at__in, updated_at__nin=updated_at__nin, updated_at__notin=updated_at__notin, updated_at__isnull=updated_at__isnull, updated_at__nisnull=updated_at__nisnull, updated_at__isnotnull=updated_at__isnotnull, updated_at__l=updated_at__l, updated_at__like=updated_at__like, updated_at__nl=updated_at__nl, updated_at__nlike=updated_at__nlike, updated_at__notlike=updated_at__notlike, updated_at__il=updated_at__il, updated_at__ilike=updated_at__ilike, updated_at__nil=updated_at__nil, updated_at__nilike=updated_at__nilike, updated_at__notilike=updated_at__notilike, updated_at__desc=updated_at__desc, updated_at__asc=updated_at__asc, deleted_at__eq=deleted_at__eq, deleted_at__ne=deleted_at__ne, deleted_at__gt=deleted_at__gt, deleted_at__gte=deleted_at__gte, deleted_at__lt=deleted_at__lt, deleted_at__lte=deleted_at__lte, deleted_at__in=deleted_at__in, deleted_at__nin=deleted_at__nin, deleted_at__notin=deleted_at__notin, deleted_at__isnull=deleted_at__isnull, deleted_at__nisnull=deleted_at__nisnull, deleted_at__isnotnull=deleted_at__isnotnull, deleted_at__l=deleted_at__l, deleted_at__like=deleted_at__like, deleted_at__nl=deleted_at__nl, deleted_at__nlike=deleted_at__nlike, deleted_at__notlike=deleted_at__notlike, deleted_at__il=deleted_at__il, deleted_at__ilike=deleted_at__ilike, deleted_at__nil=deleted_at__nil, deleted_at__nilike=deleted_at__nilike, deleted_at__notilike=deleted_at__notilike, deleted_at__desc=deleted_at__desc, deleted_at__asc=deleted_at__asc, name__eq=name__eq, name__ne=name__ne, name__gt=name__gt, name__gte=name__gte, name__lt=name__lt, name__lte=name__lte, name__in=name__in, name__nin=name__nin, name__notin=name__notin, name__isnull=name__isnull, name__nisnull=name__nisnull, name__isnotnull=name__isnotnull, name__l=name__l, name__like=name__like, name__nl=name__nl, name__nlike=name__nlike, name__notlike=name__notlike, name__il=name__il, name__ilike=name__ilike, name__nil=name__nil, name__nilike=name__nilike, name__notilike=name__notilike, name__desc=name__desc, name__asc=name__asc, stream_url__eq=stream_url__eq, stream_url__ne=stream_url__ne, stream_url__gt=stream_url__gt, stream_url__gte=stream_url__gte, stream_url__lt=stream_url__lt, stream_url__lte=stream_url__lte, stream_url__in=stream_url__in, stream_url__nin=stream_url__nin, stream_url__notin=stream_url__notin, stream_url__isnull=stream_url__isnull, stream_url__nisnull=stream_url__nisnull, stream_url__isnotnull=stream_url__isnotnull, stream_url__l=stream_url__l, stream_url__like=stream_url__like, stream_url__nl=stream_url__nl, stream_url__nlike=stream_url__nlike, stream_url__notlike=stream_url__notlike, stream_url__il=stream_url__il, stream_url__ilike=stream_url__ilike, stream_url__nil=stream_url__nil, stream_url__nilike=stream_url__nilike, stream_url__notilike=stream_url__notilike, stream_url__desc=stream_url__desc, stream_url__asc=stream_url__asc, last_seen__eq=last_seen__eq, last_seen__ne=last_seen__ne, last_seen__gt=last_seen__gt, last_seen__gte=last_seen__gte, last_seen__lt=last_seen__lt, last_seen__lte=last_seen__lte, last_seen__in=last_seen__in, last_seen__nin=last_seen__nin, last_seen__notin=last_seen__notin, last_seen__isnull=last_seen__isnull, last_seen__nisnull=last_seen__nisnull, last_seen__isnotnull=last_seen__isnotnull, last_seen__l=last_seen__l, last_seen__like=last_seen__like, last_seen__nl=last_seen__nl, last_seen__nlike=last_seen__nlike, last_seen__notlike=last_seen__notlike, last_seen__il=last_seen__il, last_seen__ilike=last_seen__ilike, last_seen__nil=last_seen__nil, last_seen__nilike=last_seen__nilike, last_seen__notilike=last_seen__notilike, last_seen__desc=last_seen__desc, last_seen__asc=last_seen__asc) + print("The response of CameraApi->get_cameras:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CameraApi->get_cameras: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| SQL LIMIT operator | [optional] + **offset** | **int**| SQL OFFSET operator | [optional] + **id__eq** | **str**| SQL = operator | [optional] + **id__ne** | **str**| SQL != operator | [optional] + **id__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **id__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **id__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **id__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **id__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **id__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **id__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **id__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **id__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **id__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **id__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **id__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__eq** | **datetime**| SQL = operator | [optional] + **created_at__ne** | **datetime**| SQL != operator | [optional] + **created_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **created_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **created_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **created_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **created_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **created_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **created_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **created_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__eq** | **datetime**| SQL = operator | [optional] + **updated_at__ne** | **datetime**| SQL != operator | [optional] + **updated_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **updated_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **updated_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **updated_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **updated_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **updated_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **updated_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **updated_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__eq** | **datetime**| SQL = operator | [optional] + **deleted_at__ne** | **datetime**| SQL != operator | [optional] + **deleted_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **deleted_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **deleted_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **deleted_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **deleted_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **deleted_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **deleted_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **deleted_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **name__eq** | **str**| SQL = operator | [optional] + **name__ne** | **str**| SQL != operator | [optional] + **name__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **name__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **name__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **name__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **name__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **name__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **name__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **name__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **name__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **name__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **name__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **name__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **name__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **name__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **name__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **name__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **name__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **name__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **name__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **name__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **name__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **name__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **stream_url__eq** | **str**| SQL = operator | [optional] + **stream_url__ne** | **str**| SQL != operator | [optional] + **stream_url__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **stream_url__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **stream_url__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **stream_url__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **stream_url__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **stream_url__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **stream_url__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **stream_url__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **stream_url__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **stream_url__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **stream_url__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **stream_url__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **stream_url__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **stream_url__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **stream_url__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **stream_url__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **stream_url__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **stream_url__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **stream_url__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **stream_url__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **stream_url__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **stream_url__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **last_seen__eq** | **datetime**| SQL = operator | [optional] + **last_seen__ne** | **datetime**| SQL != operator | [optional] + **last_seen__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **last_seen__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **last_seen__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **last_seen__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **last_seen__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **last_seen__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **last_seen__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **last_seen__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **last_seen__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **last_seen__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **last_seen__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **last_seen__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **last_seen__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **last_seen__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **last_seen__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **last_seen__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **last_seen__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **last_seen__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **last_seen__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **last_seen__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **last_seen__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **last_seen__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + +### Return type + +[**GetCameras200Response**](GetCameras200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful List Fetch for Cameras | - | +**0** | Failed List Fetch for Cameras | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_camera** +> GetCameras200Response patch_camera(primary_key, camera) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.camera import Camera +from openapi_client.models.get_cameras200_response import GetCameras200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.CameraApi(api_client) + primary_key = None # object | Primary key for Camera + camera = openapi_client.Camera() # Camera | + + try: + api_response = api_instance.patch_camera(primary_key, camera) + print("The response of CameraApi->patch_camera:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CameraApi->patch_camera: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Camera | + **camera** | [**Camera**](Camera.md)| | + +### Return type + +[**GetCameras200Response**](GetCameras200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Item Update for Cameras | - | +**0** | Failed Item Update for Cameras | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_cameras** +> GetCameras200Response post_cameras(camera) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.camera import Camera +from openapi_client.models.get_cameras200_response import GetCameras200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.CameraApi(api_client) + camera = [openapi_client.Camera()] # List[Camera] | + + try: + api_response = api_instance.post_cameras(camera) + print("The response of CameraApi->post_cameras:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CameraApi->post_cameras: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **camera** | [**List[Camera]**](Camera.md)| | + +### Return type + +[**GetCameras200Response**](GetCameras200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful List Create for Cameras | - | +**0** | Failed List Create for Cameras | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_camera** +> GetCameras200Response put_camera(primary_key, camera) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.camera import Camera +from openapi_client.models.get_cameras200_response import GetCameras200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.CameraApi(api_client) + primary_key = None # object | Primary key for Camera + camera = openapi_client.Camera() # Camera | + + try: + api_response = api_instance.put_camera(primary_key, camera) + print("The response of CameraApi->put_camera:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CameraApi->put_camera: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Camera | + **camera** | [**Camera**](Camera.md)| | + +### Return type + +[**GetCameras200Response**](GetCameras200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Item Replace for Cameras | - | +**0** | Failed Item Replace for Cameras | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/object_detector/docs/Detection.md b/object_detector/docs/Detection.md new file mode 100644 index 0000000..a626b92 --- /dev/null +++ b/object_detector/docs/Detection.md @@ -0,0 +1,42 @@ +# Detection + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bounding_box** | [**List[DetectionBoundingBoxInner]**](DetectionBoundingBoxInner.md) | | [optional] +**camera_id** | **str** | | [optional] +**camera_id_object** | [**Camera**](Camera.md) | | [optional] +**centroid** | [**DetectionBoundingBoxInner**](DetectionBoundingBoxInner.md) | | [optional] +**class_id** | **int** | | [optional] +**class_name** | **str** | | [optional] +**created_at** | **datetime** | | [optional] +**deleted_at** | **datetime** | | [optional] +**id** | **str** | | [optional] +**score** | **float** | | [optional] +**seen_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] +**video_id** | **str** | | [optional] +**video_id_object** | [**Video**](Video.md) | | [optional] + +## Example + +```python +from openapi_client.models.detection import Detection + +# TODO update the JSON string below +json = "{}" +# create an instance of Detection from a JSON string +detection_instance = Detection.from_json(json) +# print the JSON string representation of the object +print(Detection.to_json()) + +# convert the object into a dict +detection_dict = detection_instance.to_dict() +# create an instance of Detection from a dict +detection_from_dict = Detection.from_dict(detection_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/object_detector/docs/DetectionApi.md b/object_detector/docs/DetectionApi.md new file mode 100644 index 0000000..90d14be --- /dev/null +++ b/object_detector/docs/DetectionApi.md @@ -0,0 +1,896 @@ +# openapi_client.DetectionApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_detection**](DetectionApi.md#delete_detection) | **DELETE** /api/detections/{primaryKey} | +[**get_detection**](DetectionApi.md#get_detection) | **GET** /api/detections/{primaryKey} | +[**get_detections**](DetectionApi.md#get_detections) | **GET** /api/detections | +[**patch_detection**](DetectionApi.md#patch_detection) | **PATCH** /api/detections/{primaryKey} | +[**post_detections**](DetectionApi.md#post_detections) | **POST** /api/detections | +[**put_detection**](DetectionApi.md#put_detection) | **PUT** /api/detections/{primaryKey} | + + +# **delete_detection** +> delete_detection(primary_key) + + + +### Example + + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DetectionApi(api_client) + primary_key = None # object | Primary key for Detection + + try: + api_instance.delete_detection(primary_key) + except Exception as e: + print("Exception when calling DetectionApi->delete_detection: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Detection | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful Item Delete for Detections | - | +**0** | Failed Item Delete for Detections | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_detection** +> GetDetections200Response get_detection(primary_key) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.get_detections200_response import GetDetections200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DetectionApi(api_client) + primary_key = None # object | Primary key for Detection + + try: + api_response = api_instance.get_detection(primary_key) + print("The response of DetectionApi->get_detection:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DetectionApi->get_detection: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Detection | + +### Return type + +[**GetDetections200Response**](GetDetections200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Item Fetch for Detections | - | +**0** | Failed Item Fetch for Detections | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_detections** +> GetDetections200Response get_detections(limit=limit, offset=offset, id__eq=id__eq, id__ne=id__ne, id__gt=id__gt, id__gte=id__gte, id__lt=id__lt, id__lte=id__lte, id__in=id__in, id__nin=id__nin, id__notin=id__notin, id__isnull=id__isnull, id__nisnull=id__nisnull, id__isnotnull=id__isnotnull, id__l=id__l, id__like=id__like, id__nl=id__nl, id__nlike=id__nlike, id__notlike=id__notlike, id__il=id__il, id__ilike=id__ilike, id__nil=id__nil, id__nilike=id__nilike, id__notilike=id__notilike, id__desc=id__desc, id__asc=id__asc, created_at__eq=created_at__eq, created_at__ne=created_at__ne, created_at__gt=created_at__gt, created_at__gte=created_at__gte, created_at__lt=created_at__lt, created_at__lte=created_at__lte, created_at__in=created_at__in, created_at__nin=created_at__nin, created_at__notin=created_at__notin, created_at__isnull=created_at__isnull, created_at__nisnull=created_at__nisnull, created_at__isnotnull=created_at__isnotnull, created_at__l=created_at__l, created_at__like=created_at__like, created_at__nl=created_at__nl, created_at__nlike=created_at__nlike, created_at__notlike=created_at__notlike, created_at__il=created_at__il, created_at__ilike=created_at__ilike, created_at__nil=created_at__nil, created_at__nilike=created_at__nilike, created_at__notilike=created_at__notilike, created_at__desc=created_at__desc, created_at__asc=created_at__asc, updated_at__eq=updated_at__eq, updated_at__ne=updated_at__ne, updated_at__gt=updated_at__gt, updated_at__gte=updated_at__gte, updated_at__lt=updated_at__lt, updated_at__lte=updated_at__lte, updated_at__in=updated_at__in, updated_at__nin=updated_at__nin, updated_at__notin=updated_at__notin, updated_at__isnull=updated_at__isnull, updated_at__nisnull=updated_at__nisnull, updated_at__isnotnull=updated_at__isnotnull, updated_at__l=updated_at__l, updated_at__like=updated_at__like, updated_at__nl=updated_at__nl, updated_at__nlike=updated_at__nlike, updated_at__notlike=updated_at__notlike, updated_at__il=updated_at__il, updated_at__ilike=updated_at__ilike, updated_at__nil=updated_at__nil, updated_at__nilike=updated_at__nilike, updated_at__notilike=updated_at__notilike, updated_at__desc=updated_at__desc, updated_at__asc=updated_at__asc, deleted_at__eq=deleted_at__eq, deleted_at__ne=deleted_at__ne, deleted_at__gt=deleted_at__gt, deleted_at__gte=deleted_at__gte, deleted_at__lt=deleted_at__lt, deleted_at__lte=deleted_at__lte, deleted_at__in=deleted_at__in, deleted_at__nin=deleted_at__nin, deleted_at__notin=deleted_at__notin, deleted_at__isnull=deleted_at__isnull, deleted_at__nisnull=deleted_at__nisnull, deleted_at__isnotnull=deleted_at__isnotnull, deleted_at__l=deleted_at__l, deleted_at__like=deleted_at__like, deleted_at__nl=deleted_at__nl, deleted_at__nlike=deleted_at__nlike, deleted_at__notlike=deleted_at__notlike, deleted_at__il=deleted_at__il, deleted_at__ilike=deleted_at__ilike, deleted_at__nil=deleted_at__nil, deleted_at__nilike=deleted_at__nilike, deleted_at__notilike=deleted_at__notilike, deleted_at__desc=deleted_at__desc, deleted_at__asc=deleted_at__asc, seen_at__eq=seen_at__eq, seen_at__ne=seen_at__ne, seen_at__gt=seen_at__gt, seen_at__gte=seen_at__gte, seen_at__lt=seen_at__lt, seen_at__lte=seen_at__lte, seen_at__in=seen_at__in, seen_at__nin=seen_at__nin, seen_at__notin=seen_at__notin, seen_at__isnull=seen_at__isnull, seen_at__nisnull=seen_at__nisnull, seen_at__isnotnull=seen_at__isnotnull, seen_at__l=seen_at__l, seen_at__like=seen_at__like, seen_at__nl=seen_at__nl, seen_at__nlike=seen_at__nlike, seen_at__notlike=seen_at__notlike, seen_at__il=seen_at__il, seen_at__ilike=seen_at__ilike, seen_at__nil=seen_at__nil, seen_at__nilike=seen_at__nilike, seen_at__notilike=seen_at__notilike, seen_at__desc=seen_at__desc, seen_at__asc=seen_at__asc, class_id__eq=class_id__eq, class_id__ne=class_id__ne, class_id__gt=class_id__gt, class_id__gte=class_id__gte, class_id__lt=class_id__lt, class_id__lte=class_id__lte, class_id__in=class_id__in, class_id__nin=class_id__nin, class_id__notin=class_id__notin, class_id__isnull=class_id__isnull, class_id__nisnull=class_id__nisnull, class_id__isnotnull=class_id__isnotnull, class_id__l=class_id__l, class_id__like=class_id__like, class_id__nl=class_id__nl, class_id__nlike=class_id__nlike, class_id__notlike=class_id__notlike, class_id__il=class_id__il, class_id__ilike=class_id__ilike, class_id__nil=class_id__nil, class_id__nilike=class_id__nilike, class_id__notilike=class_id__notilike, class_id__desc=class_id__desc, class_id__asc=class_id__asc, class_name__eq=class_name__eq, class_name__ne=class_name__ne, class_name__gt=class_name__gt, class_name__gte=class_name__gte, class_name__lt=class_name__lt, class_name__lte=class_name__lte, class_name__in=class_name__in, class_name__nin=class_name__nin, class_name__notin=class_name__notin, class_name__isnull=class_name__isnull, class_name__nisnull=class_name__nisnull, class_name__isnotnull=class_name__isnotnull, class_name__l=class_name__l, class_name__like=class_name__like, class_name__nl=class_name__nl, class_name__nlike=class_name__nlike, class_name__notlike=class_name__notlike, class_name__il=class_name__il, class_name__ilike=class_name__ilike, class_name__nil=class_name__nil, class_name__nilike=class_name__nilike, class_name__notilike=class_name__notilike, class_name__desc=class_name__desc, class_name__asc=class_name__asc, score__eq=score__eq, score__ne=score__ne, score__gt=score__gt, score__gte=score__gte, score__lt=score__lt, score__lte=score__lte, score__in=score__in, score__nin=score__nin, score__notin=score__notin, score__isnull=score__isnull, score__nisnull=score__nisnull, score__isnotnull=score__isnotnull, score__l=score__l, score__like=score__like, score__nl=score__nl, score__nlike=score__nlike, score__notlike=score__notlike, score__il=score__il, score__ilike=score__ilike, score__nil=score__nil, score__nilike=score__nilike, score__notilike=score__notilike, score__desc=score__desc, score__asc=score__asc, video_id__eq=video_id__eq, video_id__ne=video_id__ne, video_id__gt=video_id__gt, video_id__gte=video_id__gte, video_id__lt=video_id__lt, video_id__lte=video_id__lte, video_id__in=video_id__in, video_id__nin=video_id__nin, video_id__notin=video_id__notin, video_id__isnull=video_id__isnull, video_id__nisnull=video_id__nisnull, video_id__isnotnull=video_id__isnotnull, video_id__l=video_id__l, video_id__like=video_id__like, video_id__nl=video_id__nl, video_id__nlike=video_id__nlike, video_id__notlike=video_id__notlike, video_id__il=video_id__il, video_id__ilike=video_id__ilike, video_id__nil=video_id__nil, video_id__nilike=video_id__nilike, video_id__notilike=video_id__notilike, video_id__desc=video_id__desc, video_id__asc=video_id__asc, camera_id__eq=camera_id__eq, camera_id__ne=camera_id__ne, camera_id__gt=camera_id__gt, camera_id__gte=camera_id__gte, camera_id__lt=camera_id__lt, camera_id__lte=camera_id__lte, camera_id__in=camera_id__in, camera_id__nin=camera_id__nin, camera_id__notin=camera_id__notin, camera_id__isnull=camera_id__isnull, camera_id__nisnull=camera_id__nisnull, camera_id__isnotnull=camera_id__isnotnull, camera_id__l=camera_id__l, camera_id__like=camera_id__like, camera_id__nl=camera_id__nl, camera_id__nlike=camera_id__nlike, camera_id__notlike=camera_id__notlike, camera_id__il=camera_id__il, camera_id__ilike=camera_id__ilike, camera_id__nil=camera_id__nil, camera_id__nilike=camera_id__nilike, camera_id__notilike=camera_id__notilike, camera_id__desc=camera_id__desc, camera_id__asc=camera_id__asc) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.get_detections200_response import GetDetections200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DetectionApi(api_client) + limit = 56 # int | SQL LIMIT operator (optional) + offset = 56 # int | SQL OFFSET operator (optional) + id__eq = 'id__eq_example' # str | SQL = operator (optional) + id__ne = 'id__ne_example' # str | SQL != operator (optional) + id__gt = 'id__gt_example' # str | SQL > operator, may not work with all column types (optional) + id__gte = 'id__gte_example' # str | SQL >= operator, may not work with all column types (optional) + id__lt = 'id__lt_example' # str | SQL < operator, may not work with all column types (optional) + id__lte = 'id__lte_example' # str | SQL <= operator, may not work with all column types (optional) + id__in = 'id__in_example' # str | SQL IN operator, permits comma-separated values (optional) + id__nin = 'id__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + id__notin = 'id__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + id__isnull = 'id__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + id__nisnull = 'id__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + id__isnotnull = 'id__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + id__l = 'id__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__like = 'id__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nl = 'id__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nlike = 'id__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__notlike = 'id__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__il = 'id__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__ilike = 'id__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nil = 'id__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nilike = 'id__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__notilike = 'id__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__desc = 'id__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + id__asc = 'id__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + created_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + created_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + created_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + created_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + created_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + created_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + created_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + created_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + created_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + created_at__isnull = 'created_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + created_at__nisnull = 'created_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + created_at__isnotnull = 'created_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + created_at__l = 'created_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__like = 'created_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nl = 'created_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nlike = 'created_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__notlike = 'created_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__il = 'created_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__ilike = 'created_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nil = 'created_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nilike = 'created_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__notilike = 'created_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__desc = 'created_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + created_at__asc = 'created_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + updated_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + updated_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + updated_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + updated_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + updated_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + updated_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + updated_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + updated_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + updated_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + updated_at__isnull = 'updated_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + updated_at__nisnull = 'updated_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + updated_at__isnotnull = 'updated_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + updated_at__l = 'updated_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__like = 'updated_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nl = 'updated_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nlike = 'updated_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__notlike = 'updated_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__il = 'updated_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__ilike = 'updated_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nil = 'updated_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nilike = 'updated_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__notilike = 'updated_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__desc = 'updated_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + updated_at__asc = 'updated_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + deleted_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + deleted_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + deleted_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + deleted_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + deleted_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + deleted_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + deleted_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + deleted_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + deleted_at__isnull = 'deleted_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__nisnull = 'deleted_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__isnotnull = 'deleted_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__l = 'deleted_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__like = 'deleted_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nl = 'deleted_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nlike = 'deleted_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__notlike = 'deleted_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__il = 'deleted_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__ilike = 'deleted_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nil = 'deleted_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nilike = 'deleted_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__notilike = 'deleted_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__desc = 'deleted_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__asc = 'deleted_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + seen_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + seen_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + seen_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + seen_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + seen_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + seen_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + seen_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + seen_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + seen_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + seen_at__isnull = 'seen_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + seen_at__nisnull = 'seen_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + seen_at__isnotnull = 'seen_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + seen_at__l = 'seen_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + seen_at__like = 'seen_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + seen_at__nl = 'seen_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + seen_at__nlike = 'seen_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + seen_at__notlike = 'seen_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + seen_at__il = 'seen_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + seen_at__ilike = 'seen_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + seen_at__nil = 'seen_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + seen_at__nilike = 'seen_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + seen_at__notilike = 'seen_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + seen_at__desc = 'seen_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + seen_at__asc = 'seen_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + class_id__eq = 56 # int | SQL = operator (optional) + class_id__ne = 56 # int | SQL != operator (optional) + class_id__gt = 56 # int | SQL > operator, may not work with all column types (optional) + class_id__gte = 56 # int | SQL >= operator, may not work with all column types (optional) + class_id__lt = 56 # int | SQL < operator, may not work with all column types (optional) + class_id__lte = 56 # int | SQL <= operator, may not work with all column types (optional) + class_id__in = 56 # int | SQL IN operator, permits comma-separated values (optional) + class_id__nin = 56 # int | SQL NOT IN operator, permits comma-separated values (optional) + class_id__notin = 56 # int | SQL NOT IN operator, permits comma-separated values (optional) + class_id__isnull = 'class_id__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + class_id__nisnull = 'class_id__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + class_id__isnotnull = 'class_id__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + class_id__l = 'class_id__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_id__like = 'class_id__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_id__nl = 'class_id__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_id__nlike = 'class_id__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_id__notlike = 'class_id__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_id__il = 'class_id__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_id__ilike = 'class_id__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_id__nil = 'class_id__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_id__nilike = 'class_id__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_id__notilike = 'class_id__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_id__desc = 'class_id__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + class_id__asc = 'class_id__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + class_name__eq = 'class_name__eq_example' # str | SQL = operator (optional) + class_name__ne = 'class_name__ne_example' # str | SQL != operator (optional) + class_name__gt = 'class_name__gt_example' # str | SQL > operator, may not work with all column types (optional) + class_name__gte = 'class_name__gte_example' # str | SQL >= operator, may not work with all column types (optional) + class_name__lt = 'class_name__lt_example' # str | SQL < operator, may not work with all column types (optional) + class_name__lte = 'class_name__lte_example' # str | SQL <= operator, may not work with all column types (optional) + class_name__in = 'class_name__in_example' # str | SQL IN operator, permits comma-separated values (optional) + class_name__nin = 'class_name__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + class_name__notin = 'class_name__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + class_name__isnull = 'class_name__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + class_name__nisnull = 'class_name__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + class_name__isnotnull = 'class_name__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + class_name__l = 'class_name__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_name__like = 'class_name__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_name__nl = 'class_name__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_name__nlike = 'class_name__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_name__notlike = 'class_name__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_name__il = 'class_name__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_name__ilike = 'class_name__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_name__nil = 'class_name__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_name__nilike = 'class_name__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_name__notilike = 'class_name__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + class_name__desc = 'class_name__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + class_name__asc = 'class_name__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + score__eq = 3.4 # float | SQL = operator (optional) + score__ne = 3.4 # float | SQL != operator (optional) + score__gt = 3.4 # float | SQL > operator, may not work with all column types (optional) + score__gte = 3.4 # float | SQL >= operator, may not work with all column types (optional) + score__lt = 3.4 # float | SQL < operator, may not work with all column types (optional) + score__lte = 3.4 # float | SQL <= operator, may not work with all column types (optional) + score__in = 3.4 # float | SQL IN operator, permits comma-separated values (optional) + score__nin = 3.4 # float | SQL NOT IN operator, permits comma-separated values (optional) + score__notin = 3.4 # float | SQL NOT IN operator, permits comma-separated values (optional) + score__isnull = 'score__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + score__nisnull = 'score__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + score__isnotnull = 'score__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + score__l = 'score__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + score__like = 'score__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + score__nl = 'score__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + score__nlike = 'score__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + score__notlike = 'score__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + score__il = 'score__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + score__ilike = 'score__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + score__nil = 'score__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + score__nilike = 'score__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + score__notilike = 'score__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + score__desc = 'score__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + score__asc = 'score__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + video_id__eq = 'video_id__eq_example' # str | SQL = operator (optional) + video_id__ne = 'video_id__ne_example' # str | SQL != operator (optional) + video_id__gt = 'video_id__gt_example' # str | SQL > operator, may not work with all column types (optional) + video_id__gte = 'video_id__gte_example' # str | SQL >= operator, may not work with all column types (optional) + video_id__lt = 'video_id__lt_example' # str | SQL < operator, may not work with all column types (optional) + video_id__lte = 'video_id__lte_example' # str | SQL <= operator, may not work with all column types (optional) + video_id__in = 'video_id__in_example' # str | SQL IN operator, permits comma-separated values (optional) + video_id__nin = 'video_id__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + video_id__notin = 'video_id__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + video_id__isnull = 'video_id__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + video_id__nisnull = 'video_id__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + video_id__isnotnull = 'video_id__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + video_id__l = 'video_id__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + video_id__like = 'video_id__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + video_id__nl = 'video_id__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + video_id__nlike = 'video_id__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + video_id__notlike = 'video_id__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + video_id__il = 'video_id__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + video_id__ilike = 'video_id__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + video_id__nil = 'video_id__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + video_id__nilike = 'video_id__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + video_id__notilike = 'video_id__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + video_id__desc = 'video_id__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + video_id__asc = 'video_id__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + camera_id__eq = 'camera_id__eq_example' # str | SQL = operator (optional) + camera_id__ne = 'camera_id__ne_example' # str | SQL != operator (optional) + camera_id__gt = 'camera_id__gt_example' # str | SQL > operator, may not work with all column types (optional) + camera_id__gte = 'camera_id__gte_example' # str | SQL >= operator, may not work with all column types (optional) + camera_id__lt = 'camera_id__lt_example' # str | SQL < operator, may not work with all column types (optional) + camera_id__lte = 'camera_id__lte_example' # str | SQL <= operator, may not work with all column types (optional) + camera_id__in = 'camera_id__in_example' # str | SQL IN operator, permits comma-separated values (optional) + camera_id__nin = 'camera_id__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + camera_id__notin = 'camera_id__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + camera_id__isnull = 'camera_id__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + camera_id__nisnull = 'camera_id__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + camera_id__isnotnull = 'camera_id__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + camera_id__l = 'camera_id__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__like = 'camera_id__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__nl = 'camera_id__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__nlike = 'camera_id__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__notlike = 'camera_id__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__il = 'camera_id__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__ilike = 'camera_id__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__nil = 'camera_id__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__nilike = 'camera_id__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__notilike = 'camera_id__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__desc = 'camera_id__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + camera_id__asc = 'camera_id__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + + try: + api_response = api_instance.get_detections(limit=limit, offset=offset, id__eq=id__eq, id__ne=id__ne, id__gt=id__gt, id__gte=id__gte, id__lt=id__lt, id__lte=id__lte, id__in=id__in, id__nin=id__nin, id__notin=id__notin, id__isnull=id__isnull, id__nisnull=id__nisnull, id__isnotnull=id__isnotnull, id__l=id__l, id__like=id__like, id__nl=id__nl, id__nlike=id__nlike, id__notlike=id__notlike, id__il=id__il, id__ilike=id__ilike, id__nil=id__nil, id__nilike=id__nilike, id__notilike=id__notilike, id__desc=id__desc, id__asc=id__asc, created_at__eq=created_at__eq, created_at__ne=created_at__ne, created_at__gt=created_at__gt, created_at__gte=created_at__gte, created_at__lt=created_at__lt, created_at__lte=created_at__lte, created_at__in=created_at__in, created_at__nin=created_at__nin, created_at__notin=created_at__notin, created_at__isnull=created_at__isnull, created_at__nisnull=created_at__nisnull, created_at__isnotnull=created_at__isnotnull, created_at__l=created_at__l, created_at__like=created_at__like, created_at__nl=created_at__nl, created_at__nlike=created_at__nlike, created_at__notlike=created_at__notlike, created_at__il=created_at__il, created_at__ilike=created_at__ilike, created_at__nil=created_at__nil, created_at__nilike=created_at__nilike, created_at__notilike=created_at__notilike, created_at__desc=created_at__desc, created_at__asc=created_at__asc, updated_at__eq=updated_at__eq, updated_at__ne=updated_at__ne, updated_at__gt=updated_at__gt, updated_at__gte=updated_at__gte, updated_at__lt=updated_at__lt, updated_at__lte=updated_at__lte, updated_at__in=updated_at__in, updated_at__nin=updated_at__nin, updated_at__notin=updated_at__notin, updated_at__isnull=updated_at__isnull, updated_at__nisnull=updated_at__nisnull, updated_at__isnotnull=updated_at__isnotnull, updated_at__l=updated_at__l, updated_at__like=updated_at__like, updated_at__nl=updated_at__nl, updated_at__nlike=updated_at__nlike, updated_at__notlike=updated_at__notlike, updated_at__il=updated_at__il, updated_at__ilike=updated_at__ilike, updated_at__nil=updated_at__nil, updated_at__nilike=updated_at__nilike, updated_at__notilike=updated_at__notilike, updated_at__desc=updated_at__desc, updated_at__asc=updated_at__asc, deleted_at__eq=deleted_at__eq, deleted_at__ne=deleted_at__ne, deleted_at__gt=deleted_at__gt, deleted_at__gte=deleted_at__gte, deleted_at__lt=deleted_at__lt, deleted_at__lte=deleted_at__lte, deleted_at__in=deleted_at__in, deleted_at__nin=deleted_at__nin, deleted_at__notin=deleted_at__notin, deleted_at__isnull=deleted_at__isnull, deleted_at__nisnull=deleted_at__nisnull, deleted_at__isnotnull=deleted_at__isnotnull, deleted_at__l=deleted_at__l, deleted_at__like=deleted_at__like, deleted_at__nl=deleted_at__nl, deleted_at__nlike=deleted_at__nlike, deleted_at__notlike=deleted_at__notlike, deleted_at__il=deleted_at__il, deleted_at__ilike=deleted_at__ilike, deleted_at__nil=deleted_at__nil, deleted_at__nilike=deleted_at__nilike, deleted_at__notilike=deleted_at__notilike, deleted_at__desc=deleted_at__desc, deleted_at__asc=deleted_at__asc, seen_at__eq=seen_at__eq, seen_at__ne=seen_at__ne, seen_at__gt=seen_at__gt, seen_at__gte=seen_at__gte, seen_at__lt=seen_at__lt, seen_at__lte=seen_at__lte, seen_at__in=seen_at__in, seen_at__nin=seen_at__nin, seen_at__notin=seen_at__notin, seen_at__isnull=seen_at__isnull, seen_at__nisnull=seen_at__nisnull, seen_at__isnotnull=seen_at__isnotnull, seen_at__l=seen_at__l, seen_at__like=seen_at__like, seen_at__nl=seen_at__nl, seen_at__nlike=seen_at__nlike, seen_at__notlike=seen_at__notlike, seen_at__il=seen_at__il, seen_at__ilike=seen_at__ilike, seen_at__nil=seen_at__nil, seen_at__nilike=seen_at__nilike, seen_at__notilike=seen_at__notilike, seen_at__desc=seen_at__desc, seen_at__asc=seen_at__asc, class_id__eq=class_id__eq, class_id__ne=class_id__ne, class_id__gt=class_id__gt, class_id__gte=class_id__gte, class_id__lt=class_id__lt, class_id__lte=class_id__lte, class_id__in=class_id__in, class_id__nin=class_id__nin, class_id__notin=class_id__notin, class_id__isnull=class_id__isnull, class_id__nisnull=class_id__nisnull, class_id__isnotnull=class_id__isnotnull, class_id__l=class_id__l, class_id__like=class_id__like, class_id__nl=class_id__nl, class_id__nlike=class_id__nlike, class_id__notlike=class_id__notlike, class_id__il=class_id__il, class_id__ilike=class_id__ilike, class_id__nil=class_id__nil, class_id__nilike=class_id__nilike, class_id__notilike=class_id__notilike, class_id__desc=class_id__desc, class_id__asc=class_id__asc, class_name__eq=class_name__eq, class_name__ne=class_name__ne, class_name__gt=class_name__gt, class_name__gte=class_name__gte, class_name__lt=class_name__lt, class_name__lte=class_name__lte, class_name__in=class_name__in, class_name__nin=class_name__nin, class_name__notin=class_name__notin, class_name__isnull=class_name__isnull, class_name__nisnull=class_name__nisnull, class_name__isnotnull=class_name__isnotnull, class_name__l=class_name__l, class_name__like=class_name__like, class_name__nl=class_name__nl, class_name__nlike=class_name__nlike, class_name__notlike=class_name__notlike, class_name__il=class_name__il, class_name__ilike=class_name__ilike, class_name__nil=class_name__nil, class_name__nilike=class_name__nilike, class_name__notilike=class_name__notilike, class_name__desc=class_name__desc, class_name__asc=class_name__asc, score__eq=score__eq, score__ne=score__ne, score__gt=score__gt, score__gte=score__gte, score__lt=score__lt, score__lte=score__lte, score__in=score__in, score__nin=score__nin, score__notin=score__notin, score__isnull=score__isnull, score__nisnull=score__nisnull, score__isnotnull=score__isnotnull, score__l=score__l, score__like=score__like, score__nl=score__nl, score__nlike=score__nlike, score__notlike=score__notlike, score__il=score__il, score__ilike=score__ilike, score__nil=score__nil, score__nilike=score__nilike, score__notilike=score__notilike, score__desc=score__desc, score__asc=score__asc, video_id__eq=video_id__eq, video_id__ne=video_id__ne, video_id__gt=video_id__gt, video_id__gte=video_id__gte, video_id__lt=video_id__lt, video_id__lte=video_id__lte, video_id__in=video_id__in, video_id__nin=video_id__nin, video_id__notin=video_id__notin, video_id__isnull=video_id__isnull, video_id__nisnull=video_id__nisnull, video_id__isnotnull=video_id__isnotnull, video_id__l=video_id__l, video_id__like=video_id__like, video_id__nl=video_id__nl, video_id__nlike=video_id__nlike, video_id__notlike=video_id__notlike, video_id__il=video_id__il, video_id__ilike=video_id__ilike, video_id__nil=video_id__nil, video_id__nilike=video_id__nilike, video_id__notilike=video_id__notilike, video_id__desc=video_id__desc, video_id__asc=video_id__asc, camera_id__eq=camera_id__eq, camera_id__ne=camera_id__ne, camera_id__gt=camera_id__gt, camera_id__gte=camera_id__gte, camera_id__lt=camera_id__lt, camera_id__lte=camera_id__lte, camera_id__in=camera_id__in, camera_id__nin=camera_id__nin, camera_id__notin=camera_id__notin, camera_id__isnull=camera_id__isnull, camera_id__nisnull=camera_id__nisnull, camera_id__isnotnull=camera_id__isnotnull, camera_id__l=camera_id__l, camera_id__like=camera_id__like, camera_id__nl=camera_id__nl, camera_id__nlike=camera_id__nlike, camera_id__notlike=camera_id__notlike, camera_id__il=camera_id__il, camera_id__ilike=camera_id__ilike, camera_id__nil=camera_id__nil, camera_id__nilike=camera_id__nilike, camera_id__notilike=camera_id__notilike, camera_id__desc=camera_id__desc, camera_id__asc=camera_id__asc) + print("The response of DetectionApi->get_detections:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DetectionApi->get_detections: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| SQL LIMIT operator | [optional] + **offset** | **int**| SQL OFFSET operator | [optional] + **id__eq** | **str**| SQL = operator | [optional] + **id__ne** | **str**| SQL != operator | [optional] + **id__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **id__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **id__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **id__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **id__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **id__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **id__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **id__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **id__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **id__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **id__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **id__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__eq** | **datetime**| SQL = operator | [optional] + **created_at__ne** | **datetime**| SQL != operator | [optional] + **created_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **created_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **created_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **created_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **created_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **created_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **created_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **created_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__eq** | **datetime**| SQL = operator | [optional] + **updated_at__ne** | **datetime**| SQL != operator | [optional] + **updated_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **updated_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **updated_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **updated_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **updated_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **updated_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **updated_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **updated_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__eq** | **datetime**| SQL = operator | [optional] + **deleted_at__ne** | **datetime**| SQL != operator | [optional] + **deleted_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **deleted_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **deleted_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **deleted_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **deleted_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **deleted_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **deleted_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **deleted_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **seen_at__eq** | **datetime**| SQL = operator | [optional] + **seen_at__ne** | **datetime**| SQL != operator | [optional] + **seen_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **seen_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **seen_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **seen_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **seen_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **seen_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **seen_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **seen_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **seen_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **seen_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **seen_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **seen_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **seen_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **seen_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **seen_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **seen_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **seen_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **seen_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **seen_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **seen_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **seen_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **seen_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **class_id__eq** | **int**| SQL = operator | [optional] + **class_id__ne** | **int**| SQL != operator | [optional] + **class_id__gt** | **int**| SQL > operator, may not work with all column types | [optional] + **class_id__gte** | **int**| SQL >= operator, may not work with all column types | [optional] + **class_id__lt** | **int**| SQL < operator, may not work with all column types | [optional] + **class_id__lte** | **int**| SQL <= operator, may not work with all column types | [optional] + **class_id__in** | **int**| SQL IN operator, permits comma-separated values | [optional] + **class_id__nin** | **int**| SQL NOT IN operator, permits comma-separated values | [optional] + **class_id__notin** | **int**| SQL NOT IN operator, permits comma-separated values | [optional] + **class_id__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **class_id__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **class_id__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **class_id__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_id__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_id__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_id__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_id__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_id__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_id__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_id__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_id__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_id__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_id__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **class_id__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **class_name__eq** | **str**| SQL = operator | [optional] + **class_name__ne** | **str**| SQL != operator | [optional] + **class_name__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **class_name__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **class_name__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **class_name__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **class_name__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **class_name__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **class_name__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **class_name__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **class_name__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **class_name__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **class_name__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_name__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_name__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_name__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_name__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_name__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_name__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_name__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_name__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_name__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **class_name__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **class_name__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **score__eq** | **float**| SQL = operator | [optional] + **score__ne** | **float**| SQL != operator | [optional] + **score__gt** | **float**| SQL > operator, may not work with all column types | [optional] + **score__gte** | **float**| SQL >= operator, may not work with all column types | [optional] + **score__lt** | **float**| SQL < operator, may not work with all column types | [optional] + **score__lte** | **float**| SQL <= operator, may not work with all column types | [optional] + **score__in** | **float**| SQL IN operator, permits comma-separated values | [optional] + **score__nin** | **float**| SQL NOT IN operator, permits comma-separated values | [optional] + **score__notin** | **float**| SQL NOT IN operator, permits comma-separated values | [optional] + **score__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **score__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **score__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **score__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **score__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **score__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **score__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **score__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **score__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **score__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **score__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **score__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **score__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **score__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **score__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **video_id__eq** | **str**| SQL = operator | [optional] + **video_id__ne** | **str**| SQL != operator | [optional] + **video_id__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **video_id__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **video_id__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **video_id__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **video_id__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **video_id__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **video_id__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **video_id__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **video_id__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **video_id__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **video_id__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **video_id__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **video_id__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **video_id__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **video_id__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **video_id__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **video_id__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **video_id__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **video_id__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **video_id__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **video_id__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **video_id__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **camera_id__eq** | **str**| SQL = operator | [optional] + **camera_id__ne** | **str**| SQL != operator | [optional] + **camera_id__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **camera_id__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **camera_id__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **camera_id__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **camera_id__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **camera_id__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **camera_id__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **camera_id__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **camera_id__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **camera_id__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **camera_id__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **camera_id__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + +### Return type + +[**GetDetections200Response**](GetDetections200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful List Fetch for Detections | - | +**0** | Failed List Fetch for Detections | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_detection** +> GetDetections200Response patch_detection(primary_key, detection) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.detection import Detection +from openapi_client.models.get_detections200_response import GetDetections200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DetectionApi(api_client) + primary_key = None # object | Primary key for Detection + detection = openapi_client.Detection() # Detection | + + try: + api_response = api_instance.patch_detection(primary_key, detection) + print("The response of DetectionApi->patch_detection:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DetectionApi->patch_detection: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Detection | + **detection** | [**Detection**](Detection.md)| | + +### Return type + +[**GetDetections200Response**](GetDetections200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Item Update for Detections | - | +**0** | Failed Item Update for Detections | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_detections** +> GetDetections200Response post_detections(detection) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.detection import Detection +from openapi_client.models.get_detections200_response import GetDetections200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DetectionApi(api_client) + detection = [openapi_client.Detection()] # List[Detection] | + + try: + api_response = api_instance.post_detections(detection) + print("The response of DetectionApi->post_detections:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DetectionApi->post_detections: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **detection** | [**List[Detection]**](Detection.md)| | + +### Return type + +[**GetDetections200Response**](GetDetections200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful List Create for Detections | - | +**0** | Failed List Create for Detections | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_detection** +> GetDetections200Response put_detection(primary_key, detection) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.detection import Detection +from openapi_client.models.get_detections200_response import GetDetections200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DetectionApi(api_client) + primary_key = None # object | Primary key for Detection + detection = openapi_client.Detection() # Detection | + + try: + api_response = api_instance.put_detection(primary_key, detection) + print("The response of DetectionApi->put_detection:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DetectionApi->put_detection: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Detection | + **detection** | [**Detection**](Detection.md)| | + +### Return type + +[**GetDetections200Response**](GetDetections200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Item Replace for Detections | - | +**0** | Failed Item Replace for Detections | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/object_detector/docs/DetectionBoundingBoxInner.md b/object_detector/docs/DetectionBoundingBoxInner.md new file mode 100644 index 0000000..2b42496 --- /dev/null +++ b/object_detector/docs/DetectionBoundingBoxInner.md @@ -0,0 +1,30 @@ +# DetectionBoundingBoxInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**x** | **float** | | [optional] +**y** | **float** | | [optional] + +## Example + +```python +from openapi_client.models.detection_bounding_box_inner import DetectionBoundingBoxInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DetectionBoundingBoxInner from a JSON string +detection_bounding_box_inner_instance = DetectionBoundingBoxInner.from_json(json) +# print the JSON string representation of the object +print(DetectionBoundingBoxInner.to_json()) + +# convert the object into a dict +detection_bounding_box_inner_dict = detection_bounding_box_inner_instance.to_dict() +# create an instance of DetectionBoundingBoxInner from a dict +detection_bounding_box_inner_from_dict = DetectionBoundingBoxInner.from_dict(detection_bounding_box_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/object_detector/docs/GetCameras200Response.md b/object_detector/docs/GetCameras200Response.md new file mode 100644 index 0000000..497cab7 --- /dev/null +++ b/object_detector/docs/GetCameras200Response.md @@ -0,0 +1,32 @@ +# GetCameras200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | | [optional] +**objects** | [**List[Camera]**](Camera.md) | | [optional] +**status** | **int** | | +**success** | **bool** | | + +## Example + +```python +from openapi_client.models.get_cameras200_response import GetCameras200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCameras200Response from a JSON string +get_cameras200_response_instance = GetCameras200Response.from_json(json) +# print the JSON string representation of the object +print(GetCameras200Response.to_json()) + +# convert the object into a dict +get_cameras200_response_dict = get_cameras200_response_instance.to_dict() +# create an instance of GetCameras200Response from a dict +get_cameras200_response_from_dict = GetCameras200Response.from_dict(get_cameras200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/object_detector/docs/GetCamerasDefaultResponse.md b/object_detector/docs/GetCamerasDefaultResponse.md new file mode 100644 index 0000000..87a0268 --- /dev/null +++ b/object_detector/docs/GetCamerasDefaultResponse.md @@ -0,0 +1,31 @@ +# GetCamerasDefaultResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | | [optional] +**status** | **int** | | +**success** | **bool** | | + +## Example + +```python +from openapi_client.models.get_cameras_default_response import GetCamerasDefaultResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCamerasDefaultResponse from a JSON string +get_cameras_default_response_instance = GetCamerasDefaultResponse.from_json(json) +# print the JSON string representation of the object +print(GetCamerasDefaultResponse.to_json()) + +# convert the object into a dict +get_cameras_default_response_dict = get_cameras_default_response_instance.to_dict() +# create an instance of GetCamerasDefaultResponse from a dict +get_cameras_default_response_from_dict = GetCamerasDefaultResponse.from_dict(get_cameras_default_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/object_detector/docs/GetDetections200Response.md b/object_detector/docs/GetDetections200Response.md new file mode 100644 index 0000000..58182be --- /dev/null +++ b/object_detector/docs/GetDetections200Response.md @@ -0,0 +1,32 @@ +# GetDetections200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | | [optional] +**objects** | [**List[Detection]**](Detection.md) | | [optional] +**status** | **int** | | +**success** | **bool** | | + +## Example + +```python +from openapi_client.models.get_detections200_response import GetDetections200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDetections200Response from a JSON string +get_detections200_response_instance = GetDetections200Response.from_json(json) +# print the JSON string representation of the object +print(GetDetections200Response.to_json()) + +# convert the object into a dict +get_detections200_response_dict = get_detections200_response_instance.to_dict() +# create an instance of GetDetections200Response from a dict +get_detections200_response_from_dict = GetDetections200Response.from_dict(get_detections200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/object_detector/docs/GetVideos200Response.md b/object_detector/docs/GetVideos200Response.md new file mode 100644 index 0000000..7a8c1ef --- /dev/null +++ b/object_detector/docs/GetVideos200Response.md @@ -0,0 +1,32 @@ +# GetVideos200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | | [optional] +**objects** | [**List[Video]**](Video.md) | | [optional] +**status** | **int** | | +**success** | **bool** | | + +## Example + +```python +from openapi_client.models.get_videos200_response import GetVideos200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetVideos200Response from a JSON string +get_videos200_response_instance = GetVideos200Response.from_json(json) +# print the JSON string representation of the object +print(GetVideos200Response.to_json()) + +# convert the object into a dict +get_videos200_response_dict = get_videos200_response_instance.to_dict() +# create an instance of GetVideos200Response from a dict +get_videos200_response_from_dict = GetVideos200Response.from_dict(get_videos200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/object_detector/docs/Vec2.md b/object_detector/docs/Vec2.md new file mode 100644 index 0000000..527b65b --- /dev/null +++ b/object_detector/docs/Vec2.md @@ -0,0 +1,30 @@ +# Vec2 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**x** | **float** | | [optional] +**y** | **float** | | [optional] + +## Example + +```python +from openapi_client.models.vec2 import Vec2 + +# TODO update the JSON string below +json = "{}" +# create an instance of Vec2 from a JSON string +vec2_instance = Vec2.from_json(json) +# print the JSON string representation of the object +print(Vec2.to_json()) + +# convert the object into a dict +vec2_dict = vec2_instance.to_dict() +# create an instance of Vec2 from a dict +vec2_from_dict = Vec2.from_dict(vec2_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/object_detector/docs/Video.md b/object_detector/docs/Video.md new file mode 100644 index 0000000..025af95 --- /dev/null +++ b/object_detector/docs/Video.md @@ -0,0 +1,42 @@ +# Video + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**camera_id** | **str** | | [optional] +**camera_id_object** | [**Camera**](Camera.md) | | [optional] +**created_at** | **datetime** | | [optional] +**deleted_at** | **datetime** | | [optional] +**duration** | **int** | | [optional] +**ended_at** | **datetime** | | [optional] +**file_name** | **str** | | [optional] +**file_size** | **float** | | [optional] +**id** | **str** | | [optional] +**referenced_by_detection_video_id_objects** | [**List[Detection]**](Detection.md) | | [optional] +**started_at** | **datetime** | | [optional] +**status** | **str** | | [optional] +**thumbnail_name** | **str** | | [optional] +**updated_at** | **datetime** | | [optional] + +## Example + +```python +from openapi_client.models.video import Video + +# TODO update the JSON string below +json = "{}" +# create an instance of Video from a JSON string +video_instance = Video.from_json(json) +# print the JSON string representation of the object +print(Video.to_json()) + +# convert the object into a dict +video_dict = video_instance.to_dict() +# create an instance of Video from a dict +video_from_dict = Video.from_dict(video_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/object_detector/docs/VideoApi.md b/object_detector/docs/VideoApi.md new file mode 100644 index 0000000..b7b147d --- /dev/null +++ b/object_detector/docs/VideoApi.md @@ -0,0 +1,992 @@ +# openapi_client.VideoApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_video**](VideoApi.md#delete_video) | **DELETE** /api/videos/{primaryKey} | +[**get_video**](VideoApi.md#get_video) | **GET** /api/videos/{primaryKey} | +[**get_videos**](VideoApi.md#get_videos) | **GET** /api/videos | +[**patch_video**](VideoApi.md#patch_video) | **PATCH** /api/videos/{primaryKey} | +[**post_videos**](VideoApi.md#post_videos) | **POST** /api/videos | +[**put_video**](VideoApi.md#put_video) | **PUT** /api/videos/{primaryKey} | + + +# **delete_video** +> delete_video(primary_key) + + + +### Example + + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.VideoApi(api_client) + primary_key = None # object | Primary key for Video + + try: + api_instance.delete_video(primary_key) + except Exception as e: + print("Exception when calling VideoApi->delete_video: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Video | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful Item Delete for Videos | - | +**0** | Failed Item Delete for Videos | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_video** +> GetVideos200Response get_video(primary_key) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.get_videos200_response import GetVideos200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.VideoApi(api_client) + primary_key = None # object | Primary key for Video + + try: + api_response = api_instance.get_video(primary_key) + print("The response of VideoApi->get_video:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VideoApi->get_video: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Video | + +### Return type + +[**GetVideos200Response**](GetVideos200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Item Fetch for Videos | - | +**0** | Failed Item Fetch for Videos | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_videos** +> GetVideos200Response get_videos(limit=limit, offset=offset, id__eq=id__eq, id__ne=id__ne, id__gt=id__gt, id__gte=id__gte, id__lt=id__lt, id__lte=id__lte, id__in=id__in, id__nin=id__nin, id__notin=id__notin, id__isnull=id__isnull, id__nisnull=id__nisnull, id__isnotnull=id__isnotnull, id__l=id__l, id__like=id__like, id__nl=id__nl, id__nlike=id__nlike, id__notlike=id__notlike, id__il=id__il, id__ilike=id__ilike, id__nil=id__nil, id__nilike=id__nilike, id__notilike=id__notilike, id__desc=id__desc, id__asc=id__asc, created_at__eq=created_at__eq, created_at__ne=created_at__ne, created_at__gt=created_at__gt, created_at__gte=created_at__gte, created_at__lt=created_at__lt, created_at__lte=created_at__lte, created_at__in=created_at__in, created_at__nin=created_at__nin, created_at__notin=created_at__notin, created_at__isnull=created_at__isnull, created_at__nisnull=created_at__nisnull, created_at__isnotnull=created_at__isnotnull, created_at__l=created_at__l, created_at__like=created_at__like, created_at__nl=created_at__nl, created_at__nlike=created_at__nlike, created_at__notlike=created_at__notlike, created_at__il=created_at__il, created_at__ilike=created_at__ilike, created_at__nil=created_at__nil, created_at__nilike=created_at__nilike, created_at__notilike=created_at__notilike, created_at__desc=created_at__desc, created_at__asc=created_at__asc, updated_at__eq=updated_at__eq, updated_at__ne=updated_at__ne, updated_at__gt=updated_at__gt, updated_at__gte=updated_at__gte, updated_at__lt=updated_at__lt, updated_at__lte=updated_at__lte, updated_at__in=updated_at__in, updated_at__nin=updated_at__nin, updated_at__notin=updated_at__notin, updated_at__isnull=updated_at__isnull, updated_at__nisnull=updated_at__nisnull, updated_at__isnotnull=updated_at__isnotnull, updated_at__l=updated_at__l, updated_at__like=updated_at__like, updated_at__nl=updated_at__nl, updated_at__nlike=updated_at__nlike, updated_at__notlike=updated_at__notlike, updated_at__il=updated_at__il, updated_at__ilike=updated_at__ilike, updated_at__nil=updated_at__nil, updated_at__nilike=updated_at__nilike, updated_at__notilike=updated_at__notilike, updated_at__desc=updated_at__desc, updated_at__asc=updated_at__asc, deleted_at__eq=deleted_at__eq, deleted_at__ne=deleted_at__ne, deleted_at__gt=deleted_at__gt, deleted_at__gte=deleted_at__gte, deleted_at__lt=deleted_at__lt, deleted_at__lte=deleted_at__lte, deleted_at__in=deleted_at__in, deleted_at__nin=deleted_at__nin, deleted_at__notin=deleted_at__notin, deleted_at__isnull=deleted_at__isnull, deleted_at__nisnull=deleted_at__nisnull, deleted_at__isnotnull=deleted_at__isnotnull, deleted_at__l=deleted_at__l, deleted_at__like=deleted_at__like, deleted_at__nl=deleted_at__nl, deleted_at__nlike=deleted_at__nlike, deleted_at__notlike=deleted_at__notlike, deleted_at__il=deleted_at__il, deleted_at__ilike=deleted_at__ilike, deleted_at__nil=deleted_at__nil, deleted_at__nilike=deleted_at__nilike, deleted_at__notilike=deleted_at__notilike, deleted_at__desc=deleted_at__desc, deleted_at__asc=deleted_at__asc, file_name__eq=file_name__eq, file_name__ne=file_name__ne, file_name__gt=file_name__gt, file_name__gte=file_name__gte, file_name__lt=file_name__lt, file_name__lte=file_name__lte, file_name__in=file_name__in, file_name__nin=file_name__nin, file_name__notin=file_name__notin, file_name__isnull=file_name__isnull, file_name__nisnull=file_name__nisnull, file_name__isnotnull=file_name__isnotnull, file_name__l=file_name__l, file_name__like=file_name__like, file_name__nl=file_name__nl, file_name__nlike=file_name__nlike, file_name__notlike=file_name__notlike, file_name__il=file_name__il, file_name__ilike=file_name__ilike, file_name__nil=file_name__nil, file_name__nilike=file_name__nilike, file_name__notilike=file_name__notilike, file_name__desc=file_name__desc, file_name__asc=file_name__asc, started_at__eq=started_at__eq, started_at__ne=started_at__ne, started_at__gt=started_at__gt, started_at__gte=started_at__gte, started_at__lt=started_at__lt, started_at__lte=started_at__lte, started_at__in=started_at__in, started_at__nin=started_at__nin, started_at__notin=started_at__notin, started_at__isnull=started_at__isnull, started_at__nisnull=started_at__nisnull, started_at__isnotnull=started_at__isnotnull, started_at__l=started_at__l, started_at__like=started_at__like, started_at__nl=started_at__nl, started_at__nlike=started_at__nlike, started_at__notlike=started_at__notlike, started_at__il=started_at__il, started_at__ilike=started_at__ilike, started_at__nil=started_at__nil, started_at__nilike=started_at__nilike, started_at__notilike=started_at__notilike, started_at__desc=started_at__desc, started_at__asc=started_at__asc, ended_at__eq=ended_at__eq, ended_at__ne=ended_at__ne, ended_at__gt=ended_at__gt, ended_at__gte=ended_at__gte, ended_at__lt=ended_at__lt, ended_at__lte=ended_at__lte, ended_at__in=ended_at__in, ended_at__nin=ended_at__nin, ended_at__notin=ended_at__notin, ended_at__isnull=ended_at__isnull, ended_at__nisnull=ended_at__nisnull, ended_at__isnotnull=ended_at__isnotnull, ended_at__l=ended_at__l, ended_at__like=ended_at__like, ended_at__nl=ended_at__nl, ended_at__nlike=ended_at__nlike, ended_at__notlike=ended_at__notlike, ended_at__il=ended_at__il, ended_at__ilike=ended_at__ilike, ended_at__nil=ended_at__nil, ended_at__nilike=ended_at__nilike, ended_at__notilike=ended_at__notilike, ended_at__desc=ended_at__desc, ended_at__asc=ended_at__asc, duration__eq=duration__eq, duration__ne=duration__ne, duration__gt=duration__gt, duration__gte=duration__gte, duration__lt=duration__lt, duration__lte=duration__lte, duration__in=duration__in, duration__nin=duration__nin, duration__notin=duration__notin, duration__isnull=duration__isnull, duration__nisnull=duration__nisnull, duration__isnotnull=duration__isnotnull, duration__l=duration__l, duration__like=duration__like, duration__nl=duration__nl, duration__nlike=duration__nlike, duration__notlike=duration__notlike, duration__il=duration__il, duration__ilike=duration__ilike, duration__nil=duration__nil, duration__nilike=duration__nilike, duration__notilike=duration__notilike, duration__desc=duration__desc, duration__asc=duration__asc, file_size__eq=file_size__eq, file_size__ne=file_size__ne, file_size__gt=file_size__gt, file_size__gte=file_size__gte, file_size__lt=file_size__lt, file_size__lte=file_size__lte, file_size__in=file_size__in, file_size__nin=file_size__nin, file_size__notin=file_size__notin, file_size__isnull=file_size__isnull, file_size__nisnull=file_size__nisnull, file_size__isnotnull=file_size__isnotnull, file_size__l=file_size__l, file_size__like=file_size__like, file_size__nl=file_size__nl, file_size__nlike=file_size__nlike, file_size__notlike=file_size__notlike, file_size__il=file_size__il, file_size__ilike=file_size__ilike, file_size__nil=file_size__nil, file_size__nilike=file_size__nilike, file_size__notilike=file_size__notilike, file_size__desc=file_size__desc, file_size__asc=file_size__asc, thumbnail_name__eq=thumbnail_name__eq, thumbnail_name__ne=thumbnail_name__ne, thumbnail_name__gt=thumbnail_name__gt, thumbnail_name__gte=thumbnail_name__gte, thumbnail_name__lt=thumbnail_name__lt, thumbnail_name__lte=thumbnail_name__lte, thumbnail_name__in=thumbnail_name__in, thumbnail_name__nin=thumbnail_name__nin, thumbnail_name__notin=thumbnail_name__notin, thumbnail_name__isnull=thumbnail_name__isnull, thumbnail_name__nisnull=thumbnail_name__nisnull, thumbnail_name__isnotnull=thumbnail_name__isnotnull, thumbnail_name__l=thumbnail_name__l, thumbnail_name__like=thumbnail_name__like, thumbnail_name__nl=thumbnail_name__nl, thumbnail_name__nlike=thumbnail_name__nlike, thumbnail_name__notlike=thumbnail_name__notlike, thumbnail_name__il=thumbnail_name__il, thumbnail_name__ilike=thumbnail_name__ilike, thumbnail_name__nil=thumbnail_name__nil, thumbnail_name__nilike=thumbnail_name__nilike, thumbnail_name__notilike=thumbnail_name__notilike, thumbnail_name__desc=thumbnail_name__desc, thumbnail_name__asc=thumbnail_name__asc, status__eq=status__eq, status__ne=status__ne, status__gt=status__gt, status__gte=status__gte, status__lt=status__lt, status__lte=status__lte, status__in=status__in, status__nin=status__nin, status__notin=status__notin, status__isnull=status__isnull, status__nisnull=status__nisnull, status__isnotnull=status__isnotnull, status__l=status__l, status__like=status__like, status__nl=status__nl, status__nlike=status__nlike, status__notlike=status__notlike, status__il=status__il, status__ilike=status__ilike, status__nil=status__nil, status__nilike=status__nilike, status__notilike=status__notilike, status__desc=status__desc, status__asc=status__asc, camera_id__eq=camera_id__eq, camera_id__ne=camera_id__ne, camera_id__gt=camera_id__gt, camera_id__gte=camera_id__gte, camera_id__lt=camera_id__lt, camera_id__lte=camera_id__lte, camera_id__in=camera_id__in, camera_id__nin=camera_id__nin, camera_id__notin=camera_id__notin, camera_id__isnull=camera_id__isnull, camera_id__nisnull=camera_id__nisnull, camera_id__isnotnull=camera_id__isnotnull, camera_id__l=camera_id__l, camera_id__like=camera_id__like, camera_id__nl=camera_id__nl, camera_id__nlike=camera_id__nlike, camera_id__notlike=camera_id__notlike, camera_id__il=camera_id__il, camera_id__ilike=camera_id__ilike, camera_id__nil=camera_id__nil, camera_id__nilike=camera_id__nilike, camera_id__notilike=camera_id__notilike, camera_id__desc=camera_id__desc, camera_id__asc=camera_id__asc) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.get_videos200_response import GetVideos200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.VideoApi(api_client) + limit = 56 # int | SQL LIMIT operator (optional) + offset = 56 # int | SQL OFFSET operator (optional) + id__eq = 'id__eq_example' # str | SQL = operator (optional) + id__ne = 'id__ne_example' # str | SQL != operator (optional) + id__gt = 'id__gt_example' # str | SQL > operator, may not work with all column types (optional) + id__gte = 'id__gte_example' # str | SQL >= operator, may not work with all column types (optional) + id__lt = 'id__lt_example' # str | SQL < operator, may not work with all column types (optional) + id__lte = 'id__lte_example' # str | SQL <= operator, may not work with all column types (optional) + id__in = 'id__in_example' # str | SQL IN operator, permits comma-separated values (optional) + id__nin = 'id__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + id__notin = 'id__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + id__isnull = 'id__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + id__nisnull = 'id__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + id__isnotnull = 'id__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + id__l = 'id__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__like = 'id__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nl = 'id__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nlike = 'id__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__notlike = 'id__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__il = 'id__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__ilike = 'id__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nil = 'id__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__nilike = 'id__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__notilike = 'id__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + id__desc = 'id__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + id__asc = 'id__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + created_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + created_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + created_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + created_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + created_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + created_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + created_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + created_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + created_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + created_at__isnull = 'created_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + created_at__nisnull = 'created_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + created_at__isnotnull = 'created_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + created_at__l = 'created_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__like = 'created_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nl = 'created_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nlike = 'created_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__notlike = 'created_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__il = 'created_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__ilike = 'created_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nil = 'created_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__nilike = 'created_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__notilike = 'created_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + created_at__desc = 'created_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + created_at__asc = 'created_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + updated_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + updated_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + updated_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + updated_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + updated_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + updated_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + updated_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + updated_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + updated_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + updated_at__isnull = 'updated_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + updated_at__nisnull = 'updated_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + updated_at__isnotnull = 'updated_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + updated_at__l = 'updated_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__like = 'updated_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nl = 'updated_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nlike = 'updated_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__notlike = 'updated_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__il = 'updated_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__ilike = 'updated_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nil = 'updated_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__nilike = 'updated_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__notilike = 'updated_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + updated_at__desc = 'updated_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + updated_at__asc = 'updated_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + deleted_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + deleted_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + deleted_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + deleted_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + deleted_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + deleted_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + deleted_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + deleted_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + deleted_at__isnull = 'deleted_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__nisnull = 'deleted_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__isnotnull = 'deleted_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__l = 'deleted_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__like = 'deleted_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nl = 'deleted_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nlike = 'deleted_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__notlike = 'deleted_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__il = 'deleted_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__ilike = 'deleted_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nil = 'deleted_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__nilike = 'deleted_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__notilike = 'deleted_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + deleted_at__desc = 'deleted_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + deleted_at__asc = 'deleted_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + file_name__eq = 'file_name__eq_example' # str | SQL = operator (optional) + file_name__ne = 'file_name__ne_example' # str | SQL != operator (optional) + file_name__gt = 'file_name__gt_example' # str | SQL > operator, may not work with all column types (optional) + file_name__gte = 'file_name__gte_example' # str | SQL >= operator, may not work with all column types (optional) + file_name__lt = 'file_name__lt_example' # str | SQL < operator, may not work with all column types (optional) + file_name__lte = 'file_name__lte_example' # str | SQL <= operator, may not work with all column types (optional) + file_name__in = 'file_name__in_example' # str | SQL IN operator, permits comma-separated values (optional) + file_name__nin = 'file_name__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + file_name__notin = 'file_name__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + file_name__isnull = 'file_name__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + file_name__nisnull = 'file_name__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + file_name__isnotnull = 'file_name__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + file_name__l = 'file_name__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_name__like = 'file_name__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_name__nl = 'file_name__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_name__nlike = 'file_name__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_name__notlike = 'file_name__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_name__il = 'file_name__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_name__ilike = 'file_name__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_name__nil = 'file_name__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_name__nilike = 'file_name__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_name__notilike = 'file_name__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_name__desc = 'file_name__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + file_name__asc = 'file_name__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + started_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + started_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + started_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + started_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + started_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + started_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + started_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + started_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + started_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + started_at__isnull = 'started_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + started_at__nisnull = 'started_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + started_at__isnotnull = 'started_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + started_at__l = 'started_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + started_at__like = 'started_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + started_at__nl = 'started_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + started_at__nlike = 'started_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + started_at__notlike = 'started_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + started_at__il = 'started_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + started_at__ilike = 'started_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + started_at__nil = 'started_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + started_at__nilike = 'started_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + started_at__notilike = 'started_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + started_at__desc = 'started_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + started_at__asc = 'started_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + ended_at__eq = '2013-10-20T19:20:30+01:00' # datetime | SQL = operator (optional) + ended_at__ne = '2013-10-20T19:20:30+01:00' # datetime | SQL != operator (optional) + ended_at__gt = '2013-10-20T19:20:30+01:00' # datetime | SQL > operator, may not work with all column types (optional) + ended_at__gte = '2013-10-20T19:20:30+01:00' # datetime | SQL >= operator, may not work with all column types (optional) + ended_at__lt = '2013-10-20T19:20:30+01:00' # datetime | SQL < operator, may not work with all column types (optional) + ended_at__lte = '2013-10-20T19:20:30+01:00' # datetime | SQL <= operator, may not work with all column types (optional) + ended_at__in = '2013-10-20T19:20:30+01:00' # datetime | SQL IN operator, permits comma-separated values (optional) + ended_at__nin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + ended_at__notin = '2013-10-20T19:20:30+01:00' # datetime | SQL NOT IN operator, permits comma-separated values (optional) + ended_at__isnull = 'ended_at__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + ended_at__nisnull = 'ended_at__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + ended_at__isnotnull = 'ended_at__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + ended_at__l = 'ended_at__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + ended_at__like = 'ended_at__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + ended_at__nl = 'ended_at__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + ended_at__nlike = 'ended_at__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + ended_at__notlike = 'ended_at__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + ended_at__il = 'ended_at__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + ended_at__ilike = 'ended_at__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + ended_at__nil = 'ended_at__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + ended_at__nilike = 'ended_at__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + ended_at__notilike = 'ended_at__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + ended_at__desc = 'ended_at__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + ended_at__asc = 'ended_at__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + duration__eq = 56 # int | SQL = operator (optional) + duration__ne = 56 # int | SQL != operator (optional) + duration__gt = 56 # int | SQL > operator, may not work with all column types (optional) + duration__gte = 56 # int | SQL >= operator, may not work with all column types (optional) + duration__lt = 56 # int | SQL < operator, may not work with all column types (optional) + duration__lte = 56 # int | SQL <= operator, may not work with all column types (optional) + duration__in = 56 # int | SQL IN operator, permits comma-separated values (optional) + duration__nin = 56 # int | SQL NOT IN operator, permits comma-separated values (optional) + duration__notin = 56 # int | SQL NOT IN operator, permits comma-separated values (optional) + duration__isnull = 'duration__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + duration__nisnull = 'duration__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + duration__isnotnull = 'duration__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + duration__l = 'duration__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + duration__like = 'duration__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + duration__nl = 'duration__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + duration__nlike = 'duration__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + duration__notlike = 'duration__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + duration__il = 'duration__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + duration__ilike = 'duration__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + duration__nil = 'duration__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + duration__nilike = 'duration__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + duration__notilike = 'duration__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + duration__desc = 'duration__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + duration__asc = 'duration__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + file_size__eq = 3.4 # float | SQL = operator (optional) + file_size__ne = 3.4 # float | SQL != operator (optional) + file_size__gt = 3.4 # float | SQL > operator, may not work with all column types (optional) + file_size__gte = 3.4 # float | SQL >= operator, may not work with all column types (optional) + file_size__lt = 3.4 # float | SQL < operator, may not work with all column types (optional) + file_size__lte = 3.4 # float | SQL <= operator, may not work with all column types (optional) + file_size__in = 3.4 # float | SQL IN operator, permits comma-separated values (optional) + file_size__nin = 3.4 # float | SQL NOT IN operator, permits comma-separated values (optional) + file_size__notin = 3.4 # float | SQL NOT IN operator, permits comma-separated values (optional) + file_size__isnull = 'file_size__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + file_size__nisnull = 'file_size__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + file_size__isnotnull = 'file_size__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + file_size__l = 'file_size__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_size__like = 'file_size__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_size__nl = 'file_size__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_size__nlike = 'file_size__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_size__notlike = 'file_size__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_size__il = 'file_size__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_size__ilike = 'file_size__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_size__nil = 'file_size__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_size__nilike = 'file_size__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_size__notilike = 'file_size__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + file_size__desc = 'file_size__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + file_size__asc = 'file_size__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + thumbnail_name__eq = 'thumbnail_name__eq_example' # str | SQL = operator (optional) + thumbnail_name__ne = 'thumbnail_name__ne_example' # str | SQL != operator (optional) + thumbnail_name__gt = 'thumbnail_name__gt_example' # str | SQL > operator, may not work with all column types (optional) + thumbnail_name__gte = 'thumbnail_name__gte_example' # str | SQL >= operator, may not work with all column types (optional) + thumbnail_name__lt = 'thumbnail_name__lt_example' # str | SQL < operator, may not work with all column types (optional) + thumbnail_name__lte = 'thumbnail_name__lte_example' # str | SQL <= operator, may not work with all column types (optional) + thumbnail_name__in = 'thumbnail_name__in_example' # str | SQL IN operator, permits comma-separated values (optional) + thumbnail_name__nin = 'thumbnail_name__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + thumbnail_name__notin = 'thumbnail_name__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + thumbnail_name__isnull = 'thumbnail_name__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + thumbnail_name__nisnull = 'thumbnail_name__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + thumbnail_name__isnotnull = 'thumbnail_name__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + thumbnail_name__l = 'thumbnail_name__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + thumbnail_name__like = 'thumbnail_name__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + thumbnail_name__nl = 'thumbnail_name__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + thumbnail_name__nlike = 'thumbnail_name__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + thumbnail_name__notlike = 'thumbnail_name__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + thumbnail_name__il = 'thumbnail_name__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + thumbnail_name__ilike = 'thumbnail_name__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + thumbnail_name__nil = 'thumbnail_name__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + thumbnail_name__nilike = 'thumbnail_name__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + thumbnail_name__notilike = 'thumbnail_name__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + thumbnail_name__desc = 'thumbnail_name__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + thumbnail_name__asc = 'thumbnail_name__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + status__eq = 'status__eq_example' # str | SQL = operator (optional) + status__ne = 'status__ne_example' # str | SQL != operator (optional) + status__gt = 'status__gt_example' # str | SQL > operator, may not work with all column types (optional) + status__gte = 'status__gte_example' # str | SQL >= operator, may not work with all column types (optional) + status__lt = 'status__lt_example' # str | SQL < operator, may not work with all column types (optional) + status__lte = 'status__lte_example' # str | SQL <= operator, may not work with all column types (optional) + status__in = 'status__in_example' # str | SQL IN operator, permits comma-separated values (optional) + status__nin = 'status__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + status__notin = 'status__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + status__isnull = 'status__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + status__nisnull = 'status__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + status__isnotnull = 'status__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + status__l = 'status__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + status__like = 'status__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + status__nl = 'status__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + status__nlike = 'status__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + status__notlike = 'status__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + status__il = 'status__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + status__ilike = 'status__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + status__nil = 'status__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + status__nilike = 'status__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + status__notilike = 'status__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + status__desc = 'status__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + status__asc = 'status__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + camera_id__eq = 'camera_id__eq_example' # str | SQL = operator (optional) + camera_id__ne = 'camera_id__ne_example' # str | SQL != operator (optional) + camera_id__gt = 'camera_id__gt_example' # str | SQL > operator, may not work with all column types (optional) + camera_id__gte = 'camera_id__gte_example' # str | SQL >= operator, may not work with all column types (optional) + camera_id__lt = 'camera_id__lt_example' # str | SQL < operator, may not work with all column types (optional) + camera_id__lte = 'camera_id__lte_example' # str | SQL <= operator, may not work with all column types (optional) + camera_id__in = 'camera_id__in_example' # str | SQL IN operator, permits comma-separated values (optional) + camera_id__nin = 'camera_id__nin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + camera_id__notin = 'camera_id__notin_example' # str | SQL NOT IN operator, permits comma-separated values (optional) + camera_id__isnull = 'camera_id__isnull_example' # str | SQL IS NULL operator, value is ignored (presence of key is sufficient) (optional) + camera_id__nisnull = 'camera_id__nisnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + camera_id__isnotnull = 'camera_id__isnotnull_example' # str | SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) (optional) + camera_id__l = 'camera_id__l_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__like = 'camera_id__like_example' # str | SQL LIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__nl = 'camera_id__nl_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__nlike = 'camera_id__nlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__notlike = 'camera_id__notlike_example' # str | SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__il = 'camera_id__il_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__ilike = 'camera_id__ilike_example' # str | SQL ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__nil = 'camera_id__nil_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__nilike = 'camera_id__nilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__notilike = 'camera_id__notilike_example' # str | SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % (optional) + camera_id__desc = 'camera_id__desc_example' # str | SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) (optional) + camera_id__asc = 'camera_id__asc_example' # str | SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) (optional) + + try: + api_response = api_instance.get_videos(limit=limit, offset=offset, id__eq=id__eq, id__ne=id__ne, id__gt=id__gt, id__gte=id__gte, id__lt=id__lt, id__lte=id__lte, id__in=id__in, id__nin=id__nin, id__notin=id__notin, id__isnull=id__isnull, id__nisnull=id__nisnull, id__isnotnull=id__isnotnull, id__l=id__l, id__like=id__like, id__nl=id__nl, id__nlike=id__nlike, id__notlike=id__notlike, id__il=id__il, id__ilike=id__ilike, id__nil=id__nil, id__nilike=id__nilike, id__notilike=id__notilike, id__desc=id__desc, id__asc=id__asc, created_at__eq=created_at__eq, created_at__ne=created_at__ne, created_at__gt=created_at__gt, created_at__gte=created_at__gte, created_at__lt=created_at__lt, created_at__lte=created_at__lte, created_at__in=created_at__in, created_at__nin=created_at__nin, created_at__notin=created_at__notin, created_at__isnull=created_at__isnull, created_at__nisnull=created_at__nisnull, created_at__isnotnull=created_at__isnotnull, created_at__l=created_at__l, created_at__like=created_at__like, created_at__nl=created_at__nl, created_at__nlike=created_at__nlike, created_at__notlike=created_at__notlike, created_at__il=created_at__il, created_at__ilike=created_at__ilike, created_at__nil=created_at__nil, created_at__nilike=created_at__nilike, created_at__notilike=created_at__notilike, created_at__desc=created_at__desc, created_at__asc=created_at__asc, updated_at__eq=updated_at__eq, updated_at__ne=updated_at__ne, updated_at__gt=updated_at__gt, updated_at__gte=updated_at__gte, updated_at__lt=updated_at__lt, updated_at__lte=updated_at__lte, updated_at__in=updated_at__in, updated_at__nin=updated_at__nin, updated_at__notin=updated_at__notin, updated_at__isnull=updated_at__isnull, updated_at__nisnull=updated_at__nisnull, updated_at__isnotnull=updated_at__isnotnull, updated_at__l=updated_at__l, updated_at__like=updated_at__like, updated_at__nl=updated_at__nl, updated_at__nlike=updated_at__nlike, updated_at__notlike=updated_at__notlike, updated_at__il=updated_at__il, updated_at__ilike=updated_at__ilike, updated_at__nil=updated_at__nil, updated_at__nilike=updated_at__nilike, updated_at__notilike=updated_at__notilike, updated_at__desc=updated_at__desc, updated_at__asc=updated_at__asc, deleted_at__eq=deleted_at__eq, deleted_at__ne=deleted_at__ne, deleted_at__gt=deleted_at__gt, deleted_at__gte=deleted_at__gte, deleted_at__lt=deleted_at__lt, deleted_at__lte=deleted_at__lte, deleted_at__in=deleted_at__in, deleted_at__nin=deleted_at__nin, deleted_at__notin=deleted_at__notin, deleted_at__isnull=deleted_at__isnull, deleted_at__nisnull=deleted_at__nisnull, deleted_at__isnotnull=deleted_at__isnotnull, deleted_at__l=deleted_at__l, deleted_at__like=deleted_at__like, deleted_at__nl=deleted_at__nl, deleted_at__nlike=deleted_at__nlike, deleted_at__notlike=deleted_at__notlike, deleted_at__il=deleted_at__il, deleted_at__ilike=deleted_at__ilike, deleted_at__nil=deleted_at__nil, deleted_at__nilike=deleted_at__nilike, deleted_at__notilike=deleted_at__notilike, deleted_at__desc=deleted_at__desc, deleted_at__asc=deleted_at__asc, file_name__eq=file_name__eq, file_name__ne=file_name__ne, file_name__gt=file_name__gt, file_name__gte=file_name__gte, file_name__lt=file_name__lt, file_name__lte=file_name__lte, file_name__in=file_name__in, file_name__nin=file_name__nin, file_name__notin=file_name__notin, file_name__isnull=file_name__isnull, file_name__nisnull=file_name__nisnull, file_name__isnotnull=file_name__isnotnull, file_name__l=file_name__l, file_name__like=file_name__like, file_name__nl=file_name__nl, file_name__nlike=file_name__nlike, file_name__notlike=file_name__notlike, file_name__il=file_name__il, file_name__ilike=file_name__ilike, file_name__nil=file_name__nil, file_name__nilike=file_name__nilike, file_name__notilike=file_name__notilike, file_name__desc=file_name__desc, file_name__asc=file_name__asc, started_at__eq=started_at__eq, started_at__ne=started_at__ne, started_at__gt=started_at__gt, started_at__gte=started_at__gte, started_at__lt=started_at__lt, started_at__lte=started_at__lte, started_at__in=started_at__in, started_at__nin=started_at__nin, started_at__notin=started_at__notin, started_at__isnull=started_at__isnull, started_at__nisnull=started_at__nisnull, started_at__isnotnull=started_at__isnotnull, started_at__l=started_at__l, started_at__like=started_at__like, started_at__nl=started_at__nl, started_at__nlike=started_at__nlike, started_at__notlike=started_at__notlike, started_at__il=started_at__il, started_at__ilike=started_at__ilike, started_at__nil=started_at__nil, started_at__nilike=started_at__nilike, started_at__notilike=started_at__notilike, started_at__desc=started_at__desc, started_at__asc=started_at__asc, ended_at__eq=ended_at__eq, ended_at__ne=ended_at__ne, ended_at__gt=ended_at__gt, ended_at__gte=ended_at__gte, ended_at__lt=ended_at__lt, ended_at__lte=ended_at__lte, ended_at__in=ended_at__in, ended_at__nin=ended_at__nin, ended_at__notin=ended_at__notin, ended_at__isnull=ended_at__isnull, ended_at__nisnull=ended_at__nisnull, ended_at__isnotnull=ended_at__isnotnull, ended_at__l=ended_at__l, ended_at__like=ended_at__like, ended_at__nl=ended_at__nl, ended_at__nlike=ended_at__nlike, ended_at__notlike=ended_at__notlike, ended_at__il=ended_at__il, ended_at__ilike=ended_at__ilike, ended_at__nil=ended_at__nil, ended_at__nilike=ended_at__nilike, ended_at__notilike=ended_at__notilike, ended_at__desc=ended_at__desc, ended_at__asc=ended_at__asc, duration__eq=duration__eq, duration__ne=duration__ne, duration__gt=duration__gt, duration__gte=duration__gte, duration__lt=duration__lt, duration__lte=duration__lte, duration__in=duration__in, duration__nin=duration__nin, duration__notin=duration__notin, duration__isnull=duration__isnull, duration__nisnull=duration__nisnull, duration__isnotnull=duration__isnotnull, duration__l=duration__l, duration__like=duration__like, duration__nl=duration__nl, duration__nlike=duration__nlike, duration__notlike=duration__notlike, duration__il=duration__il, duration__ilike=duration__ilike, duration__nil=duration__nil, duration__nilike=duration__nilike, duration__notilike=duration__notilike, duration__desc=duration__desc, duration__asc=duration__asc, file_size__eq=file_size__eq, file_size__ne=file_size__ne, file_size__gt=file_size__gt, file_size__gte=file_size__gte, file_size__lt=file_size__lt, file_size__lte=file_size__lte, file_size__in=file_size__in, file_size__nin=file_size__nin, file_size__notin=file_size__notin, file_size__isnull=file_size__isnull, file_size__nisnull=file_size__nisnull, file_size__isnotnull=file_size__isnotnull, file_size__l=file_size__l, file_size__like=file_size__like, file_size__nl=file_size__nl, file_size__nlike=file_size__nlike, file_size__notlike=file_size__notlike, file_size__il=file_size__il, file_size__ilike=file_size__ilike, file_size__nil=file_size__nil, file_size__nilike=file_size__nilike, file_size__notilike=file_size__notilike, file_size__desc=file_size__desc, file_size__asc=file_size__asc, thumbnail_name__eq=thumbnail_name__eq, thumbnail_name__ne=thumbnail_name__ne, thumbnail_name__gt=thumbnail_name__gt, thumbnail_name__gte=thumbnail_name__gte, thumbnail_name__lt=thumbnail_name__lt, thumbnail_name__lte=thumbnail_name__lte, thumbnail_name__in=thumbnail_name__in, thumbnail_name__nin=thumbnail_name__nin, thumbnail_name__notin=thumbnail_name__notin, thumbnail_name__isnull=thumbnail_name__isnull, thumbnail_name__nisnull=thumbnail_name__nisnull, thumbnail_name__isnotnull=thumbnail_name__isnotnull, thumbnail_name__l=thumbnail_name__l, thumbnail_name__like=thumbnail_name__like, thumbnail_name__nl=thumbnail_name__nl, thumbnail_name__nlike=thumbnail_name__nlike, thumbnail_name__notlike=thumbnail_name__notlike, thumbnail_name__il=thumbnail_name__il, thumbnail_name__ilike=thumbnail_name__ilike, thumbnail_name__nil=thumbnail_name__nil, thumbnail_name__nilike=thumbnail_name__nilike, thumbnail_name__notilike=thumbnail_name__notilike, thumbnail_name__desc=thumbnail_name__desc, thumbnail_name__asc=thumbnail_name__asc, status__eq=status__eq, status__ne=status__ne, status__gt=status__gt, status__gte=status__gte, status__lt=status__lt, status__lte=status__lte, status__in=status__in, status__nin=status__nin, status__notin=status__notin, status__isnull=status__isnull, status__nisnull=status__nisnull, status__isnotnull=status__isnotnull, status__l=status__l, status__like=status__like, status__nl=status__nl, status__nlike=status__nlike, status__notlike=status__notlike, status__il=status__il, status__ilike=status__ilike, status__nil=status__nil, status__nilike=status__nilike, status__notilike=status__notilike, status__desc=status__desc, status__asc=status__asc, camera_id__eq=camera_id__eq, camera_id__ne=camera_id__ne, camera_id__gt=camera_id__gt, camera_id__gte=camera_id__gte, camera_id__lt=camera_id__lt, camera_id__lte=camera_id__lte, camera_id__in=camera_id__in, camera_id__nin=camera_id__nin, camera_id__notin=camera_id__notin, camera_id__isnull=camera_id__isnull, camera_id__nisnull=camera_id__nisnull, camera_id__isnotnull=camera_id__isnotnull, camera_id__l=camera_id__l, camera_id__like=camera_id__like, camera_id__nl=camera_id__nl, camera_id__nlike=camera_id__nlike, camera_id__notlike=camera_id__notlike, camera_id__il=camera_id__il, camera_id__ilike=camera_id__ilike, camera_id__nil=camera_id__nil, camera_id__nilike=camera_id__nilike, camera_id__notilike=camera_id__notilike, camera_id__desc=camera_id__desc, camera_id__asc=camera_id__asc) + print("The response of VideoApi->get_videos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VideoApi->get_videos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| SQL LIMIT operator | [optional] + **offset** | **int**| SQL OFFSET operator | [optional] + **id__eq** | **str**| SQL = operator | [optional] + **id__ne** | **str**| SQL != operator | [optional] + **id__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **id__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **id__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **id__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **id__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **id__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **id__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **id__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **id__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **id__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **id__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **id__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **id__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__eq** | **datetime**| SQL = operator | [optional] + **created_at__ne** | **datetime**| SQL != operator | [optional] + **created_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **created_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **created_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **created_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **created_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **created_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **created_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **created_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **created_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **created_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__eq** | **datetime**| SQL = operator | [optional] + **updated_at__ne** | **datetime**| SQL != operator | [optional] + **updated_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **updated_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **updated_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **updated_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **updated_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **updated_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **updated_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **updated_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **updated_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **updated_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__eq** | **datetime**| SQL = operator | [optional] + **deleted_at__ne** | **datetime**| SQL != operator | [optional] + **deleted_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **deleted_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **deleted_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **deleted_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **deleted_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **deleted_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **deleted_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **deleted_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **deleted_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **deleted_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **file_name__eq** | **str**| SQL = operator | [optional] + **file_name__ne** | **str**| SQL != operator | [optional] + **file_name__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **file_name__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **file_name__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **file_name__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **file_name__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **file_name__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **file_name__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **file_name__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **file_name__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **file_name__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **file_name__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_name__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_name__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_name__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_name__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_name__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_name__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_name__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_name__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_name__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_name__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **file_name__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **started_at__eq** | **datetime**| SQL = operator | [optional] + **started_at__ne** | **datetime**| SQL != operator | [optional] + **started_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **started_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **started_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **started_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **started_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **started_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **started_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **started_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **started_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **started_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **started_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **started_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **started_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **started_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **started_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **started_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **started_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **started_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **started_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **started_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **started_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **started_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **ended_at__eq** | **datetime**| SQL = operator | [optional] + **ended_at__ne** | **datetime**| SQL != operator | [optional] + **ended_at__gt** | **datetime**| SQL > operator, may not work with all column types | [optional] + **ended_at__gte** | **datetime**| SQL >= operator, may not work with all column types | [optional] + **ended_at__lt** | **datetime**| SQL < operator, may not work with all column types | [optional] + **ended_at__lte** | **datetime**| SQL <= operator, may not work with all column types | [optional] + **ended_at__in** | **datetime**| SQL IN operator, permits comma-separated values | [optional] + **ended_at__nin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **ended_at__notin** | **datetime**| SQL NOT IN operator, permits comma-separated values | [optional] + **ended_at__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **ended_at__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **ended_at__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **ended_at__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **ended_at__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **ended_at__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **ended_at__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **ended_at__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **ended_at__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **ended_at__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **ended_at__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **ended_at__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **ended_at__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **ended_at__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **ended_at__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **duration__eq** | **int**| SQL = operator | [optional] + **duration__ne** | **int**| SQL != operator | [optional] + **duration__gt** | **int**| SQL > operator, may not work with all column types | [optional] + **duration__gte** | **int**| SQL >= operator, may not work with all column types | [optional] + **duration__lt** | **int**| SQL < operator, may not work with all column types | [optional] + **duration__lte** | **int**| SQL <= operator, may not work with all column types | [optional] + **duration__in** | **int**| SQL IN operator, permits comma-separated values | [optional] + **duration__nin** | **int**| SQL NOT IN operator, permits comma-separated values | [optional] + **duration__notin** | **int**| SQL NOT IN operator, permits comma-separated values | [optional] + **duration__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **duration__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **duration__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **duration__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **duration__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **duration__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **duration__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **duration__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **duration__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **duration__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **duration__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **duration__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **duration__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **duration__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **duration__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **file_size__eq** | **float**| SQL = operator | [optional] + **file_size__ne** | **float**| SQL != operator | [optional] + **file_size__gt** | **float**| SQL > operator, may not work with all column types | [optional] + **file_size__gte** | **float**| SQL >= operator, may not work with all column types | [optional] + **file_size__lt** | **float**| SQL < operator, may not work with all column types | [optional] + **file_size__lte** | **float**| SQL <= operator, may not work with all column types | [optional] + **file_size__in** | **float**| SQL IN operator, permits comma-separated values | [optional] + **file_size__nin** | **float**| SQL NOT IN operator, permits comma-separated values | [optional] + **file_size__notin** | **float**| SQL NOT IN operator, permits comma-separated values | [optional] + **file_size__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **file_size__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **file_size__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **file_size__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_size__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_size__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_size__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_size__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_size__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_size__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_size__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_size__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_size__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **file_size__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **file_size__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **thumbnail_name__eq** | **str**| SQL = operator | [optional] + **thumbnail_name__ne** | **str**| SQL != operator | [optional] + **thumbnail_name__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **thumbnail_name__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **thumbnail_name__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **thumbnail_name__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **thumbnail_name__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **thumbnail_name__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **thumbnail_name__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **thumbnail_name__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **thumbnail_name__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **thumbnail_name__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **thumbnail_name__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **thumbnail_name__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **thumbnail_name__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **thumbnail_name__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **thumbnail_name__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **thumbnail_name__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **thumbnail_name__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **thumbnail_name__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **thumbnail_name__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **thumbnail_name__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **thumbnail_name__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **thumbnail_name__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **status__eq** | **str**| SQL = operator | [optional] + **status__ne** | **str**| SQL != operator | [optional] + **status__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **status__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **status__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **status__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **status__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **status__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **status__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **status__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **status__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **status__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **status__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **status__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **status__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **status__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **status__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **status__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **status__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **status__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **status__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **status__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **status__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **status__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + **camera_id__eq** | **str**| SQL = operator | [optional] + **camera_id__ne** | **str**| SQL != operator | [optional] + **camera_id__gt** | **str**| SQL > operator, may not work with all column types | [optional] + **camera_id__gte** | **str**| SQL >= operator, may not work with all column types | [optional] + **camera_id__lt** | **str**| SQL < operator, may not work with all column types | [optional] + **camera_id__lte** | **str**| SQL <= operator, may not work with all column types | [optional] + **camera_id__in** | **str**| SQL IN operator, permits comma-separated values | [optional] + **camera_id__nin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **camera_id__notin** | **str**| SQL NOT IN operator, permits comma-separated values | [optional] + **camera_id__isnull** | **str**| SQL IS NULL operator, value is ignored (presence of key is sufficient) | [optional] + **camera_id__nisnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **camera_id__isnotnull** | **str**| SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) | [optional] + **camera_id__l** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__like** | **str**| SQL LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__nl** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__nlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__notlike** | **str**| SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__il** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__ilike** | **str**| SQL ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__nil** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__nilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__notilike** | **str**| SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % | [optional] + **camera_id__desc** | **str**| SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) | [optional] + **camera_id__asc** | **str**| SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) | [optional] + +### Return type + +[**GetVideos200Response**](GetVideos200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful List Fetch for Videos | - | +**0** | Failed List Fetch for Videos | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_video** +> GetVideos200Response patch_video(primary_key, video) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.get_videos200_response import GetVideos200Response +from openapi_client.models.video import Video +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.VideoApi(api_client) + primary_key = None # object | Primary key for Video + video = openapi_client.Video() # Video | + + try: + api_response = api_instance.patch_video(primary_key, video) + print("The response of VideoApi->patch_video:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VideoApi->patch_video: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Video | + **video** | [**Video**](Video.md)| | + +### Return type + +[**GetVideos200Response**](GetVideos200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Item Update for Videos | - | +**0** | Failed Item Update for Videos | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_videos** +> GetVideos200Response post_videos(video) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.get_videos200_response import GetVideos200Response +from openapi_client.models.video import Video +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.VideoApi(api_client) + video = [openapi_client.Video()] # List[Video] | + + try: + api_response = api_instance.post_videos(video) + print("The response of VideoApi->post_videos:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VideoApi->post_videos: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **video** | [**List[Video]**](Video.md)| | + +### Return type + +[**GetVideos200Response**](GetVideos200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful List Create for Videos | - | +**0** | Failed List Create for Videos | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_video** +> GetVideos200Response put_video(primary_key, video) + + + +### Example + + +```python +import openapi_client +from openapi_client.models.get_videos200_response import GetVideos200Response +from openapi_client.models.video import Video +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.VideoApi(api_client) + primary_key = None # object | Primary key for Video + video = openapi_client.Video() # Video | + + try: + api_response = api_instance.put_video(primary_key, video) + print("The response of VideoApi->put_video:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling VideoApi->put_video: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_key** | [**object**](.md)| Primary key for Video | + **video** | [**Video**](Video.md)| | + +### Return type + +[**GetVideos200Response**](GetVideos200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Item Replace for Videos | - | +**0** | Failed Item Replace for Videos | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/object_detector/git_push.sh b/object_detector/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/object_detector/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/object_detector/object_detector.py b/object_detector/object_detector.py new file mode 100644 index 0000000..68e2585 --- /dev/null +++ b/object_detector/object_detector.py @@ -0,0 +1,185 @@ +import os +import time +import datetime + +from typing import List, cast + +from ultralytics import YOLO +from ultralytics.models.yolo.detect.predict import Results + +from .openapi_client import ( + ApiClient, + Configuration, + CameraApi, + Camera, + VideoApi, + Video, + DetectionApi, + Detection, + DetectionBoundingBoxInner, +) + +debug = os.getenv("DEBUG", "") == "1" + + +def do(camera: Camera, video_api: VideoApi, detection_api: DetectionApi, one_shot_video_file_name: str | None = None): + videos_response = None + + if one_shot_video_file_name: + videos_response = video_api.get_videos( + file_name__eq=one_shot_video_file_name, + started_at__desc="", + ) + else: + videos_response = video_api.get_videos( + camera_id__eq=camera.id, + status__eq="needs detection", + started_at__desc="", + ) + + videos = videos_response.objects or [] + + if not videos: + return + + for video in videos: + print(f"{video.file_name} - {video.status} - {video.started_at} - {video.duration}") + + before = datetime.datetime.now() + + if one_shot_video_file_name: + detections_response = detection_api.get_detections(camera_id__eq=camera.id) + + for detection in detections_response.objects or []: + print(f"deleting old detection {detection.id}") + detection_api.delete_detection(detection.id) + + video_api.patch_video(video.id, Video(status="detecting")) + + model = YOLO("yolov8n.pt") + results = model( + f"media/{video.file_name}", + stream=True, # this causes the results variable to be a generator + vid_stride=4, + verbose=debug, + ) + + detections: List[Detection] = [] + + for result in cast(Results, results): + + for box in result.boxes or []: # should be one box per result (because stream=True) + class_id = [int(v) for v in box.cls][0] + class_name = result.names[class_id] + confidence = [float(v) for v in box.conf][0] + + for raw_xyxy in box.xyxy: + ltx, lty, rbx, rby = [float(v) for v in raw_xyxy] + + polygon = [ + (ltx, lty), # left top + (rbx, lty), # right top + (rbx, rby), # right bottom + (ltx, rby), # left bottom + (ltx, lty), # left top again (postgres likes its polygons closed off) + ] + + bounding_box = [ + DetectionBoundingBoxInner( + X=p[0], + Y=p[1], + ) + for p in polygon + ] + + cx, cy, _, _ = [float(v) for v in box.xywh[0]] + + centroid = DetectionBoundingBoxInner( + X=cx, + Y=cy, + ) + + print(f"{class_name} ({class_id}) @ {confidence} {[(ltx, lty), (rbx, rby)]} {(cx, cy)}") + + detection = Detection( + class_id=class_id, + class_name=class_name, + score=confidence, + seen_at=video.started_at, # TODO: need to tie this to video time somehow- could mean big refactor + bounding_box=bounding_box, + centroid=centroid, + video_id=video.id, + camera_id=video.camera_id, + ) + + detections.append(detection) + + print(f"posting {len(detections)} detections") + + detection_api.post_detections(detections) + + print(f"updating video") + + before_request = datetime.datetime.now() + + video_api.patch_video(video.id, Video(status="needs tracking")) + + after = datetime.datetime.now() + + print(f"{video.file_name} handled in {after - before} (request took {after - before_request})") + + if one_shot_video_file_name: + break + + +def run(): + net_cam_url = os.getenv("NET_CAM_URL") + if not net_cam_url: + raise ValueError("NET_CAM_URL env var empty or unset") + + camera_name = os.getenv("CAMERA_NAME") + if not camera_name: + raise ValueError("CAMERA_NAME env var empty or unset") + + api_url = os.getenv("API_URL") + if not api_url: + raise ValueError("API_URL env var empty or unset") + + one_shot_file_name = os.getenv("ONE_SHOT_FILE_NAME", "").strip() or None + if not one_shot_file_name: + raise ValueError("ONE_SHOT_FILE_NAME env var empty or unset") + + configuration = Configuration(host=api_url, debug=debug) + api_client = ApiClient(configuration) + camera_api = CameraApi(api_client) + video_api = VideoApi(api_client) + detection_api = DetectionApi(api_client) + + cameras_response = camera_api.get_cameras(stream_url__eq=net_cam_url, name__eq=camera_name) + + cameras = cameras_response.objects or [] + + if not cameras or len(cameras) != 1: + raise ValueError( + f"failed to find exactly 1 camera for NET_CAM_URL={repr(net_cam_url)} CAMERA_NAME={repr(camera_name)}" + ) + + camera = cameras[0] + + print(f"camera: {camera.id}, {camera.name}, {camera.stream_url}") + + while 1: + try: + do(camera, video_api, detection_api, one_shot_file_name) + + if one_shot_file_name: + break + except KeyboardInterrupt: + print("exiting...") + return + + time.sleep(1) + + +if __name__ == "__main__": + pass diff --git a/object_detector/openapi_client/__init__.py b/object_detector/openapi_client/__init__.py new file mode 100644 index 0000000..f9b4778 --- /dev/null +++ b/object_detector/openapi_client/__init__.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +# flake8: noqa + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +__version__ = "1.0.0" + +# import apis into sdk package +from openapi_client.api.camera_api import CameraApi +from openapi_client.api.detection_api import DetectionApi +from openapi_client.api.video_api import VideoApi + +# import ApiClient +from openapi_client.api_response import ApiResponse +from openapi_client.api_client import ApiClient +from openapi_client.configuration import Configuration +from openapi_client.exceptions import OpenApiException +from openapi_client.exceptions import ApiTypeError +from openapi_client.exceptions import ApiValueError +from openapi_client.exceptions import ApiKeyError +from openapi_client.exceptions import ApiAttributeError +from openapi_client.exceptions import ApiException + +# import models into sdk package +from openapi_client.models.camera import Camera +from openapi_client.models.detection import Detection +from openapi_client.models.detection_bounding_box_inner import DetectionBoundingBoxInner +from openapi_client.models.get_cameras200_response import GetCameras200Response +from openapi_client.models.get_cameras_default_response import GetCamerasDefaultResponse +from openapi_client.models.get_detections200_response import GetDetections200Response +from openapi_client.models.get_videos200_response import GetVideos200Response +from openapi_client.models.vec2 import Vec2 +from openapi_client.models.video import Video diff --git a/object_detector/openapi_client/api/__init__.py b/object_detector/openapi_client/api/__init__.py new file mode 100644 index 0000000..50d61c8 --- /dev/null +++ b/object_detector/openapi_client/api/__init__.py @@ -0,0 +1,7 @@ +# flake8: noqa + +# import apis into api package +from openapi_client.api.camera_api import CameraApi +from openapi_client.api.detection_api import DetectionApi +from openapi_client.api.video_api import VideoApi + diff --git a/object_detector/openapi_client/api/camera_api.py b/object_detector/openapi_client/api/camera_api.py new file mode 100644 index 0000000..bd84142 --- /dev/null +++ b/object_detector/openapi_client/api/camera_api.py @@ -0,0 +1,4840 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import datetime +from pydantic import Field, StrictInt, StrictStr +from typing import Any, List, Optional +from typing_extensions import Annotated +from openapi_client.models.camera import Camera +from openapi_client.models.get_cameras200_response import GetCameras200Response + +from openapi_client.api_client import ApiClient, RequestSerialized +from openapi_client.api_response import ApiResponse +from openapi_client.rest import RESTResponseType + + +class CameraApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_camera( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """delete_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_camera_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_camera_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """delete_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_camera_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_camera_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_camera_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_camera_serialize( + self, + primary_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/cameras/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_camera( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCameras200Response: + """get_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_camera_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_camera_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCameras200Response]: + """get_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_camera_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_camera_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_camera_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_camera_serialize( + self, + primary_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/cameras/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_cameras( + self, + limit: Annotated[Optional[StrictInt], Field(description="SQL LIMIT operator")] = None, + offset: Annotated[Optional[StrictInt], Field(description="SQL OFFSET operator")] = None, + id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + created_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + created_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + created_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + created_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + created_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + created_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + created_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + updated_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + updated_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + updated_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + updated_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + updated_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + updated_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + updated_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + deleted_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + deleted_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + deleted_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + deleted_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + deleted_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + deleted_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + deleted_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + stream_url__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + stream_url__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + stream_url__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + stream_url__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + stream_url__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + stream_url__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + stream_url__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + stream_url__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + stream_url__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + last_seen__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + last_seen__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + last_seen__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + last_seen__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + last_seen__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + last_seen__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + last_seen__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + last_seen__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + last_seen__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCameras200Response: + """get_cameras + + + :param limit: SQL LIMIT operator + :type limit: int + :param offset: SQL OFFSET operator + :type offset: int + :param id__eq: SQL = operator + :type id__eq: str + :param id__ne: SQL != operator + :type id__ne: str + :param id__gt: SQL > operator, may not work with all column types + :type id__gt: str + :param id__gte: SQL >= operator, may not work with all column types + :type id__gte: str + :param id__lt: SQL < operator, may not work with all column types + :type id__lt: str + :param id__lte: SQL <= operator, may not work with all column types + :type id__lte: str + :param id__in: SQL IN operator, permits comma-separated values + :type id__in: str + :param id__nin: SQL NOT IN operator, permits comma-separated values + :type id__nin: str + :param id__notin: SQL NOT IN operator, permits comma-separated values + :type id__notin: str + :param id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type id__isnull: str + :param id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__nisnull: str + :param id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__isnotnull: str + :param id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__l: str + :param id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__like: str + :param id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nl: str + :param id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nlike: str + :param id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__notlike: str + :param id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__il: str + :param id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__ilike: str + :param id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nil: str + :param id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nilike: str + :param id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__notilike: str + :param id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type id__desc: str + :param id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type id__asc: str + :param created_at__eq: SQL = operator + :type created_at__eq: datetime + :param created_at__ne: SQL != operator + :type created_at__ne: datetime + :param created_at__gt: SQL > operator, may not work with all column types + :type created_at__gt: datetime + :param created_at__gte: SQL >= operator, may not work with all column types + :type created_at__gte: datetime + :param created_at__lt: SQL < operator, may not work with all column types + :type created_at__lt: datetime + :param created_at__lte: SQL <= operator, may not work with all column types + :type created_at__lte: datetime + :param created_at__in: SQL IN operator, permits comma-separated values + :type created_at__in: datetime + :param created_at__nin: SQL NOT IN operator, permits comma-separated values + :type created_at__nin: datetime + :param created_at__notin: SQL NOT IN operator, permits comma-separated values + :type created_at__notin: datetime + :param created_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnull: str + :param created_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__nisnull: str + :param created_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnotnull: str + :param created_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__l: str + :param created_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__like: str + :param created_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nl: str + :param created_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nlike: str + :param created_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notlike: str + :param created_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__il: str + :param created_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__ilike: str + :param created_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nil: str + :param created_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nilike: str + :param created_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notilike: str + :param created_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type created_at__desc: str + :param created_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type created_at__asc: str + :param updated_at__eq: SQL = operator + :type updated_at__eq: datetime + :param updated_at__ne: SQL != operator + :type updated_at__ne: datetime + :param updated_at__gt: SQL > operator, may not work with all column types + :type updated_at__gt: datetime + :param updated_at__gte: SQL >= operator, may not work with all column types + :type updated_at__gte: datetime + :param updated_at__lt: SQL < operator, may not work with all column types + :type updated_at__lt: datetime + :param updated_at__lte: SQL <= operator, may not work with all column types + :type updated_at__lte: datetime + :param updated_at__in: SQL IN operator, permits comma-separated values + :type updated_at__in: datetime + :param updated_at__nin: SQL NOT IN operator, permits comma-separated values + :type updated_at__nin: datetime + :param updated_at__notin: SQL NOT IN operator, permits comma-separated values + :type updated_at__notin: datetime + :param updated_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnull: str + :param updated_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__nisnull: str + :param updated_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnotnull: str + :param updated_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__l: str + :param updated_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__like: str + :param updated_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nl: str + :param updated_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nlike: str + :param updated_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notlike: str + :param updated_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__il: str + :param updated_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__ilike: str + :param updated_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nil: str + :param updated_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nilike: str + :param updated_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notilike: str + :param updated_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type updated_at__desc: str + :param updated_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type updated_at__asc: str + :param deleted_at__eq: SQL = operator + :type deleted_at__eq: datetime + :param deleted_at__ne: SQL != operator + :type deleted_at__ne: datetime + :param deleted_at__gt: SQL > operator, may not work with all column types + :type deleted_at__gt: datetime + :param deleted_at__gte: SQL >= operator, may not work with all column types + :type deleted_at__gte: datetime + :param deleted_at__lt: SQL < operator, may not work with all column types + :type deleted_at__lt: datetime + :param deleted_at__lte: SQL <= operator, may not work with all column types + :type deleted_at__lte: datetime + :param deleted_at__in: SQL IN operator, permits comma-separated values + :type deleted_at__in: datetime + :param deleted_at__nin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__nin: datetime + :param deleted_at__notin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__notin: datetime + :param deleted_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnull: str + :param deleted_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__nisnull: str + :param deleted_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnotnull: str + :param deleted_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__l: str + :param deleted_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__like: str + :param deleted_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nl: str + :param deleted_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nlike: str + :param deleted_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notlike: str + :param deleted_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__il: str + :param deleted_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__ilike: str + :param deleted_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nil: str + :param deleted_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nilike: str + :param deleted_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notilike: str + :param deleted_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type deleted_at__desc: str + :param deleted_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type deleted_at__asc: str + :param name__eq: SQL = operator + :type name__eq: str + :param name__ne: SQL != operator + :type name__ne: str + :param name__gt: SQL > operator, may not work with all column types + :type name__gt: str + :param name__gte: SQL >= operator, may not work with all column types + :type name__gte: str + :param name__lt: SQL < operator, may not work with all column types + :type name__lt: str + :param name__lte: SQL <= operator, may not work with all column types + :type name__lte: str + :param name__in: SQL IN operator, permits comma-separated values + :type name__in: str + :param name__nin: SQL NOT IN operator, permits comma-separated values + :type name__nin: str + :param name__notin: SQL NOT IN operator, permits comma-separated values + :type name__notin: str + :param name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type name__isnull: str + :param name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type name__nisnull: str + :param name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type name__isnotnull: str + :param name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type name__l: str + :param name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type name__like: str + :param name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type name__nl: str + :param name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type name__nlike: str + :param name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type name__notlike: str + :param name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__il: str + :param name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__ilike: str + :param name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__nil: str + :param name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__nilike: str + :param name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__notilike: str + :param name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type name__desc: str + :param name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type name__asc: str + :param stream_url__eq: SQL = operator + :type stream_url__eq: str + :param stream_url__ne: SQL != operator + :type stream_url__ne: str + :param stream_url__gt: SQL > operator, may not work with all column types + :type stream_url__gt: str + :param stream_url__gte: SQL >= operator, may not work with all column types + :type stream_url__gte: str + :param stream_url__lt: SQL < operator, may not work with all column types + :type stream_url__lt: str + :param stream_url__lte: SQL <= operator, may not work with all column types + :type stream_url__lte: str + :param stream_url__in: SQL IN operator, permits comma-separated values + :type stream_url__in: str + :param stream_url__nin: SQL NOT IN operator, permits comma-separated values + :type stream_url__nin: str + :param stream_url__notin: SQL NOT IN operator, permits comma-separated values + :type stream_url__notin: str + :param stream_url__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type stream_url__isnull: str + :param stream_url__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type stream_url__nisnull: str + :param stream_url__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type stream_url__isnotnull: str + :param stream_url__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__l: str + :param stream_url__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__like: str + :param stream_url__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nl: str + :param stream_url__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nlike: str + :param stream_url__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__notlike: str + :param stream_url__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__il: str + :param stream_url__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__ilike: str + :param stream_url__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nil: str + :param stream_url__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nilike: str + :param stream_url__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__notilike: str + :param stream_url__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type stream_url__desc: str + :param stream_url__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type stream_url__asc: str + :param last_seen__eq: SQL = operator + :type last_seen__eq: datetime + :param last_seen__ne: SQL != operator + :type last_seen__ne: datetime + :param last_seen__gt: SQL > operator, may not work with all column types + :type last_seen__gt: datetime + :param last_seen__gte: SQL >= operator, may not work with all column types + :type last_seen__gte: datetime + :param last_seen__lt: SQL < operator, may not work with all column types + :type last_seen__lt: datetime + :param last_seen__lte: SQL <= operator, may not work with all column types + :type last_seen__lte: datetime + :param last_seen__in: SQL IN operator, permits comma-separated values + :type last_seen__in: datetime + :param last_seen__nin: SQL NOT IN operator, permits comma-separated values + :type last_seen__nin: datetime + :param last_seen__notin: SQL NOT IN operator, permits comma-separated values + :type last_seen__notin: datetime + :param last_seen__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type last_seen__isnull: str + :param last_seen__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type last_seen__nisnull: str + :param last_seen__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type last_seen__isnotnull: str + :param last_seen__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__l: str + :param last_seen__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__like: str + :param last_seen__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nl: str + :param last_seen__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nlike: str + :param last_seen__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__notlike: str + :param last_seen__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__il: str + :param last_seen__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__ilike: str + :param last_seen__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nil: str + :param last_seen__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nilike: str + :param last_seen__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__notilike: str + :param last_seen__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type last_seen__desc: str + :param last_seen__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type last_seen__asc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_cameras_serialize( + limit=limit, + offset=offset, + id__eq=id__eq, + id__ne=id__ne, + id__gt=id__gt, + id__gte=id__gte, + id__lt=id__lt, + id__lte=id__lte, + id__in=id__in, + id__nin=id__nin, + id__notin=id__notin, + id__isnull=id__isnull, + id__nisnull=id__nisnull, + id__isnotnull=id__isnotnull, + id__l=id__l, + id__like=id__like, + id__nl=id__nl, + id__nlike=id__nlike, + id__notlike=id__notlike, + id__il=id__il, + id__ilike=id__ilike, + id__nil=id__nil, + id__nilike=id__nilike, + id__notilike=id__notilike, + id__desc=id__desc, + id__asc=id__asc, + created_at__eq=created_at__eq, + created_at__ne=created_at__ne, + created_at__gt=created_at__gt, + created_at__gte=created_at__gte, + created_at__lt=created_at__lt, + created_at__lte=created_at__lte, + created_at__in=created_at__in, + created_at__nin=created_at__nin, + created_at__notin=created_at__notin, + created_at__isnull=created_at__isnull, + created_at__nisnull=created_at__nisnull, + created_at__isnotnull=created_at__isnotnull, + created_at__l=created_at__l, + created_at__like=created_at__like, + created_at__nl=created_at__nl, + created_at__nlike=created_at__nlike, + created_at__notlike=created_at__notlike, + created_at__il=created_at__il, + created_at__ilike=created_at__ilike, + created_at__nil=created_at__nil, + created_at__nilike=created_at__nilike, + created_at__notilike=created_at__notilike, + created_at__desc=created_at__desc, + created_at__asc=created_at__asc, + updated_at__eq=updated_at__eq, + updated_at__ne=updated_at__ne, + updated_at__gt=updated_at__gt, + updated_at__gte=updated_at__gte, + updated_at__lt=updated_at__lt, + updated_at__lte=updated_at__lte, + updated_at__in=updated_at__in, + updated_at__nin=updated_at__nin, + updated_at__notin=updated_at__notin, + updated_at__isnull=updated_at__isnull, + updated_at__nisnull=updated_at__nisnull, + updated_at__isnotnull=updated_at__isnotnull, + updated_at__l=updated_at__l, + updated_at__like=updated_at__like, + updated_at__nl=updated_at__nl, + updated_at__nlike=updated_at__nlike, + updated_at__notlike=updated_at__notlike, + updated_at__il=updated_at__il, + updated_at__ilike=updated_at__ilike, + updated_at__nil=updated_at__nil, + updated_at__nilike=updated_at__nilike, + updated_at__notilike=updated_at__notilike, + updated_at__desc=updated_at__desc, + updated_at__asc=updated_at__asc, + deleted_at__eq=deleted_at__eq, + deleted_at__ne=deleted_at__ne, + deleted_at__gt=deleted_at__gt, + deleted_at__gte=deleted_at__gte, + deleted_at__lt=deleted_at__lt, + deleted_at__lte=deleted_at__lte, + deleted_at__in=deleted_at__in, + deleted_at__nin=deleted_at__nin, + deleted_at__notin=deleted_at__notin, + deleted_at__isnull=deleted_at__isnull, + deleted_at__nisnull=deleted_at__nisnull, + deleted_at__isnotnull=deleted_at__isnotnull, + deleted_at__l=deleted_at__l, + deleted_at__like=deleted_at__like, + deleted_at__nl=deleted_at__nl, + deleted_at__nlike=deleted_at__nlike, + deleted_at__notlike=deleted_at__notlike, + deleted_at__il=deleted_at__il, + deleted_at__ilike=deleted_at__ilike, + deleted_at__nil=deleted_at__nil, + deleted_at__nilike=deleted_at__nilike, + deleted_at__notilike=deleted_at__notilike, + deleted_at__desc=deleted_at__desc, + deleted_at__asc=deleted_at__asc, + name__eq=name__eq, + name__ne=name__ne, + name__gt=name__gt, + name__gte=name__gte, + name__lt=name__lt, + name__lte=name__lte, + name__in=name__in, + name__nin=name__nin, + name__notin=name__notin, + name__isnull=name__isnull, + name__nisnull=name__nisnull, + name__isnotnull=name__isnotnull, + name__l=name__l, + name__like=name__like, + name__nl=name__nl, + name__nlike=name__nlike, + name__notlike=name__notlike, + name__il=name__il, + name__ilike=name__ilike, + name__nil=name__nil, + name__nilike=name__nilike, + name__notilike=name__notilike, + name__desc=name__desc, + name__asc=name__asc, + stream_url__eq=stream_url__eq, + stream_url__ne=stream_url__ne, + stream_url__gt=stream_url__gt, + stream_url__gte=stream_url__gte, + stream_url__lt=stream_url__lt, + stream_url__lte=stream_url__lte, + stream_url__in=stream_url__in, + stream_url__nin=stream_url__nin, + stream_url__notin=stream_url__notin, + stream_url__isnull=stream_url__isnull, + stream_url__nisnull=stream_url__nisnull, + stream_url__isnotnull=stream_url__isnotnull, + stream_url__l=stream_url__l, + stream_url__like=stream_url__like, + stream_url__nl=stream_url__nl, + stream_url__nlike=stream_url__nlike, + stream_url__notlike=stream_url__notlike, + stream_url__il=stream_url__il, + stream_url__ilike=stream_url__ilike, + stream_url__nil=stream_url__nil, + stream_url__nilike=stream_url__nilike, + stream_url__notilike=stream_url__notilike, + stream_url__desc=stream_url__desc, + stream_url__asc=stream_url__asc, + last_seen__eq=last_seen__eq, + last_seen__ne=last_seen__ne, + last_seen__gt=last_seen__gt, + last_seen__gte=last_seen__gte, + last_seen__lt=last_seen__lt, + last_seen__lte=last_seen__lte, + last_seen__in=last_seen__in, + last_seen__nin=last_seen__nin, + last_seen__notin=last_seen__notin, + last_seen__isnull=last_seen__isnull, + last_seen__nisnull=last_seen__nisnull, + last_seen__isnotnull=last_seen__isnotnull, + last_seen__l=last_seen__l, + last_seen__like=last_seen__like, + last_seen__nl=last_seen__nl, + last_seen__nlike=last_seen__nlike, + last_seen__notlike=last_seen__notlike, + last_seen__il=last_seen__il, + last_seen__ilike=last_seen__ilike, + last_seen__nil=last_seen__nil, + last_seen__nilike=last_seen__nilike, + last_seen__notilike=last_seen__notilike, + last_seen__desc=last_seen__desc, + last_seen__asc=last_seen__asc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_cameras_with_http_info( + self, + limit: Annotated[Optional[StrictInt], Field(description="SQL LIMIT operator")] = None, + offset: Annotated[Optional[StrictInt], Field(description="SQL OFFSET operator")] = None, + id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + created_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + created_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + created_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + created_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + created_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + created_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + created_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + updated_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + updated_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + updated_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + updated_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + updated_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + updated_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + updated_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + deleted_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + deleted_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + deleted_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + deleted_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + deleted_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + deleted_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + deleted_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + stream_url__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + stream_url__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + stream_url__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + stream_url__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + stream_url__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + stream_url__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + stream_url__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + stream_url__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + stream_url__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + last_seen__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + last_seen__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + last_seen__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + last_seen__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + last_seen__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + last_seen__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + last_seen__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + last_seen__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + last_seen__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCameras200Response]: + """get_cameras + + + :param limit: SQL LIMIT operator + :type limit: int + :param offset: SQL OFFSET operator + :type offset: int + :param id__eq: SQL = operator + :type id__eq: str + :param id__ne: SQL != operator + :type id__ne: str + :param id__gt: SQL > operator, may not work with all column types + :type id__gt: str + :param id__gte: SQL >= operator, may not work with all column types + :type id__gte: str + :param id__lt: SQL < operator, may not work with all column types + :type id__lt: str + :param id__lte: SQL <= operator, may not work with all column types + :type id__lte: str + :param id__in: SQL IN operator, permits comma-separated values + :type id__in: str + :param id__nin: SQL NOT IN operator, permits comma-separated values + :type id__nin: str + :param id__notin: SQL NOT IN operator, permits comma-separated values + :type id__notin: str + :param id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type id__isnull: str + :param id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__nisnull: str + :param id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__isnotnull: str + :param id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__l: str + :param id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__like: str + :param id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nl: str + :param id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nlike: str + :param id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__notlike: str + :param id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__il: str + :param id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__ilike: str + :param id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nil: str + :param id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nilike: str + :param id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__notilike: str + :param id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type id__desc: str + :param id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type id__asc: str + :param created_at__eq: SQL = operator + :type created_at__eq: datetime + :param created_at__ne: SQL != operator + :type created_at__ne: datetime + :param created_at__gt: SQL > operator, may not work with all column types + :type created_at__gt: datetime + :param created_at__gte: SQL >= operator, may not work with all column types + :type created_at__gte: datetime + :param created_at__lt: SQL < operator, may not work with all column types + :type created_at__lt: datetime + :param created_at__lte: SQL <= operator, may not work with all column types + :type created_at__lte: datetime + :param created_at__in: SQL IN operator, permits comma-separated values + :type created_at__in: datetime + :param created_at__nin: SQL NOT IN operator, permits comma-separated values + :type created_at__nin: datetime + :param created_at__notin: SQL NOT IN operator, permits comma-separated values + :type created_at__notin: datetime + :param created_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnull: str + :param created_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__nisnull: str + :param created_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnotnull: str + :param created_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__l: str + :param created_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__like: str + :param created_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nl: str + :param created_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nlike: str + :param created_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notlike: str + :param created_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__il: str + :param created_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__ilike: str + :param created_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nil: str + :param created_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nilike: str + :param created_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notilike: str + :param created_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type created_at__desc: str + :param created_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type created_at__asc: str + :param updated_at__eq: SQL = operator + :type updated_at__eq: datetime + :param updated_at__ne: SQL != operator + :type updated_at__ne: datetime + :param updated_at__gt: SQL > operator, may not work with all column types + :type updated_at__gt: datetime + :param updated_at__gte: SQL >= operator, may not work with all column types + :type updated_at__gte: datetime + :param updated_at__lt: SQL < operator, may not work with all column types + :type updated_at__lt: datetime + :param updated_at__lte: SQL <= operator, may not work with all column types + :type updated_at__lte: datetime + :param updated_at__in: SQL IN operator, permits comma-separated values + :type updated_at__in: datetime + :param updated_at__nin: SQL NOT IN operator, permits comma-separated values + :type updated_at__nin: datetime + :param updated_at__notin: SQL NOT IN operator, permits comma-separated values + :type updated_at__notin: datetime + :param updated_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnull: str + :param updated_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__nisnull: str + :param updated_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnotnull: str + :param updated_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__l: str + :param updated_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__like: str + :param updated_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nl: str + :param updated_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nlike: str + :param updated_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notlike: str + :param updated_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__il: str + :param updated_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__ilike: str + :param updated_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nil: str + :param updated_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nilike: str + :param updated_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notilike: str + :param updated_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type updated_at__desc: str + :param updated_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type updated_at__asc: str + :param deleted_at__eq: SQL = operator + :type deleted_at__eq: datetime + :param deleted_at__ne: SQL != operator + :type deleted_at__ne: datetime + :param deleted_at__gt: SQL > operator, may not work with all column types + :type deleted_at__gt: datetime + :param deleted_at__gte: SQL >= operator, may not work with all column types + :type deleted_at__gte: datetime + :param deleted_at__lt: SQL < operator, may not work with all column types + :type deleted_at__lt: datetime + :param deleted_at__lte: SQL <= operator, may not work with all column types + :type deleted_at__lte: datetime + :param deleted_at__in: SQL IN operator, permits comma-separated values + :type deleted_at__in: datetime + :param deleted_at__nin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__nin: datetime + :param deleted_at__notin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__notin: datetime + :param deleted_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnull: str + :param deleted_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__nisnull: str + :param deleted_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnotnull: str + :param deleted_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__l: str + :param deleted_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__like: str + :param deleted_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nl: str + :param deleted_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nlike: str + :param deleted_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notlike: str + :param deleted_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__il: str + :param deleted_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__ilike: str + :param deleted_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nil: str + :param deleted_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nilike: str + :param deleted_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notilike: str + :param deleted_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type deleted_at__desc: str + :param deleted_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type deleted_at__asc: str + :param name__eq: SQL = operator + :type name__eq: str + :param name__ne: SQL != operator + :type name__ne: str + :param name__gt: SQL > operator, may not work with all column types + :type name__gt: str + :param name__gte: SQL >= operator, may not work with all column types + :type name__gte: str + :param name__lt: SQL < operator, may not work with all column types + :type name__lt: str + :param name__lte: SQL <= operator, may not work with all column types + :type name__lte: str + :param name__in: SQL IN operator, permits comma-separated values + :type name__in: str + :param name__nin: SQL NOT IN operator, permits comma-separated values + :type name__nin: str + :param name__notin: SQL NOT IN operator, permits comma-separated values + :type name__notin: str + :param name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type name__isnull: str + :param name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type name__nisnull: str + :param name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type name__isnotnull: str + :param name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type name__l: str + :param name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type name__like: str + :param name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type name__nl: str + :param name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type name__nlike: str + :param name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type name__notlike: str + :param name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__il: str + :param name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__ilike: str + :param name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__nil: str + :param name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__nilike: str + :param name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__notilike: str + :param name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type name__desc: str + :param name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type name__asc: str + :param stream_url__eq: SQL = operator + :type stream_url__eq: str + :param stream_url__ne: SQL != operator + :type stream_url__ne: str + :param stream_url__gt: SQL > operator, may not work with all column types + :type stream_url__gt: str + :param stream_url__gte: SQL >= operator, may not work with all column types + :type stream_url__gte: str + :param stream_url__lt: SQL < operator, may not work with all column types + :type stream_url__lt: str + :param stream_url__lte: SQL <= operator, may not work with all column types + :type stream_url__lte: str + :param stream_url__in: SQL IN operator, permits comma-separated values + :type stream_url__in: str + :param stream_url__nin: SQL NOT IN operator, permits comma-separated values + :type stream_url__nin: str + :param stream_url__notin: SQL NOT IN operator, permits comma-separated values + :type stream_url__notin: str + :param stream_url__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type stream_url__isnull: str + :param stream_url__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type stream_url__nisnull: str + :param stream_url__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type stream_url__isnotnull: str + :param stream_url__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__l: str + :param stream_url__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__like: str + :param stream_url__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nl: str + :param stream_url__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nlike: str + :param stream_url__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__notlike: str + :param stream_url__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__il: str + :param stream_url__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__ilike: str + :param stream_url__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nil: str + :param stream_url__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nilike: str + :param stream_url__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__notilike: str + :param stream_url__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type stream_url__desc: str + :param stream_url__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type stream_url__asc: str + :param last_seen__eq: SQL = operator + :type last_seen__eq: datetime + :param last_seen__ne: SQL != operator + :type last_seen__ne: datetime + :param last_seen__gt: SQL > operator, may not work with all column types + :type last_seen__gt: datetime + :param last_seen__gte: SQL >= operator, may not work with all column types + :type last_seen__gte: datetime + :param last_seen__lt: SQL < operator, may not work with all column types + :type last_seen__lt: datetime + :param last_seen__lte: SQL <= operator, may not work with all column types + :type last_seen__lte: datetime + :param last_seen__in: SQL IN operator, permits comma-separated values + :type last_seen__in: datetime + :param last_seen__nin: SQL NOT IN operator, permits comma-separated values + :type last_seen__nin: datetime + :param last_seen__notin: SQL NOT IN operator, permits comma-separated values + :type last_seen__notin: datetime + :param last_seen__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type last_seen__isnull: str + :param last_seen__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type last_seen__nisnull: str + :param last_seen__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type last_seen__isnotnull: str + :param last_seen__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__l: str + :param last_seen__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__like: str + :param last_seen__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nl: str + :param last_seen__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nlike: str + :param last_seen__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__notlike: str + :param last_seen__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__il: str + :param last_seen__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__ilike: str + :param last_seen__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nil: str + :param last_seen__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nilike: str + :param last_seen__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__notilike: str + :param last_seen__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type last_seen__desc: str + :param last_seen__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type last_seen__asc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_cameras_serialize( + limit=limit, + offset=offset, + id__eq=id__eq, + id__ne=id__ne, + id__gt=id__gt, + id__gte=id__gte, + id__lt=id__lt, + id__lte=id__lte, + id__in=id__in, + id__nin=id__nin, + id__notin=id__notin, + id__isnull=id__isnull, + id__nisnull=id__nisnull, + id__isnotnull=id__isnotnull, + id__l=id__l, + id__like=id__like, + id__nl=id__nl, + id__nlike=id__nlike, + id__notlike=id__notlike, + id__il=id__il, + id__ilike=id__ilike, + id__nil=id__nil, + id__nilike=id__nilike, + id__notilike=id__notilike, + id__desc=id__desc, + id__asc=id__asc, + created_at__eq=created_at__eq, + created_at__ne=created_at__ne, + created_at__gt=created_at__gt, + created_at__gte=created_at__gte, + created_at__lt=created_at__lt, + created_at__lte=created_at__lte, + created_at__in=created_at__in, + created_at__nin=created_at__nin, + created_at__notin=created_at__notin, + created_at__isnull=created_at__isnull, + created_at__nisnull=created_at__nisnull, + created_at__isnotnull=created_at__isnotnull, + created_at__l=created_at__l, + created_at__like=created_at__like, + created_at__nl=created_at__nl, + created_at__nlike=created_at__nlike, + created_at__notlike=created_at__notlike, + created_at__il=created_at__il, + created_at__ilike=created_at__ilike, + created_at__nil=created_at__nil, + created_at__nilike=created_at__nilike, + created_at__notilike=created_at__notilike, + created_at__desc=created_at__desc, + created_at__asc=created_at__asc, + updated_at__eq=updated_at__eq, + updated_at__ne=updated_at__ne, + updated_at__gt=updated_at__gt, + updated_at__gte=updated_at__gte, + updated_at__lt=updated_at__lt, + updated_at__lte=updated_at__lte, + updated_at__in=updated_at__in, + updated_at__nin=updated_at__nin, + updated_at__notin=updated_at__notin, + updated_at__isnull=updated_at__isnull, + updated_at__nisnull=updated_at__nisnull, + updated_at__isnotnull=updated_at__isnotnull, + updated_at__l=updated_at__l, + updated_at__like=updated_at__like, + updated_at__nl=updated_at__nl, + updated_at__nlike=updated_at__nlike, + updated_at__notlike=updated_at__notlike, + updated_at__il=updated_at__il, + updated_at__ilike=updated_at__ilike, + updated_at__nil=updated_at__nil, + updated_at__nilike=updated_at__nilike, + updated_at__notilike=updated_at__notilike, + updated_at__desc=updated_at__desc, + updated_at__asc=updated_at__asc, + deleted_at__eq=deleted_at__eq, + deleted_at__ne=deleted_at__ne, + deleted_at__gt=deleted_at__gt, + deleted_at__gte=deleted_at__gte, + deleted_at__lt=deleted_at__lt, + deleted_at__lte=deleted_at__lte, + deleted_at__in=deleted_at__in, + deleted_at__nin=deleted_at__nin, + deleted_at__notin=deleted_at__notin, + deleted_at__isnull=deleted_at__isnull, + deleted_at__nisnull=deleted_at__nisnull, + deleted_at__isnotnull=deleted_at__isnotnull, + deleted_at__l=deleted_at__l, + deleted_at__like=deleted_at__like, + deleted_at__nl=deleted_at__nl, + deleted_at__nlike=deleted_at__nlike, + deleted_at__notlike=deleted_at__notlike, + deleted_at__il=deleted_at__il, + deleted_at__ilike=deleted_at__ilike, + deleted_at__nil=deleted_at__nil, + deleted_at__nilike=deleted_at__nilike, + deleted_at__notilike=deleted_at__notilike, + deleted_at__desc=deleted_at__desc, + deleted_at__asc=deleted_at__asc, + name__eq=name__eq, + name__ne=name__ne, + name__gt=name__gt, + name__gte=name__gte, + name__lt=name__lt, + name__lte=name__lte, + name__in=name__in, + name__nin=name__nin, + name__notin=name__notin, + name__isnull=name__isnull, + name__nisnull=name__nisnull, + name__isnotnull=name__isnotnull, + name__l=name__l, + name__like=name__like, + name__nl=name__nl, + name__nlike=name__nlike, + name__notlike=name__notlike, + name__il=name__il, + name__ilike=name__ilike, + name__nil=name__nil, + name__nilike=name__nilike, + name__notilike=name__notilike, + name__desc=name__desc, + name__asc=name__asc, + stream_url__eq=stream_url__eq, + stream_url__ne=stream_url__ne, + stream_url__gt=stream_url__gt, + stream_url__gte=stream_url__gte, + stream_url__lt=stream_url__lt, + stream_url__lte=stream_url__lte, + stream_url__in=stream_url__in, + stream_url__nin=stream_url__nin, + stream_url__notin=stream_url__notin, + stream_url__isnull=stream_url__isnull, + stream_url__nisnull=stream_url__nisnull, + stream_url__isnotnull=stream_url__isnotnull, + stream_url__l=stream_url__l, + stream_url__like=stream_url__like, + stream_url__nl=stream_url__nl, + stream_url__nlike=stream_url__nlike, + stream_url__notlike=stream_url__notlike, + stream_url__il=stream_url__il, + stream_url__ilike=stream_url__ilike, + stream_url__nil=stream_url__nil, + stream_url__nilike=stream_url__nilike, + stream_url__notilike=stream_url__notilike, + stream_url__desc=stream_url__desc, + stream_url__asc=stream_url__asc, + last_seen__eq=last_seen__eq, + last_seen__ne=last_seen__ne, + last_seen__gt=last_seen__gt, + last_seen__gte=last_seen__gte, + last_seen__lt=last_seen__lt, + last_seen__lte=last_seen__lte, + last_seen__in=last_seen__in, + last_seen__nin=last_seen__nin, + last_seen__notin=last_seen__notin, + last_seen__isnull=last_seen__isnull, + last_seen__nisnull=last_seen__nisnull, + last_seen__isnotnull=last_seen__isnotnull, + last_seen__l=last_seen__l, + last_seen__like=last_seen__like, + last_seen__nl=last_seen__nl, + last_seen__nlike=last_seen__nlike, + last_seen__notlike=last_seen__notlike, + last_seen__il=last_seen__il, + last_seen__ilike=last_seen__ilike, + last_seen__nil=last_seen__nil, + last_seen__nilike=last_seen__nilike, + last_seen__notilike=last_seen__notilike, + last_seen__desc=last_seen__desc, + last_seen__asc=last_seen__asc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_cameras_without_preload_content( + self, + limit: Annotated[Optional[StrictInt], Field(description="SQL LIMIT operator")] = None, + offset: Annotated[Optional[StrictInt], Field(description="SQL OFFSET operator")] = None, + id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + created_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + created_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + created_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + created_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + created_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + created_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + created_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + updated_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + updated_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + updated_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + updated_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + updated_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + updated_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + updated_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + deleted_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + deleted_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + deleted_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + deleted_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + deleted_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + deleted_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + deleted_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + stream_url__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + stream_url__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + stream_url__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + stream_url__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + stream_url__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + stream_url__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + stream_url__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + stream_url__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + stream_url__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + stream_url__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + stream_url__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + last_seen__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + last_seen__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + last_seen__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + last_seen__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + last_seen__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + last_seen__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + last_seen__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + last_seen__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + last_seen__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + last_seen__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + last_seen__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_cameras + + + :param limit: SQL LIMIT operator + :type limit: int + :param offset: SQL OFFSET operator + :type offset: int + :param id__eq: SQL = operator + :type id__eq: str + :param id__ne: SQL != operator + :type id__ne: str + :param id__gt: SQL > operator, may not work with all column types + :type id__gt: str + :param id__gte: SQL >= operator, may not work with all column types + :type id__gte: str + :param id__lt: SQL < operator, may not work with all column types + :type id__lt: str + :param id__lte: SQL <= operator, may not work with all column types + :type id__lte: str + :param id__in: SQL IN operator, permits comma-separated values + :type id__in: str + :param id__nin: SQL NOT IN operator, permits comma-separated values + :type id__nin: str + :param id__notin: SQL NOT IN operator, permits comma-separated values + :type id__notin: str + :param id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type id__isnull: str + :param id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__nisnull: str + :param id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__isnotnull: str + :param id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__l: str + :param id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__like: str + :param id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nl: str + :param id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nlike: str + :param id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__notlike: str + :param id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__il: str + :param id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__ilike: str + :param id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nil: str + :param id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nilike: str + :param id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__notilike: str + :param id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type id__desc: str + :param id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type id__asc: str + :param created_at__eq: SQL = operator + :type created_at__eq: datetime + :param created_at__ne: SQL != operator + :type created_at__ne: datetime + :param created_at__gt: SQL > operator, may not work with all column types + :type created_at__gt: datetime + :param created_at__gte: SQL >= operator, may not work with all column types + :type created_at__gte: datetime + :param created_at__lt: SQL < operator, may not work with all column types + :type created_at__lt: datetime + :param created_at__lte: SQL <= operator, may not work with all column types + :type created_at__lte: datetime + :param created_at__in: SQL IN operator, permits comma-separated values + :type created_at__in: datetime + :param created_at__nin: SQL NOT IN operator, permits comma-separated values + :type created_at__nin: datetime + :param created_at__notin: SQL NOT IN operator, permits comma-separated values + :type created_at__notin: datetime + :param created_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnull: str + :param created_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__nisnull: str + :param created_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnotnull: str + :param created_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__l: str + :param created_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__like: str + :param created_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nl: str + :param created_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nlike: str + :param created_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notlike: str + :param created_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__il: str + :param created_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__ilike: str + :param created_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nil: str + :param created_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nilike: str + :param created_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notilike: str + :param created_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type created_at__desc: str + :param created_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type created_at__asc: str + :param updated_at__eq: SQL = operator + :type updated_at__eq: datetime + :param updated_at__ne: SQL != operator + :type updated_at__ne: datetime + :param updated_at__gt: SQL > operator, may not work with all column types + :type updated_at__gt: datetime + :param updated_at__gte: SQL >= operator, may not work with all column types + :type updated_at__gte: datetime + :param updated_at__lt: SQL < operator, may not work with all column types + :type updated_at__lt: datetime + :param updated_at__lte: SQL <= operator, may not work with all column types + :type updated_at__lte: datetime + :param updated_at__in: SQL IN operator, permits comma-separated values + :type updated_at__in: datetime + :param updated_at__nin: SQL NOT IN operator, permits comma-separated values + :type updated_at__nin: datetime + :param updated_at__notin: SQL NOT IN operator, permits comma-separated values + :type updated_at__notin: datetime + :param updated_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnull: str + :param updated_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__nisnull: str + :param updated_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnotnull: str + :param updated_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__l: str + :param updated_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__like: str + :param updated_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nl: str + :param updated_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nlike: str + :param updated_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notlike: str + :param updated_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__il: str + :param updated_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__ilike: str + :param updated_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nil: str + :param updated_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nilike: str + :param updated_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notilike: str + :param updated_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type updated_at__desc: str + :param updated_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type updated_at__asc: str + :param deleted_at__eq: SQL = operator + :type deleted_at__eq: datetime + :param deleted_at__ne: SQL != operator + :type deleted_at__ne: datetime + :param deleted_at__gt: SQL > operator, may not work with all column types + :type deleted_at__gt: datetime + :param deleted_at__gte: SQL >= operator, may not work with all column types + :type deleted_at__gte: datetime + :param deleted_at__lt: SQL < operator, may not work with all column types + :type deleted_at__lt: datetime + :param deleted_at__lte: SQL <= operator, may not work with all column types + :type deleted_at__lte: datetime + :param deleted_at__in: SQL IN operator, permits comma-separated values + :type deleted_at__in: datetime + :param deleted_at__nin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__nin: datetime + :param deleted_at__notin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__notin: datetime + :param deleted_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnull: str + :param deleted_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__nisnull: str + :param deleted_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnotnull: str + :param deleted_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__l: str + :param deleted_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__like: str + :param deleted_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nl: str + :param deleted_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nlike: str + :param deleted_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notlike: str + :param deleted_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__il: str + :param deleted_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__ilike: str + :param deleted_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nil: str + :param deleted_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nilike: str + :param deleted_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notilike: str + :param deleted_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type deleted_at__desc: str + :param deleted_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type deleted_at__asc: str + :param name__eq: SQL = operator + :type name__eq: str + :param name__ne: SQL != operator + :type name__ne: str + :param name__gt: SQL > operator, may not work with all column types + :type name__gt: str + :param name__gte: SQL >= operator, may not work with all column types + :type name__gte: str + :param name__lt: SQL < operator, may not work with all column types + :type name__lt: str + :param name__lte: SQL <= operator, may not work with all column types + :type name__lte: str + :param name__in: SQL IN operator, permits comma-separated values + :type name__in: str + :param name__nin: SQL NOT IN operator, permits comma-separated values + :type name__nin: str + :param name__notin: SQL NOT IN operator, permits comma-separated values + :type name__notin: str + :param name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type name__isnull: str + :param name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type name__nisnull: str + :param name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type name__isnotnull: str + :param name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type name__l: str + :param name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type name__like: str + :param name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type name__nl: str + :param name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type name__nlike: str + :param name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type name__notlike: str + :param name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__il: str + :param name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__ilike: str + :param name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__nil: str + :param name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__nilike: str + :param name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type name__notilike: str + :param name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type name__desc: str + :param name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type name__asc: str + :param stream_url__eq: SQL = operator + :type stream_url__eq: str + :param stream_url__ne: SQL != operator + :type stream_url__ne: str + :param stream_url__gt: SQL > operator, may not work with all column types + :type stream_url__gt: str + :param stream_url__gte: SQL >= operator, may not work with all column types + :type stream_url__gte: str + :param stream_url__lt: SQL < operator, may not work with all column types + :type stream_url__lt: str + :param stream_url__lte: SQL <= operator, may not work with all column types + :type stream_url__lte: str + :param stream_url__in: SQL IN operator, permits comma-separated values + :type stream_url__in: str + :param stream_url__nin: SQL NOT IN operator, permits comma-separated values + :type stream_url__nin: str + :param stream_url__notin: SQL NOT IN operator, permits comma-separated values + :type stream_url__notin: str + :param stream_url__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type stream_url__isnull: str + :param stream_url__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type stream_url__nisnull: str + :param stream_url__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type stream_url__isnotnull: str + :param stream_url__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__l: str + :param stream_url__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__like: str + :param stream_url__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nl: str + :param stream_url__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nlike: str + :param stream_url__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__notlike: str + :param stream_url__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__il: str + :param stream_url__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__ilike: str + :param stream_url__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nil: str + :param stream_url__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__nilike: str + :param stream_url__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type stream_url__notilike: str + :param stream_url__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type stream_url__desc: str + :param stream_url__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type stream_url__asc: str + :param last_seen__eq: SQL = operator + :type last_seen__eq: datetime + :param last_seen__ne: SQL != operator + :type last_seen__ne: datetime + :param last_seen__gt: SQL > operator, may not work with all column types + :type last_seen__gt: datetime + :param last_seen__gte: SQL >= operator, may not work with all column types + :type last_seen__gte: datetime + :param last_seen__lt: SQL < operator, may not work with all column types + :type last_seen__lt: datetime + :param last_seen__lte: SQL <= operator, may not work with all column types + :type last_seen__lte: datetime + :param last_seen__in: SQL IN operator, permits comma-separated values + :type last_seen__in: datetime + :param last_seen__nin: SQL NOT IN operator, permits comma-separated values + :type last_seen__nin: datetime + :param last_seen__notin: SQL NOT IN operator, permits comma-separated values + :type last_seen__notin: datetime + :param last_seen__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type last_seen__isnull: str + :param last_seen__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type last_seen__nisnull: str + :param last_seen__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type last_seen__isnotnull: str + :param last_seen__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__l: str + :param last_seen__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__like: str + :param last_seen__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nl: str + :param last_seen__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nlike: str + :param last_seen__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__notlike: str + :param last_seen__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__il: str + :param last_seen__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__ilike: str + :param last_seen__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nil: str + :param last_seen__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__nilike: str + :param last_seen__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type last_seen__notilike: str + :param last_seen__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type last_seen__desc: str + :param last_seen__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type last_seen__asc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_cameras_serialize( + limit=limit, + offset=offset, + id__eq=id__eq, + id__ne=id__ne, + id__gt=id__gt, + id__gte=id__gte, + id__lt=id__lt, + id__lte=id__lte, + id__in=id__in, + id__nin=id__nin, + id__notin=id__notin, + id__isnull=id__isnull, + id__nisnull=id__nisnull, + id__isnotnull=id__isnotnull, + id__l=id__l, + id__like=id__like, + id__nl=id__nl, + id__nlike=id__nlike, + id__notlike=id__notlike, + id__il=id__il, + id__ilike=id__ilike, + id__nil=id__nil, + id__nilike=id__nilike, + id__notilike=id__notilike, + id__desc=id__desc, + id__asc=id__asc, + created_at__eq=created_at__eq, + created_at__ne=created_at__ne, + created_at__gt=created_at__gt, + created_at__gte=created_at__gte, + created_at__lt=created_at__lt, + created_at__lte=created_at__lte, + created_at__in=created_at__in, + created_at__nin=created_at__nin, + created_at__notin=created_at__notin, + created_at__isnull=created_at__isnull, + created_at__nisnull=created_at__nisnull, + created_at__isnotnull=created_at__isnotnull, + created_at__l=created_at__l, + created_at__like=created_at__like, + created_at__nl=created_at__nl, + created_at__nlike=created_at__nlike, + created_at__notlike=created_at__notlike, + created_at__il=created_at__il, + created_at__ilike=created_at__ilike, + created_at__nil=created_at__nil, + created_at__nilike=created_at__nilike, + created_at__notilike=created_at__notilike, + created_at__desc=created_at__desc, + created_at__asc=created_at__asc, + updated_at__eq=updated_at__eq, + updated_at__ne=updated_at__ne, + updated_at__gt=updated_at__gt, + updated_at__gte=updated_at__gte, + updated_at__lt=updated_at__lt, + updated_at__lte=updated_at__lte, + updated_at__in=updated_at__in, + updated_at__nin=updated_at__nin, + updated_at__notin=updated_at__notin, + updated_at__isnull=updated_at__isnull, + updated_at__nisnull=updated_at__nisnull, + updated_at__isnotnull=updated_at__isnotnull, + updated_at__l=updated_at__l, + updated_at__like=updated_at__like, + updated_at__nl=updated_at__nl, + updated_at__nlike=updated_at__nlike, + updated_at__notlike=updated_at__notlike, + updated_at__il=updated_at__il, + updated_at__ilike=updated_at__ilike, + updated_at__nil=updated_at__nil, + updated_at__nilike=updated_at__nilike, + updated_at__notilike=updated_at__notilike, + updated_at__desc=updated_at__desc, + updated_at__asc=updated_at__asc, + deleted_at__eq=deleted_at__eq, + deleted_at__ne=deleted_at__ne, + deleted_at__gt=deleted_at__gt, + deleted_at__gte=deleted_at__gte, + deleted_at__lt=deleted_at__lt, + deleted_at__lte=deleted_at__lte, + deleted_at__in=deleted_at__in, + deleted_at__nin=deleted_at__nin, + deleted_at__notin=deleted_at__notin, + deleted_at__isnull=deleted_at__isnull, + deleted_at__nisnull=deleted_at__nisnull, + deleted_at__isnotnull=deleted_at__isnotnull, + deleted_at__l=deleted_at__l, + deleted_at__like=deleted_at__like, + deleted_at__nl=deleted_at__nl, + deleted_at__nlike=deleted_at__nlike, + deleted_at__notlike=deleted_at__notlike, + deleted_at__il=deleted_at__il, + deleted_at__ilike=deleted_at__ilike, + deleted_at__nil=deleted_at__nil, + deleted_at__nilike=deleted_at__nilike, + deleted_at__notilike=deleted_at__notilike, + deleted_at__desc=deleted_at__desc, + deleted_at__asc=deleted_at__asc, + name__eq=name__eq, + name__ne=name__ne, + name__gt=name__gt, + name__gte=name__gte, + name__lt=name__lt, + name__lte=name__lte, + name__in=name__in, + name__nin=name__nin, + name__notin=name__notin, + name__isnull=name__isnull, + name__nisnull=name__nisnull, + name__isnotnull=name__isnotnull, + name__l=name__l, + name__like=name__like, + name__nl=name__nl, + name__nlike=name__nlike, + name__notlike=name__notlike, + name__il=name__il, + name__ilike=name__ilike, + name__nil=name__nil, + name__nilike=name__nilike, + name__notilike=name__notilike, + name__desc=name__desc, + name__asc=name__asc, + stream_url__eq=stream_url__eq, + stream_url__ne=stream_url__ne, + stream_url__gt=stream_url__gt, + stream_url__gte=stream_url__gte, + stream_url__lt=stream_url__lt, + stream_url__lte=stream_url__lte, + stream_url__in=stream_url__in, + stream_url__nin=stream_url__nin, + stream_url__notin=stream_url__notin, + stream_url__isnull=stream_url__isnull, + stream_url__nisnull=stream_url__nisnull, + stream_url__isnotnull=stream_url__isnotnull, + stream_url__l=stream_url__l, + stream_url__like=stream_url__like, + stream_url__nl=stream_url__nl, + stream_url__nlike=stream_url__nlike, + stream_url__notlike=stream_url__notlike, + stream_url__il=stream_url__il, + stream_url__ilike=stream_url__ilike, + stream_url__nil=stream_url__nil, + stream_url__nilike=stream_url__nilike, + stream_url__notilike=stream_url__notilike, + stream_url__desc=stream_url__desc, + stream_url__asc=stream_url__asc, + last_seen__eq=last_seen__eq, + last_seen__ne=last_seen__ne, + last_seen__gt=last_seen__gt, + last_seen__gte=last_seen__gte, + last_seen__lt=last_seen__lt, + last_seen__lte=last_seen__lte, + last_seen__in=last_seen__in, + last_seen__nin=last_seen__nin, + last_seen__notin=last_seen__notin, + last_seen__isnull=last_seen__isnull, + last_seen__nisnull=last_seen__nisnull, + last_seen__isnotnull=last_seen__isnotnull, + last_seen__l=last_seen__l, + last_seen__like=last_seen__like, + last_seen__nl=last_seen__nl, + last_seen__nlike=last_seen__nlike, + last_seen__notlike=last_seen__notlike, + last_seen__il=last_seen__il, + last_seen__ilike=last_seen__ilike, + last_seen__nil=last_seen__nil, + last_seen__nilike=last_seen__nilike, + last_seen__notilike=last_seen__notilike, + last_seen__desc=last_seen__desc, + last_seen__asc=last_seen__asc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_cameras_serialize( + self, + limit, + offset, + id__eq, + id__ne, + id__gt, + id__gte, + id__lt, + id__lte, + id__in, + id__nin, + id__notin, + id__isnull, + id__nisnull, + id__isnotnull, + id__l, + id__like, + id__nl, + id__nlike, + id__notlike, + id__il, + id__ilike, + id__nil, + id__nilike, + id__notilike, + id__desc, + id__asc, + created_at__eq, + created_at__ne, + created_at__gt, + created_at__gte, + created_at__lt, + created_at__lte, + created_at__in, + created_at__nin, + created_at__notin, + created_at__isnull, + created_at__nisnull, + created_at__isnotnull, + created_at__l, + created_at__like, + created_at__nl, + created_at__nlike, + created_at__notlike, + created_at__il, + created_at__ilike, + created_at__nil, + created_at__nilike, + created_at__notilike, + created_at__desc, + created_at__asc, + updated_at__eq, + updated_at__ne, + updated_at__gt, + updated_at__gte, + updated_at__lt, + updated_at__lte, + updated_at__in, + updated_at__nin, + updated_at__notin, + updated_at__isnull, + updated_at__nisnull, + updated_at__isnotnull, + updated_at__l, + updated_at__like, + updated_at__nl, + updated_at__nlike, + updated_at__notlike, + updated_at__il, + updated_at__ilike, + updated_at__nil, + updated_at__nilike, + updated_at__notilike, + updated_at__desc, + updated_at__asc, + deleted_at__eq, + deleted_at__ne, + deleted_at__gt, + deleted_at__gte, + deleted_at__lt, + deleted_at__lte, + deleted_at__in, + deleted_at__nin, + deleted_at__notin, + deleted_at__isnull, + deleted_at__nisnull, + deleted_at__isnotnull, + deleted_at__l, + deleted_at__like, + deleted_at__nl, + deleted_at__nlike, + deleted_at__notlike, + deleted_at__il, + deleted_at__ilike, + deleted_at__nil, + deleted_at__nilike, + deleted_at__notilike, + deleted_at__desc, + deleted_at__asc, + name__eq, + name__ne, + name__gt, + name__gte, + name__lt, + name__lte, + name__in, + name__nin, + name__notin, + name__isnull, + name__nisnull, + name__isnotnull, + name__l, + name__like, + name__nl, + name__nlike, + name__notlike, + name__il, + name__ilike, + name__nil, + name__nilike, + name__notilike, + name__desc, + name__asc, + stream_url__eq, + stream_url__ne, + stream_url__gt, + stream_url__gte, + stream_url__lt, + stream_url__lte, + stream_url__in, + stream_url__nin, + stream_url__notin, + stream_url__isnull, + stream_url__nisnull, + stream_url__isnotnull, + stream_url__l, + stream_url__like, + stream_url__nl, + stream_url__nlike, + stream_url__notlike, + stream_url__il, + stream_url__ilike, + stream_url__nil, + stream_url__nilike, + stream_url__notilike, + stream_url__desc, + stream_url__asc, + last_seen__eq, + last_seen__ne, + last_seen__gt, + last_seen__gte, + last_seen__lt, + last_seen__lte, + last_seen__in, + last_seen__nin, + last_seen__notin, + last_seen__isnull, + last_seen__nisnull, + last_seen__isnotnull, + last_seen__l, + last_seen__like, + last_seen__nl, + last_seen__nlike, + last_seen__notlike, + last_seen__il, + last_seen__ilike, + last_seen__nil, + last_seen__nilike, + last_seen__notilike, + last_seen__desc, + last_seen__asc, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if offset is not None: + + _query_params.append(('offset', offset)) + + if id__eq is not None: + + _query_params.append(('id__eq', id__eq)) + + if id__ne is not None: + + _query_params.append(('id__ne', id__ne)) + + if id__gt is not None: + + _query_params.append(('id__gt', id__gt)) + + if id__gte is not None: + + _query_params.append(('id__gte', id__gte)) + + if id__lt is not None: + + _query_params.append(('id__lt', id__lt)) + + if id__lte is not None: + + _query_params.append(('id__lte', id__lte)) + + if id__in is not None: + + _query_params.append(('id__in', id__in)) + + if id__nin is not None: + + _query_params.append(('id__nin', id__nin)) + + if id__notin is not None: + + _query_params.append(('id__notin', id__notin)) + + if id__isnull is not None: + + _query_params.append(('id__isnull', id__isnull)) + + if id__nisnull is not None: + + _query_params.append(('id__nisnull', id__nisnull)) + + if id__isnotnull is not None: + + _query_params.append(('id__isnotnull', id__isnotnull)) + + if id__l is not None: + + _query_params.append(('id__l', id__l)) + + if id__like is not None: + + _query_params.append(('id__like', id__like)) + + if id__nl is not None: + + _query_params.append(('id__nl', id__nl)) + + if id__nlike is not None: + + _query_params.append(('id__nlike', id__nlike)) + + if id__notlike is not None: + + _query_params.append(('id__notlike', id__notlike)) + + if id__il is not None: + + _query_params.append(('id__il', id__il)) + + if id__ilike is not None: + + _query_params.append(('id__ilike', id__ilike)) + + if id__nil is not None: + + _query_params.append(('id__nil', id__nil)) + + if id__nilike is not None: + + _query_params.append(('id__nilike', id__nilike)) + + if id__notilike is not None: + + _query_params.append(('id__notilike', id__notilike)) + + if id__desc is not None: + + _query_params.append(('id__desc', id__desc)) + + if id__asc is not None: + + _query_params.append(('id__asc', id__asc)) + + if created_at__eq is not None: + if isinstance(created_at__eq, datetime): + _query_params.append( + ( + 'created_at__eq', + created_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__eq', created_at__eq)) + + if created_at__ne is not None: + if isinstance(created_at__ne, datetime): + _query_params.append( + ( + 'created_at__ne', + created_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__ne', created_at__ne)) + + if created_at__gt is not None: + if isinstance(created_at__gt, datetime): + _query_params.append( + ( + 'created_at__gt', + created_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__gt', created_at__gt)) + + if created_at__gte is not None: + if isinstance(created_at__gte, datetime): + _query_params.append( + ( + 'created_at__gte', + created_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__gte', created_at__gte)) + + if created_at__lt is not None: + if isinstance(created_at__lt, datetime): + _query_params.append( + ( + 'created_at__lt', + created_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__lt', created_at__lt)) + + if created_at__lte is not None: + if isinstance(created_at__lte, datetime): + _query_params.append( + ( + 'created_at__lte', + created_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__lte', created_at__lte)) + + if created_at__in is not None: + if isinstance(created_at__in, datetime): + _query_params.append( + ( + 'created_at__in', + created_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__in', created_at__in)) + + if created_at__nin is not None: + if isinstance(created_at__nin, datetime): + _query_params.append( + ( + 'created_at__nin', + created_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__nin', created_at__nin)) + + if created_at__notin is not None: + if isinstance(created_at__notin, datetime): + _query_params.append( + ( + 'created_at__notin', + created_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__notin', created_at__notin)) + + if created_at__isnull is not None: + + _query_params.append(('created_at__isnull', created_at__isnull)) + + if created_at__nisnull is not None: + + _query_params.append(('created_at__nisnull', created_at__nisnull)) + + if created_at__isnotnull is not None: + + _query_params.append(('created_at__isnotnull', created_at__isnotnull)) + + if created_at__l is not None: + + _query_params.append(('created_at__l', created_at__l)) + + if created_at__like is not None: + + _query_params.append(('created_at__like', created_at__like)) + + if created_at__nl is not None: + + _query_params.append(('created_at__nl', created_at__nl)) + + if created_at__nlike is not None: + + _query_params.append(('created_at__nlike', created_at__nlike)) + + if created_at__notlike is not None: + + _query_params.append(('created_at__notlike', created_at__notlike)) + + if created_at__il is not None: + + _query_params.append(('created_at__il', created_at__il)) + + if created_at__ilike is not None: + + _query_params.append(('created_at__ilike', created_at__ilike)) + + if created_at__nil is not None: + + _query_params.append(('created_at__nil', created_at__nil)) + + if created_at__nilike is not None: + + _query_params.append(('created_at__nilike', created_at__nilike)) + + if created_at__notilike is not None: + + _query_params.append(('created_at__notilike', created_at__notilike)) + + if created_at__desc is not None: + + _query_params.append(('created_at__desc', created_at__desc)) + + if created_at__asc is not None: + + _query_params.append(('created_at__asc', created_at__asc)) + + if updated_at__eq is not None: + if isinstance(updated_at__eq, datetime): + _query_params.append( + ( + 'updated_at__eq', + updated_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__eq', updated_at__eq)) + + if updated_at__ne is not None: + if isinstance(updated_at__ne, datetime): + _query_params.append( + ( + 'updated_at__ne', + updated_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__ne', updated_at__ne)) + + if updated_at__gt is not None: + if isinstance(updated_at__gt, datetime): + _query_params.append( + ( + 'updated_at__gt', + updated_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__gt', updated_at__gt)) + + if updated_at__gte is not None: + if isinstance(updated_at__gte, datetime): + _query_params.append( + ( + 'updated_at__gte', + updated_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__gte', updated_at__gte)) + + if updated_at__lt is not None: + if isinstance(updated_at__lt, datetime): + _query_params.append( + ( + 'updated_at__lt', + updated_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__lt', updated_at__lt)) + + if updated_at__lte is not None: + if isinstance(updated_at__lte, datetime): + _query_params.append( + ( + 'updated_at__lte', + updated_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__lte', updated_at__lte)) + + if updated_at__in is not None: + if isinstance(updated_at__in, datetime): + _query_params.append( + ( + 'updated_at__in', + updated_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__in', updated_at__in)) + + if updated_at__nin is not None: + if isinstance(updated_at__nin, datetime): + _query_params.append( + ( + 'updated_at__nin', + updated_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__nin', updated_at__nin)) + + if updated_at__notin is not None: + if isinstance(updated_at__notin, datetime): + _query_params.append( + ( + 'updated_at__notin', + updated_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__notin', updated_at__notin)) + + if updated_at__isnull is not None: + + _query_params.append(('updated_at__isnull', updated_at__isnull)) + + if updated_at__nisnull is not None: + + _query_params.append(('updated_at__nisnull', updated_at__nisnull)) + + if updated_at__isnotnull is not None: + + _query_params.append(('updated_at__isnotnull', updated_at__isnotnull)) + + if updated_at__l is not None: + + _query_params.append(('updated_at__l', updated_at__l)) + + if updated_at__like is not None: + + _query_params.append(('updated_at__like', updated_at__like)) + + if updated_at__nl is not None: + + _query_params.append(('updated_at__nl', updated_at__nl)) + + if updated_at__nlike is not None: + + _query_params.append(('updated_at__nlike', updated_at__nlike)) + + if updated_at__notlike is not None: + + _query_params.append(('updated_at__notlike', updated_at__notlike)) + + if updated_at__il is not None: + + _query_params.append(('updated_at__il', updated_at__il)) + + if updated_at__ilike is not None: + + _query_params.append(('updated_at__ilike', updated_at__ilike)) + + if updated_at__nil is not None: + + _query_params.append(('updated_at__nil', updated_at__nil)) + + if updated_at__nilike is not None: + + _query_params.append(('updated_at__nilike', updated_at__nilike)) + + if updated_at__notilike is not None: + + _query_params.append(('updated_at__notilike', updated_at__notilike)) + + if updated_at__desc is not None: + + _query_params.append(('updated_at__desc', updated_at__desc)) + + if updated_at__asc is not None: + + _query_params.append(('updated_at__asc', updated_at__asc)) + + if deleted_at__eq is not None: + if isinstance(deleted_at__eq, datetime): + _query_params.append( + ( + 'deleted_at__eq', + deleted_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__eq', deleted_at__eq)) + + if deleted_at__ne is not None: + if isinstance(deleted_at__ne, datetime): + _query_params.append( + ( + 'deleted_at__ne', + deleted_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__ne', deleted_at__ne)) + + if deleted_at__gt is not None: + if isinstance(deleted_at__gt, datetime): + _query_params.append( + ( + 'deleted_at__gt', + deleted_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__gt', deleted_at__gt)) + + if deleted_at__gte is not None: + if isinstance(deleted_at__gte, datetime): + _query_params.append( + ( + 'deleted_at__gte', + deleted_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__gte', deleted_at__gte)) + + if deleted_at__lt is not None: + if isinstance(deleted_at__lt, datetime): + _query_params.append( + ( + 'deleted_at__lt', + deleted_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__lt', deleted_at__lt)) + + if deleted_at__lte is not None: + if isinstance(deleted_at__lte, datetime): + _query_params.append( + ( + 'deleted_at__lte', + deleted_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__lte', deleted_at__lte)) + + if deleted_at__in is not None: + if isinstance(deleted_at__in, datetime): + _query_params.append( + ( + 'deleted_at__in', + deleted_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__in', deleted_at__in)) + + if deleted_at__nin is not None: + if isinstance(deleted_at__nin, datetime): + _query_params.append( + ( + 'deleted_at__nin', + deleted_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__nin', deleted_at__nin)) + + if deleted_at__notin is not None: + if isinstance(deleted_at__notin, datetime): + _query_params.append( + ( + 'deleted_at__notin', + deleted_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__notin', deleted_at__notin)) + + if deleted_at__isnull is not None: + + _query_params.append(('deleted_at__isnull', deleted_at__isnull)) + + if deleted_at__nisnull is not None: + + _query_params.append(('deleted_at__nisnull', deleted_at__nisnull)) + + if deleted_at__isnotnull is not None: + + _query_params.append(('deleted_at__isnotnull', deleted_at__isnotnull)) + + if deleted_at__l is not None: + + _query_params.append(('deleted_at__l', deleted_at__l)) + + if deleted_at__like is not None: + + _query_params.append(('deleted_at__like', deleted_at__like)) + + if deleted_at__nl is not None: + + _query_params.append(('deleted_at__nl', deleted_at__nl)) + + if deleted_at__nlike is not None: + + _query_params.append(('deleted_at__nlike', deleted_at__nlike)) + + if deleted_at__notlike is not None: + + _query_params.append(('deleted_at__notlike', deleted_at__notlike)) + + if deleted_at__il is not None: + + _query_params.append(('deleted_at__il', deleted_at__il)) + + if deleted_at__ilike is not None: + + _query_params.append(('deleted_at__ilike', deleted_at__ilike)) + + if deleted_at__nil is not None: + + _query_params.append(('deleted_at__nil', deleted_at__nil)) + + if deleted_at__nilike is not None: + + _query_params.append(('deleted_at__nilike', deleted_at__nilike)) + + if deleted_at__notilike is not None: + + _query_params.append(('deleted_at__notilike', deleted_at__notilike)) + + if deleted_at__desc is not None: + + _query_params.append(('deleted_at__desc', deleted_at__desc)) + + if deleted_at__asc is not None: + + _query_params.append(('deleted_at__asc', deleted_at__asc)) + + if name__eq is not None: + + _query_params.append(('name__eq', name__eq)) + + if name__ne is not None: + + _query_params.append(('name__ne', name__ne)) + + if name__gt is not None: + + _query_params.append(('name__gt', name__gt)) + + if name__gte is not None: + + _query_params.append(('name__gte', name__gte)) + + if name__lt is not None: + + _query_params.append(('name__lt', name__lt)) + + if name__lte is not None: + + _query_params.append(('name__lte', name__lte)) + + if name__in is not None: + + _query_params.append(('name__in', name__in)) + + if name__nin is not None: + + _query_params.append(('name__nin', name__nin)) + + if name__notin is not None: + + _query_params.append(('name__notin', name__notin)) + + if name__isnull is not None: + + _query_params.append(('name__isnull', name__isnull)) + + if name__nisnull is not None: + + _query_params.append(('name__nisnull', name__nisnull)) + + if name__isnotnull is not None: + + _query_params.append(('name__isnotnull', name__isnotnull)) + + if name__l is not None: + + _query_params.append(('name__l', name__l)) + + if name__like is not None: + + _query_params.append(('name__like', name__like)) + + if name__nl is not None: + + _query_params.append(('name__nl', name__nl)) + + if name__nlike is not None: + + _query_params.append(('name__nlike', name__nlike)) + + if name__notlike is not None: + + _query_params.append(('name__notlike', name__notlike)) + + if name__il is not None: + + _query_params.append(('name__il', name__il)) + + if name__ilike is not None: + + _query_params.append(('name__ilike', name__ilike)) + + if name__nil is not None: + + _query_params.append(('name__nil', name__nil)) + + if name__nilike is not None: + + _query_params.append(('name__nilike', name__nilike)) + + if name__notilike is not None: + + _query_params.append(('name__notilike', name__notilike)) + + if name__desc is not None: + + _query_params.append(('name__desc', name__desc)) + + if name__asc is not None: + + _query_params.append(('name__asc', name__asc)) + + if stream_url__eq is not None: + + _query_params.append(('stream_url__eq', stream_url__eq)) + + if stream_url__ne is not None: + + _query_params.append(('stream_url__ne', stream_url__ne)) + + if stream_url__gt is not None: + + _query_params.append(('stream_url__gt', stream_url__gt)) + + if stream_url__gte is not None: + + _query_params.append(('stream_url__gte', stream_url__gte)) + + if stream_url__lt is not None: + + _query_params.append(('stream_url__lt', stream_url__lt)) + + if stream_url__lte is not None: + + _query_params.append(('stream_url__lte', stream_url__lte)) + + if stream_url__in is not None: + + _query_params.append(('stream_url__in', stream_url__in)) + + if stream_url__nin is not None: + + _query_params.append(('stream_url__nin', stream_url__nin)) + + if stream_url__notin is not None: + + _query_params.append(('stream_url__notin', stream_url__notin)) + + if stream_url__isnull is not None: + + _query_params.append(('stream_url__isnull', stream_url__isnull)) + + if stream_url__nisnull is not None: + + _query_params.append(('stream_url__nisnull', stream_url__nisnull)) + + if stream_url__isnotnull is not None: + + _query_params.append(('stream_url__isnotnull', stream_url__isnotnull)) + + if stream_url__l is not None: + + _query_params.append(('stream_url__l', stream_url__l)) + + if stream_url__like is not None: + + _query_params.append(('stream_url__like', stream_url__like)) + + if stream_url__nl is not None: + + _query_params.append(('stream_url__nl', stream_url__nl)) + + if stream_url__nlike is not None: + + _query_params.append(('stream_url__nlike', stream_url__nlike)) + + if stream_url__notlike is not None: + + _query_params.append(('stream_url__notlike', stream_url__notlike)) + + if stream_url__il is not None: + + _query_params.append(('stream_url__il', stream_url__il)) + + if stream_url__ilike is not None: + + _query_params.append(('stream_url__ilike', stream_url__ilike)) + + if stream_url__nil is not None: + + _query_params.append(('stream_url__nil', stream_url__nil)) + + if stream_url__nilike is not None: + + _query_params.append(('stream_url__nilike', stream_url__nilike)) + + if stream_url__notilike is not None: + + _query_params.append(('stream_url__notilike', stream_url__notilike)) + + if stream_url__desc is not None: + + _query_params.append(('stream_url__desc', stream_url__desc)) + + if stream_url__asc is not None: + + _query_params.append(('stream_url__asc', stream_url__asc)) + + if last_seen__eq is not None: + if isinstance(last_seen__eq, datetime): + _query_params.append( + ( + 'last_seen__eq', + last_seen__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_seen__eq', last_seen__eq)) + + if last_seen__ne is not None: + if isinstance(last_seen__ne, datetime): + _query_params.append( + ( + 'last_seen__ne', + last_seen__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_seen__ne', last_seen__ne)) + + if last_seen__gt is not None: + if isinstance(last_seen__gt, datetime): + _query_params.append( + ( + 'last_seen__gt', + last_seen__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_seen__gt', last_seen__gt)) + + if last_seen__gte is not None: + if isinstance(last_seen__gte, datetime): + _query_params.append( + ( + 'last_seen__gte', + last_seen__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_seen__gte', last_seen__gte)) + + if last_seen__lt is not None: + if isinstance(last_seen__lt, datetime): + _query_params.append( + ( + 'last_seen__lt', + last_seen__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_seen__lt', last_seen__lt)) + + if last_seen__lte is not None: + if isinstance(last_seen__lte, datetime): + _query_params.append( + ( + 'last_seen__lte', + last_seen__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_seen__lte', last_seen__lte)) + + if last_seen__in is not None: + if isinstance(last_seen__in, datetime): + _query_params.append( + ( + 'last_seen__in', + last_seen__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_seen__in', last_seen__in)) + + if last_seen__nin is not None: + if isinstance(last_seen__nin, datetime): + _query_params.append( + ( + 'last_seen__nin', + last_seen__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_seen__nin', last_seen__nin)) + + if last_seen__notin is not None: + if isinstance(last_seen__notin, datetime): + _query_params.append( + ( + 'last_seen__notin', + last_seen__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_seen__notin', last_seen__notin)) + + if last_seen__isnull is not None: + + _query_params.append(('last_seen__isnull', last_seen__isnull)) + + if last_seen__nisnull is not None: + + _query_params.append(('last_seen__nisnull', last_seen__nisnull)) + + if last_seen__isnotnull is not None: + + _query_params.append(('last_seen__isnotnull', last_seen__isnotnull)) + + if last_seen__l is not None: + + _query_params.append(('last_seen__l', last_seen__l)) + + if last_seen__like is not None: + + _query_params.append(('last_seen__like', last_seen__like)) + + if last_seen__nl is not None: + + _query_params.append(('last_seen__nl', last_seen__nl)) + + if last_seen__nlike is not None: + + _query_params.append(('last_seen__nlike', last_seen__nlike)) + + if last_seen__notlike is not None: + + _query_params.append(('last_seen__notlike', last_seen__notlike)) + + if last_seen__il is not None: + + _query_params.append(('last_seen__il', last_seen__il)) + + if last_seen__ilike is not None: + + _query_params.append(('last_seen__ilike', last_seen__ilike)) + + if last_seen__nil is not None: + + _query_params.append(('last_seen__nil', last_seen__nil)) + + if last_seen__nilike is not None: + + _query_params.append(('last_seen__nilike', last_seen__nilike)) + + if last_seen__notilike is not None: + + _query_params.append(('last_seen__notilike', last_seen__notilike)) + + if last_seen__desc is not None: + + _query_params.append(('last_seen__desc', last_seen__desc)) + + if last_seen__asc is not None: + + _query_params.append(('last_seen__asc', last_seen__asc)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/cameras', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def patch_camera( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + camera: Camera, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCameras200Response: + """patch_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param camera: (required) + :type camera: Camera + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_camera_serialize( + primary_key=primary_key, + camera=camera, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def patch_camera_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + camera: Camera, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCameras200Response]: + """patch_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param camera: (required) + :type camera: Camera + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_camera_serialize( + primary_key=primary_key, + camera=camera, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def patch_camera_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + camera: Camera, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param camera: (required) + :type camera: Camera + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_camera_serialize( + primary_key=primary_key, + camera=camera, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _patch_camera_serialize( + self, + primary_key, + camera, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if camera is not None: + _body_params = camera + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/api/cameras/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_cameras( + self, + camera: List[Camera], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCameras200Response: + """post_cameras + + + :param camera: (required) + :type camera: List[Camera] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_cameras_serialize( + camera=camera, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_cameras_with_http_info( + self, + camera: List[Camera], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCameras200Response]: + """post_cameras + + + :param camera: (required) + :type camera: List[Camera] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_cameras_serialize( + camera=camera, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_cameras_without_preload_content( + self, + camera: List[Camera], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_cameras + + + :param camera: (required) + :type camera: List[Camera] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_cameras_serialize( + camera=camera, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_cameras_serialize( + self, + camera, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'Camera': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if camera is not None: + _body_params = camera + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/cameras', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_camera( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + camera: Camera, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCameras200Response: + """put_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param camera: (required) + :type camera: Camera + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_camera_serialize( + primary_key=primary_key, + camera=camera, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_camera_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + camera: Camera, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCameras200Response]: + """put_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param camera: (required) + :type camera: Camera + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_camera_serialize( + primary_key=primary_key, + camera=camera, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_camera_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Camera")], + camera: Camera, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """put_camera + + + :param primary_key: Primary key for Camera (required) + :type primary_key: object + :param camera: (required) + :type camera: Camera + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_camera_serialize( + primary_key=primary_key, + camera=camera, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCameras200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_camera_serialize( + self, + primary_key, + camera, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if camera is not None: + _body_params = camera + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/cameras/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/object_detector/openapi_client/api/detection_api.py b/object_detector/openapi_client/api/detection_api.py new file mode 100644 index 0000000..b57d0a1 --- /dev/null +++ b/object_detector/openapi_client/api/detection_api.py @@ -0,0 +1,6064 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import datetime +from pydantic import Field, StrictFloat, StrictInt, StrictStr +from typing import Any, List, Optional, Union +from typing_extensions import Annotated +from openapi_client.models.detection import Detection +from openapi_client.models.get_detections200_response import GetDetections200Response + +from openapi_client.api_client import ApiClient, RequestSerialized +from openapi_client.api_response import ApiResponse +from openapi_client.rest import RESTResponseType + + +class DetectionApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_detection( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """delete_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_detection_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_detection_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """delete_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_detection_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_detection_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_detection_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_detection_serialize( + self, + primary_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/detections/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_detection( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetDetections200Response: + """get_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_detection_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_detection_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetDetections200Response]: + """get_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_detection_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_detection_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_detection_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_detection_serialize( + self, + primary_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/detections/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_detections( + self, + limit: Annotated[Optional[StrictInt], Field(description="SQL LIMIT operator")] = None, + offset: Annotated[Optional[StrictInt], Field(description="SQL OFFSET operator")] = None, + id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + created_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + created_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + created_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + created_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + created_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + created_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + created_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + updated_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + updated_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + updated_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + updated_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + updated_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + updated_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + updated_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + deleted_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + deleted_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + deleted_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + deleted_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + deleted_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + deleted_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + deleted_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + seen_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + seen_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + seen_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + seen_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + seen_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + seen_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + seen_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + seen_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + seen_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + class_id__eq: Annotated[Optional[StrictInt], Field(description="SQL = operator")] = None, + class_id__ne: Annotated[Optional[StrictInt], Field(description="SQL != operator")] = None, + class_id__gt: Annotated[Optional[StrictInt], Field(description="SQL > operator, may not work with all column types")] = None, + class_id__gte: Annotated[Optional[StrictInt], Field(description="SQL >= operator, may not work with all column types")] = None, + class_id__lt: Annotated[Optional[StrictInt], Field(description="SQL < operator, may not work with all column types")] = None, + class_id__lte: Annotated[Optional[StrictInt], Field(description="SQL <= operator, may not work with all column types")] = None, + class_id__in: Annotated[Optional[StrictInt], Field(description="SQL IN operator, permits comma-separated values")] = None, + class_id__nin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_id__notin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + class_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + class_name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + class_name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + class_name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + class_name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + class_name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + class_name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + class_name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + class_name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + class_name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + score__eq: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL = operator")] = None, + score__ne: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL != operator")] = None, + score__gt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL > operator, may not work with all column types")] = None, + score__gte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL >= operator, may not work with all column types")] = None, + score__lt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL < operator, may not work with all column types")] = None, + score__lte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL <= operator, may not work with all column types")] = None, + score__in: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL IN operator, permits comma-separated values")] = None, + score__nin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + score__notin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + score__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + score__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + score__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + score__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + score__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + video_id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + video_id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + video_id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + video_id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + video_id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + video_id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + video_id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + video_id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + video_id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + video_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + video_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + video_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + video_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + video_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + camera_id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + camera_id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + camera_id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + camera_id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + camera_id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + camera_id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + camera_id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetDetections200Response: + """get_detections + + + :param limit: SQL LIMIT operator + :type limit: int + :param offset: SQL OFFSET operator + :type offset: int + :param id__eq: SQL = operator + :type id__eq: str + :param id__ne: SQL != operator + :type id__ne: str + :param id__gt: SQL > operator, may not work with all column types + :type id__gt: str + :param id__gte: SQL >= operator, may not work with all column types + :type id__gte: str + :param id__lt: SQL < operator, may not work with all column types + :type id__lt: str + :param id__lte: SQL <= operator, may not work with all column types + :type id__lte: str + :param id__in: SQL IN operator, permits comma-separated values + :type id__in: str + :param id__nin: SQL NOT IN operator, permits comma-separated values + :type id__nin: str + :param id__notin: SQL NOT IN operator, permits comma-separated values + :type id__notin: str + :param id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type id__isnull: str + :param id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__nisnull: str + :param id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__isnotnull: str + :param id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__l: str + :param id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__like: str + :param id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nl: str + :param id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nlike: str + :param id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__notlike: str + :param id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__il: str + :param id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__ilike: str + :param id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nil: str + :param id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nilike: str + :param id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__notilike: str + :param id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type id__desc: str + :param id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type id__asc: str + :param created_at__eq: SQL = operator + :type created_at__eq: datetime + :param created_at__ne: SQL != operator + :type created_at__ne: datetime + :param created_at__gt: SQL > operator, may not work with all column types + :type created_at__gt: datetime + :param created_at__gte: SQL >= operator, may not work with all column types + :type created_at__gte: datetime + :param created_at__lt: SQL < operator, may not work with all column types + :type created_at__lt: datetime + :param created_at__lte: SQL <= operator, may not work with all column types + :type created_at__lte: datetime + :param created_at__in: SQL IN operator, permits comma-separated values + :type created_at__in: datetime + :param created_at__nin: SQL NOT IN operator, permits comma-separated values + :type created_at__nin: datetime + :param created_at__notin: SQL NOT IN operator, permits comma-separated values + :type created_at__notin: datetime + :param created_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnull: str + :param created_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__nisnull: str + :param created_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnotnull: str + :param created_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__l: str + :param created_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__like: str + :param created_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nl: str + :param created_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nlike: str + :param created_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notlike: str + :param created_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__il: str + :param created_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__ilike: str + :param created_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nil: str + :param created_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nilike: str + :param created_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notilike: str + :param created_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type created_at__desc: str + :param created_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type created_at__asc: str + :param updated_at__eq: SQL = operator + :type updated_at__eq: datetime + :param updated_at__ne: SQL != operator + :type updated_at__ne: datetime + :param updated_at__gt: SQL > operator, may not work with all column types + :type updated_at__gt: datetime + :param updated_at__gte: SQL >= operator, may not work with all column types + :type updated_at__gte: datetime + :param updated_at__lt: SQL < operator, may not work with all column types + :type updated_at__lt: datetime + :param updated_at__lte: SQL <= operator, may not work with all column types + :type updated_at__lte: datetime + :param updated_at__in: SQL IN operator, permits comma-separated values + :type updated_at__in: datetime + :param updated_at__nin: SQL NOT IN operator, permits comma-separated values + :type updated_at__nin: datetime + :param updated_at__notin: SQL NOT IN operator, permits comma-separated values + :type updated_at__notin: datetime + :param updated_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnull: str + :param updated_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__nisnull: str + :param updated_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnotnull: str + :param updated_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__l: str + :param updated_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__like: str + :param updated_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nl: str + :param updated_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nlike: str + :param updated_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notlike: str + :param updated_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__il: str + :param updated_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__ilike: str + :param updated_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nil: str + :param updated_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nilike: str + :param updated_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notilike: str + :param updated_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type updated_at__desc: str + :param updated_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type updated_at__asc: str + :param deleted_at__eq: SQL = operator + :type deleted_at__eq: datetime + :param deleted_at__ne: SQL != operator + :type deleted_at__ne: datetime + :param deleted_at__gt: SQL > operator, may not work with all column types + :type deleted_at__gt: datetime + :param deleted_at__gte: SQL >= operator, may not work with all column types + :type deleted_at__gte: datetime + :param deleted_at__lt: SQL < operator, may not work with all column types + :type deleted_at__lt: datetime + :param deleted_at__lte: SQL <= operator, may not work with all column types + :type deleted_at__lte: datetime + :param deleted_at__in: SQL IN operator, permits comma-separated values + :type deleted_at__in: datetime + :param deleted_at__nin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__nin: datetime + :param deleted_at__notin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__notin: datetime + :param deleted_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnull: str + :param deleted_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__nisnull: str + :param deleted_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnotnull: str + :param deleted_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__l: str + :param deleted_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__like: str + :param deleted_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nl: str + :param deleted_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nlike: str + :param deleted_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notlike: str + :param deleted_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__il: str + :param deleted_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__ilike: str + :param deleted_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nil: str + :param deleted_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nilike: str + :param deleted_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notilike: str + :param deleted_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type deleted_at__desc: str + :param deleted_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type deleted_at__asc: str + :param seen_at__eq: SQL = operator + :type seen_at__eq: datetime + :param seen_at__ne: SQL != operator + :type seen_at__ne: datetime + :param seen_at__gt: SQL > operator, may not work with all column types + :type seen_at__gt: datetime + :param seen_at__gte: SQL >= operator, may not work with all column types + :type seen_at__gte: datetime + :param seen_at__lt: SQL < operator, may not work with all column types + :type seen_at__lt: datetime + :param seen_at__lte: SQL <= operator, may not work with all column types + :type seen_at__lte: datetime + :param seen_at__in: SQL IN operator, permits comma-separated values + :type seen_at__in: datetime + :param seen_at__nin: SQL NOT IN operator, permits comma-separated values + :type seen_at__nin: datetime + :param seen_at__notin: SQL NOT IN operator, permits comma-separated values + :type seen_at__notin: datetime + :param seen_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type seen_at__isnull: str + :param seen_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type seen_at__nisnull: str + :param seen_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type seen_at__isnotnull: str + :param seen_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__l: str + :param seen_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__like: str + :param seen_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nl: str + :param seen_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nlike: str + :param seen_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__notlike: str + :param seen_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__il: str + :param seen_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__ilike: str + :param seen_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nil: str + :param seen_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nilike: str + :param seen_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__notilike: str + :param seen_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type seen_at__desc: str + :param seen_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type seen_at__asc: str + :param class_id__eq: SQL = operator + :type class_id__eq: int + :param class_id__ne: SQL != operator + :type class_id__ne: int + :param class_id__gt: SQL > operator, may not work with all column types + :type class_id__gt: int + :param class_id__gte: SQL >= operator, may not work with all column types + :type class_id__gte: int + :param class_id__lt: SQL < operator, may not work with all column types + :type class_id__lt: int + :param class_id__lte: SQL <= operator, may not work with all column types + :type class_id__lte: int + :param class_id__in: SQL IN operator, permits comma-separated values + :type class_id__in: int + :param class_id__nin: SQL NOT IN operator, permits comma-separated values + :type class_id__nin: int + :param class_id__notin: SQL NOT IN operator, permits comma-separated values + :type class_id__notin: int + :param class_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type class_id__isnull: str + :param class_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_id__nisnull: str + :param class_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_id__isnotnull: str + :param class_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__l: str + :param class_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__like: str + :param class_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nl: str + :param class_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nlike: str + :param class_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__notlike: str + :param class_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__il: str + :param class_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__ilike: str + :param class_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nil: str + :param class_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nilike: str + :param class_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__notilike: str + :param class_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type class_id__desc: str + :param class_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type class_id__asc: str + :param class_name__eq: SQL = operator + :type class_name__eq: str + :param class_name__ne: SQL != operator + :type class_name__ne: str + :param class_name__gt: SQL > operator, may not work with all column types + :type class_name__gt: str + :param class_name__gte: SQL >= operator, may not work with all column types + :type class_name__gte: str + :param class_name__lt: SQL < operator, may not work with all column types + :type class_name__lt: str + :param class_name__lte: SQL <= operator, may not work with all column types + :type class_name__lte: str + :param class_name__in: SQL IN operator, permits comma-separated values + :type class_name__in: str + :param class_name__nin: SQL NOT IN operator, permits comma-separated values + :type class_name__nin: str + :param class_name__notin: SQL NOT IN operator, permits comma-separated values + :type class_name__notin: str + :param class_name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type class_name__isnull: str + :param class_name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_name__nisnull: str + :param class_name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_name__isnotnull: str + :param class_name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__l: str + :param class_name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__like: str + :param class_name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nl: str + :param class_name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nlike: str + :param class_name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__notlike: str + :param class_name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__il: str + :param class_name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__ilike: str + :param class_name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nil: str + :param class_name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nilike: str + :param class_name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__notilike: str + :param class_name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type class_name__desc: str + :param class_name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type class_name__asc: str + :param score__eq: SQL = operator + :type score__eq: float + :param score__ne: SQL != operator + :type score__ne: float + :param score__gt: SQL > operator, may not work with all column types + :type score__gt: float + :param score__gte: SQL >= operator, may not work with all column types + :type score__gte: float + :param score__lt: SQL < operator, may not work with all column types + :type score__lt: float + :param score__lte: SQL <= operator, may not work with all column types + :type score__lte: float + :param score__in: SQL IN operator, permits comma-separated values + :type score__in: float + :param score__nin: SQL NOT IN operator, permits comma-separated values + :type score__nin: float + :param score__notin: SQL NOT IN operator, permits comma-separated values + :type score__notin: float + :param score__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type score__isnull: str + :param score__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type score__nisnull: str + :param score__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type score__isnotnull: str + :param score__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type score__l: str + :param score__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type score__like: str + :param score__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type score__nl: str + :param score__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type score__nlike: str + :param score__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type score__notlike: str + :param score__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__il: str + :param score__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__ilike: str + :param score__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__nil: str + :param score__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__nilike: str + :param score__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__notilike: str + :param score__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type score__desc: str + :param score__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type score__asc: str + :param video_id__eq: SQL = operator + :type video_id__eq: str + :param video_id__ne: SQL != operator + :type video_id__ne: str + :param video_id__gt: SQL > operator, may not work with all column types + :type video_id__gt: str + :param video_id__gte: SQL >= operator, may not work with all column types + :type video_id__gte: str + :param video_id__lt: SQL < operator, may not work with all column types + :type video_id__lt: str + :param video_id__lte: SQL <= operator, may not work with all column types + :type video_id__lte: str + :param video_id__in: SQL IN operator, permits comma-separated values + :type video_id__in: str + :param video_id__nin: SQL NOT IN operator, permits comma-separated values + :type video_id__nin: str + :param video_id__notin: SQL NOT IN operator, permits comma-separated values + :type video_id__notin: str + :param video_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type video_id__isnull: str + :param video_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type video_id__nisnull: str + :param video_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type video_id__isnotnull: str + :param video_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__l: str + :param video_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__like: str + :param video_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nl: str + :param video_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nlike: str + :param video_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__notlike: str + :param video_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__il: str + :param video_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__ilike: str + :param video_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nil: str + :param video_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nilike: str + :param video_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__notilike: str + :param video_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type video_id__desc: str + :param video_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type video_id__asc: str + :param camera_id__eq: SQL = operator + :type camera_id__eq: str + :param camera_id__ne: SQL != operator + :type camera_id__ne: str + :param camera_id__gt: SQL > operator, may not work with all column types + :type camera_id__gt: str + :param camera_id__gte: SQL >= operator, may not work with all column types + :type camera_id__gte: str + :param camera_id__lt: SQL < operator, may not work with all column types + :type camera_id__lt: str + :param camera_id__lte: SQL <= operator, may not work with all column types + :type camera_id__lte: str + :param camera_id__in: SQL IN operator, permits comma-separated values + :type camera_id__in: str + :param camera_id__nin: SQL NOT IN operator, permits comma-separated values + :type camera_id__nin: str + :param camera_id__notin: SQL NOT IN operator, permits comma-separated values + :type camera_id__notin: str + :param camera_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnull: str + :param camera_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__nisnull: str + :param camera_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnotnull: str + :param camera_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__l: str + :param camera_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__like: str + :param camera_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nl: str + :param camera_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nlike: str + :param camera_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notlike: str + :param camera_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__il: str + :param camera_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__ilike: str + :param camera_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nil: str + :param camera_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nilike: str + :param camera_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notilike: str + :param camera_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type camera_id__desc: str + :param camera_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type camera_id__asc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_detections_serialize( + limit=limit, + offset=offset, + id__eq=id__eq, + id__ne=id__ne, + id__gt=id__gt, + id__gte=id__gte, + id__lt=id__lt, + id__lte=id__lte, + id__in=id__in, + id__nin=id__nin, + id__notin=id__notin, + id__isnull=id__isnull, + id__nisnull=id__nisnull, + id__isnotnull=id__isnotnull, + id__l=id__l, + id__like=id__like, + id__nl=id__nl, + id__nlike=id__nlike, + id__notlike=id__notlike, + id__il=id__il, + id__ilike=id__ilike, + id__nil=id__nil, + id__nilike=id__nilike, + id__notilike=id__notilike, + id__desc=id__desc, + id__asc=id__asc, + created_at__eq=created_at__eq, + created_at__ne=created_at__ne, + created_at__gt=created_at__gt, + created_at__gte=created_at__gte, + created_at__lt=created_at__lt, + created_at__lte=created_at__lte, + created_at__in=created_at__in, + created_at__nin=created_at__nin, + created_at__notin=created_at__notin, + created_at__isnull=created_at__isnull, + created_at__nisnull=created_at__nisnull, + created_at__isnotnull=created_at__isnotnull, + created_at__l=created_at__l, + created_at__like=created_at__like, + created_at__nl=created_at__nl, + created_at__nlike=created_at__nlike, + created_at__notlike=created_at__notlike, + created_at__il=created_at__il, + created_at__ilike=created_at__ilike, + created_at__nil=created_at__nil, + created_at__nilike=created_at__nilike, + created_at__notilike=created_at__notilike, + created_at__desc=created_at__desc, + created_at__asc=created_at__asc, + updated_at__eq=updated_at__eq, + updated_at__ne=updated_at__ne, + updated_at__gt=updated_at__gt, + updated_at__gte=updated_at__gte, + updated_at__lt=updated_at__lt, + updated_at__lte=updated_at__lte, + updated_at__in=updated_at__in, + updated_at__nin=updated_at__nin, + updated_at__notin=updated_at__notin, + updated_at__isnull=updated_at__isnull, + updated_at__nisnull=updated_at__nisnull, + updated_at__isnotnull=updated_at__isnotnull, + updated_at__l=updated_at__l, + updated_at__like=updated_at__like, + updated_at__nl=updated_at__nl, + updated_at__nlike=updated_at__nlike, + updated_at__notlike=updated_at__notlike, + updated_at__il=updated_at__il, + updated_at__ilike=updated_at__ilike, + updated_at__nil=updated_at__nil, + updated_at__nilike=updated_at__nilike, + updated_at__notilike=updated_at__notilike, + updated_at__desc=updated_at__desc, + updated_at__asc=updated_at__asc, + deleted_at__eq=deleted_at__eq, + deleted_at__ne=deleted_at__ne, + deleted_at__gt=deleted_at__gt, + deleted_at__gte=deleted_at__gte, + deleted_at__lt=deleted_at__lt, + deleted_at__lte=deleted_at__lte, + deleted_at__in=deleted_at__in, + deleted_at__nin=deleted_at__nin, + deleted_at__notin=deleted_at__notin, + deleted_at__isnull=deleted_at__isnull, + deleted_at__nisnull=deleted_at__nisnull, + deleted_at__isnotnull=deleted_at__isnotnull, + deleted_at__l=deleted_at__l, + deleted_at__like=deleted_at__like, + deleted_at__nl=deleted_at__nl, + deleted_at__nlike=deleted_at__nlike, + deleted_at__notlike=deleted_at__notlike, + deleted_at__il=deleted_at__il, + deleted_at__ilike=deleted_at__ilike, + deleted_at__nil=deleted_at__nil, + deleted_at__nilike=deleted_at__nilike, + deleted_at__notilike=deleted_at__notilike, + deleted_at__desc=deleted_at__desc, + deleted_at__asc=deleted_at__asc, + seen_at__eq=seen_at__eq, + seen_at__ne=seen_at__ne, + seen_at__gt=seen_at__gt, + seen_at__gte=seen_at__gte, + seen_at__lt=seen_at__lt, + seen_at__lte=seen_at__lte, + seen_at__in=seen_at__in, + seen_at__nin=seen_at__nin, + seen_at__notin=seen_at__notin, + seen_at__isnull=seen_at__isnull, + seen_at__nisnull=seen_at__nisnull, + seen_at__isnotnull=seen_at__isnotnull, + seen_at__l=seen_at__l, + seen_at__like=seen_at__like, + seen_at__nl=seen_at__nl, + seen_at__nlike=seen_at__nlike, + seen_at__notlike=seen_at__notlike, + seen_at__il=seen_at__il, + seen_at__ilike=seen_at__ilike, + seen_at__nil=seen_at__nil, + seen_at__nilike=seen_at__nilike, + seen_at__notilike=seen_at__notilike, + seen_at__desc=seen_at__desc, + seen_at__asc=seen_at__asc, + class_id__eq=class_id__eq, + class_id__ne=class_id__ne, + class_id__gt=class_id__gt, + class_id__gte=class_id__gte, + class_id__lt=class_id__lt, + class_id__lte=class_id__lte, + class_id__in=class_id__in, + class_id__nin=class_id__nin, + class_id__notin=class_id__notin, + class_id__isnull=class_id__isnull, + class_id__nisnull=class_id__nisnull, + class_id__isnotnull=class_id__isnotnull, + class_id__l=class_id__l, + class_id__like=class_id__like, + class_id__nl=class_id__nl, + class_id__nlike=class_id__nlike, + class_id__notlike=class_id__notlike, + class_id__il=class_id__il, + class_id__ilike=class_id__ilike, + class_id__nil=class_id__nil, + class_id__nilike=class_id__nilike, + class_id__notilike=class_id__notilike, + class_id__desc=class_id__desc, + class_id__asc=class_id__asc, + class_name__eq=class_name__eq, + class_name__ne=class_name__ne, + class_name__gt=class_name__gt, + class_name__gte=class_name__gte, + class_name__lt=class_name__lt, + class_name__lte=class_name__lte, + class_name__in=class_name__in, + class_name__nin=class_name__nin, + class_name__notin=class_name__notin, + class_name__isnull=class_name__isnull, + class_name__nisnull=class_name__nisnull, + class_name__isnotnull=class_name__isnotnull, + class_name__l=class_name__l, + class_name__like=class_name__like, + class_name__nl=class_name__nl, + class_name__nlike=class_name__nlike, + class_name__notlike=class_name__notlike, + class_name__il=class_name__il, + class_name__ilike=class_name__ilike, + class_name__nil=class_name__nil, + class_name__nilike=class_name__nilike, + class_name__notilike=class_name__notilike, + class_name__desc=class_name__desc, + class_name__asc=class_name__asc, + score__eq=score__eq, + score__ne=score__ne, + score__gt=score__gt, + score__gte=score__gte, + score__lt=score__lt, + score__lte=score__lte, + score__in=score__in, + score__nin=score__nin, + score__notin=score__notin, + score__isnull=score__isnull, + score__nisnull=score__nisnull, + score__isnotnull=score__isnotnull, + score__l=score__l, + score__like=score__like, + score__nl=score__nl, + score__nlike=score__nlike, + score__notlike=score__notlike, + score__il=score__il, + score__ilike=score__ilike, + score__nil=score__nil, + score__nilike=score__nilike, + score__notilike=score__notilike, + score__desc=score__desc, + score__asc=score__asc, + video_id__eq=video_id__eq, + video_id__ne=video_id__ne, + video_id__gt=video_id__gt, + video_id__gte=video_id__gte, + video_id__lt=video_id__lt, + video_id__lte=video_id__lte, + video_id__in=video_id__in, + video_id__nin=video_id__nin, + video_id__notin=video_id__notin, + video_id__isnull=video_id__isnull, + video_id__nisnull=video_id__nisnull, + video_id__isnotnull=video_id__isnotnull, + video_id__l=video_id__l, + video_id__like=video_id__like, + video_id__nl=video_id__nl, + video_id__nlike=video_id__nlike, + video_id__notlike=video_id__notlike, + video_id__il=video_id__il, + video_id__ilike=video_id__ilike, + video_id__nil=video_id__nil, + video_id__nilike=video_id__nilike, + video_id__notilike=video_id__notilike, + video_id__desc=video_id__desc, + video_id__asc=video_id__asc, + camera_id__eq=camera_id__eq, + camera_id__ne=camera_id__ne, + camera_id__gt=camera_id__gt, + camera_id__gte=camera_id__gte, + camera_id__lt=camera_id__lt, + camera_id__lte=camera_id__lte, + camera_id__in=camera_id__in, + camera_id__nin=camera_id__nin, + camera_id__notin=camera_id__notin, + camera_id__isnull=camera_id__isnull, + camera_id__nisnull=camera_id__nisnull, + camera_id__isnotnull=camera_id__isnotnull, + camera_id__l=camera_id__l, + camera_id__like=camera_id__like, + camera_id__nl=camera_id__nl, + camera_id__nlike=camera_id__nlike, + camera_id__notlike=camera_id__notlike, + camera_id__il=camera_id__il, + camera_id__ilike=camera_id__ilike, + camera_id__nil=camera_id__nil, + camera_id__nilike=camera_id__nilike, + camera_id__notilike=camera_id__notilike, + camera_id__desc=camera_id__desc, + camera_id__asc=camera_id__asc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_detections_with_http_info( + self, + limit: Annotated[Optional[StrictInt], Field(description="SQL LIMIT operator")] = None, + offset: Annotated[Optional[StrictInt], Field(description="SQL OFFSET operator")] = None, + id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + created_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + created_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + created_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + created_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + created_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + created_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + created_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + updated_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + updated_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + updated_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + updated_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + updated_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + updated_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + updated_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + deleted_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + deleted_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + deleted_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + deleted_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + deleted_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + deleted_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + deleted_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + seen_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + seen_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + seen_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + seen_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + seen_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + seen_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + seen_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + seen_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + seen_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + class_id__eq: Annotated[Optional[StrictInt], Field(description="SQL = operator")] = None, + class_id__ne: Annotated[Optional[StrictInt], Field(description="SQL != operator")] = None, + class_id__gt: Annotated[Optional[StrictInt], Field(description="SQL > operator, may not work with all column types")] = None, + class_id__gte: Annotated[Optional[StrictInt], Field(description="SQL >= operator, may not work with all column types")] = None, + class_id__lt: Annotated[Optional[StrictInt], Field(description="SQL < operator, may not work with all column types")] = None, + class_id__lte: Annotated[Optional[StrictInt], Field(description="SQL <= operator, may not work with all column types")] = None, + class_id__in: Annotated[Optional[StrictInt], Field(description="SQL IN operator, permits comma-separated values")] = None, + class_id__nin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_id__notin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + class_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + class_name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + class_name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + class_name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + class_name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + class_name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + class_name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + class_name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + class_name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + class_name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + score__eq: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL = operator")] = None, + score__ne: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL != operator")] = None, + score__gt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL > operator, may not work with all column types")] = None, + score__gte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL >= operator, may not work with all column types")] = None, + score__lt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL < operator, may not work with all column types")] = None, + score__lte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL <= operator, may not work with all column types")] = None, + score__in: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL IN operator, permits comma-separated values")] = None, + score__nin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + score__notin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + score__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + score__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + score__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + score__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + score__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + video_id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + video_id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + video_id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + video_id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + video_id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + video_id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + video_id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + video_id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + video_id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + video_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + video_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + video_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + video_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + video_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + camera_id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + camera_id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + camera_id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + camera_id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + camera_id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + camera_id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + camera_id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetDetections200Response]: + """get_detections + + + :param limit: SQL LIMIT operator + :type limit: int + :param offset: SQL OFFSET operator + :type offset: int + :param id__eq: SQL = operator + :type id__eq: str + :param id__ne: SQL != operator + :type id__ne: str + :param id__gt: SQL > operator, may not work with all column types + :type id__gt: str + :param id__gte: SQL >= operator, may not work with all column types + :type id__gte: str + :param id__lt: SQL < operator, may not work with all column types + :type id__lt: str + :param id__lte: SQL <= operator, may not work with all column types + :type id__lte: str + :param id__in: SQL IN operator, permits comma-separated values + :type id__in: str + :param id__nin: SQL NOT IN operator, permits comma-separated values + :type id__nin: str + :param id__notin: SQL NOT IN operator, permits comma-separated values + :type id__notin: str + :param id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type id__isnull: str + :param id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__nisnull: str + :param id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__isnotnull: str + :param id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__l: str + :param id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__like: str + :param id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nl: str + :param id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nlike: str + :param id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__notlike: str + :param id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__il: str + :param id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__ilike: str + :param id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nil: str + :param id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nilike: str + :param id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__notilike: str + :param id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type id__desc: str + :param id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type id__asc: str + :param created_at__eq: SQL = operator + :type created_at__eq: datetime + :param created_at__ne: SQL != operator + :type created_at__ne: datetime + :param created_at__gt: SQL > operator, may not work with all column types + :type created_at__gt: datetime + :param created_at__gte: SQL >= operator, may not work with all column types + :type created_at__gte: datetime + :param created_at__lt: SQL < operator, may not work with all column types + :type created_at__lt: datetime + :param created_at__lte: SQL <= operator, may not work with all column types + :type created_at__lte: datetime + :param created_at__in: SQL IN operator, permits comma-separated values + :type created_at__in: datetime + :param created_at__nin: SQL NOT IN operator, permits comma-separated values + :type created_at__nin: datetime + :param created_at__notin: SQL NOT IN operator, permits comma-separated values + :type created_at__notin: datetime + :param created_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnull: str + :param created_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__nisnull: str + :param created_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnotnull: str + :param created_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__l: str + :param created_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__like: str + :param created_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nl: str + :param created_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nlike: str + :param created_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notlike: str + :param created_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__il: str + :param created_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__ilike: str + :param created_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nil: str + :param created_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nilike: str + :param created_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notilike: str + :param created_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type created_at__desc: str + :param created_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type created_at__asc: str + :param updated_at__eq: SQL = operator + :type updated_at__eq: datetime + :param updated_at__ne: SQL != operator + :type updated_at__ne: datetime + :param updated_at__gt: SQL > operator, may not work with all column types + :type updated_at__gt: datetime + :param updated_at__gte: SQL >= operator, may not work with all column types + :type updated_at__gte: datetime + :param updated_at__lt: SQL < operator, may not work with all column types + :type updated_at__lt: datetime + :param updated_at__lte: SQL <= operator, may not work with all column types + :type updated_at__lte: datetime + :param updated_at__in: SQL IN operator, permits comma-separated values + :type updated_at__in: datetime + :param updated_at__nin: SQL NOT IN operator, permits comma-separated values + :type updated_at__nin: datetime + :param updated_at__notin: SQL NOT IN operator, permits comma-separated values + :type updated_at__notin: datetime + :param updated_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnull: str + :param updated_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__nisnull: str + :param updated_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnotnull: str + :param updated_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__l: str + :param updated_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__like: str + :param updated_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nl: str + :param updated_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nlike: str + :param updated_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notlike: str + :param updated_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__il: str + :param updated_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__ilike: str + :param updated_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nil: str + :param updated_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nilike: str + :param updated_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notilike: str + :param updated_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type updated_at__desc: str + :param updated_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type updated_at__asc: str + :param deleted_at__eq: SQL = operator + :type deleted_at__eq: datetime + :param deleted_at__ne: SQL != operator + :type deleted_at__ne: datetime + :param deleted_at__gt: SQL > operator, may not work with all column types + :type deleted_at__gt: datetime + :param deleted_at__gte: SQL >= operator, may not work with all column types + :type deleted_at__gte: datetime + :param deleted_at__lt: SQL < operator, may not work with all column types + :type deleted_at__lt: datetime + :param deleted_at__lte: SQL <= operator, may not work with all column types + :type deleted_at__lte: datetime + :param deleted_at__in: SQL IN operator, permits comma-separated values + :type deleted_at__in: datetime + :param deleted_at__nin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__nin: datetime + :param deleted_at__notin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__notin: datetime + :param deleted_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnull: str + :param deleted_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__nisnull: str + :param deleted_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnotnull: str + :param deleted_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__l: str + :param deleted_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__like: str + :param deleted_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nl: str + :param deleted_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nlike: str + :param deleted_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notlike: str + :param deleted_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__il: str + :param deleted_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__ilike: str + :param deleted_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nil: str + :param deleted_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nilike: str + :param deleted_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notilike: str + :param deleted_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type deleted_at__desc: str + :param deleted_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type deleted_at__asc: str + :param seen_at__eq: SQL = operator + :type seen_at__eq: datetime + :param seen_at__ne: SQL != operator + :type seen_at__ne: datetime + :param seen_at__gt: SQL > operator, may not work with all column types + :type seen_at__gt: datetime + :param seen_at__gte: SQL >= operator, may not work with all column types + :type seen_at__gte: datetime + :param seen_at__lt: SQL < operator, may not work with all column types + :type seen_at__lt: datetime + :param seen_at__lte: SQL <= operator, may not work with all column types + :type seen_at__lte: datetime + :param seen_at__in: SQL IN operator, permits comma-separated values + :type seen_at__in: datetime + :param seen_at__nin: SQL NOT IN operator, permits comma-separated values + :type seen_at__nin: datetime + :param seen_at__notin: SQL NOT IN operator, permits comma-separated values + :type seen_at__notin: datetime + :param seen_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type seen_at__isnull: str + :param seen_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type seen_at__nisnull: str + :param seen_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type seen_at__isnotnull: str + :param seen_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__l: str + :param seen_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__like: str + :param seen_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nl: str + :param seen_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nlike: str + :param seen_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__notlike: str + :param seen_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__il: str + :param seen_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__ilike: str + :param seen_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nil: str + :param seen_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nilike: str + :param seen_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__notilike: str + :param seen_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type seen_at__desc: str + :param seen_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type seen_at__asc: str + :param class_id__eq: SQL = operator + :type class_id__eq: int + :param class_id__ne: SQL != operator + :type class_id__ne: int + :param class_id__gt: SQL > operator, may not work with all column types + :type class_id__gt: int + :param class_id__gte: SQL >= operator, may not work with all column types + :type class_id__gte: int + :param class_id__lt: SQL < operator, may not work with all column types + :type class_id__lt: int + :param class_id__lte: SQL <= operator, may not work with all column types + :type class_id__lte: int + :param class_id__in: SQL IN operator, permits comma-separated values + :type class_id__in: int + :param class_id__nin: SQL NOT IN operator, permits comma-separated values + :type class_id__nin: int + :param class_id__notin: SQL NOT IN operator, permits comma-separated values + :type class_id__notin: int + :param class_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type class_id__isnull: str + :param class_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_id__nisnull: str + :param class_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_id__isnotnull: str + :param class_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__l: str + :param class_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__like: str + :param class_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nl: str + :param class_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nlike: str + :param class_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__notlike: str + :param class_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__il: str + :param class_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__ilike: str + :param class_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nil: str + :param class_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nilike: str + :param class_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__notilike: str + :param class_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type class_id__desc: str + :param class_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type class_id__asc: str + :param class_name__eq: SQL = operator + :type class_name__eq: str + :param class_name__ne: SQL != operator + :type class_name__ne: str + :param class_name__gt: SQL > operator, may not work with all column types + :type class_name__gt: str + :param class_name__gte: SQL >= operator, may not work with all column types + :type class_name__gte: str + :param class_name__lt: SQL < operator, may not work with all column types + :type class_name__lt: str + :param class_name__lte: SQL <= operator, may not work with all column types + :type class_name__lte: str + :param class_name__in: SQL IN operator, permits comma-separated values + :type class_name__in: str + :param class_name__nin: SQL NOT IN operator, permits comma-separated values + :type class_name__nin: str + :param class_name__notin: SQL NOT IN operator, permits comma-separated values + :type class_name__notin: str + :param class_name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type class_name__isnull: str + :param class_name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_name__nisnull: str + :param class_name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_name__isnotnull: str + :param class_name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__l: str + :param class_name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__like: str + :param class_name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nl: str + :param class_name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nlike: str + :param class_name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__notlike: str + :param class_name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__il: str + :param class_name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__ilike: str + :param class_name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nil: str + :param class_name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nilike: str + :param class_name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__notilike: str + :param class_name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type class_name__desc: str + :param class_name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type class_name__asc: str + :param score__eq: SQL = operator + :type score__eq: float + :param score__ne: SQL != operator + :type score__ne: float + :param score__gt: SQL > operator, may not work with all column types + :type score__gt: float + :param score__gte: SQL >= operator, may not work with all column types + :type score__gte: float + :param score__lt: SQL < operator, may not work with all column types + :type score__lt: float + :param score__lte: SQL <= operator, may not work with all column types + :type score__lte: float + :param score__in: SQL IN operator, permits comma-separated values + :type score__in: float + :param score__nin: SQL NOT IN operator, permits comma-separated values + :type score__nin: float + :param score__notin: SQL NOT IN operator, permits comma-separated values + :type score__notin: float + :param score__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type score__isnull: str + :param score__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type score__nisnull: str + :param score__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type score__isnotnull: str + :param score__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type score__l: str + :param score__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type score__like: str + :param score__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type score__nl: str + :param score__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type score__nlike: str + :param score__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type score__notlike: str + :param score__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__il: str + :param score__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__ilike: str + :param score__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__nil: str + :param score__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__nilike: str + :param score__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__notilike: str + :param score__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type score__desc: str + :param score__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type score__asc: str + :param video_id__eq: SQL = operator + :type video_id__eq: str + :param video_id__ne: SQL != operator + :type video_id__ne: str + :param video_id__gt: SQL > operator, may not work with all column types + :type video_id__gt: str + :param video_id__gte: SQL >= operator, may not work with all column types + :type video_id__gte: str + :param video_id__lt: SQL < operator, may not work with all column types + :type video_id__lt: str + :param video_id__lte: SQL <= operator, may not work with all column types + :type video_id__lte: str + :param video_id__in: SQL IN operator, permits comma-separated values + :type video_id__in: str + :param video_id__nin: SQL NOT IN operator, permits comma-separated values + :type video_id__nin: str + :param video_id__notin: SQL NOT IN operator, permits comma-separated values + :type video_id__notin: str + :param video_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type video_id__isnull: str + :param video_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type video_id__nisnull: str + :param video_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type video_id__isnotnull: str + :param video_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__l: str + :param video_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__like: str + :param video_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nl: str + :param video_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nlike: str + :param video_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__notlike: str + :param video_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__il: str + :param video_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__ilike: str + :param video_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nil: str + :param video_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nilike: str + :param video_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__notilike: str + :param video_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type video_id__desc: str + :param video_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type video_id__asc: str + :param camera_id__eq: SQL = operator + :type camera_id__eq: str + :param camera_id__ne: SQL != operator + :type camera_id__ne: str + :param camera_id__gt: SQL > operator, may not work with all column types + :type camera_id__gt: str + :param camera_id__gte: SQL >= operator, may not work with all column types + :type camera_id__gte: str + :param camera_id__lt: SQL < operator, may not work with all column types + :type camera_id__lt: str + :param camera_id__lte: SQL <= operator, may not work with all column types + :type camera_id__lte: str + :param camera_id__in: SQL IN operator, permits comma-separated values + :type camera_id__in: str + :param camera_id__nin: SQL NOT IN operator, permits comma-separated values + :type camera_id__nin: str + :param camera_id__notin: SQL NOT IN operator, permits comma-separated values + :type camera_id__notin: str + :param camera_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnull: str + :param camera_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__nisnull: str + :param camera_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnotnull: str + :param camera_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__l: str + :param camera_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__like: str + :param camera_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nl: str + :param camera_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nlike: str + :param camera_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notlike: str + :param camera_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__il: str + :param camera_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__ilike: str + :param camera_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nil: str + :param camera_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nilike: str + :param camera_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notilike: str + :param camera_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type camera_id__desc: str + :param camera_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type camera_id__asc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_detections_serialize( + limit=limit, + offset=offset, + id__eq=id__eq, + id__ne=id__ne, + id__gt=id__gt, + id__gte=id__gte, + id__lt=id__lt, + id__lte=id__lte, + id__in=id__in, + id__nin=id__nin, + id__notin=id__notin, + id__isnull=id__isnull, + id__nisnull=id__nisnull, + id__isnotnull=id__isnotnull, + id__l=id__l, + id__like=id__like, + id__nl=id__nl, + id__nlike=id__nlike, + id__notlike=id__notlike, + id__il=id__il, + id__ilike=id__ilike, + id__nil=id__nil, + id__nilike=id__nilike, + id__notilike=id__notilike, + id__desc=id__desc, + id__asc=id__asc, + created_at__eq=created_at__eq, + created_at__ne=created_at__ne, + created_at__gt=created_at__gt, + created_at__gte=created_at__gte, + created_at__lt=created_at__lt, + created_at__lte=created_at__lte, + created_at__in=created_at__in, + created_at__nin=created_at__nin, + created_at__notin=created_at__notin, + created_at__isnull=created_at__isnull, + created_at__nisnull=created_at__nisnull, + created_at__isnotnull=created_at__isnotnull, + created_at__l=created_at__l, + created_at__like=created_at__like, + created_at__nl=created_at__nl, + created_at__nlike=created_at__nlike, + created_at__notlike=created_at__notlike, + created_at__il=created_at__il, + created_at__ilike=created_at__ilike, + created_at__nil=created_at__nil, + created_at__nilike=created_at__nilike, + created_at__notilike=created_at__notilike, + created_at__desc=created_at__desc, + created_at__asc=created_at__asc, + updated_at__eq=updated_at__eq, + updated_at__ne=updated_at__ne, + updated_at__gt=updated_at__gt, + updated_at__gte=updated_at__gte, + updated_at__lt=updated_at__lt, + updated_at__lte=updated_at__lte, + updated_at__in=updated_at__in, + updated_at__nin=updated_at__nin, + updated_at__notin=updated_at__notin, + updated_at__isnull=updated_at__isnull, + updated_at__nisnull=updated_at__nisnull, + updated_at__isnotnull=updated_at__isnotnull, + updated_at__l=updated_at__l, + updated_at__like=updated_at__like, + updated_at__nl=updated_at__nl, + updated_at__nlike=updated_at__nlike, + updated_at__notlike=updated_at__notlike, + updated_at__il=updated_at__il, + updated_at__ilike=updated_at__ilike, + updated_at__nil=updated_at__nil, + updated_at__nilike=updated_at__nilike, + updated_at__notilike=updated_at__notilike, + updated_at__desc=updated_at__desc, + updated_at__asc=updated_at__asc, + deleted_at__eq=deleted_at__eq, + deleted_at__ne=deleted_at__ne, + deleted_at__gt=deleted_at__gt, + deleted_at__gte=deleted_at__gte, + deleted_at__lt=deleted_at__lt, + deleted_at__lte=deleted_at__lte, + deleted_at__in=deleted_at__in, + deleted_at__nin=deleted_at__nin, + deleted_at__notin=deleted_at__notin, + deleted_at__isnull=deleted_at__isnull, + deleted_at__nisnull=deleted_at__nisnull, + deleted_at__isnotnull=deleted_at__isnotnull, + deleted_at__l=deleted_at__l, + deleted_at__like=deleted_at__like, + deleted_at__nl=deleted_at__nl, + deleted_at__nlike=deleted_at__nlike, + deleted_at__notlike=deleted_at__notlike, + deleted_at__il=deleted_at__il, + deleted_at__ilike=deleted_at__ilike, + deleted_at__nil=deleted_at__nil, + deleted_at__nilike=deleted_at__nilike, + deleted_at__notilike=deleted_at__notilike, + deleted_at__desc=deleted_at__desc, + deleted_at__asc=deleted_at__asc, + seen_at__eq=seen_at__eq, + seen_at__ne=seen_at__ne, + seen_at__gt=seen_at__gt, + seen_at__gte=seen_at__gte, + seen_at__lt=seen_at__lt, + seen_at__lte=seen_at__lte, + seen_at__in=seen_at__in, + seen_at__nin=seen_at__nin, + seen_at__notin=seen_at__notin, + seen_at__isnull=seen_at__isnull, + seen_at__nisnull=seen_at__nisnull, + seen_at__isnotnull=seen_at__isnotnull, + seen_at__l=seen_at__l, + seen_at__like=seen_at__like, + seen_at__nl=seen_at__nl, + seen_at__nlike=seen_at__nlike, + seen_at__notlike=seen_at__notlike, + seen_at__il=seen_at__il, + seen_at__ilike=seen_at__ilike, + seen_at__nil=seen_at__nil, + seen_at__nilike=seen_at__nilike, + seen_at__notilike=seen_at__notilike, + seen_at__desc=seen_at__desc, + seen_at__asc=seen_at__asc, + class_id__eq=class_id__eq, + class_id__ne=class_id__ne, + class_id__gt=class_id__gt, + class_id__gte=class_id__gte, + class_id__lt=class_id__lt, + class_id__lte=class_id__lte, + class_id__in=class_id__in, + class_id__nin=class_id__nin, + class_id__notin=class_id__notin, + class_id__isnull=class_id__isnull, + class_id__nisnull=class_id__nisnull, + class_id__isnotnull=class_id__isnotnull, + class_id__l=class_id__l, + class_id__like=class_id__like, + class_id__nl=class_id__nl, + class_id__nlike=class_id__nlike, + class_id__notlike=class_id__notlike, + class_id__il=class_id__il, + class_id__ilike=class_id__ilike, + class_id__nil=class_id__nil, + class_id__nilike=class_id__nilike, + class_id__notilike=class_id__notilike, + class_id__desc=class_id__desc, + class_id__asc=class_id__asc, + class_name__eq=class_name__eq, + class_name__ne=class_name__ne, + class_name__gt=class_name__gt, + class_name__gte=class_name__gte, + class_name__lt=class_name__lt, + class_name__lte=class_name__lte, + class_name__in=class_name__in, + class_name__nin=class_name__nin, + class_name__notin=class_name__notin, + class_name__isnull=class_name__isnull, + class_name__nisnull=class_name__nisnull, + class_name__isnotnull=class_name__isnotnull, + class_name__l=class_name__l, + class_name__like=class_name__like, + class_name__nl=class_name__nl, + class_name__nlike=class_name__nlike, + class_name__notlike=class_name__notlike, + class_name__il=class_name__il, + class_name__ilike=class_name__ilike, + class_name__nil=class_name__nil, + class_name__nilike=class_name__nilike, + class_name__notilike=class_name__notilike, + class_name__desc=class_name__desc, + class_name__asc=class_name__asc, + score__eq=score__eq, + score__ne=score__ne, + score__gt=score__gt, + score__gte=score__gte, + score__lt=score__lt, + score__lte=score__lte, + score__in=score__in, + score__nin=score__nin, + score__notin=score__notin, + score__isnull=score__isnull, + score__nisnull=score__nisnull, + score__isnotnull=score__isnotnull, + score__l=score__l, + score__like=score__like, + score__nl=score__nl, + score__nlike=score__nlike, + score__notlike=score__notlike, + score__il=score__il, + score__ilike=score__ilike, + score__nil=score__nil, + score__nilike=score__nilike, + score__notilike=score__notilike, + score__desc=score__desc, + score__asc=score__asc, + video_id__eq=video_id__eq, + video_id__ne=video_id__ne, + video_id__gt=video_id__gt, + video_id__gte=video_id__gte, + video_id__lt=video_id__lt, + video_id__lte=video_id__lte, + video_id__in=video_id__in, + video_id__nin=video_id__nin, + video_id__notin=video_id__notin, + video_id__isnull=video_id__isnull, + video_id__nisnull=video_id__nisnull, + video_id__isnotnull=video_id__isnotnull, + video_id__l=video_id__l, + video_id__like=video_id__like, + video_id__nl=video_id__nl, + video_id__nlike=video_id__nlike, + video_id__notlike=video_id__notlike, + video_id__il=video_id__il, + video_id__ilike=video_id__ilike, + video_id__nil=video_id__nil, + video_id__nilike=video_id__nilike, + video_id__notilike=video_id__notilike, + video_id__desc=video_id__desc, + video_id__asc=video_id__asc, + camera_id__eq=camera_id__eq, + camera_id__ne=camera_id__ne, + camera_id__gt=camera_id__gt, + camera_id__gte=camera_id__gte, + camera_id__lt=camera_id__lt, + camera_id__lte=camera_id__lte, + camera_id__in=camera_id__in, + camera_id__nin=camera_id__nin, + camera_id__notin=camera_id__notin, + camera_id__isnull=camera_id__isnull, + camera_id__nisnull=camera_id__nisnull, + camera_id__isnotnull=camera_id__isnotnull, + camera_id__l=camera_id__l, + camera_id__like=camera_id__like, + camera_id__nl=camera_id__nl, + camera_id__nlike=camera_id__nlike, + camera_id__notlike=camera_id__notlike, + camera_id__il=camera_id__il, + camera_id__ilike=camera_id__ilike, + camera_id__nil=camera_id__nil, + camera_id__nilike=camera_id__nilike, + camera_id__notilike=camera_id__notilike, + camera_id__desc=camera_id__desc, + camera_id__asc=camera_id__asc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_detections_without_preload_content( + self, + limit: Annotated[Optional[StrictInt], Field(description="SQL LIMIT operator")] = None, + offset: Annotated[Optional[StrictInt], Field(description="SQL OFFSET operator")] = None, + id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + created_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + created_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + created_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + created_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + created_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + created_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + created_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + updated_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + updated_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + updated_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + updated_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + updated_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + updated_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + updated_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + deleted_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + deleted_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + deleted_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + deleted_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + deleted_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + deleted_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + deleted_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + seen_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + seen_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + seen_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + seen_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + seen_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + seen_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + seen_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + seen_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + seen_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + seen_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + seen_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + class_id__eq: Annotated[Optional[StrictInt], Field(description="SQL = operator")] = None, + class_id__ne: Annotated[Optional[StrictInt], Field(description="SQL != operator")] = None, + class_id__gt: Annotated[Optional[StrictInt], Field(description="SQL > operator, may not work with all column types")] = None, + class_id__gte: Annotated[Optional[StrictInt], Field(description="SQL >= operator, may not work with all column types")] = None, + class_id__lt: Annotated[Optional[StrictInt], Field(description="SQL < operator, may not work with all column types")] = None, + class_id__lte: Annotated[Optional[StrictInt], Field(description="SQL <= operator, may not work with all column types")] = None, + class_id__in: Annotated[Optional[StrictInt], Field(description="SQL IN operator, permits comma-separated values")] = None, + class_id__nin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_id__notin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + class_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + class_name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + class_name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + class_name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + class_name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + class_name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + class_name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + class_name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + class_name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + class_name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + class_name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + class_name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + class_name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + score__eq: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL = operator")] = None, + score__ne: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL != operator")] = None, + score__gt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL > operator, may not work with all column types")] = None, + score__gte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL >= operator, may not work with all column types")] = None, + score__lt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL < operator, may not work with all column types")] = None, + score__lte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL <= operator, may not work with all column types")] = None, + score__in: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL IN operator, permits comma-separated values")] = None, + score__nin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + score__notin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + score__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + score__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + score__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + score__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + score__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + score__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + video_id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + video_id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + video_id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + video_id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + video_id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + video_id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + video_id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + video_id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + video_id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + video_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + video_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + video_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + video_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + video_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + video_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + camera_id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + camera_id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + camera_id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + camera_id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + camera_id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + camera_id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + camera_id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_detections + + + :param limit: SQL LIMIT operator + :type limit: int + :param offset: SQL OFFSET operator + :type offset: int + :param id__eq: SQL = operator + :type id__eq: str + :param id__ne: SQL != operator + :type id__ne: str + :param id__gt: SQL > operator, may not work with all column types + :type id__gt: str + :param id__gte: SQL >= operator, may not work with all column types + :type id__gte: str + :param id__lt: SQL < operator, may not work with all column types + :type id__lt: str + :param id__lte: SQL <= operator, may not work with all column types + :type id__lte: str + :param id__in: SQL IN operator, permits comma-separated values + :type id__in: str + :param id__nin: SQL NOT IN operator, permits comma-separated values + :type id__nin: str + :param id__notin: SQL NOT IN operator, permits comma-separated values + :type id__notin: str + :param id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type id__isnull: str + :param id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__nisnull: str + :param id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__isnotnull: str + :param id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__l: str + :param id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__like: str + :param id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nl: str + :param id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nlike: str + :param id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__notlike: str + :param id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__il: str + :param id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__ilike: str + :param id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nil: str + :param id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nilike: str + :param id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__notilike: str + :param id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type id__desc: str + :param id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type id__asc: str + :param created_at__eq: SQL = operator + :type created_at__eq: datetime + :param created_at__ne: SQL != operator + :type created_at__ne: datetime + :param created_at__gt: SQL > operator, may not work with all column types + :type created_at__gt: datetime + :param created_at__gte: SQL >= operator, may not work with all column types + :type created_at__gte: datetime + :param created_at__lt: SQL < operator, may not work with all column types + :type created_at__lt: datetime + :param created_at__lte: SQL <= operator, may not work with all column types + :type created_at__lte: datetime + :param created_at__in: SQL IN operator, permits comma-separated values + :type created_at__in: datetime + :param created_at__nin: SQL NOT IN operator, permits comma-separated values + :type created_at__nin: datetime + :param created_at__notin: SQL NOT IN operator, permits comma-separated values + :type created_at__notin: datetime + :param created_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnull: str + :param created_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__nisnull: str + :param created_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnotnull: str + :param created_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__l: str + :param created_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__like: str + :param created_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nl: str + :param created_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nlike: str + :param created_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notlike: str + :param created_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__il: str + :param created_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__ilike: str + :param created_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nil: str + :param created_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nilike: str + :param created_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notilike: str + :param created_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type created_at__desc: str + :param created_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type created_at__asc: str + :param updated_at__eq: SQL = operator + :type updated_at__eq: datetime + :param updated_at__ne: SQL != operator + :type updated_at__ne: datetime + :param updated_at__gt: SQL > operator, may not work with all column types + :type updated_at__gt: datetime + :param updated_at__gte: SQL >= operator, may not work with all column types + :type updated_at__gte: datetime + :param updated_at__lt: SQL < operator, may not work with all column types + :type updated_at__lt: datetime + :param updated_at__lte: SQL <= operator, may not work with all column types + :type updated_at__lte: datetime + :param updated_at__in: SQL IN operator, permits comma-separated values + :type updated_at__in: datetime + :param updated_at__nin: SQL NOT IN operator, permits comma-separated values + :type updated_at__nin: datetime + :param updated_at__notin: SQL NOT IN operator, permits comma-separated values + :type updated_at__notin: datetime + :param updated_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnull: str + :param updated_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__nisnull: str + :param updated_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnotnull: str + :param updated_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__l: str + :param updated_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__like: str + :param updated_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nl: str + :param updated_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nlike: str + :param updated_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notlike: str + :param updated_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__il: str + :param updated_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__ilike: str + :param updated_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nil: str + :param updated_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nilike: str + :param updated_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notilike: str + :param updated_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type updated_at__desc: str + :param updated_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type updated_at__asc: str + :param deleted_at__eq: SQL = operator + :type deleted_at__eq: datetime + :param deleted_at__ne: SQL != operator + :type deleted_at__ne: datetime + :param deleted_at__gt: SQL > operator, may not work with all column types + :type deleted_at__gt: datetime + :param deleted_at__gte: SQL >= operator, may not work with all column types + :type deleted_at__gte: datetime + :param deleted_at__lt: SQL < operator, may not work with all column types + :type deleted_at__lt: datetime + :param deleted_at__lte: SQL <= operator, may not work with all column types + :type deleted_at__lte: datetime + :param deleted_at__in: SQL IN operator, permits comma-separated values + :type deleted_at__in: datetime + :param deleted_at__nin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__nin: datetime + :param deleted_at__notin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__notin: datetime + :param deleted_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnull: str + :param deleted_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__nisnull: str + :param deleted_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnotnull: str + :param deleted_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__l: str + :param deleted_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__like: str + :param deleted_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nl: str + :param deleted_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nlike: str + :param deleted_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notlike: str + :param deleted_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__il: str + :param deleted_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__ilike: str + :param deleted_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nil: str + :param deleted_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nilike: str + :param deleted_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notilike: str + :param deleted_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type deleted_at__desc: str + :param deleted_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type deleted_at__asc: str + :param seen_at__eq: SQL = operator + :type seen_at__eq: datetime + :param seen_at__ne: SQL != operator + :type seen_at__ne: datetime + :param seen_at__gt: SQL > operator, may not work with all column types + :type seen_at__gt: datetime + :param seen_at__gte: SQL >= operator, may not work with all column types + :type seen_at__gte: datetime + :param seen_at__lt: SQL < operator, may not work with all column types + :type seen_at__lt: datetime + :param seen_at__lte: SQL <= operator, may not work with all column types + :type seen_at__lte: datetime + :param seen_at__in: SQL IN operator, permits comma-separated values + :type seen_at__in: datetime + :param seen_at__nin: SQL NOT IN operator, permits comma-separated values + :type seen_at__nin: datetime + :param seen_at__notin: SQL NOT IN operator, permits comma-separated values + :type seen_at__notin: datetime + :param seen_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type seen_at__isnull: str + :param seen_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type seen_at__nisnull: str + :param seen_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type seen_at__isnotnull: str + :param seen_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__l: str + :param seen_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__like: str + :param seen_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nl: str + :param seen_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nlike: str + :param seen_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__notlike: str + :param seen_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__il: str + :param seen_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__ilike: str + :param seen_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nil: str + :param seen_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__nilike: str + :param seen_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type seen_at__notilike: str + :param seen_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type seen_at__desc: str + :param seen_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type seen_at__asc: str + :param class_id__eq: SQL = operator + :type class_id__eq: int + :param class_id__ne: SQL != operator + :type class_id__ne: int + :param class_id__gt: SQL > operator, may not work with all column types + :type class_id__gt: int + :param class_id__gte: SQL >= operator, may not work with all column types + :type class_id__gte: int + :param class_id__lt: SQL < operator, may not work with all column types + :type class_id__lt: int + :param class_id__lte: SQL <= operator, may not work with all column types + :type class_id__lte: int + :param class_id__in: SQL IN operator, permits comma-separated values + :type class_id__in: int + :param class_id__nin: SQL NOT IN operator, permits comma-separated values + :type class_id__nin: int + :param class_id__notin: SQL NOT IN operator, permits comma-separated values + :type class_id__notin: int + :param class_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type class_id__isnull: str + :param class_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_id__nisnull: str + :param class_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_id__isnotnull: str + :param class_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__l: str + :param class_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__like: str + :param class_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nl: str + :param class_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nlike: str + :param class_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__notlike: str + :param class_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__il: str + :param class_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__ilike: str + :param class_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nil: str + :param class_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__nilike: str + :param class_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_id__notilike: str + :param class_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type class_id__desc: str + :param class_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type class_id__asc: str + :param class_name__eq: SQL = operator + :type class_name__eq: str + :param class_name__ne: SQL != operator + :type class_name__ne: str + :param class_name__gt: SQL > operator, may not work with all column types + :type class_name__gt: str + :param class_name__gte: SQL >= operator, may not work with all column types + :type class_name__gte: str + :param class_name__lt: SQL < operator, may not work with all column types + :type class_name__lt: str + :param class_name__lte: SQL <= operator, may not work with all column types + :type class_name__lte: str + :param class_name__in: SQL IN operator, permits comma-separated values + :type class_name__in: str + :param class_name__nin: SQL NOT IN operator, permits comma-separated values + :type class_name__nin: str + :param class_name__notin: SQL NOT IN operator, permits comma-separated values + :type class_name__notin: str + :param class_name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type class_name__isnull: str + :param class_name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_name__nisnull: str + :param class_name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type class_name__isnotnull: str + :param class_name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__l: str + :param class_name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__like: str + :param class_name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nl: str + :param class_name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nlike: str + :param class_name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__notlike: str + :param class_name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__il: str + :param class_name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__ilike: str + :param class_name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nil: str + :param class_name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__nilike: str + :param class_name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type class_name__notilike: str + :param class_name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type class_name__desc: str + :param class_name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type class_name__asc: str + :param score__eq: SQL = operator + :type score__eq: float + :param score__ne: SQL != operator + :type score__ne: float + :param score__gt: SQL > operator, may not work with all column types + :type score__gt: float + :param score__gte: SQL >= operator, may not work with all column types + :type score__gte: float + :param score__lt: SQL < operator, may not work with all column types + :type score__lt: float + :param score__lte: SQL <= operator, may not work with all column types + :type score__lte: float + :param score__in: SQL IN operator, permits comma-separated values + :type score__in: float + :param score__nin: SQL NOT IN operator, permits comma-separated values + :type score__nin: float + :param score__notin: SQL NOT IN operator, permits comma-separated values + :type score__notin: float + :param score__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type score__isnull: str + :param score__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type score__nisnull: str + :param score__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type score__isnotnull: str + :param score__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type score__l: str + :param score__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type score__like: str + :param score__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type score__nl: str + :param score__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type score__nlike: str + :param score__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type score__notlike: str + :param score__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__il: str + :param score__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__ilike: str + :param score__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__nil: str + :param score__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__nilike: str + :param score__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type score__notilike: str + :param score__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type score__desc: str + :param score__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type score__asc: str + :param video_id__eq: SQL = operator + :type video_id__eq: str + :param video_id__ne: SQL != operator + :type video_id__ne: str + :param video_id__gt: SQL > operator, may not work with all column types + :type video_id__gt: str + :param video_id__gte: SQL >= operator, may not work with all column types + :type video_id__gte: str + :param video_id__lt: SQL < operator, may not work with all column types + :type video_id__lt: str + :param video_id__lte: SQL <= operator, may not work with all column types + :type video_id__lte: str + :param video_id__in: SQL IN operator, permits comma-separated values + :type video_id__in: str + :param video_id__nin: SQL NOT IN operator, permits comma-separated values + :type video_id__nin: str + :param video_id__notin: SQL NOT IN operator, permits comma-separated values + :type video_id__notin: str + :param video_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type video_id__isnull: str + :param video_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type video_id__nisnull: str + :param video_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type video_id__isnotnull: str + :param video_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__l: str + :param video_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__like: str + :param video_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nl: str + :param video_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nlike: str + :param video_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__notlike: str + :param video_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__il: str + :param video_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__ilike: str + :param video_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nil: str + :param video_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__nilike: str + :param video_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type video_id__notilike: str + :param video_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type video_id__desc: str + :param video_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type video_id__asc: str + :param camera_id__eq: SQL = operator + :type camera_id__eq: str + :param camera_id__ne: SQL != operator + :type camera_id__ne: str + :param camera_id__gt: SQL > operator, may not work with all column types + :type camera_id__gt: str + :param camera_id__gte: SQL >= operator, may not work with all column types + :type camera_id__gte: str + :param camera_id__lt: SQL < operator, may not work with all column types + :type camera_id__lt: str + :param camera_id__lte: SQL <= operator, may not work with all column types + :type camera_id__lte: str + :param camera_id__in: SQL IN operator, permits comma-separated values + :type camera_id__in: str + :param camera_id__nin: SQL NOT IN operator, permits comma-separated values + :type camera_id__nin: str + :param camera_id__notin: SQL NOT IN operator, permits comma-separated values + :type camera_id__notin: str + :param camera_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnull: str + :param camera_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__nisnull: str + :param camera_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnotnull: str + :param camera_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__l: str + :param camera_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__like: str + :param camera_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nl: str + :param camera_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nlike: str + :param camera_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notlike: str + :param camera_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__il: str + :param camera_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__ilike: str + :param camera_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nil: str + :param camera_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nilike: str + :param camera_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notilike: str + :param camera_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type camera_id__desc: str + :param camera_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type camera_id__asc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_detections_serialize( + limit=limit, + offset=offset, + id__eq=id__eq, + id__ne=id__ne, + id__gt=id__gt, + id__gte=id__gte, + id__lt=id__lt, + id__lte=id__lte, + id__in=id__in, + id__nin=id__nin, + id__notin=id__notin, + id__isnull=id__isnull, + id__nisnull=id__nisnull, + id__isnotnull=id__isnotnull, + id__l=id__l, + id__like=id__like, + id__nl=id__nl, + id__nlike=id__nlike, + id__notlike=id__notlike, + id__il=id__il, + id__ilike=id__ilike, + id__nil=id__nil, + id__nilike=id__nilike, + id__notilike=id__notilike, + id__desc=id__desc, + id__asc=id__asc, + created_at__eq=created_at__eq, + created_at__ne=created_at__ne, + created_at__gt=created_at__gt, + created_at__gte=created_at__gte, + created_at__lt=created_at__lt, + created_at__lte=created_at__lte, + created_at__in=created_at__in, + created_at__nin=created_at__nin, + created_at__notin=created_at__notin, + created_at__isnull=created_at__isnull, + created_at__nisnull=created_at__nisnull, + created_at__isnotnull=created_at__isnotnull, + created_at__l=created_at__l, + created_at__like=created_at__like, + created_at__nl=created_at__nl, + created_at__nlike=created_at__nlike, + created_at__notlike=created_at__notlike, + created_at__il=created_at__il, + created_at__ilike=created_at__ilike, + created_at__nil=created_at__nil, + created_at__nilike=created_at__nilike, + created_at__notilike=created_at__notilike, + created_at__desc=created_at__desc, + created_at__asc=created_at__asc, + updated_at__eq=updated_at__eq, + updated_at__ne=updated_at__ne, + updated_at__gt=updated_at__gt, + updated_at__gte=updated_at__gte, + updated_at__lt=updated_at__lt, + updated_at__lte=updated_at__lte, + updated_at__in=updated_at__in, + updated_at__nin=updated_at__nin, + updated_at__notin=updated_at__notin, + updated_at__isnull=updated_at__isnull, + updated_at__nisnull=updated_at__nisnull, + updated_at__isnotnull=updated_at__isnotnull, + updated_at__l=updated_at__l, + updated_at__like=updated_at__like, + updated_at__nl=updated_at__nl, + updated_at__nlike=updated_at__nlike, + updated_at__notlike=updated_at__notlike, + updated_at__il=updated_at__il, + updated_at__ilike=updated_at__ilike, + updated_at__nil=updated_at__nil, + updated_at__nilike=updated_at__nilike, + updated_at__notilike=updated_at__notilike, + updated_at__desc=updated_at__desc, + updated_at__asc=updated_at__asc, + deleted_at__eq=deleted_at__eq, + deleted_at__ne=deleted_at__ne, + deleted_at__gt=deleted_at__gt, + deleted_at__gte=deleted_at__gte, + deleted_at__lt=deleted_at__lt, + deleted_at__lte=deleted_at__lte, + deleted_at__in=deleted_at__in, + deleted_at__nin=deleted_at__nin, + deleted_at__notin=deleted_at__notin, + deleted_at__isnull=deleted_at__isnull, + deleted_at__nisnull=deleted_at__nisnull, + deleted_at__isnotnull=deleted_at__isnotnull, + deleted_at__l=deleted_at__l, + deleted_at__like=deleted_at__like, + deleted_at__nl=deleted_at__nl, + deleted_at__nlike=deleted_at__nlike, + deleted_at__notlike=deleted_at__notlike, + deleted_at__il=deleted_at__il, + deleted_at__ilike=deleted_at__ilike, + deleted_at__nil=deleted_at__nil, + deleted_at__nilike=deleted_at__nilike, + deleted_at__notilike=deleted_at__notilike, + deleted_at__desc=deleted_at__desc, + deleted_at__asc=deleted_at__asc, + seen_at__eq=seen_at__eq, + seen_at__ne=seen_at__ne, + seen_at__gt=seen_at__gt, + seen_at__gte=seen_at__gte, + seen_at__lt=seen_at__lt, + seen_at__lte=seen_at__lte, + seen_at__in=seen_at__in, + seen_at__nin=seen_at__nin, + seen_at__notin=seen_at__notin, + seen_at__isnull=seen_at__isnull, + seen_at__nisnull=seen_at__nisnull, + seen_at__isnotnull=seen_at__isnotnull, + seen_at__l=seen_at__l, + seen_at__like=seen_at__like, + seen_at__nl=seen_at__nl, + seen_at__nlike=seen_at__nlike, + seen_at__notlike=seen_at__notlike, + seen_at__il=seen_at__il, + seen_at__ilike=seen_at__ilike, + seen_at__nil=seen_at__nil, + seen_at__nilike=seen_at__nilike, + seen_at__notilike=seen_at__notilike, + seen_at__desc=seen_at__desc, + seen_at__asc=seen_at__asc, + class_id__eq=class_id__eq, + class_id__ne=class_id__ne, + class_id__gt=class_id__gt, + class_id__gte=class_id__gte, + class_id__lt=class_id__lt, + class_id__lte=class_id__lte, + class_id__in=class_id__in, + class_id__nin=class_id__nin, + class_id__notin=class_id__notin, + class_id__isnull=class_id__isnull, + class_id__nisnull=class_id__nisnull, + class_id__isnotnull=class_id__isnotnull, + class_id__l=class_id__l, + class_id__like=class_id__like, + class_id__nl=class_id__nl, + class_id__nlike=class_id__nlike, + class_id__notlike=class_id__notlike, + class_id__il=class_id__il, + class_id__ilike=class_id__ilike, + class_id__nil=class_id__nil, + class_id__nilike=class_id__nilike, + class_id__notilike=class_id__notilike, + class_id__desc=class_id__desc, + class_id__asc=class_id__asc, + class_name__eq=class_name__eq, + class_name__ne=class_name__ne, + class_name__gt=class_name__gt, + class_name__gte=class_name__gte, + class_name__lt=class_name__lt, + class_name__lte=class_name__lte, + class_name__in=class_name__in, + class_name__nin=class_name__nin, + class_name__notin=class_name__notin, + class_name__isnull=class_name__isnull, + class_name__nisnull=class_name__nisnull, + class_name__isnotnull=class_name__isnotnull, + class_name__l=class_name__l, + class_name__like=class_name__like, + class_name__nl=class_name__nl, + class_name__nlike=class_name__nlike, + class_name__notlike=class_name__notlike, + class_name__il=class_name__il, + class_name__ilike=class_name__ilike, + class_name__nil=class_name__nil, + class_name__nilike=class_name__nilike, + class_name__notilike=class_name__notilike, + class_name__desc=class_name__desc, + class_name__asc=class_name__asc, + score__eq=score__eq, + score__ne=score__ne, + score__gt=score__gt, + score__gte=score__gte, + score__lt=score__lt, + score__lte=score__lte, + score__in=score__in, + score__nin=score__nin, + score__notin=score__notin, + score__isnull=score__isnull, + score__nisnull=score__nisnull, + score__isnotnull=score__isnotnull, + score__l=score__l, + score__like=score__like, + score__nl=score__nl, + score__nlike=score__nlike, + score__notlike=score__notlike, + score__il=score__il, + score__ilike=score__ilike, + score__nil=score__nil, + score__nilike=score__nilike, + score__notilike=score__notilike, + score__desc=score__desc, + score__asc=score__asc, + video_id__eq=video_id__eq, + video_id__ne=video_id__ne, + video_id__gt=video_id__gt, + video_id__gte=video_id__gte, + video_id__lt=video_id__lt, + video_id__lte=video_id__lte, + video_id__in=video_id__in, + video_id__nin=video_id__nin, + video_id__notin=video_id__notin, + video_id__isnull=video_id__isnull, + video_id__nisnull=video_id__nisnull, + video_id__isnotnull=video_id__isnotnull, + video_id__l=video_id__l, + video_id__like=video_id__like, + video_id__nl=video_id__nl, + video_id__nlike=video_id__nlike, + video_id__notlike=video_id__notlike, + video_id__il=video_id__il, + video_id__ilike=video_id__ilike, + video_id__nil=video_id__nil, + video_id__nilike=video_id__nilike, + video_id__notilike=video_id__notilike, + video_id__desc=video_id__desc, + video_id__asc=video_id__asc, + camera_id__eq=camera_id__eq, + camera_id__ne=camera_id__ne, + camera_id__gt=camera_id__gt, + camera_id__gte=camera_id__gte, + camera_id__lt=camera_id__lt, + camera_id__lte=camera_id__lte, + camera_id__in=camera_id__in, + camera_id__nin=camera_id__nin, + camera_id__notin=camera_id__notin, + camera_id__isnull=camera_id__isnull, + camera_id__nisnull=camera_id__nisnull, + camera_id__isnotnull=camera_id__isnotnull, + camera_id__l=camera_id__l, + camera_id__like=camera_id__like, + camera_id__nl=camera_id__nl, + camera_id__nlike=camera_id__nlike, + camera_id__notlike=camera_id__notlike, + camera_id__il=camera_id__il, + camera_id__ilike=camera_id__ilike, + camera_id__nil=camera_id__nil, + camera_id__nilike=camera_id__nilike, + camera_id__notilike=camera_id__notilike, + camera_id__desc=camera_id__desc, + camera_id__asc=camera_id__asc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_detections_serialize( + self, + limit, + offset, + id__eq, + id__ne, + id__gt, + id__gte, + id__lt, + id__lte, + id__in, + id__nin, + id__notin, + id__isnull, + id__nisnull, + id__isnotnull, + id__l, + id__like, + id__nl, + id__nlike, + id__notlike, + id__il, + id__ilike, + id__nil, + id__nilike, + id__notilike, + id__desc, + id__asc, + created_at__eq, + created_at__ne, + created_at__gt, + created_at__gte, + created_at__lt, + created_at__lte, + created_at__in, + created_at__nin, + created_at__notin, + created_at__isnull, + created_at__nisnull, + created_at__isnotnull, + created_at__l, + created_at__like, + created_at__nl, + created_at__nlike, + created_at__notlike, + created_at__il, + created_at__ilike, + created_at__nil, + created_at__nilike, + created_at__notilike, + created_at__desc, + created_at__asc, + updated_at__eq, + updated_at__ne, + updated_at__gt, + updated_at__gte, + updated_at__lt, + updated_at__lte, + updated_at__in, + updated_at__nin, + updated_at__notin, + updated_at__isnull, + updated_at__nisnull, + updated_at__isnotnull, + updated_at__l, + updated_at__like, + updated_at__nl, + updated_at__nlike, + updated_at__notlike, + updated_at__il, + updated_at__ilike, + updated_at__nil, + updated_at__nilike, + updated_at__notilike, + updated_at__desc, + updated_at__asc, + deleted_at__eq, + deleted_at__ne, + deleted_at__gt, + deleted_at__gte, + deleted_at__lt, + deleted_at__lte, + deleted_at__in, + deleted_at__nin, + deleted_at__notin, + deleted_at__isnull, + deleted_at__nisnull, + deleted_at__isnotnull, + deleted_at__l, + deleted_at__like, + deleted_at__nl, + deleted_at__nlike, + deleted_at__notlike, + deleted_at__il, + deleted_at__ilike, + deleted_at__nil, + deleted_at__nilike, + deleted_at__notilike, + deleted_at__desc, + deleted_at__asc, + seen_at__eq, + seen_at__ne, + seen_at__gt, + seen_at__gte, + seen_at__lt, + seen_at__lte, + seen_at__in, + seen_at__nin, + seen_at__notin, + seen_at__isnull, + seen_at__nisnull, + seen_at__isnotnull, + seen_at__l, + seen_at__like, + seen_at__nl, + seen_at__nlike, + seen_at__notlike, + seen_at__il, + seen_at__ilike, + seen_at__nil, + seen_at__nilike, + seen_at__notilike, + seen_at__desc, + seen_at__asc, + class_id__eq, + class_id__ne, + class_id__gt, + class_id__gte, + class_id__lt, + class_id__lte, + class_id__in, + class_id__nin, + class_id__notin, + class_id__isnull, + class_id__nisnull, + class_id__isnotnull, + class_id__l, + class_id__like, + class_id__nl, + class_id__nlike, + class_id__notlike, + class_id__il, + class_id__ilike, + class_id__nil, + class_id__nilike, + class_id__notilike, + class_id__desc, + class_id__asc, + class_name__eq, + class_name__ne, + class_name__gt, + class_name__gte, + class_name__lt, + class_name__lte, + class_name__in, + class_name__nin, + class_name__notin, + class_name__isnull, + class_name__nisnull, + class_name__isnotnull, + class_name__l, + class_name__like, + class_name__nl, + class_name__nlike, + class_name__notlike, + class_name__il, + class_name__ilike, + class_name__nil, + class_name__nilike, + class_name__notilike, + class_name__desc, + class_name__asc, + score__eq, + score__ne, + score__gt, + score__gte, + score__lt, + score__lte, + score__in, + score__nin, + score__notin, + score__isnull, + score__nisnull, + score__isnotnull, + score__l, + score__like, + score__nl, + score__nlike, + score__notlike, + score__il, + score__ilike, + score__nil, + score__nilike, + score__notilike, + score__desc, + score__asc, + video_id__eq, + video_id__ne, + video_id__gt, + video_id__gte, + video_id__lt, + video_id__lte, + video_id__in, + video_id__nin, + video_id__notin, + video_id__isnull, + video_id__nisnull, + video_id__isnotnull, + video_id__l, + video_id__like, + video_id__nl, + video_id__nlike, + video_id__notlike, + video_id__il, + video_id__ilike, + video_id__nil, + video_id__nilike, + video_id__notilike, + video_id__desc, + video_id__asc, + camera_id__eq, + camera_id__ne, + camera_id__gt, + camera_id__gte, + camera_id__lt, + camera_id__lte, + camera_id__in, + camera_id__nin, + camera_id__notin, + camera_id__isnull, + camera_id__nisnull, + camera_id__isnotnull, + camera_id__l, + camera_id__like, + camera_id__nl, + camera_id__nlike, + camera_id__notlike, + camera_id__il, + camera_id__ilike, + camera_id__nil, + camera_id__nilike, + camera_id__notilike, + camera_id__desc, + camera_id__asc, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if offset is not None: + + _query_params.append(('offset', offset)) + + if id__eq is not None: + + _query_params.append(('id__eq', id__eq)) + + if id__ne is not None: + + _query_params.append(('id__ne', id__ne)) + + if id__gt is not None: + + _query_params.append(('id__gt', id__gt)) + + if id__gte is not None: + + _query_params.append(('id__gte', id__gte)) + + if id__lt is not None: + + _query_params.append(('id__lt', id__lt)) + + if id__lte is not None: + + _query_params.append(('id__lte', id__lte)) + + if id__in is not None: + + _query_params.append(('id__in', id__in)) + + if id__nin is not None: + + _query_params.append(('id__nin', id__nin)) + + if id__notin is not None: + + _query_params.append(('id__notin', id__notin)) + + if id__isnull is not None: + + _query_params.append(('id__isnull', id__isnull)) + + if id__nisnull is not None: + + _query_params.append(('id__nisnull', id__nisnull)) + + if id__isnotnull is not None: + + _query_params.append(('id__isnotnull', id__isnotnull)) + + if id__l is not None: + + _query_params.append(('id__l', id__l)) + + if id__like is not None: + + _query_params.append(('id__like', id__like)) + + if id__nl is not None: + + _query_params.append(('id__nl', id__nl)) + + if id__nlike is not None: + + _query_params.append(('id__nlike', id__nlike)) + + if id__notlike is not None: + + _query_params.append(('id__notlike', id__notlike)) + + if id__il is not None: + + _query_params.append(('id__il', id__il)) + + if id__ilike is not None: + + _query_params.append(('id__ilike', id__ilike)) + + if id__nil is not None: + + _query_params.append(('id__nil', id__nil)) + + if id__nilike is not None: + + _query_params.append(('id__nilike', id__nilike)) + + if id__notilike is not None: + + _query_params.append(('id__notilike', id__notilike)) + + if id__desc is not None: + + _query_params.append(('id__desc', id__desc)) + + if id__asc is not None: + + _query_params.append(('id__asc', id__asc)) + + if created_at__eq is not None: + if isinstance(created_at__eq, datetime): + _query_params.append( + ( + 'created_at__eq', + created_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__eq', created_at__eq)) + + if created_at__ne is not None: + if isinstance(created_at__ne, datetime): + _query_params.append( + ( + 'created_at__ne', + created_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__ne', created_at__ne)) + + if created_at__gt is not None: + if isinstance(created_at__gt, datetime): + _query_params.append( + ( + 'created_at__gt', + created_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__gt', created_at__gt)) + + if created_at__gte is not None: + if isinstance(created_at__gte, datetime): + _query_params.append( + ( + 'created_at__gte', + created_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__gte', created_at__gte)) + + if created_at__lt is not None: + if isinstance(created_at__lt, datetime): + _query_params.append( + ( + 'created_at__lt', + created_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__lt', created_at__lt)) + + if created_at__lte is not None: + if isinstance(created_at__lte, datetime): + _query_params.append( + ( + 'created_at__lte', + created_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__lte', created_at__lte)) + + if created_at__in is not None: + if isinstance(created_at__in, datetime): + _query_params.append( + ( + 'created_at__in', + created_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__in', created_at__in)) + + if created_at__nin is not None: + if isinstance(created_at__nin, datetime): + _query_params.append( + ( + 'created_at__nin', + created_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__nin', created_at__nin)) + + if created_at__notin is not None: + if isinstance(created_at__notin, datetime): + _query_params.append( + ( + 'created_at__notin', + created_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__notin', created_at__notin)) + + if created_at__isnull is not None: + + _query_params.append(('created_at__isnull', created_at__isnull)) + + if created_at__nisnull is not None: + + _query_params.append(('created_at__nisnull', created_at__nisnull)) + + if created_at__isnotnull is not None: + + _query_params.append(('created_at__isnotnull', created_at__isnotnull)) + + if created_at__l is not None: + + _query_params.append(('created_at__l', created_at__l)) + + if created_at__like is not None: + + _query_params.append(('created_at__like', created_at__like)) + + if created_at__nl is not None: + + _query_params.append(('created_at__nl', created_at__nl)) + + if created_at__nlike is not None: + + _query_params.append(('created_at__nlike', created_at__nlike)) + + if created_at__notlike is not None: + + _query_params.append(('created_at__notlike', created_at__notlike)) + + if created_at__il is not None: + + _query_params.append(('created_at__il', created_at__il)) + + if created_at__ilike is not None: + + _query_params.append(('created_at__ilike', created_at__ilike)) + + if created_at__nil is not None: + + _query_params.append(('created_at__nil', created_at__nil)) + + if created_at__nilike is not None: + + _query_params.append(('created_at__nilike', created_at__nilike)) + + if created_at__notilike is not None: + + _query_params.append(('created_at__notilike', created_at__notilike)) + + if created_at__desc is not None: + + _query_params.append(('created_at__desc', created_at__desc)) + + if created_at__asc is not None: + + _query_params.append(('created_at__asc', created_at__asc)) + + if updated_at__eq is not None: + if isinstance(updated_at__eq, datetime): + _query_params.append( + ( + 'updated_at__eq', + updated_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__eq', updated_at__eq)) + + if updated_at__ne is not None: + if isinstance(updated_at__ne, datetime): + _query_params.append( + ( + 'updated_at__ne', + updated_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__ne', updated_at__ne)) + + if updated_at__gt is not None: + if isinstance(updated_at__gt, datetime): + _query_params.append( + ( + 'updated_at__gt', + updated_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__gt', updated_at__gt)) + + if updated_at__gte is not None: + if isinstance(updated_at__gte, datetime): + _query_params.append( + ( + 'updated_at__gte', + updated_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__gte', updated_at__gte)) + + if updated_at__lt is not None: + if isinstance(updated_at__lt, datetime): + _query_params.append( + ( + 'updated_at__lt', + updated_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__lt', updated_at__lt)) + + if updated_at__lte is not None: + if isinstance(updated_at__lte, datetime): + _query_params.append( + ( + 'updated_at__lte', + updated_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__lte', updated_at__lte)) + + if updated_at__in is not None: + if isinstance(updated_at__in, datetime): + _query_params.append( + ( + 'updated_at__in', + updated_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__in', updated_at__in)) + + if updated_at__nin is not None: + if isinstance(updated_at__nin, datetime): + _query_params.append( + ( + 'updated_at__nin', + updated_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__nin', updated_at__nin)) + + if updated_at__notin is not None: + if isinstance(updated_at__notin, datetime): + _query_params.append( + ( + 'updated_at__notin', + updated_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__notin', updated_at__notin)) + + if updated_at__isnull is not None: + + _query_params.append(('updated_at__isnull', updated_at__isnull)) + + if updated_at__nisnull is not None: + + _query_params.append(('updated_at__nisnull', updated_at__nisnull)) + + if updated_at__isnotnull is not None: + + _query_params.append(('updated_at__isnotnull', updated_at__isnotnull)) + + if updated_at__l is not None: + + _query_params.append(('updated_at__l', updated_at__l)) + + if updated_at__like is not None: + + _query_params.append(('updated_at__like', updated_at__like)) + + if updated_at__nl is not None: + + _query_params.append(('updated_at__nl', updated_at__nl)) + + if updated_at__nlike is not None: + + _query_params.append(('updated_at__nlike', updated_at__nlike)) + + if updated_at__notlike is not None: + + _query_params.append(('updated_at__notlike', updated_at__notlike)) + + if updated_at__il is not None: + + _query_params.append(('updated_at__il', updated_at__il)) + + if updated_at__ilike is not None: + + _query_params.append(('updated_at__ilike', updated_at__ilike)) + + if updated_at__nil is not None: + + _query_params.append(('updated_at__nil', updated_at__nil)) + + if updated_at__nilike is not None: + + _query_params.append(('updated_at__nilike', updated_at__nilike)) + + if updated_at__notilike is not None: + + _query_params.append(('updated_at__notilike', updated_at__notilike)) + + if updated_at__desc is not None: + + _query_params.append(('updated_at__desc', updated_at__desc)) + + if updated_at__asc is not None: + + _query_params.append(('updated_at__asc', updated_at__asc)) + + if deleted_at__eq is not None: + if isinstance(deleted_at__eq, datetime): + _query_params.append( + ( + 'deleted_at__eq', + deleted_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__eq', deleted_at__eq)) + + if deleted_at__ne is not None: + if isinstance(deleted_at__ne, datetime): + _query_params.append( + ( + 'deleted_at__ne', + deleted_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__ne', deleted_at__ne)) + + if deleted_at__gt is not None: + if isinstance(deleted_at__gt, datetime): + _query_params.append( + ( + 'deleted_at__gt', + deleted_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__gt', deleted_at__gt)) + + if deleted_at__gte is not None: + if isinstance(deleted_at__gte, datetime): + _query_params.append( + ( + 'deleted_at__gte', + deleted_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__gte', deleted_at__gte)) + + if deleted_at__lt is not None: + if isinstance(deleted_at__lt, datetime): + _query_params.append( + ( + 'deleted_at__lt', + deleted_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__lt', deleted_at__lt)) + + if deleted_at__lte is not None: + if isinstance(deleted_at__lte, datetime): + _query_params.append( + ( + 'deleted_at__lte', + deleted_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__lte', deleted_at__lte)) + + if deleted_at__in is not None: + if isinstance(deleted_at__in, datetime): + _query_params.append( + ( + 'deleted_at__in', + deleted_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__in', deleted_at__in)) + + if deleted_at__nin is not None: + if isinstance(deleted_at__nin, datetime): + _query_params.append( + ( + 'deleted_at__nin', + deleted_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__nin', deleted_at__nin)) + + if deleted_at__notin is not None: + if isinstance(deleted_at__notin, datetime): + _query_params.append( + ( + 'deleted_at__notin', + deleted_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__notin', deleted_at__notin)) + + if deleted_at__isnull is not None: + + _query_params.append(('deleted_at__isnull', deleted_at__isnull)) + + if deleted_at__nisnull is not None: + + _query_params.append(('deleted_at__nisnull', deleted_at__nisnull)) + + if deleted_at__isnotnull is not None: + + _query_params.append(('deleted_at__isnotnull', deleted_at__isnotnull)) + + if deleted_at__l is not None: + + _query_params.append(('deleted_at__l', deleted_at__l)) + + if deleted_at__like is not None: + + _query_params.append(('deleted_at__like', deleted_at__like)) + + if deleted_at__nl is not None: + + _query_params.append(('deleted_at__nl', deleted_at__nl)) + + if deleted_at__nlike is not None: + + _query_params.append(('deleted_at__nlike', deleted_at__nlike)) + + if deleted_at__notlike is not None: + + _query_params.append(('deleted_at__notlike', deleted_at__notlike)) + + if deleted_at__il is not None: + + _query_params.append(('deleted_at__il', deleted_at__il)) + + if deleted_at__ilike is not None: + + _query_params.append(('deleted_at__ilike', deleted_at__ilike)) + + if deleted_at__nil is not None: + + _query_params.append(('deleted_at__nil', deleted_at__nil)) + + if deleted_at__nilike is not None: + + _query_params.append(('deleted_at__nilike', deleted_at__nilike)) + + if deleted_at__notilike is not None: + + _query_params.append(('deleted_at__notilike', deleted_at__notilike)) + + if deleted_at__desc is not None: + + _query_params.append(('deleted_at__desc', deleted_at__desc)) + + if deleted_at__asc is not None: + + _query_params.append(('deleted_at__asc', deleted_at__asc)) + + if seen_at__eq is not None: + if isinstance(seen_at__eq, datetime): + _query_params.append( + ( + 'seen_at__eq', + seen_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('seen_at__eq', seen_at__eq)) + + if seen_at__ne is not None: + if isinstance(seen_at__ne, datetime): + _query_params.append( + ( + 'seen_at__ne', + seen_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('seen_at__ne', seen_at__ne)) + + if seen_at__gt is not None: + if isinstance(seen_at__gt, datetime): + _query_params.append( + ( + 'seen_at__gt', + seen_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('seen_at__gt', seen_at__gt)) + + if seen_at__gte is not None: + if isinstance(seen_at__gte, datetime): + _query_params.append( + ( + 'seen_at__gte', + seen_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('seen_at__gte', seen_at__gte)) + + if seen_at__lt is not None: + if isinstance(seen_at__lt, datetime): + _query_params.append( + ( + 'seen_at__lt', + seen_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('seen_at__lt', seen_at__lt)) + + if seen_at__lte is not None: + if isinstance(seen_at__lte, datetime): + _query_params.append( + ( + 'seen_at__lte', + seen_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('seen_at__lte', seen_at__lte)) + + if seen_at__in is not None: + if isinstance(seen_at__in, datetime): + _query_params.append( + ( + 'seen_at__in', + seen_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('seen_at__in', seen_at__in)) + + if seen_at__nin is not None: + if isinstance(seen_at__nin, datetime): + _query_params.append( + ( + 'seen_at__nin', + seen_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('seen_at__nin', seen_at__nin)) + + if seen_at__notin is not None: + if isinstance(seen_at__notin, datetime): + _query_params.append( + ( + 'seen_at__notin', + seen_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('seen_at__notin', seen_at__notin)) + + if seen_at__isnull is not None: + + _query_params.append(('seen_at__isnull', seen_at__isnull)) + + if seen_at__nisnull is not None: + + _query_params.append(('seen_at__nisnull', seen_at__nisnull)) + + if seen_at__isnotnull is not None: + + _query_params.append(('seen_at__isnotnull', seen_at__isnotnull)) + + if seen_at__l is not None: + + _query_params.append(('seen_at__l', seen_at__l)) + + if seen_at__like is not None: + + _query_params.append(('seen_at__like', seen_at__like)) + + if seen_at__nl is not None: + + _query_params.append(('seen_at__nl', seen_at__nl)) + + if seen_at__nlike is not None: + + _query_params.append(('seen_at__nlike', seen_at__nlike)) + + if seen_at__notlike is not None: + + _query_params.append(('seen_at__notlike', seen_at__notlike)) + + if seen_at__il is not None: + + _query_params.append(('seen_at__il', seen_at__il)) + + if seen_at__ilike is not None: + + _query_params.append(('seen_at__ilike', seen_at__ilike)) + + if seen_at__nil is not None: + + _query_params.append(('seen_at__nil', seen_at__nil)) + + if seen_at__nilike is not None: + + _query_params.append(('seen_at__nilike', seen_at__nilike)) + + if seen_at__notilike is not None: + + _query_params.append(('seen_at__notilike', seen_at__notilike)) + + if seen_at__desc is not None: + + _query_params.append(('seen_at__desc', seen_at__desc)) + + if seen_at__asc is not None: + + _query_params.append(('seen_at__asc', seen_at__asc)) + + if class_id__eq is not None: + + _query_params.append(('class_id__eq', class_id__eq)) + + if class_id__ne is not None: + + _query_params.append(('class_id__ne', class_id__ne)) + + if class_id__gt is not None: + + _query_params.append(('class_id__gt', class_id__gt)) + + if class_id__gte is not None: + + _query_params.append(('class_id__gte', class_id__gte)) + + if class_id__lt is not None: + + _query_params.append(('class_id__lt', class_id__lt)) + + if class_id__lte is not None: + + _query_params.append(('class_id__lte', class_id__lte)) + + if class_id__in is not None: + + _query_params.append(('class_id__in', class_id__in)) + + if class_id__nin is not None: + + _query_params.append(('class_id__nin', class_id__nin)) + + if class_id__notin is not None: + + _query_params.append(('class_id__notin', class_id__notin)) + + if class_id__isnull is not None: + + _query_params.append(('class_id__isnull', class_id__isnull)) + + if class_id__nisnull is not None: + + _query_params.append(('class_id__nisnull', class_id__nisnull)) + + if class_id__isnotnull is not None: + + _query_params.append(('class_id__isnotnull', class_id__isnotnull)) + + if class_id__l is not None: + + _query_params.append(('class_id__l', class_id__l)) + + if class_id__like is not None: + + _query_params.append(('class_id__like', class_id__like)) + + if class_id__nl is not None: + + _query_params.append(('class_id__nl', class_id__nl)) + + if class_id__nlike is not None: + + _query_params.append(('class_id__nlike', class_id__nlike)) + + if class_id__notlike is not None: + + _query_params.append(('class_id__notlike', class_id__notlike)) + + if class_id__il is not None: + + _query_params.append(('class_id__il', class_id__il)) + + if class_id__ilike is not None: + + _query_params.append(('class_id__ilike', class_id__ilike)) + + if class_id__nil is not None: + + _query_params.append(('class_id__nil', class_id__nil)) + + if class_id__nilike is not None: + + _query_params.append(('class_id__nilike', class_id__nilike)) + + if class_id__notilike is not None: + + _query_params.append(('class_id__notilike', class_id__notilike)) + + if class_id__desc is not None: + + _query_params.append(('class_id__desc', class_id__desc)) + + if class_id__asc is not None: + + _query_params.append(('class_id__asc', class_id__asc)) + + if class_name__eq is not None: + + _query_params.append(('class_name__eq', class_name__eq)) + + if class_name__ne is not None: + + _query_params.append(('class_name__ne', class_name__ne)) + + if class_name__gt is not None: + + _query_params.append(('class_name__gt', class_name__gt)) + + if class_name__gte is not None: + + _query_params.append(('class_name__gte', class_name__gte)) + + if class_name__lt is not None: + + _query_params.append(('class_name__lt', class_name__lt)) + + if class_name__lte is not None: + + _query_params.append(('class_name__lte', class_name__lte)) + + if class_name__in is not None: + + _query_params.append(('class_name__in', class_name__in)) + + if class_name__nin is not None: + + _query_params.append(('class_name__nin', class_name__nin)) + + if class_name__notin is not None: + + _query_params.append(('class_name__notin', class_name__notin)) + + if class_name__isnull is not None: + + _query_params.append(('class_name__isnull', class_name__isnull)) + + if class_name__nisnull is not None: + + _query_params.append(('class_name__nisnull', class_name__nisnull)) + + if class_name__isnotnull is not None: + + _query_params.append(('class_name__isnotnull', class_name__isnotnull)) + + if class_name__l is not None: + + _query_params.append(('class_name__l', class_name__l)) + + if class_name__like is not None: + + _query_params.append(('class_name__like', class_name__like)) + + if class_name__nl is not None: + + _query_params.append(('class_name__nl', class_name__nl)) + + if class_name__nlike is not None: + + _query_params.append(('class_name__nlike', class_name__nlike)) + + if class_name__notlike is not None: + + _query_params.append(('class_name__notlike', class_name__notlike)) + + if class_name__il is not None: + + _query_params.append(('class_name__il', class_name__il)) + + if class_name__ilike is not None: + + _query_params.append(('class_name__ilike', class_name__ilike)) + + if class_name__nil is not None: + + _query_params.append(('class_name__nil', class_name__nil)) + + if class_name__nilike is not None: + + _query_params.append(('class_name__nilike', class_name__nilike)) + + if class_name__notilike is not None: + + _query_params.append(('class_name__notilike', class_name__notilike)) + + if class_name__desc is not None: + + _query_params.append(('class_name__desc', class_name__desc)) + + if class_name__asc is not None: + + _query_params.append(('class_name__asc', class_name__asc)) + + if score__eq is not None: + + _query_params.append(('score__eq', score__eq)) + + if score__ne is not None: + + _query_params.append(('score__ne', score__ne)) + + if score__gt is not None: + + _query_params.append(('score__gt', score__gt)) + + if score__gte is not None: + + _query_params.append(('score__gte', score__gte)) + + if score__lt is not None: + + _query_params.append(('score__lt', score__lt)) + + if score__lte is not None: + + _query_params.append(('score__lte', score__lte)) + + if score__in is not None: + + _query_params.append(('score__in', score__in)) + + if score__nin is not None: + + _query_params.append(('score__nin', score__nin)) + + if score__notin is not None: + + _query_params.append(('score__notin', score__notin)) + + if score__isnull is not None: + + _query_params.append(('score__isnull', score__isnull)) + + if score__nisnull is not None: + + _query_params.append(('score__nisnull', score__nisnull)) + + if score__isnotnull is not None: + + _query_params.append(('score__isnotnull', score__isnotnull)) + + if score__l is not None: + + _query_params.append(('score__l', score__l)) + + if score__like is not None: + + _query_params.append(('score__like', score__like)) + + if score__nl is not None: + + _query_params.append(('score__nl', score__nl)) + + if score__nlike is not None: + + _query_params.append(('score__nlike', score__nlike)) + + if score__notlike is not None: + + _query_params.append(('score__notlike', score__notlike)) + + if score__il is not None: + + _query_params.append(('score__il', score__il)) + + if score__ilike is not None: + + _query_params.append(('score__ilike', score__ilike)) + + if score__nil is not None: + + _query_params.append(('score__nil', score__nil)) + + if score__nilike is not None: + + _query_params.append(('score__nilike', score__nilike)) + + if score__notilike is not None: + + _query_params.append(('score__notilike', score__notilike)) + + if score__desc is not None: + + _query_params.append(('score__desc', score__desc)) + + if score__asc is not None: + + _query_params.append(('score__asc', score__asc)) + + if video_id__eq is not None: + + _query_params.append(('video_id__eq', video_id__eq)) + + if video_id__ne is not None: + + _query_params.append(('video_id__ne', video_id__ne)) + + if video_id__gt is not None: + + _query_params.append(('video_id__gt', video_id__gt)) + + if video_id__gte is not None: + + _query_params.append(('video_id__gte', video_id__gte)) + + if video_id__lt is not None: + + _query_params.append(('video_id__lt', video_id__lt)) + + if video_id__lte is not None: + + _query_params.append(('video_id__lte', video_id__lte)) + + if video_id__in is not None: + + _query_params.append(('video_id__in', video_id__in)) + + if video_id__nin is not None: + + _query_params.append(('video_id__nin', video_id__nin)) + + if video_id__notin is not None: + + _query_params.append(('video_id__notin', video_id__notin)) + + if video_id__isnull is not None: + + _query_params.append(('video_id__isnull', video_id__isnull)) + + if video_id__nisnull is not None: + + _query_params.append(('video_id__nisnull', video_id__nisnull)) + + if video_id__isnotnull is not None: + + _query_params.append(('video_id__isnotnull', video_id__isnotnull)) + + if video_id__l is not None: + + _query_params.append(('video_id__l', video_id__l)) + + if video_id__like is not None: + + _query_params.append(('video_id__like', video_id__like)) + + if video_id__nl is not None: + + _query_params.append(('video_id__nl', video_id__nl)) + + if video_id__nlike is not None: + + _query_params.append(('video_id__nlike', video_id__nlike)) + + if video_id__notlike is not None: + + _query_params.append(('video_id__notlike', video_id__notlike)) + + if video_id__il is not None: + + _query_params.append(('video_id__il', video_id__il)) + + if video_id__ilike is not None: + + _query_params.append(('video_id__ilike', video_id__ilike)) + + if video_id__nil is not None: + + _query_params.append(('video_id__nil', video_id__nil)) + + if video_id__nilike is not None: + + _query_params.append(('video_id__nilike', video_id__nilike)) + + if video_id__notilike is not None: + + _query_params.append(('video_id__notilike', video_id__notilike)) + + if video_id__desc is not None: + + _query_params.append(('video_id__desc', video_id__desc)) + + if video_id__asc is not None: + + _query_params.append(('video_id__asc', video_id__asc)) + + if camera_id__eq is not None: + + _query_params.append(('camera_id__eq', camera_id__eq)) + + if camera_id__ne is not None: + + _query_params.append(('camera_id__ne', camera_id__ne)) + + if camera_id__gt is not None: + + _query_params.append(('camera_id__gt', camera_id__gt)) + + if camera_id__gte is not None: + + _query_params.append(('camera_id__gte', camera_id__gte)) + + if camera_id__lt is not None: + + _query_params.append(('camera_id__lt', camera_id__lt)) + + if camera_id__lte is not None: + + _query_params.append(('camera_id__lte', camera_id__lte)) + + if camera_id__in is not None: + + _query_params.append(('camera_id__in', camera_id__in)) + + if camera_id__nin is not None: + + _query_params.append(('camera_id__nin', camera_id__nin)) + + if camera_id__notin is not None: + + _query_params.append(('camera_id__notin', camera_id__notin)) + + if camera_id__isnull is not None: + + _query_params.append(('camera_id__isnull', camera_id__isnull)) + + if camera_id__nisnull is not None: + + _query_params.append(('camera_id__nisnull', camera_id__nisnull)) + + if camera_id__isnotnull is not None: + + _query_params.append(('camera_id__isnotnull', camera_id__isnotnull)) + + if camera_id__l is not None: + + _query_params.append(('camera_id__l', camera_id__l)) + + if camera_id__like is not None: + + _query_params.append(('camera_id__like', camera_id__like)) + + if camera_id__nl is not None: + + _query_params.append(('camera_id__nl', camera_id__nl)) + + if camera_id__nlike is not None: + + _query_params.append(('camera_id__nlike', camera_id__nlike)) + + if camera_id__notlike is not None: + + _query_params.append(('camera_id__notlike', camera_id__notlike)) + + if camera_id__il is not None: + + _query_params.append(('camera_id__il', camera_id__il)) + + if camera_id__ilike is not None: + + _query_params.append(('camera_id__ilike', camera_id__ilike)) + + if camera_id__nil is not None: + + _query_params.append(('camera_id__nil', camera_id__nil)) + + if camera_id__nilike is not None: + + _query_params.append(('camera_id__nilike', camera_id__nilike)) + + if camera_id__notilike is not None: + + _query_params.append(('camera_id__notilike', camera_id__notilike)) + + if camera_id__desc is not None: + + _query_params.append(('camera_id__desc', camera_id__desc)) + + if camera_id__asc is not None: + + _query_params.append(('camera_id__asc', camera_id__asc)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/detections', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def patch_detection( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + detection: Detection, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetDetections200Response: + """patch_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param detection: (required) + :type detection: Detection + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_detection_serialize( + primary_key=primary_key, + detection=detection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def patch_detection_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + detection: Detection, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetDetections200Response]: + """patch_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param detection: (required) + :type detection: Detection + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_detection_serialize( + primary_key=primary_key, + detection=detection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def patch_detection_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + detection: Detection, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param detection: (required) + :type detection: Detection + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_detection_serialize( + primary_key=primary_key, + detection=detection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _patch_detection_serialize( + self, + primary_key, + detection, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if detection is not None: + _body_params = detection + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/api/detections/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_detections( + self, + detection: List[Detection], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetDetections200Response: + """post_detections + + + :param detection: (required) + :type detection: List[Detection] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_detections_serialize( + detection=detection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_detections_with_http_info( + self, + detection: List[Detection], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetDetections200Response]: + """post_detections + + + :param detection: (required) + :type detection: List[Detection] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_detections_serialize( + detection=detection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_detections_without_preload_content( + self, + detection: List[Detection], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_detections + + + :param detection: (required) + :type detection: List[Detection] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_detections_serialize( + detection=detection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_detections_serialize( + self, + detection, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'Detection': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if detection is not None: + _body_params = detection + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/detections', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_detection( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + detection: Detection, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetDetections200Response: + """put_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param detection: (required) + :type detection: Detection + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_detection_serialize( + primary_key=primary_key, + detection=detection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_detection_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + detection: Detection, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetDetections200Response]: + """put_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param detection: (required) + :type detection: Detection + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_detection_serialize( + primary_key=primary_key, + detection=detection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_detection_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Detection")], + detection: Detection, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """put_detection + + + :param primary_key: Primary key for Detection (required) + :type primary_key: object + :param detection: (required) + :type detection: Detection + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_detection_serialize( + primary_key=primary_key, + detection=detection, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDetections200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_detection_serialize( + self, + primary_key, + detection, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if detection is not None: + _body_params = detection + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/detections/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/object_detector/openapi_client/api/video_api.py b/object_detector/openapi_client/api/video_api.py new file mode 100644 index 0000000..502c53a --- /dev/null +++ b/object_detector/openapi_client/api/video_api.py @@ -0,0 +1,6961 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import datetime +from pydantic import Field, StrictFloat, StrictInt, StrictStr +from typing import Any, List, Optional, Union +from typing_extensions import Annotated +from openapi_client.models.get_videos200_response import GetVideos200Response +from openapi_client.models.video import Video + +from openapi_client.api_client import ApiClient, RequestSerialized +from openapi_client.api_response import ApiResponse +from openapi_client.rest import RESTResponseType + + +class VideoApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_video( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """delete_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_video_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_video_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """delete_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_video_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_video_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_video_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_video_serialize( + self, + primary_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/videos/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_video( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetVideos200Response: + """get_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_video_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_video_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetVideos200Response]: + """get_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_video_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_video_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_video_serialize( + primary_key=primary_key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_video_serialize( + self, + primary_key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/videos/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_videos( + self, + limit: Annotated[Optional[StrictInt], Field(description="SQL LIMIT operator")] = None, + offset: Annotated[Optional[StrictInt], Field(description="SQL OFFSET operator")] = None, + id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + created_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + created_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + created_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + created_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + created_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + created_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + created_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + updated_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + updated_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + updated_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + updated_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + updated_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + updated_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + updated_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + deleted_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + deleted_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + deleted_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + deleted_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + deleted_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + deleted_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + deleted_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + file_name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + file_name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + file_name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + file_name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + file_name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + file_name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + file_name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + file_name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + file_name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + started_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + started_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + started_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + started_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + started_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + started_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + started_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + started_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + started_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + started_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + started_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + started_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + started_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + started_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + ended_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + ended_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + ended_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + ended_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + ended_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + ended_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + ended_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + ended_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + ended_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + duration__eq: Annotated[Optional[StrictInt], Field(description="SQL = operator")] = None, + duration__ne: Annotated[Optional[StrictInt], Field(description="SQL != operator")] = None, + duration__gt: Annotated[Optional[StrictInt], Field(description="SQL > operator, may not work with all column types")] = None, + duration__gte: Annotated[Optional[StrictInt], Field(description="SQL >= operator, may not work with all column types")] = None, + duration__lt: Annotated[Optional[StrictInt], Field(description="SQL < operator, may not work with all column types")] = None, + duration__lte: Annotated[Optional[StrictInt], Field(description="SQL <= operator, may not work with all column types")] = None, + duration__in: Annotated[Optional[StrictInt], Field(description="SQL IN operator, permits comma-separated values")] = None, + duration__nin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + duration__notin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + duration__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + duration__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + duration__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + duration__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + duration__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + file_size__eq: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL = operator")] = None, + file_size__ne: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL != operator")] = None, + file_size__gt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL > operator, may not work with all column types")] = None, + file_size__gte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL >= operator, may not work with all column types")] = None, + file_size__lt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL < operator, may not work with all column types")] = None, + file_size__lte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL <= operator, may not work with all column types")] = None, + file_size__in: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL IN operator, permits comma-separated values")] = None, + file_size__nin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_size__notin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_size__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_size__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_size__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_size__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + file_size__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + thumbnail_name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + thumbnail_name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + thumbnail_name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + thumbnail_name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + thumbnail_name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + thumbnail_name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + thumbnail_name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + thumbnail_name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + thumbnail_name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + status__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + status__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + status__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + status__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + status__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + status__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + status__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + status__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + status__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + status__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + status__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + status__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + status__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + status__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + camera_id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + camera_id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + camera_id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + camera_id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + camera_id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + camera_id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + camera_id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetVideos200Response: + """get_videos + + + :param limit: SQL LIMIT operator + :type limit: int + :param offset: SQL OFFSET operator + :type offset: int + :param id__eq: SQL = operator + :type id__eq: str + :param id__ne: SQL != operator + :type id__ne: str + :param id__gt: SQL > operator, may not work with all column types + :type id__gt: str + :param id__gte: SQL >= operator, may not work with all column types + :type id__gte: str + :param id__lt: SQL < operator, may not work with all column types + :type id__lt: str + :param id__lte: SQL <= operator, may not work with all column types + :type id__lte: str + :param id__in: SQL IN operator, permits comma-separated values + :type id__in: str + :param id__nin: SQL NOT IN operator, permits comma-separated values + :type id__nin: str + :param id__notin: SQL NOT IN operator, permits comma-separated values + :type id__notin: str + :param id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type id__isnull: str + :param id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__nisnull: str + :param id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__isnotnull: str + :param id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__l: str + :param id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__like: str + :param id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nl: str + :param id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nlike: str + :param id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__notlike: str + :param id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__il: str + :param id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__ilike: str + :param id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nil: str + :param id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nilike: str + :param id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__notilike: str + :param id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type id__desc: str + :param id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type id__asc: str + :param created_at__eq: SQL = operator + :type created_at__eq: datetime + :param created_at__ne: SQL != operator + :type created_at__ne: datetime + :param created_at__gt: SQL > operator, may not work with all column types + :type created_at__gt: datetime + :param created_at__gte: SQL >= operator, may not work with all column types + :type created_at__gte: datetime + :param created_at__lt: SQL < operator, may not work with all column types + :type created_at__lt: datetime + :param created_at__lte: SQL <= operator, may not work with all column types + :type created_at__lte: datetime + :param created_at__in: SQL IN operator, permits comma-separated values + :type created_at__in: datetime + :param created_at__nin: SQL NOT IN operator, permits comma-separated values + :type created_at__nin: datetime + :param created_at__notin: SQL NOT IN operator, permits comma-separated values + :type created_at__notin: datetime + :param created_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnull: str + :param created_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__nisnull: str + :param created_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnotnull: str + :param created_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__l: str + :param created_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__like: str + :param created_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nl: str + :param created_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nlike: str + :param created_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notlike: str + :param created_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__il: str + :param created_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__ilike: str + :param created_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nil: str + :param created_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nilike: str + :param created_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notilike: str + :param created_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type created_at__desc: str + :param created_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type created_at__asc: str + :param updated_at__eq: SQL = operator + :type updated_at__eq: datetime + :param updated_at__ne: SQL != operator + :type updated_at__ne: datetime + :param updated_at__gt: SQL > operator, may not work with all column types + :type updated_at__gt: datetime + :param updated_at__gte: SQL >= operator, may not work with all column types + :type updated_at__gte: datetime + :param updated_at__lt: SQL < operator, may not work with all column types + :type updated_at__lt: datetime + :param updated_at__lte: SQL <= operator, may not work with all column types + :type updated_at__lte: datetime + :param updated_at__in: SQL IN operator, permits comma-separated values + :type updated_at__in: datetime + :param updated_at__nin: SQL NOT IN operator, permits comma-separated values + :type updated_at__nin: datetime + :param updated_at__notin: SQL NOT IN operator, permits comma-separated values + :type updated_at__notin: datetime + :param updated_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnull: str + :param updated_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__nisnull: str + :param updated_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnotnull: str + :param updated_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__l: str + :param updated_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__like: str + :param updated_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nl: str + :param updated_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nlike: str + :param updated_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notlike: str + :param updated_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__il: str + :param updated_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__ilike: str + :param updated_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nil: str + :param updated_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nilike: str + :param updated_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notilike: str + :param updated_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type updated_at__desc: str + :param updated_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type updated_at__asc: str + :param deleted_at__eq: SQL = operator + :type deleted_at__eq: datetime + :param deleted_at__ne: SQL != operator + :type deleted_at__ne: datetime + :param deleted_at__gt: SQL > operator, may not work with all column types + :type deleted_at__gt: datetime + :param deleted_at__gte: SQL >= operator, may not work with all column types + :type deleted_at__gte: datetime + :param deleted_at__lt: SQL < operator, may not work with all column types + :type deleted_at__lt: datetime + :param deleted_at__lte: SQL <= operator, may not work with all column types + :type deleted_at__lte: datetime + :param deleted_at__in: SQL IN operator, permits comma-separated values + :type deleted_at__in: datetime + :param deleted_at__nin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__nin: datetime + :param deleted_at__notin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__notin: datetime + :param deleted_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnull: str + :param deleted_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__nisnull: str + :param deleted_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnotnull: str + :param deleted_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__l: str + :param deleted_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__like: str + :param deleted_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nl: str + :param deleted_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nlike: str + :param deleted_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notlike: str + :param deleted_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__il: str + :param deleted_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__ilike: str + :param deleted_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nil: str + :param deleted_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nilike: str + :param deleted_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notilike: str + :param deleted_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type deleted_at__desc: str + :param deleted_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type deleted_at__asc: str + :param file_name__eq: SQL = operator + :type file_name__eq: str + :param file_name__ne: SQL != operator + :type file_name__ne: str + :param file_name__gt: SQL > operator, may not work with all column types + :type file_name__gt: str + :param file_name__gte: SQL >= operator, may not work with all column types + :type file_name__gte: str + :param file_name__lt: SQL < operator, may not work with all column types + :type file_name__lt: str + :param file_name__lte: SQL <= operator, may not work with all column types + :type file_name__lte: str + :param file_name__in: SQL IN operator, permits comma-separated values + :type file_name__in: str + :param file_name__nin: SQL NOT IN operator, permits comma-separated values + :type file_name__nin: str + :param file_name__notin: SQL NOT IN operator, permits comma-separated values + :type file_name__notin: str + :param file_name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type file_name__isnull: str + :param file_name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_name__nisnull: str + :param file_name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_name__isnotnull: str + :param file_name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__l: str + :param file_name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__like: str + :param file_name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nl: str + :param file_name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nlike: str + :param file_name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__notlike: str + :param file_name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__il: str + :param file_name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__ilike: str + :param file_name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nil: str + :param file_name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nilike: str + :param file_name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__notilike: str + :param file_name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type file_name__desc: str + :param file_name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type file_name__asc: str + :param started_at__eq: SQL = operator + :type started_at__eq: datetime + :param started_at__ne: SQL != operator + :type started_at__ne: datetime + :param started_at__gt: SQL > operator, may not work with all column types + :type started_at__gt: datetime + :param started_at__gte: SQL >= operator, may not work with all column types + :type started_at__gte: datetime + :param started_at__lt: SQL < operator, may not work with all column types + :type started_at__lt: datetime + :param started_at__lte: SQL <= operator, may not work with all column types + :type started_at__lte: datetime + :param started_at__in: SQL IN operator, permits comma-separated values + :type started_at__in: datetime + :param started_at__nin: SQL NOT IN operator, permits comma-separated values + :type started_at__nin: datetime + :param started_at__notin: SQL NOT IN operator, permits comma-separated values + :type started_at__notin: datetime + :param started_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type started_at__isnull: str + :param started_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type started_at__nisnull: str + :param started_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type started_at__isnotnull: str + :param started_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__l: str + :param started_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__like: str + :param started_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nl: str + :param started_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nlike: str + :param started_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__notlike: str + :param started_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__il: str + :param started_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__ilike: str + :param started_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nil: str + :param started_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nilike: str + :param started_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__notilike: str + :param started_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type started_at__desc: str + :param started_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type started_at__asc: str + :param ended_at__eq: SQL = operator + :type ended_at__eq: datetime + :param ended_at__ne: SQL != operator + :type ended_at__ne: datetime + :param ended_at__gt: SQL > operator, may not work with all column types + :type ended_at__gt: datetime + :param ended_at__gte: SQL >= operator, may not work with all column types + :type ended_at__gte: datetime + :param ended_at__lt: SQL < operator, may not work with all column types + :type ended_at__lt: datetime + :param ended_at__lte: SQL <= operator, may not work with all column types + :type ended_at__lte: datetime + :param ended_at__in: SQL IN operator, permits comma-separated values + :type ended_at__in: datetime + :param ended_at__nin: SQL NOT IN operator, permits comma-separated values + :type ended_at__nin: datetime + :param ended_at__notin: SQL NOT IN operator, permits comma-separated values + :type ended_at__notin: datetime + :param ended_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type ended_at__isnull: str + :param ended_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type ended_at__nisnull: str + :param ended_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type ended_at__isnotnull: str + :param ended_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__l: str + :param ended_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__like: str + :param ended_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nl: str + :param ended_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nlike: str + :param ended_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__notlike: str + :param ended_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__il: str + :param ended_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__ilike: str + :param ended_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nil: str + :param ended_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nilike: str + :param ended_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__notilike: str + :param ended_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type ended_at__desc: str + :param ended_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type ended_at__asc: str + :param duration__eq: SQL = operator + :type duration__eq: int + :param duration__ne: SQL != operator + :type duration__ne: int + :param duration__gt: SQL > operator, may not work with all column types + :type duration__gt: int + :param duration__gte: SQL >= operator, may not work with all column types + :type duration__gte: int + :param duration__lt: SQL < operator, may not work with all column types + :type duration__lt: int + :param duration__lte: SQL <= operator, may not work with all column types + :type duration__lte: int + :param duration__in: SQL IN operator, permits comma-separated values + :type duration__in: int + :param duration__nin: SQL NOT IN operator, permits comma-separated values + :type duration__nin: int + :param duration__notin: SQL NOT IN operator, permits comma-separated values + :type duration__notin: int + :param duration__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type duration__isnull: str + :param duration__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type duration__nisnull: str + :param duration__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type duration__isnotnull: str + :param duration__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__l: str + :param duration__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__like: str + :param duration__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nl: str + :param duration__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nlike: str + :param duration__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__notlike: str + :param duration__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__il: str + :param duration__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__ilike: str + :param duration__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nil: str + :param duration__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nilike: str + :param duration__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__notilike: str + :param duration__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type duration__desc: str + :param duration__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type duration__asc: str + :param file_size__eq: SQL = operator + :type file_size__eq: float + :param file_size__ne: SQL != operator + :type file_size__ne: float + :param file_size__gt: SQL > operator, may not work with all column types + :type file_size__gt: float + :param file_size__gte: SQL >= operator, may not work with all column types + :type file_size__gte: float + :param file_size__lt: SQL < operator, may not work with all column types + :type file_size__lt: float + :param file_size__lte: SQL <= operator, may not work with all column types + :type file_size__lte: float + :param file_size__in: SQL IN operator, permits comma-separated values + :type file_size__in: float + :param file_size__nin: SQL NOT IN operator, permits comma-separated values + :type file_size__nin: float + :param file_size__notin: SQL NOT IN operator, permits comma-separated values + :type file_size__notin: float + :param file_size__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type file_size__isnull: str + :param file_size__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_size__nisnull: str + :param file_size__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_size__isnotnull: str + :param file_size__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__l: str + :param file_size__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__like: str + :param file_size__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nl: str + :param file_size__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nlike: str + :param file_size__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__notlike: str + :param file_size__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__il: str + :param file_size__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__ilike: str + :param file_size__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nil: str + :param file_size__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nilike: str + :param file_size__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__notilike: str + :param file_size__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type file_size__desc: str + :param file_size__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type file_size__asc: str + :param thumbnail_name__eq: SQL = operator + :type thumbnail_name__eq: str + :param thumbnail_name__ne: SQL != operator + :type thumbnail_name__ne: str + :param thumbnail_name__gt: SQL > operator, may not work with all column types + :type thumbnail_name__gt: str + :param thumbnail_name__gte: SQL >= operator, may not work with all column types + :type thumbnail_name__gte: str + :param thumbnail_name__lt: SQL < operator, may not work with all column types + :type thumbnail_name__lt: str + :param thumbnail_name__lte: SQL <= operator, may not work with all column types + :type thumbnail_name__lte: str + :param thumbnail_name__in: SQL IN operator, permits comma-separated values + :type thumbnail_name__in: str + :param thumbnail_name__nin: SQL NOT IN operator, permits comma-separated values + :type thumbnail_name__nin: str + :param thumbnail_name__notin: SQL NOT IN operator, permits comma-separated values + :type thumbnail_name__notin: str + :param thumbnail_name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__isnull: str + :param thumbnail_name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__nisnull: str + :param thumbnail_name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__isnotnull: str + :param thumbnail_name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__l: str + :param thumbnail_name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__like: str + :param thumbnail_name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nl: str + :param thumbnail_name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nlike: str + :param thumbnail_name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__notlike: str + :param thumbnail_name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__il: str + :param thumbnail_name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__ilike: str + :param thumbnail_name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nil: str + :param thumbnail_name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nilike: str + :param thumbnail_name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__notilike: str + :param thumbnail_name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__desc: str + :param thumbnail_name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__asc: str + :param status__eq: SQL = operator + :type status__eq: str + :param status__ne: SQL != operator + :type status__ne: str + :param status__gt: SQL > operator, may not work with all column types + :type status__gt: str + :param status__gte: SQL >= operator, may not work with all column types + :type status__gte: str + :param status__lt: SQL < operator, may not work with all column types + :type status__lt: str + :param status__lte: SQL <= operator, may not work with all column types + :type status__lte: str + :param status__in: SQL IN operator, permits comma-separated values + :type status__in: str + :param status__nin: SQL NOT IN operator, permits comma-separated values + :type status__nin: str + :param status__notin: SQL NOT IN operator, permits comma-separated values + :type status__notin: str + :param status__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type status__isnull: str + :param status__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type status__nisnull: str + :param status__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type status__isnotnull: str + :param status__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type status__l: str + :param status__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type status__like: str + :param status__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type status__nl: str + :param status__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type status__nlike: str + :param status__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type status__notlike: str + :param status__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__il: str + :param status__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__ilike: str + :param status__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__nil: str + :param status__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__nilike: str + :param status__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__notilike: str + :param status__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type status__desc: str + :param status__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type status__asc: str + :param camera_id__eq: SQL = operator + :type camera_id__eq: str + :param camera_id__ne: SQL != operator + :type camera_id__ne: str + :param camera_id__gt: SQL > operator, may not work with all column types + :type camera_id__gt: str + :param camera_id__gte: SQL >= operator, may not work with all column types + :type camera_id__gte: str + :param camera_id__lt: SQL < operator, may not work with all column types + :type camera_id__lt: str + :param camera_id__lte: SQL <= operator, may not work with all column types + :type camera_id__lte: str + :param camera_id__in: SQL IN operator, permits comma-separated values + :type camera_id__in: str + :param camera_id__nin: SQL NOT IN operator, permits comma-separated values + :type camera_id__nin: str + :param camera_id__notin: SQL NOT IN operator, permits comma-separated values + :type camera_id__notin: str + :param camera_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnull: str + :param camera_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__nisnull: str + :param camera_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnotnull: str + :param camera_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__l: str + :param camera_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__like: str + :param camera_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nl: str + :param camera_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nlike: str + :param camera_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notlike: str + :param camera_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__il: str + :param camera_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__ilike: str + :param camera_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nil: str + :param camera_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nilike: str + :param camera_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notilike: str + :param camera_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type camera_id__desc: str + :param camera_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type camera_id__asc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_videos_serialize( + limit=limit, + offset=offset, + id__eq=id__eq, + id__ne=id__ne, + id__gt=id__gt, + id__gte=id__gte, + id__lt=id__lt, + id__lte=id__lte, + id__in=id__in, + id__nin=id__nin, + id__notin=id__notin, + id__isnull=id__isnull, + id__nisnull=id__nisnull, + id__isnotnull=id__isnotnull, + id__l=id__l, + id__like=id__like, + id__nl=id__nl, + id__nlike=id__nlike, + id__notlike=id__notlike, + id__il=id__il, + id__ilike=id__ilike, + id__nil=id__nil, + id__nilike=id__nilike, + id__notilike=id__notilike, + id__desc=id__desc, + id__asc=id__asc, + created_at__eq=created_at__eq, + created_at__ne=created_at__ne, + created_at__gt=created_at__gt, + created_at__gte=created_at__gte, + created_at__lt=created_at__lt, + created_at__lte=created_at__lte, + created_at__in=created_at__in, + created_at__nin=created_at__nin, + created_at__notin=created_at__notin, + created_at__isnull=created_at__isnull, + created_at__nisnull=created_at__nisnull, + created_at__isnotnull=created_at__isnotnull, + created_at__l=created_at__l, + created_at__like=created_at__like, + created_at__nl=created_at__nl, + created_at__nlike=created_at__nlike, + created_at__notlike=created_at__notlike, + created_at__il=created_at__il, + created_at__ilike=created_at__ilike, + created_at__nil=created_at__nil, + created_at__nilike=created_at__nilike, + created_at__notilike=created_at__notilike, + created_at__desc=created_at__desc, + created_at__asc=created_at__asc, + updated_at__eq=updated_at__eq, + updated_at__ne=updated_at__ne, + updated_at__gt=updated_at__gt, + updated_at__gte=updated_at__gte, + updated_at__lt=updated_at__lt, + updated_at__lte=updated_at__lte, + updated_at__in=updated_at__in, + updated_at__nin=updated_at__nin, + updated_at__notin=updated_at__notin, + updated_at__isnull=updated_at__isnull, + updated_at__nisnull=updated_at__nisnull, + updated_at__isnotnull=updated_at__isnotnull, + updated_at__l=updated_at__l, + updated_at__like=updated_at__like, + updated_at__nl=updated_at__nl, + updated_at__nlike=updated_at__nlike, + updated_at__notlike=updated_at__notlike, + updated_at__il=updated_at__il, + updated_at__ilike=updated_at__ilike, + updated_at__nil=updated_at__nil, + updated_at__nilike=updated_at__nilike, + updated_at__notilike=updated_at__notilike, + updated_at__desc=updated_at__desc, + updated_at__asc=updated_at__asc, + deleted_at__eq=deleted_at__eq, + deleted_at__ne=deleted_at__ne, + deleted_at__gt=deleted_at__gt, + deleted_at__gte=deleted_at__gte, + deleted_at__lt=deleted_at__lt, + deleted_at__lte=deleted_at__lte, + deleted_at__in=deleted_at__in, + deleted_at__nin=deleted_at__nin, + deleted_at__notin=deleted_at__notin, + deleted_at__isnull=deleted_at__isnull, + deleted_at__nisnull=deleted_at__nisnull, + deleted_at__isnotnull=deleted_at__isnotnull, + deleted_at__l=deleted_at__l, + deleted_at__like=deleted_at__like, + deleted_at__nl=deleted_at__nl, + deleted_at__nlike=deleted_at__nlike, + deleted_at__notlike=deleted_at__notlike, + deleted_at__il=deleted_at__il, + deleted_at__ilike=deleted_at__ilike, + deleted_at__nil=deleted_at__nil, + deleted_at__nilike=deleted_at__nilike, + deleted_at__notilike=deleted_at__notilike, + deleted_at__desc=deleted_at__desc, + deleted_at__asc=deleted_at__asc, + file_name__eq=file_name__eq, + file_name__ne=file_name__ne, + file_name__gt=file_name__gt, + file_name__gte=file_name__gte, + file_name__lt=file_name__lt, + file_name__lte=file_name__lte, + file_name__in=file_name__in, + file_name__nin=file_name__nin, + file_name__notin=file_name__notin, + file_name__isnull=file_name__isnull, + file_name__nisnull=file_name__nisnull, + file_name__isnotnull=file_name__isnotnull, + file_name__l=file_name__l, + file_name__like=file_name__like, + file_name__nl=file_name__nl, + file_name__nlike=file_name__nlike, + file_name__notlike=file_name__notlike, + file_name__il=file_name__il, + file_name__ilike=file_name__ilike, + file_name__nil=file_name__nil, + file_name__nilike=file_name__nilike, + file_name__notilike=file_name__notilike, + file_name__desc=file_name__desc, + file_name__asc=file_name__asc, + started_at__eq=started_at__eq, + started_at__ne=started_at__ne, + started_at__gt=started_at__gt, + started_at__gte=started_at__gte, + started_at__lt=started_at__lt, + started_at__lte=started_at__lte, + started_at__in=started_at__in, + started_at__nin=started_at__nin, + started_at__notin=started_at__notin, + started_at__isnull=started_at__isnull, + started_at__nisnull=started_at__nisnull, + started_at__isnotnull=started_at__isnotnull, + started_at__l=started_at__l, + started_at__like=started_at__like, + started_at__nl=started_at__nl, + started_at__nlike=started_at__nlike, + started_at__notlike=started_at__notlike, + started_at__il=started_at__il, + started_at__ilike=started_at__ilike, + started_at__nil=started_at__nil, + started_at__nilike=started_at__nilike, + started_at__notilike=started_at__notilike, + started_at__desc=started_at__desc, + started_at__asc=started_at__asc, + ended_at__eq=ended_at__eq, + ended_at__ne=ended_at__ne, + ended_at__gt=ended_at__gt, + ended_at__gte=ended_at__gte, + ended_at__lt=ended_at__lt, + ended_at__lte=ended_at__lte, + ended_at__in=ended_at__in, + ended_at__nin=ended_at__nin, + ended_at__notin=ended_at__notin, + ended_at__isnull=ended_at__isnull, + ended_at__nisnull=ended_at__nisnull, + ended_at__isnotnull=ended_at__isnotnull, + ended_at__l=ended_at__l, + ended_at__like=ended_at__like, + ended_at__nl=ended_at__nl, + ended_at__nlike=ended_at__nlike, + ended_at__notlike=ended_at__notlike, + ended_at__il=ended_at__il, + ended_at__ilike=ended_at__ilike, + ended_at__nil=ended_at__nil, + ended_at__nilike=ended_at__nilike, + ended_at__notilike=ended_at__notilike, + ended_at__desc=ended_at__desc, + ended_at__asc=ended_at__asc, + duration__eq=duration__eq, + duration__ne=duration__ne, + duration__gt=duration__gt, + duration__gte=duration__gte, + duration__lt=duration__lt, + duration__lte=duration__lte, + duration__in=duration__in, + duration__nin=duration__nin, + duration__notin=duration__notin, + duration__isnull=duration__isnull, + duration__nisnull=duration__nisnull, + duration__isnotnull=duration__isnotnull, + duration__l=duration__l, + duration__like=duration__like, + duration__nl=duration__nl, + duration__nlike=duration__nlike, + duration__notlike=duration__notlike, + duration__il=duration__il, + duration__ilike=duration__ilike, + duration__nil=duration__nil, + duration__nilike=duration__nilike, + duration__notilike=duration__notilike, + duration__desc=duration__desc, + duration__asc=duration__asc, + file_size__eq=file_size__eq, + file_size__ne=file_size__ne, + file_size__gt=file_size__gt, + file_size__gte=file_size__gte, + file_size__lt=file_size__lt, + file_size__lte=file_size__lte, + file_size__in=file_size__in, + file_size__nin=file_size__nin, + file_size__notin=file_size__notin, + file_size__isnull=file_size__isnull, + file_size__nisnull=file_size__nisnull, + file_size__isnotnull=file_size__isnotnull, + file_size__l=file_size__l, + file_size__like=file_size__like, + file_size__nl=file_size__nl, + file_size__nlike=file_size__nlike, + file_size__notlike=file_size__notlike, + file_size__il=file_size__il, + file_size__ilike=file_size__ilike, + file_size__nil=file_size__nil, + file_size__nilike=file_size__nilike, + file_size__notilike=file_size__notilike, + file_size__desc=file_size__desc, + file_size__asc=file_size__asc, + thumbnail_name__eq=thumbnail_name__eq, + thumbnail_name__ne=thumbnail_name__ne, + thumbnail_name__gt=thumbnail_name__gt, + thumbnail_name__gte=thumbnail_name__gte, + thumbnail_name__lt=thumbnail_name__lt, + thumbnail_name__lte=thumbnail_name__lte, + thumbnail_name__in=thumbnail_name__in, + thumbnail_name__nin=thumbnail_name__nin, + thumbnail_name__notin=thumbnail_name__notin, + thumbnail_name__isnull=thumbnail_name__isnull, + thumbnail_name__nisnull=thumbnail_name__nisnull, + thumbnail_name__isnotnull=thumbnail_name__isnotnull, + thumbnail_name__l=thumbnail_name__l, + thumbnail_name__like=thumbnail_name__like, + thumbnail_name__nl=thumbnail_name__nl, + thumbnail_name__nlike=thumbnail_name__nlike, + thumbnail_name__notlike=thumbnail_name__notlike, + thumbnail_name__il=thumbnail_name__il, + thumbnail_name__ilike=thumbnail_name__ilike, + thumbnail_name__nil=thumbnail_name__nil, + thumbnail_name__nilike=thumbnail_name__nilike, + thumbnail_name__notilike=thumbnail_name__notilike, + thumbnail_name__desc=thumbnail_name__desc, + thumbnail_name__asc=thumbnail_name__asc, + status__eq=status__eq, + status__ne=status__ne, + status__gt=status__gt, + status__gte=status__gte, + status__lt=status__lt, + status__lte=status__lte, + status__in=status__in, + status__nin=status__nin, + status__notin=status__notin, + status__isnull=status__isnull, + status__nisnull=status__nisnull, + status__isnotnull=status__isnotnull, + status__l=status__l, + status__like=status__like, + status__nl=status__nl, + status__nlike=status__nlike, + status__notlike=status__notlike, + status__il=status__il, + status__ilike=status__ilike, + status__nil=status__nil, + status__nilike=status__nilike, + status__notilike=status__notilike, + status__desc=status__desc, + status__asc=status__asc, + camera_id__eq=camera_id__eq, + camera_id__ne=camera_id__ne, + camera_id__gt=camera_id__gt, + camera_id__gte=camera_id__gte, + camera_id__lt=camera_id__lt, + camera_id__lte=camera_id__lte, + camera_id__in=camera_id__in, + camera_id__nin=camera_id__nin, + camera_id__notin=camera_id__notin, + camera_id__isnull=camera_id__isnull, + camera_id__nisnull=camera_id__nisnull, + camera_id__isnotnull=camera_id__isnotnull, + camera_id__l=camera_id__l, + camera_id__like=camera_id__like, + camera_id__nl=camera_id__nl, + camera_id__nlike=camera_id__nlike, + camera_id__notlike=camera_id__notlike, + camera_id__il=camera_id__il, + camera_id__ilike=camera_id__ilike, + camera_id__nil=camera_id__nil, + camera_id__nilike=camera_id__nilike, + camera_id__notilike=camera_id__notilike, + camera_id__desc=camera_id__desc, + camera_id__asc=camera_id__asc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_videos_with_http_info( + self, + limit: Annotated[Optional[StrictInt], Field(description="SQL LIMIT operator")] = None, + offset: Annotated[Optional[StrictInt], Field(description="SQL OFFSET operator")] = None, + id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + created_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + created_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + created_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + created_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + created_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + created_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + created_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + updated_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + updated_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + updated_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + updated_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + updated_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + updated_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + updated_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + deleted_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + deleted_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + deleted_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + deleted_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + deleted_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + deleted_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + deleted_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + file_name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + file_name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + file_name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + file_name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + file_name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + file_name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + file_name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + file_name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + file_name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + started_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + started_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + started_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + started_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + started_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + started_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + started_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + started_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + started_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + started_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + started_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + started_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + started_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + started_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + ended_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + ended_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + ended_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + ended_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + ended_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + ended_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + ended_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + ended_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + ended_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + duration__eq: Annotated[Optional[StrictInt], Field(description="SQL = operator")] = None, + duration__ne: Annotated[Optional[StrictInt], Field(description="SQL != operator")] = None, + duration__gt: Annotated[Optional[StrictInt], Field(description="SQL > operator, may not work with all column types")] = None, + duration__gte: Annotated[Optional[StrictInt], Field(description="SQL >= operator, may not work with all column types")] = None, + duration__lt: Annotated[Optional[StrictInt], Field(description="SQL < operator, may not work with all column types")] = None, + duration__lte: Annotated[Optional[StrictInt], Field(description="SQL <= operator, may not work with all column types")] = None, + duration__in: Annotated[Optional[StrictInt], Field(description="SQL IN operator, permits comma-separated values")] = None, + duration__nin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + duration__notin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + duration__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + duration__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + duration__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + duration__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + duration__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + file_size__eq: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL = operator")] = None, + file_size__ne: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL != operator")] = None, + file_size__gt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL > operator, may not work with all column types")] = None, + file_size__gte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL >= operator, may not work with all column types")] = None, + file_size__lt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL < operator, may not work with all column types")] = None, + file_size__lte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL <= operator, may not work with all column types")] = None, + file_size__in: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL IN operator, permits comma-separated values")] = None, + file_size__nin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_size__notin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_size__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_size__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_size__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_size__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + file_size__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + thumbnail_name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + thumbnail_name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + thumbnail_name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + thumbnail_name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + thumbnail_name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + thumbnail_name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + thumbnail_name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + thumbnail_name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + thumbnail_name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + status__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + status__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + status__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + status__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + status__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + status__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + status__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + status__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + status__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + status__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + status__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + status__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + status__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + status__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + camera_id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + camera_id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + camera_id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + camera_id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + camera_id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + camera_id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + camera_id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetVideos200Response]: + """get_videos + + + :param limit: SQL LIMIT operator + :type limit: int + :param offset: SQL OFFSET operator + :type offset: int + :param id__eq: SQL = operator + :type id__eq: str + :param id__ne: SQL != operator + :type id__ne: str + :param id__gt: SQL > operator, may not work with all column types + :type id__gt: str + :param id__gte: SQL >= operator, may not work with all column types + :type id__gte: str + :param id__lt: SQL < operator, may not work with all column types + :type id__lt: str + :param id__lte: SQL <= operator, may not work with all column types + :type id__lte: str + :param id__in: SQL IN operator, permits comma-separated values + :type id__in: str + :param id__nin: SQL NOT IN operator, permits comma-separated values + :type id__nin: str + :param id__notin: SQL NOT IN operator, permits comma-separated values + :type id__notin: str + :param id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type id__isnull: str + :param id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__nisnull: str + :param id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__isnotnull: str + :param id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__l: str + :param id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__like: str + :param id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nl: str + :param id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nlike: str + :param id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__notlike: str + :param id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__il: str + :param id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__ilike: str + :param id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nil: str + :param id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nilike: str + :param id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__notilike: str + :param id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type id__desc: str + :param id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type id__asc: str + :param created_at__eq: SQL = operator + :type created_at__eq: datetime + :param created_at__ne: SQL != operator + :type created_at__ne: datetime + :param created_at__gt: SQL > operator, may not work with all column types + :type created_at__gt: datetime + :param created_at__gte: SQL >= operator, may not work with all column types + :type created_at__gte: datetime + :param created_at__lt: SQL < operator, may not work with all column types + :type created_at__lt: datetime + :param created_at__lte: SQL <= operator, may not work with all column types + :type created_at__lte: datetime + :param created_at__in: SQL IN operator, permits comma-separated values + :type created_at__in: datetime + :param created_at__nin: SQL NOT IN operator, permits comma-separated values + :type created_at__nin: datetime + :param created_at__notin: SQL NOT IN operator, permits comma-separated values + :type created_at__notin: datetime + :param created_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnull: str + :param created_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__nisnull: str + :param created_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnotnull: str + :param created_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__l: str + :param created_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__like: str + :param created_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nl: str + :param created_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nlike: str + :param created_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notlike: str + :param created_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__il: str + :param created_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__ilike: str + :param created_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nil: str + :param created_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nilike: str + :param created_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notilike: str + :param created_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type created_at__desc: str + :param created_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type created_at__asc: str + :param updated_at__eq: SQL = operator + :type updated_at__eq: datetime + :param updated_at__ne: SQL != operator + :type updated_at__ne: datetime + :param updated_at__gt: SQL > operator, may not work with all column types + :type updated_at__gt: datetime + :param updated_at__gte: SQL >= operator, may not work with all column types + :type updated_at__gte: datetime + :param updated_at__lt: SQL < operator, may not work with all column types + :type updated_at__lt: datetime + :param updated_at__lte: SQL <= operator, may not work with all column types + :type updated_at__lte: datetime + :param updated_at__in: SQL IN operator, permits comma-separated values + :type updated_at__in: datetime + :param updated_at__nin: SQL NOT IN operator, permits comma-separated values + :type updated_at__nin: datetime + :param updated_at__notin: SQL NOT IN operator, permits comma-separated values + :type updated_at__notin: datetime + :param updated_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnull: str + :param updated_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__nisnull: str + :param updated_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnotnull: str + :param updated_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__l: str + :param updated_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__like: str + :param updated_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nl: str + :param updated_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nlike: str + :param updated_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notlike: str + :param updated_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__il: str + :param updated_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__ilike: str + :param updated_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nil: str + :param updated_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nilike: str + :param updated_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notilike: str + :param updated_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type updated_at__desc: str + :param updated_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type updated_at__asc: str + :param deleted_at__eq: SQL = operator + :type deleted_at__eq: datetime + :param deleted_at__ne: SQL != operator + :type deleted_at__ne: datetime + :param deleted_at__gt: SQL > operator, may not work with all column types + :type deleted_at__gt: datetime + :param deleted_at__gte: SQL >= operator, may not work with all column types + :type deleted_at__gte: datetime + :param deleted_at__lt: SQL < operator, may not work with all column types + :type deleted_at__lt: datetime + :param deleted_at__lte: SQL <= operator, may not work with all column types + :type deleted_at__lte: datetime + :param deleted_at__in: SQL IN operator, permits comma-separated values + :type deleted_at__in: datetime + :param deleted_at__nin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__nin: datetime + :param deleted_at__notin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__notin: datetime + :param deleted_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnull: str + :param deleted_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__nisnull: str + :param deleted_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnotnull: str + :param deleted_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__l: str + :param deleted_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__like: str + :param deleted_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nl: str + :param deleted_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nlike: str + :param deleted_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notlike: str + :param deleted_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__il: str + :param deleted_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__ilike: str + :param deleted_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nil: str + :param deleted_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nilike: str + :param deleted_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notilike: str + :param deleted_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type deleted_at__desc: str + :param deleted_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type deleted_at__asc: str + :param file_name__eq: SQL = operator + :type file_name__eq: str + :param file_name__ne: SQL != operator + :type file_name__ne: str + :param file_name__gt: SQL > operator, may not work with all column types + :type file_name__gt: str + :param file_name__gte: SQL >= operator, may not work with all column types + :type file_name__gte: str + :param file_name__lt: SQL < operator, may not work with all column types + :type file_name__lt: str + :param file_name__lte: SQL <= operator, may not work with all column types + :type file_name__lte: str + :param file_name__in: SQL IN operator, permits comma-separated values + :type file_name__in: str + :param file_name__nin: SQL NOT IN operator, permits comma-separated values + :type file_name__nin: str + :param file_name__notin: SQL NOT IN operator, permits comma-separated values + :type file_name__notin: str + :param file_name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type file_name__isnull: str + :param file_name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_name__nisnull: str + :param file_name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_name__isnotnull: str + :param file_name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__l: str + :param file_name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__like: str + :param file_name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nl: str + :param file_name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nlike: str + :param file_name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__notlike: str + :param file_name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__il: str + :param file_name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__ilike: str + :param file_name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nil: str + :param file_name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nilike: str + :param file_name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__notilike: str + :param file_name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type file_name__desc: str + :param file_name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type file_name__asc: str + :param started_at__eq: SQL = operator + :type started_at__eq: datetime + :param started_at__ne: SQL != operator + :type started_at__ne: datetime + :param started_at__gt: SQL > operator, may not work with all column types + :type started_at__gt: datetime + :param started_at__gte: SQL >= operator, may not work with all column types + :type started_at__gte: datetime + :param started_at__lt: SQL < operator, may not work with all column types + :type started_at__lt: datetime + :param started_at__lte: SQL <= operator, may not work with all column types + :type started_at__lte: datetime + :param started_at__in: SQL IN operator, permits comma-separated values + :type started_at__in: datetime + :param started_at__nin: SQL NOT IN operator, permits comma-separated values + :type started_at__nin: datetime + :param started_at__notin: SQL NOT IN operator, permits comma-separated values + :type started_at__notin: datetime + :param started_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type started_at__isnull: str + :param started_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type started_at__nisnull: str + :param started_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type started_at__isnotnull: str + :param started_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__l: str + :param started_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__like: str + :param started_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nl: str + :param started_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nlike: str + :param started_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__notlike: str + :param started_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__il: str + :param started_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__ilike: str + :param started_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nil: str + :param started_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nilike: str + :param started_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__notilike: str + :param started_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type started_at__desc: str + :param started_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type started_at__asc: str + :param ended_at__eq: SQL = operator + :type ended_at__eq: datetime + :param ended_at__ne: SQL != operator + :type ended_at__ne: datetime + :param ended_at__gt: SQL > operator, may not work with all column types + :type ended_at__gt: datetime + :param ended_at__gte: SQL >= operator, may not work with all column types + :type ended_at__gte: datetime + :param ended_at__lt: SQL < operator, may not work with all column types + :type ended_at__lt: datetime + :param ended_at__lte: SQL <= operator, may not work with all column types + :type ended_at__lte: datetime + :param ended_at__in: SQL IN operator, permits comma-separated values + :type ended_at__in: datetime + :param ended_at__nin: SQL NOT IN operator, permits comma-separated values + :type ended_at__nin: datetime + :param ended_at__notin: SQL NOT IN operator, permits comma-separated values + :type ended_at__notin: datetime + :param ended_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type ended_at__isnull: str + :param ended_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type ended_at__nisnull: str + :param ended_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type ended_at__isnotnull: str + :param ended_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__l: str + :param ended_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__like: str + :param ended_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nl: str + :param ended_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nlike: str + :param ended_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__notlike: str + :param ended_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__il: str + :param ended_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__ilike: str + :param ended_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nil: str + :param ended_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nilike: str + :param ended_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__notilike: str + :param ended_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type ended_at__desc: str + :param ended_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type ended_at__asc: str + :param duration__eq: SQL = operator + :type duration__eq: int + :param duration__ne: SQL != operator + :type duration__ne: int + :param duration__gt: SQL > operator, may not work with all column types + :type duration__gt: int + :param duration__gte: SQL >= operator, may not work with all column types + :type duration__gte: int + :param duration__lt: SQL < operator, may not work with all column types + :type duration__lt: int + :param duration__lte: SQL <= operator, may not work with all column types + :type duration__lte: int + :param duration__in: SQL IN operator, permits comma-separated values + :type duration__in: int + :param duration__nin: SQL NOT IN operator, permits comma-separated values + :type duration__nin: int + :param duration__notin: SQL NOT IN operator, permits comma-separated values + :type duration__notin: int + :param duration__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type duration__isnull: str + :param duration__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type duration__nisnull: str + :param duration__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type duration__isnotnull: str + :param duration__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__l: str + :param duration__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__like: str + :param duration__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nl: str + :param duration__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nlike: str + :param duration__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__notlike: str + :param duration__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__il: str + :param duration__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__ilike: str + :param duration__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nil: str + :param duration__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nilike: str + :param duration__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__notilike: str + :param duration__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type duration__desc: str + :param duration__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type duration__asc: str + :param file_size__eq: SQL = operator + :type file_size__eq: float + :param file_size__ne: SQL != operator + :type file_size__ne: float + :param file_size__gt: SQL > operator, may not work with all column types + :type file_size__gt: float + :param file_size__gte: SQL >= operator, may not work with all column types + :type file_size__gte: float + :param file_size__lt: SQL < operator, may not work with all column types + :type file_size__lt: float + :param file_size__lte: SQL <= operator, may not work with all column types + :type file_size__lte: float + :param file_size__in: SQL IN operator, permits comma-separated values + :type file_size__in: float + :param file_size__nin: SQL NOT IN operator, permits comma-separated values + :type file_size__nin: float + :param file_size__notin: SQL NOT IN operator, permits comma-separated values + :type file_size__notin: float + :param file_size__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type file_size__isnull: str + :param file_size__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_size__nisnull: str + :param file_size__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_size__isnotnull: str + :param file_size__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__l: str + :param file_size__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__like: str + :param file_size__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nl: str + :param file_size__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nlike: str + :param file_size__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__notlike: str + :param file_size__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__il: str + :param file_size__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__ilike: str + :param file_size__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nil: str + :param file_size__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nilike: str + :param file_size__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__notilike: str + :param file_size__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type file_size__desc: str + :param file_size__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type file_size__asc: str + :param thumbnail_name__eq: SQL = operator + :type thumbnail_name__eq: str + :param thumbnail_name__ne: SQL != operator + :type thumbnail_name__ne: str + :param thumbnail_name__gt: SQL > operator, may not work with all column types + :type thumbnail_name__gt: str + :param thumbnail_name__gte: SQL >= operator, may not work with all column types + :type thumbnail_name__gte: str + :param thumbnail_name__lt: SQL < operator, may not work with all column types + :type thumbnail_name__lt: str + :param thumbnail_name__lte: SQL <= operator, may not work with all column types + :type thumbnail_name__lte: str + :param thumbnail_name__in: SQL IN operator, permits comma-separated values + :type thumbnail_name__in: str + :param thumbnail_name__nin: SQL NOT IN operator, permits comma-separated values + :type thumbnail_name__nin: str + :param thumbnail_name__notin: SQL NOT IN operator, permits comma-separated values + :type thumbnail_name__notin: str + :param thumbnail_name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__isnull: str + :param thumbnail_name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__nisnull: str + :param thumbnail_name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__isnotnull: str + :param thumbnail_name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__l: str + :param thumbnail_name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__like: str + :param thumbnail_name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nl: str + :param thumbnail_name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nlike: str + :param thumbnail_name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__notlike: str + :param thumbnail_name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__il: str + :param thumbnail_name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__ilike: str + :param thumbnail_name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nil: str + :param thumbnail_name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nilike: str + :param thumbnail_name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__notilike: str + :param thumbnail_name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__desc: str + :param thumbnail_name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__asc: str + :param status__eq: SQL = operator + :type status__eq: str + :param status__ne: SQL != operator + :type status__ne: str + :param status__gt: SQL > operator, may not work with all column types + :type status__gt: str + :param status__gte: SQL >= operator, may not work with all column types + :type status__gte: str + :param status__lt: SQL < operator, may not work with all column types + :type status__lt: str + :param status__lte: SQL <= operator, may not work with all column types + :type status__lte: str + :param status__in: SQL IN operator, permits comma-separated values + :type status__in: str + :param status__nin: SQL NOT IN operator, permits comma-separated values + :type status__nin: str + :param status__notin: SQL NOT IN operator, permits comma-separated values + :type status__notin: str + :param status__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type status__isnull: str + :param status__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type status__nisnull: str + :param status__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type status__isnotnull: str + :param status__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type status__l: str + :param status__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type status__like: str + :param status__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type status__nl: str + :param status__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type status__nlike: str + :param status__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type status__notlike: str + :param status__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__il: str + :param status__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__ilike: str + :param status__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__nil: str + :param status__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__nilike: str + :param status__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__notilike: str + :param status__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type status__desc: str + :param status__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type status__asc: str + :param camera_id__eq: SQL = operator + :type camera_id__eq: str + :param camera_id__ne: SQL != operator + :type camera_id__ne: str + :param camera_id__gt: SQL > operator, may not work with all column types + :type camera_id__gt: str + :param camera_id__gte: SQL >= operator, may not work with all column types + :type camera_id__gte: str + :param camera_id__lt: SQL < operator, may not work with all column types + :type camera_id__lt: str + :param camera_id__lte: SQL <= operator, may not work with all column types + :type camera_id__lte: str + :param camera_id__in: SQL IN operator, permits comma-separated values + :type camera_id__in: str + :param camera_id__nin: SQL NOT IN operator, permits comma-separated values + :type camera_id__nin: str + :param camera_id__notin: SQL NOT IN operator, permits comma-separated values + :type camera_id__notin: str + :param camera_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnull: str + :param camera_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__nisnull: str + :param camera_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnotnull: str + :param camera_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__l: str + :param camera_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__like: str + :param camera_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nl: str + :param camera_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nlike: str + :param camera_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notlike: str + :param camera_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__il: str + :param camera_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__ilike: str + :param camera_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nil: str + :param camera_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nilike: str + :param camera_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notilike: str + :param camera_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type camera_id__desc: str + :param camera_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type camera_id__asc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_videos_serialize( + limit=limit, + offset=offset, + id__eq=id__eq, + id__ne=id__ne, + id__gt=id__gt, + id__gte=id__gte, + id__lt=id__lt, + id__lte=id__lte, + id__in=id__in, + id__nin=id__nin, + id__notin=id__notin, + id__isnull=id__isnull, + id__nisnull=id__nisnull, + id__isnotnull=id__isnotnull, + id__l=id__l, + id__like=id__like, + id__nl=id__nl, + id__nlike=id__nlike, + id__notlike=id__notlike, + id__il=id__il, + id__ilike=id__ilike, + id__nil=id__nil, + id__nilike=id__nilike, + id__notilike=id__notilike, + id__desc=id__desc, + id__asc=id__asc, + created_at__eq=created_at__eq, + created_at__ne=created_at__ne, + created_at__gt=created_at__gt, + created_at__gte=created_at__gte, + created_at__lt=created_at__lt, + created_at__lte=created_at__lte, + created_at__in=created_at__in, + created_at__nin=created_at__nin, + created_at__notin=created_at__notin, + created_at__isnull=created_at__isnull, + created_at__nisnull=created_at__nisnull, + created_at__isnotnull=created_at__isnotnull, + created_at__l=created_at__l, + created_at__like=created_at__like, + created_at__nl=created_at__nl, + created_at__nlike=created_at__nlike, + created_at__notlike=created_at__notlike, + created_at__il=created_at__il, + created_at__ilike=created_at__ilike, + created_at__nil=created_at__nil, + created_at__nilike=created_at__nilike, + created_at__notilike=created_at__notilike, + created_at__desc=created_at__desc, + created_at__asc=created_at__asc, + updated_at__eq=updated_at__eq, + updated_at__ne=updated_at__ne, + updated_at__gt=updated_at__gt, + updated_at__gte=updated_at__gte, + updated_at__lt=updated_at__lt, + updated_at__lte=updated_at__lte, + updated_at__in=updated_at__in, + updated_at__nin=updated_at__nin, + updated_at__notin=updated_at__notin, + updated_at__isnull=updated_at__isnull, + updated_at__nisnull=updated_at__nisnull, + updated_at__isnotnull=updated_at__isnotnull, + updated_at__l=updated_at__l, + updated_at__like=updated_at__like, + updated_at__nl=updated_at__nl, + updated_at__nlike=updated_at__nlike, + updated_at__notlike=updated_at__notlike, + updated_at__il=updated_at__il, + updated_at__ilike=updated_at__ilike, + updated_at__nil=updated_at__nil, + updated_at__nilike=updated_at__nilike, + updated_at__notilike=updated_at__notilike, + updated_at__desc=updated_at__desc, + updated_at__asc=updated_at__asc, + deleted_at__eq=deleted_at__eq, + deleted_at__ne=deleted_at__ne, + deleted_at__gt=deleted_at__gt, + deleted_at__gte=deleted_at__gte, + deleted_at__lt=deleted_at__lt, + deleted_at__lte=deleted_at__lte, + deleted_at__in=deleted_at__in, + deleted_at__nin=deleted_at__nin, + deleted_at__notin=deleted_at__notin, + deleted_at__isnull=deleted_at__isnull, + deleted_at__nisnull=deleted_at__nisnull, + deleted_at__isnotnull=deleted_at__isnotnull, + deleted_at__l=deleted_at__l, + deleted_at__like=deleted_at__like, + deleted_at__nl=deleted_at__nl, + deleted_at__nlike=deleted_at__nlike, + deleted_at__notlike=deleted_at__notlike, + deleted_at__il=deleted_at__il, + deleted_at__ilike=deleted_at__ilike, + deleted_at__nil=deleted_at__nil, + deleted_at__nilike=deleted_at__nilike, + deleted_at__notilike=deleted_at__notilike, + deleted_at__desc=deleted_at__desc, + deleted_at__asc=deleted_at__asc, + file_name__eq=file_name__eq, + file_name__ne=file_name__ne, + file_name__gt=file_name__gt, + file_name__gte=file_name__gte, + file_name__lt=file_name__lt, + file_name__lte=file_name__lte, + file_name__in=file_name__in, + file_name__nin=file_name__nin, + file_name__notin=file_name__notin, + file_name__isnull=file_name__isnull, + file_name__nisnull=file_name__nisnull, + file_name__isnotnull=file_name__isnotnull, + file_name__l=file_name__l, + file_name__like=file_name__like, + file_name__nl=file_name__nl, + file_name__nlike=file_name__nlike, + file_name__notlike=file_name__notlike, + file_name__il=file_name__il, + file_name__ilike=file_name__ilike, + file_name__nil=file_name__nil, + file_name__nilike=file_name__nilike, + file_name__notilike=file_name__notilike, + file_name__desc=file_name__desc, + file_name__asc=file_name__asc, + started_at__eq=started_at__eq, + started_at__ne=started_at__ne, + started_at__gt=started_at__gt, + started_at__gte=started_at__gte, + started_at__lt=started_at__lt, + started_at__lte=started_at__lte, + started_at__in=started_at__in, + started_at__nin=started_at__nin, + started_at__notin=started_at__notin, + started_at__isnull=started_at__isnull, + started_at__nisnull=started_at__nisnull, + started_at__isnotnull=started_at__isnotnull, + started_at__l=started_at__l, + started_at__like=started_at__like, + started_at__nl=started_at__nl, + started_at__nlike=started_at__nlike, + started_at__notlike=started_at__notlike, + started_at__il=started_at__il, + started_at__ilike=started_at__ilike, + started_at__nil=started_at__nil, + started_at__nilike=started_at__nilike, + started_at__notilike=started_at__notilike, + started_at__desc=started_at__desc, + started_at__asc=started_at__asc, + ended_at__eq=ended_at__eq, + ended_at__ne=ended_at__ne, + ended_at__gt=ended_at__gt, + ended_at__gte=ended_at__gte, + ended_at__lt=ended_at__lt, + ended_at__lte=ended_at__lte, + ended_at__in=ended_at__in, + ended_at__nin=ended_at__nin, + ended_at__notin=ended_at__notin, + ended_at__isnull=ended_at__isnull, + ended_at__nisnull=ended_at__nisnull, + ended_at__isnotnull=ended_at__isnotnull, + ended_at__l=ended_at__l, + ended_at__like=ended_at__like, + ended_at__nl=ended_at__nl, + ended_at__nlike=ended_at__nlike, + ended_at__notlike=ended_at__notlike, + ended_at__il=ended_at__il, + ended_at__ilike=ended_at__ilike, + ended_at__nil=ended_at__nil, + ended_at__nilike=ended_at__nilike, + ended_at__notilike=ended_at__notilike, + ended_at__desc=ended_at__desc, + ended_at__asc=ended_at__asc, + duration__eq=duration__eq, + duration__ne=duration__ne, + duration__gt=duration__gt, + duration__gte=duration__gte, + duration__lt=duration__lt, + duration__lte=duration__lte, + duration__in=duration__in, + duration__nin=duration__nin, + duration__notin=duration__notin, + duration__isnull=duration__isnull, + duration__nisnull=duration__nisnull, + duration__isnotnull=duration__isnotnull, + duration__l=duration__l, + duration__like=duration__like, + duration__nl=duration__nl, + duration__nlike=duration__nlike, + duration__notlike=duration__notlike, + duration__il=duration__il, + duration__ilike=duration__ilike, + duration__nil=duration__nil, + duration__nilike=duration__nilike, + duration__notilike=duration__notilike, + duration__desc=duration__desc, + duration__asc=duration__asc, + file_size__eq=file_size__eq, + file_size__ne=file_size__ne, + file_size__gt=file_size__gt, + file_size__gte=file_size__gte, + file_size__lt=file_size__lt, + file_size__lte=file_size__lte, + file_size__in=file_size__in, + file_size__nin=file_size__nin, + file_size__notin=file_size__notin, + file_size__isnull=file_size__isnull, + file_size__nisnull=file_size__nisnull, + file_size__isnotnull=file_size__isnotnull, + file_size__l=file_size__l, + file_size__like=file_size__like, + file_size__nl=file_size__nl, + file_size__nlike=file_size__nlike, + file_size__notlike=file_size__notlike, + file_size__il=file_size__il, + file_size__ilike=file_size__ilike, + file_size__nil=file_size__nil, + file_size__nilike=file_size__nilike, + file_size__notilike=file_size__notilike, + file_size__desc=file_size__desc, + file_size__asc=file_size__asc, + thumbnail_name__eq=thumbnail_name__eq, + thumbnail_name__ne=thumbnail_name__ne, + thumbnail_name__gt=thumbnail_name__gt, + thumbnail_name__gte=thumbnail_name__gte, + thumbnail_name__lt=thumbnail_name__lt, + thumbnail_name__lte=thumbnail_name__lte, + thumbnail_name__in=thumbnail_name__in, + thumbnail_name__nin=thumbnail_name__nin, + thumbnail_name__notin=thumbnail_name__notin, + thumbnail_name__isnull=thumbnail_name__isnull, + thumbnail_name__nisnull=thumbnail_name__nisnull, + thumbnail_name__isnotnull=thumbnail_name__isnotnull, + thumbnail_name__l=thumbnail_name__l, + thumbnail_name__like=thumbnail_name__like, + thumbnail_name__nl=thumbnail_name__nl, + thumbnail_name__nlike=thumbnail_name__nlike, + thumbnail_name__notlike=thumbnail_name__notlike, + thumbnail_name__il=thumbnail_name__il, + thumbnail_name__ilike=thumbnail_name__ilike, + thumbnail_name__nil=thumbnail_name__nil, + thumbnail_name__nilike=thumbnail_name__nilike, + thumbnail_name__notilike=thumbnail_name__notilike, + thumbnail_name__desc=thumbnail_name__desc, + thumbnail_name__asc=thumbnail_name__asc, + status__eq=status__eq, + status__ne=status__ne, + status__gt=status__gt, + status__gte=status__gte, + status__lt=status__lt, + status__lte=status__lte, + status__in=status__in, + status__nin=status__nin, + status__notin=status__notin, + status__isnull=status__isnull, + status__nisnull=status__nisnull, + status__isnotnull=status__isnotnull, + status__l=status__l, + status__like=status__like, + status__nl=status__nl, + status__nlike=status__nlike, + status__notlike=status__notlike, + status__il=status__il, + status__ilike=status__ilike, + status__nil=status__nil, + status__nilike=status__nilike, + status__notilike=status__notilike, + status__desc=status__desc, + status__asc=status__asc, + camera_id__eq=camera_id__eq, + camera_id__ne=camera_id__ne, + camera_id__gt=camera_id__gt, + camera_id__gte=camera_id__gte, + camera_id__lt=camera_id__lt, + camera_id__lte=camera_id__lte, + camera_id__in=camera_id__in, + camera_id__nin=camera_id__nin, + camera_id__notin=camera_id__notin, + camera_id__isnull=camera_id__isnull, + camera_id__nisnull=camera_id__nisnull, + camera_id__isnotnull=camera_id__isnotnull, + camera_id__l=camera_id__l, + camera_id__like=camera_id__like, + camera_id__nl=camera_id__nl, + camera_id__nlike=camera_id__nlike, + camera_id__notlike=camera_id__notlike, + camera_id__il=camera_id__il, + camera_id__ilike=camera_id__ilike, + camera_id__nil=camera_id__nil, + camera_id__nilike=camera_id__nilike, + camera_id__notilike=camera_id__notilike, + camera_id__desc=camera_id__desc, + camera_id__asc=camera_id__asc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_videos_without_preload_content( + self, + limit: Annotated[Optional[StrictInt], Field(description="SQL LIMIT operator")] = None, + offset: Annotated[Optional[StrictInt], Field(description="SQL OFFSET operator")] = None, + id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + created_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + created_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + created_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + created_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + created_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + created_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + created_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + created_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + created_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + created_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + created_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + updated_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + updated_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + updated_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + updated_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + updated_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + updated_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + updated_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + updated_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + updated_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + updated_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + deleted_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + deleted_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + deleted_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + deleted_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + deleted_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + deleted_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + deleted_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + deleted_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + deleted_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + deleted_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + file_name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + file_name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + file_name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + file_name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + file_name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + file_name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + file_name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + file_name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + file_name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + started_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + started_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + started_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + started_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + started_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + started_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + started_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + started_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + started_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + started_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + started_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + started_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + started_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + started_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + started_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__eq: Annotated[Optional[datetime], Field(description="SQL = operator")] = None, + ended_at__ne: Annotated[Optional[datetime], Field(description="SQL != operator")] = None, + ended_at__gt: Annotated[Optional[datetime], Field(description="SQL > operator, may not work with all column types")] = None, + ended_at__gte: Annotated[Optional[datetime], Field(description="SQL >= operator, may not work with all column types")] = None, + ended_at__lt: Annotated[Optional[datetime], Field(description="SQL < operator, may not work with all column types")] = None, + ended_at__lte: Annotated[Optional[datetime], Field(description="SQL <= operator, may not work with all column types")] = None, + ended_at__in: Annotated[Optional[datetime], Field(description="SQL IN operator, permits comma-separated values")] = None, + ended_at__nin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + ended_at__notin: Annotated[Optional[datetime], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + ended_at__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + ended_at__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + ended_at__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + duration__eq: Annotated[Optional[StrictInt], Field(description="SQL = operator")] = None, + duration__ne: Annotated[Optional[StrictInt], Field(description="SQL != operator")] = None, + duration__gt: Annotated[Optional[StrictInt], Field(description="SQL > operator, may not work with all column types")] = None, + duration__gte: Annotated[Optional[StrictInt], Field(description="SQL >= operator, may not work with all column types")] = None, + duration__lt: Annotated[Optional[StrictInt], Field(description="SQL < operator, may not work with all column types")] = None, + duration__lte: Annotated[Optional[StrictInt], Field(description="SQL <= operator, may not work with all column types")] = None, + duration__in: Annotated[Optional[StrictInt], Field(description="SQL IN operator, permits comma-separated values")] = None, + duration__nin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + duration__notin: Annotated[Optional[StrictInt], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + duration__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + duration__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + duration__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + duration__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + duration__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + duration__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + file_size__eq: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL = operator")] = None, + file_size__ne: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL != operator")] = None, + file_size__gt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL > operator, may not work with all column types")] = None, + file_size__gte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL >= operator, may not work with all column types")] = None, + file_size__lt: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL < operator, may not work with all column types")] = None, + file_size__lte: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL <= operator, may not work with all column types")] = None, + file_size__in: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL IN operator, permits comma-separated values")] = None, + file_size__nin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_size__notin: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + file_size__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_size__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_size__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + file_size__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + file_size__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + file_size__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + thumbnail_name__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + thumbnail_name__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + thumbnail_name__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + thumbnail_name__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + thumbnail_name__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + thumbnail_name__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + thumbnail_name__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + thumbnail_name__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + thumbnail_name__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + thumbnail_name__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + thumbnail_name__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + status__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + status__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + status__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + status__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + status__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + status__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + status__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + status__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + status__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + status__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + status__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + status__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + status__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + status__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + status__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__eq: Annotated[Optional[StrictStr], Field(description="SQL = operator")] = None, + camera_id__ne: Annotated[Optional[StrictStr], Field(description="SQL != operator")] = None, + camera_id__gt: Annotated[Optional[StrictStr], Field(description="SQL > operator, may not work with all column types")] = None, + camera_id__gte: Annotated[Optional[StrictStr], Field(description="SQL >= operator, may not work with all column types")] = None, + camera_id__lt: Annotated[Optional[StrictStr], Field(description="SQL < operator, may not work with all column types")] = None, + camera_id__lte: Annotated[Optional[StrictStr], Field(description="SQL <= operator, may not work with all column types")] = None, + camera_id__in: Annotated[Optional[StrictStr], Field(description="SQL IN operator, permits comma-separated values")] = None, + camera_id__nin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__notin: Annotated[Optional[StrictStr], Field(description="SQL NOT IN operator, permits comma-separated values")] = None, + camera_id__isnull: Annotated[Optional[StrictStr], Field(description="SQL IS NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__nisnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__isnotnull: Annotated[Optional[StrictStr], Field(description="SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__l: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__like: Annotated[Optional[StrictStr], Field(description="SQL LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nl: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notlike: Annotated[Optional[StrictStr], Field(description="SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__il: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__ilike: Annotated[Optional[StrictStr], Field(description="SQL ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nil: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__nilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__notilike: Annotated[Optional[StrictStr], Field(description="SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %")] = None, + camera_id__desc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)")] = None, + camera_id__asc: Annotated[Optional[StrictStr], Field(description="SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_videos + + + :param limit: SQL LIMIT operator + :type limit: int + :param offset: SQL OFFSET operator + :type offset: int + :param id__eq: SQL = operator + :type id__eq: str + :param id__ne: SQL != operator + :type id__ne: str + :param id__gt: SQL > operator, may not work with all column types + :type id__gt: str + :param id__gte: SQL >= operator, may not work with all column types + :type id__gte: str + :param id__lt: SQL < operator, may not work with all column types + :type id__lt: str + :param id__lte: SQL <= operator, may not work with all column types + :type id__lte: str + :param id__in: SQL IN operator, permits comma-separated values + :type id__in: str + :param id__nin: SQL NOT IN operator, permits comma-separated values + :type id__nin: str + :param id__notin: SQL NOT IN operator, permits comma-separated values + :type id__notin: str + :param id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type id__isnull: str + :param id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__nisnull: str + :param id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type id__isnotnull: str + :param id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__l: str + :param id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type id__like: str + :param id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nl: str + :param id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__nlike: str + :param id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type id__notlike: str + :param id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__il: str + :param id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__ilike: str + :param id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nil: str + :param id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__nilike: str + :param id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type id__notilike: str + :param id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type id__desc: str + :param id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type id__asc: str + :param created_at__eq: SQL = operator + :type created_at__eq: datetime + :param created_at__ne: SQL != operator + :type created_at__ne: datetime + :param created_at__gt: SQL > operator, may not work with all column types + :type created_at__gt: datetime + :param created_at__gte: SQL >= operator, may not work with all column types + :type created_at__gte: datetime + :param created_at__lt: SQL < operator, may not work with all column types + :type created_at__lt: datetime + :param created_at__lte: SQL <= operator, may not work with all column types + :type created_at__lte: datetime + :param created_at__in: SQL IN operator, permits comma-separated values + :type created_at__in: datetime + :param created_at__nin: SQL NOT IN operator, permits comma-separated values + :type created_at__nin: datetime + :param created_at__notin: SQL NOT IN operator, permits comma-separated values + :type created_at__notin: datetime + :param created_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnull: str + :param created_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__nisnull: str + :param created_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type created_at__isnotnull: str + :param created_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__l: str + :param created_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__like: str + :param created_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nl: str + :param created_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nlike: str + :param created_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notlike: str + :param created_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__il: str + :param created_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__ilike: str + :param created_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nil: str + :param created_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__nilike: str + :param created_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type created_at__notilike: str + :param created_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type created_at__desc: str + :param created_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type created_at__asc: str + :param updated_at__eq: SQL = operator + :type updated_at__eq: datetime + :param updated_at__ne: SQL != operator + :type updated_at__ne: datetime + :param updated_at__gt: SQL > operator, may not work with all column types + :type updated_at__gt: datetime + :param updated_at__gte: SQL >= operator, may not work with all column types + :type updated_at__gte: datetime + :param updated_at__lt: SQL < operator, may not work with all column types + :type updated_at__lt: datetime + :param updated_at__lte: SQL <= operator, may not work with all column types + :type updated_at__lte: datetime + :param updated_at__in: SQL IN operator, permits comma-separated values + :type updated_at__in: datetime + :param updated_at__nin: SQL NOT IN operator, permits comma-separated values + :type updated_at__nin: datetime + :param updated_at__notin: SQL NOT IN operator, permits comma-separated values + :type updated_at__notin: datetime + :param updated_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnull: str + :param updated_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__nisnull: str + :param updated_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type updated_at__isnotnull: str + :param updated_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__l: str + :param updated_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__like: str + :param updated_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nl: str + :param updated_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nlike: str + :param updated_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notlike: str + :param updated_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__il: str + :param updated_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__ilike: str + :param updated_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nil: str + :param updated_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__nilike: str + :param updated_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type updated_at__notilike: str + :param updated_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type updated_at__desc: str + :param updated_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type updated_at__asc: str + :param deleted_at__eq: SQL = operator + :type deleted_at__eq: datetime + :param deleted_at__ne: SQL != operator + :type deleted_at__ne: datetime + :param deleted_at__gt: SQL > operator, may not work with all column types + :type deleted_at__gt: datetime + :param deleted_at__gte: SQL >= operator, may not work with all column types + :type deleted_at__gte: datetime + :param deleted_at__lt: SQL < operator, may not work with all column types + :type deleted_at__lt: datetime + :param deleted_at__lte: SQL <= operator, may not work with all column types + :type deleted_at__lte: datetime + :param deleted_at__in: SQL IN operator, permits comma-separated values + :type deleted_at__in: datetime + :param deleted_at__nin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__nin: datetime + :param deleted_at__notin: SQL NOT IN operator, permits comma-separated values + :type deleted_at__notin: datetime + :param deleted_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnull: str + :param deleted_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__nisnull: str + :param deleted_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type deleted_at__isnotnull: str + :param deleted_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__l: str + :param deleted_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__like: str + :param deleted_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nl: str + :param deleted_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nlike: str + :param deleted_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notlike: str + :param deleted_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__il: str + :param deleted_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__ilike: str + :param deleted_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nil: str + :param deleted_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__nilike: str + :param deleted_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type deleted_at__notilike: str + :param deleted_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type deleted_at__desc: str + :param deleted_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type deleted_at__asc: str + :param file_name__eq: SQL = operator + :type file_name__eq: str + :param file_name__ne: SQL != operator + :type file_name__ne: str + :param file_name__gt: SQL > operator, may not work with all column types + :type file_name__gt: str + :param file_name__gte: SQL >= operator, may not work with all column types + :type file_name__gte: str + :param file_name__lt: SQL < operator, may not work with all column types + :type file_name__lt: str + :param file_name__lte: SQL <= operator, may not work with all column types + :type file_name__lte: str + :param file_name__in: SQL IN operator, permits comma-separated values + :type file_name__in: str + :param file_name__nin: SQL NOT IN operator, permits comma-separated values + :type file_name__nin: str + :param file_name__notin: SQL NOT IN operator, permits comma-separated values + :type file_name__notin: str + :param file_name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type file_name__isnull: str + :param file_name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_name__nisnull: str + :param file_name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_name__isnotnull: str + :param file_name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__l: str + :param file_name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__like: str + :param file_name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nl: str + :param file_name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nlike: str + :param file_name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__notlike: str + :param file_name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__il: str + :param file_name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__ilike: str + :param file_name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nil: str + :param file_name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__nilike: str + :param file_name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_name__notilike: str + :param file_name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type file_name__desc: str + :param file_name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type file_name__asc: str + :param started_at__eq: SQL = operator + :type started_at__eq: datetime + :param started_at__ne: SQL != operator + :type started_at__ne: datetime + :param started_at__gt: SQL > operator, may not work with all column types + :type started_at__gt: datetime + :param started_at__gte: SQL >= operator, may not work with all column types + :type started_at__gte: datetime + :param started_at__lt: SQL < operator, may not work with all column types + :type started_at__lt: datetime + :param started_at__lte: SQL <= operator, may not work with all column types + :type started_at__lte: datetime + :param started_at__in: SQL IN operator, permits comma-separated values + :type started_at__in: datetime + :param started_at__nin: SQL NOT IN operator, permits comma-separated values + :type started_at__nin: datetime + :param started_at__notin: SQL NOT IN operator, permits comma-separated values + :type started_at__notin: datetime + :param started_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type started_at__isnull: str + :param started_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type started_at__nisnull: str + :param started_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type started_at__isnotnull: str + :param started_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__l: str + :param started_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__like: str + :param started_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nl: str + :param started_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nlike: str + :param started_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__notlike: str + :param started_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__il: str + :param started_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__ilike: str + :param started_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nil: str + :param started_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__nilike: str + :param started_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type started_at__notilike: str + :param started_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type started_at__desc: str + :param started_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type started_at__asc: str + :param ended_at__eq: SQL = operator + :type ended_at__eq: datetime + :param ended_at__ne: SQL != operator + :type ended_at__ne: datetime + :param ended_at__gt: SQL > operator, may not work with all column types + :type ended_at__gt: datetime + :param ended_at__gte: SQL >= operator, may not work with all column types + :type ended_at__gte: datetime + :param ended_at__lt: SQL < operator, may not work with all column types + :type ended_at__lt: datetime + :param ended_at__lte: SQL <= operator, may not work with all column types + :type ended_at__lte: datetime + :param ended_at__in: SQL IN operator, permits comma-separated values + :type ended_at__in: datetime + :param ended_at__nin: SQL NOT IN operator, permits comma-separated values + :type ended_at__nin: datetime + :param ended_at__notin: SQL NOT IN operator, permits comma-separated values + :type ended_at__notin: datetime + :param ended_at__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type ended_at__isnull: str + :param ended_at__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type ended_at__nisnull: str + :param ended_at__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type ended_at__isnotnull: str + :param ended_at__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__l: str + :param ended_at__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__like: str + :param ended_at__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nl: str + :param ended_at__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nlike: str + :param ended_at__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__notlike: str + :param ended_at__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__il: str + :param ended_at__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__ilike: str + :param ended_at__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nil: str + :param ended_at__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__nilike: str + :param ended_at__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type ended_at__notilike: str + :param ended_at__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type ended_at__desc: str + :param ended_at__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type ended_at__asc: str + :param duration__eq: SQL = operator + :type duration__eq: int + :param duration__ne: SQL != operator + :type duration__ne: int + :param duration__gt: SQL > operator, may not work with all column types + :type duration__gt: int + :param duration__gte: SQL >= operator, may not work with all column types + :type duration__gte: int + :param duration__lt: SQL < operator, may not work with all column types + :type duration__lt: int + :param duration__lte: SQL <= operator, may not work with all column types + :type duration__lte: int + :param duration__in: SQL IN operator, permits comma-separated values + :type duration__in: int + :param duration__nin: SQL NOT IN operator, permits comma-separated values + :type duration__nin: int + :param duration__notin: SQL NOT IN operator, permits comma-separated values + :type duration__notin: int + :param duration__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type duration__isnull: str + :param duration__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type duration__nisnull: str + :param duration__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type duration__isnotnull: str + :param duration__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__l: str + :param duration__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__like: str + :param duration__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nl: str + :param duration__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nlike: str + :param duration__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type duration__notlike: str + :param duration__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__il: str + :param duration__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__ilike: str + :param duration__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nil: str + :param duration__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__nilike: str + :param duration__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type duration__notilike: str + :param duration__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type duration__desc: str + :param duration__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type duration__asc: str + :param file_size__eq: SQL = operator + :type file_size__eq: float + :param file_size__ne: SQL != operator + :type file_size__ne: float + :param file_size__gt: SQL > operator, may not work with all column types + :type file_size__gt: float + :param file_size__gte: SQL >= operator, may not work with all column types + :type file_size__gte: float + :param file_size__lt: SQL < operator, may not work with all column types + :type file_size__lt: float + :param file_size__lte: SQL <= operator, may not work with all column types + :type file_size__lte: float + :param file_size__in: SQL IN operator, permits comma-separated values + :type file_size__in: float + :param file_size__nin: SQL NOT IN operator, permits comma-separated values + :type file_size__nin: float + :param file_size__notin: SQL NOT IN operator, permits comma-separated values + :type file_size__notin: float + :param file_size__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type file_size__isnull: str + :param file_size__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_size__nisnull: str + :param file_size__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type file_size__isnotnull: str + :param file_size__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__l: str + :param file_size__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__like: str + :param file_size__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nl: str + :param file_size__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nlike: str + :param file_size__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__notlike: str + :param file_size__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__il: str + :param file_size__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__ilike: str + :param file_size__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nil: str + :param file_size__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__nilike: str + :param file_size__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type file_size__notilike: str + :param file_size__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type file_size__desc: str + :param file_size__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type file_size__asc: str + :param thumbnail_name__eq: SQL = operator + :type thumbnail_name__eq: str + :param thumbnail_name__ne: SQL != operator + :type thumbnail_name__ne: str + :param thumbnail_name__gt: SQL > operator, may not work with all column types + :type thumbnail_name__gt: str + :param thumbnail_name__gte: SQL >= operator, may not work with all column types + :type thumbnail_name__gte: str + :param thumbnail_name__lt: SQL < operator, may not work with all column types + :type thumbnail_name__lt: str + :param thumbnail_name__lte: SQL <= operator, may not work with all column types + :type thumbnail_name__lte: str + :param thumbnail_name__in: SQL IN operator, permits comma-separated values + :type thumbnail_name__in: str + :param thumbnail_name__nin: SQL NOT IN operator, permits comma-separated values + :type thumbnail_name__nin: str + :param thumbnail_name__notin: SQL NOT IN operator, permits comma-separated values + :type thumbnail_name__notin: str + :param thumbnail_name__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__isnull: str + :param thumbnail_name__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__nisnull: str + :param thumbnail_name__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__isnotnull: str + :param thumbnail_name__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__l: str + :param thumbnail_name__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__like: str + :param thumbnail_name__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nl: str + :param thumbnail_name__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nlike: str + :param thumbnail_name__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__notlike: str + :param thumbnail_name__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__il: str + :param thumbnail_name__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__ilike: str + :param thumbnail_name__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nil: str + :param thumbnail_name__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__nilike: str + :param thumbnail_name__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type thumbnail_name__notilike: str + :param thumbnail_name__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__desc: str + :param thumbnail_name__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type thumbnail_name__asc: str + :param status__eq: SQL = operator + :type status__eq: str + :param status__ne: SQL != operator + :type status__ne: str + :param status__gt: SQL > operator, may not work with all column types + :type status__gt: str + :param status__gte: SQL >= operator, may not work with all column types + :type status__gte: str + :param status__lt: SQL < operator, may not work with all column types + :type status__lt: str + :param status__lte: SQL <= operator, may not work with all column types + :type status__lte: str + :param status__in: SQL IN operator, permits comma-separated values + :type status__in: str + :param status__nin: SQL NOT IN operator, permits comma-separated values + :type status__nin: str + :param status__notin: SQL NOT IN operator, permits comma-separated values + :type status__notin: str + :param status__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type status__isnull: str + :param status__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type status__nisnull: str + :param status__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type status__isnotnull: str + :param status__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type status__l: str + :param status__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type status__like: str + :param status__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type status__nl: str + :param status__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type status__nlike: str + :param status__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type status__notlike: str + :param status__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__il: str + :param status__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__ilike: str + :param status__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__nil: str + :param status__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__nilike: str + :param status__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type status__notilike: str + :param status__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type status__desc: str + :param status__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type status__asc: str + :param camera_id__eq: SQL = operator + :type camera_id__eq: str + :param camera_id__ne: SQL != operator + :type camera_id__ne: str + :param camera_id__gt: SQL > operator, may not work with all column types + :type camera_id__gt: str + :param camera_id__gte: SQL >= operator, may not work with all column types + :type camera_id__gte: str + :param camera_id__lt: SQL < operator, may not work with all column types + :type camera_id__lt: str + :param camera_id__lte: SQL <= operator, may not work with all column types + :type camera_id__lte: str + :param camera_id__in: SQL IN operator, permits comma-separated values + :type camera_id__in: str + :param camera_id__nin: SQL NOT IN operator, permits comma-separated values + :type camera_id__nin: str + :param camera_id__notin: SQL NOT IN operator, permits comma-separated values + :type camera_id__notin: str + :param camera_id__isnull: SQL IS NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnull: str + :param camera_id__nisnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__nisnull: str + :param camera_id__isnotnull: SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) + :type camera_id__isnotnull: str + :param camera_id__l: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__l: str + :param camera_id__like: SQL LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__like: str + :param camera_id__nl: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nl: str + :param camera_id__nlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nlike: str + :param camera_id__notlike: SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notlike: str + :param camera_id__il: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__il: str + :param camera_id__ilike: SQL ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__ilike: str + :param camera_id__nil: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nil: str + :param camera_id__nilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__nilike: str + :param camera_id__notilike: SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % + :type camera_id__notilike: str + :param camera_id__desc: SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) + :type camera_id__desc: str + :param camera_id__asc: SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) + :type camera_id__asc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_videos_serialize( + limit=limit, + offset=offset, + id__eq=id__eq, + id__ne=id__ne, + id__gt=id__gt, + id__gte=id__gte, + id__lt=id__lt, + id__lte=id__lte, + id__in=id__in, + id__nin=id__nin, + id__notin=id__notin, + id__isnull=id__isnull, + id__nisnull=id__nisnull, + id__isnotnull=id__isnotnull, + id__l=id__l, + id__like=id__like, + id__nl=id__nl, + id__nlike=id__nlike, + id__notlike=id__notlike, + id__il=id__il, + id__ilike=id__ilike, + id__nil=id__nil, + id__nilike=id__nilike, + id__notilike=id__notilike, + id__desc=id__desc, + id__asc=id__asc, + created_at__eq=created_at__eq, + created_at__ne=created_at__ne, + created_at__gt=created_at__gt, + created_at__gte=created_at__gte, + created_at__lt=created_at__lt, + created_at__lte=created_at__lte, + created_at__in=created_at__in, + created_at__nin=created_at__nin, + created_at__notin=created_at__notin, + created_at__isnull=created_at__isnull, + created_at__nisnull=created_at__nisnull, + created_at__isnotnull=created_at__isnotnull, + created_at__l=created_at__l, + created_at__like=created_at__like, + created_at__nl=created_at__nl, + created_at__nlike=created_at__nlike, + created_at__notlike=created_at__notlike, + created_at__il=created_at__il, + created_at__ilike=created_at__ilike, + created_at__nil=created_at__nil, + created_at__nilike=created_at__nilike, + created_at__notilike=created_at__notilike, + created_at__desc=created_at__desc, + created_at__asc=created_at__asc, + updated_at__eq=updated_at__eq, + updated_at__ne=updated_at__ne, + updated_at__gt=updated_at__gt, + updated_at__gte=updated_at__gte, + updated_at__lt=updated_at__lt, + updated_at__lte=updated_at__lte, + updated_at__in=updated_at__in, + updated_at__nin=updated_at__nin, + updated_at__notin=updated_at__notin, + updated_at__isnull=updated_at__isnull, + updated_at__nisnull=updated_at__nisnull, + updated_at__isnotnull=updated_at__isnotnull, + updated_at__l=updated_at__l, + updated_at__like=updated_at__like, + updated_at__nl=updated_at__nl, + updated_at__nlike=updated_at__nlike, + updated_at__notlike=updated_at__notlike, + updated_at__il=updated_at__il, + updated_at__ilike=updated_at__ilike, + updated_at__nil=updated_at__nil, + updated_at__nilike=updated_at__nilike, + updated_at__notilike=updated_at__notilike, + updated_at__desc=updated_at__desc, + updated_at__asc=updated_at__asc, + deleted_at__eq=deleted_at__eq, + deleted_at__ne=deleted_at__ne, + deleted_at__gt=deleted_at__gt, + deleted_at__gte=deleted_at__gte, + deleted_at__lt=deleted_at__lt, + deleted_at__lte=deleted_at__lte, + deleted_at__in=deleted_at__in, + deleted_at__nin=deleted_at__nin, + deleted_at__notin=deleted_at__notin, + deleted_at__isnull=deleted_at__isnull, + deleted_at__nisnull=deleted_at__nisnull, + deleted_at__isnotnull=deleted_at__isnotnull, + deleted_at__l=deleted_at__l, + deleted_at__like=deleted_at__like, + deleted_at__nl=deleted_at__nl, + deleted_at__nlike=deleted_at__nlike, + deleted_at__notlike=deleted_at__notlike, + deleted_at__il=deleted_at__il, + deleted_at__ilike=deleted_at__ilike, + deleted_at__nil=deleted_at__nil, + deleted_at__nilike=deleted_at__nilike, + deleted_at__notilike=deleted_at__notilike, + deleted_at__desc=deleted_at__desc, + deleted_at__asc=deleted_at__asc, + file_name__eq=file_name__eq, + file_name__ne=file_name__ne, + file_name__gt=file_name__gt, + file_name__gte=file_name__gte, + file_name__lt=file_name__lt, + file_name__lte=file_name__lte, + file_name__in=file_name__in, + file_name__nin=file_name__nin, + file_name__notin=file_name__notin, + file_name__isnull=file_name__isnull, + file_name__nisnull=file_name__nisnull, + file_name__isnotnull=file_name__isnotnull, + file_name__l=file_name__l, + file_name__like=file_name__like, + file_name__nl=file_name__nl, + file_name__nlike=file_name__nlike, + file_name__notlike=file_name__notlike, + file_name__il=file_name__il, + file_name__ilike=file_name__ilike, + file_name__nil=file_name__nil, + file_name__nilike=file_name__nilike, + file_name__notilike=file_name__notilike, + file_name__desc=file_name__desc, + file_name__asc=file_name__asc, + started_at__eq=started_at__eq, + started_at__ne=started_at__ne, + started_at__gt=started_at__gt, + started_at__gte=started_at__gte, + started_at__lt=started_at__lt, + started_at__lte=started_at__lte, + started_at__in=started_at__in, + started_at__nin=started_at__nin, + started_at__notin=started_at__notin, + started_at__isnull=started_at__isnull, + started_at__nisnull=started_at__nisnull, + started_at__isnotnull=started_at__isnotnull, + started_at__l=started_at__l, + started_at__like=started_at__like, + started_at__nl=started_at__nl, + started_at__nlike=started_at__nlike, + started_at__notlike=started_at__notlike, + started_at__il=started_at__il, + started_at__ilike=started_at__ilike, + started_at__nil=started_at__nil, + started_at__nilike=started_at__nilike, + started_at__notilike=started_at__notilike, + started_at__desc=started_at__desc, + started_at__asc=started_at__asc, + ended_at__eq=ended_at__eq, + ended_at__ne=ended_at__ne, + ended_at__gt=ended_at__gt, + ended_at__gte=ended_at__gte, + ended_at__lt=ended_at__lt, + ended_at__lte=ended_at__lte, + ended_at__in=ended_at__in, + ended_at__nin=ended_at__nin, + ended_at__notin=ended_at__notin, + ended_at__isnull=ended_at__isnull, + ended_at__nisnull=ended_at__nisnull, + ended_at__isnotnull=ended_at__isnotnull, + ended_at__l=ended_at__l, + ended_at__like=ended_at__like, + ended_at__nl=ended_at__nl, + ended_at__nlike=ended_at__nlike, + ended_at__notlike=ended_at__notlike, + ended_at__il=ended_at__il, + ended_at__ilike=ended_at__ilike, + ended_at__nil=ended_at__nil, + ended_at__nilike=ended_at__nilike, + ended_at__notilike=ended_at__notilike, + ended_at__desc=ended_at__desc, + ended_at__asc=ended_at__asc, + duration__eq=duration__eq, + duration__ne=duration__ne, + duration__gt=duration__gt, + duration__gte=duration__gte, + duration__lt=duration__lt, + duration__lte=duration__lte, + duration__in=duration__in, + duration__nin=duration__nin, + duration__notin=duration__notin, + duration__isnull=duration__isnull, + duration__nisnull=duration__nisnull, + duration__isnotnull=duration__isnotnull, + duration__l=duration__l, + duration__like=duration__like, + duration__nl=duration__nl, + duration__nlike=duration__nlike, + duration__notlike=duration__notlike, + duration__il=duration__il, + duration__ilike=duration__ilike, + duration__nil=duration__nil, + duration__nilike=duration__nilike, + duration__notilike=duration__notilike, + duration__desc=duration__desc, + duration__asc=duration__asc, + file_size__eq=file_size__eq, + file_size__ne=file_size__ne, + file_size__gt=file_size__gt, + file_size__gte=file_size__gte, + file_size__lt=file_size__lt, + file_size__lte=file_size__lte, + file_size__in=file_size__in, + file_size__nin=file_size__nin, + file_size__notin=file_size__notin, + file_size__isnull=file_size__isnull, + file_size__nisnull=file_size__nisnull, + file_size__isnotnull=file_size__isnotnull, + file_size__l=file_size__l, + file_size__like=file_size__like, + file_size__nl=file_size__nl, + file_size__nlike=file_size__nlike, + file_size__notlike=file_size__notlike, + file_size__il=file_size__il, + file_size__ilike=file_size__ilike, + file_size__nil=file_size__nil, + file_size__nilike=file_size__nilike, + file_size__notilike=file_size__notilike, + file_size__desc=file_size__desc, + file_size__asc=file_size__asc, + thumbnail_name__eq=thumbnail_name__eq, + thumbnail_name__ne=thumbnail_name__ne, + thumbnail_name__gt=thumbnail_name__gt, + thumbnail_name__gte=thumbnail_name__gte, + thumbnail_name__lt=thumbnail_name__lt, + thumbnail_name__lte=thumbnail_name__lte, + thumbnail_name__in=thumbnail_name__in, + thumbnail_name__nin=thumbnail_name__nin, + thumbnail_name__notin=thumbnail_name__notin, + thumbnail_name__isnull=thumbnail_name__isnull, + thumbnail_name__nisnull=thumbnail_name__nisnull, + thumbnail_name__isnotnull=thumbnail_name__isnotnull, + thumbnail_name__l=thumbnail_name__l, + thumbnail_name__like=thumbnail_name__like, + thumbnail_name__nl=thumbnail_name__nl, + thumbnail_name__nlike=thumbnail_name__nlike, + thumbnail_name__notlike=thumbnail_name__notlike, + thumbnail_name__il=thumbnail_name__il, + thumbnail_name__ilike=thumbnail_name__ilike, + thumbnail_name__nil=thumbnail_name__nil, + thumbnail_name__nilike=thumbnail_name__nilike, + thumbnail_name__notilike=thumbnail_name__notilike, + thumbnail_name__desc=thumbnail_name__desc, + thumbnail_name__asc=thumbnail_name__asc, + status__eq=status__eq, + status__ne=status__ne, + status__gt=status__gt, + status__gte=status__gte, + status__lt=status__lt, + status__lte=status__lte, + status__in=status__in, + status__nin=status__nin, + status__notin=status__notin, + status__isnull=status__isnull, + status__nisnull=status__nisnull, + status__isnotnull=status__isnotnull, + status__l=status__l, + status__like=status__like, + status__nl=status__nl, + status__nlike=status__nlike, + status__notlike=status__notlike, + status__il=status__il, + status__ilike=status__ilike, + status__nil=status__nil, + status__nilike=status__nilike, + status__notilike=status__notilike, + status__desc=status__desc, + status__asc=status__asc, + camera_id__eq=camera_id__eq, + camera_id__ne=camera_id__ne, + camera_id__gt=camera_id__gt, + camera_id__gte=camera_id__gte, + camera_id__lt=camera_id__lt, + camera_id__lte=camera_id__lte, + camera_id__in=camera_id__in, + camera_id__nin=camera_id__nin, + camera_id__notin=camera_id__notin, + camera_id__isnull=camera_id__isnull, + camera_id__nisnull=camera_id__nisnull, + camera_id__isnotnull=camera_id__isnotnull, + camera_id__l=camera_id__l, + camera_id__like=camera_id__like, + camera_id__nl=camera_id__nl, + camera_id__nlike=camera_id__nlike, + camera_id__notlike=camera_id__notlike, + camera_id__il=camera_id__il, + camera_id__ilike=camera_id__ilike, + camera_id__nil=camera_id__nil, + camera_id__nilike=camera_id__nilike, + camera_id__notilike=camera_id__notilike, + camera_id__desc=camera_id__desc, + camera_id__asc=camera_id__asc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_videos_serialize( + self, + limit, + offset, + id__eq, + id__ne, + id__gt, + id__gte, + id__lt, + id__lte, + id__in, + id__nin, + id__notin, + id__isnull, + id__nisnull, + id__isnotnull, + id__l, + id__like, + id__nl, + id__nlike, + id__notlike, + id__il, + id__ilike, + id__nil, + id__nilike, + id__notilike, + id__desc, + id__asc, + created_at__eq, + created_at__ne, + created_at__gt, + created_at__gte, + created_at__lt, + created_at__lte, + created_at__in, + created_at__nin, + created_at__notin, + created_at__isnull, + created_at__nisnull, + created_at__isnotnull, + created_at__l, + created_at__like, + created_at__nl, + created_at__nlike, + created_at__notlike, + created_at__il, + created_at__ilike, + created_at__nil, + created_at__nilike, + created_at__notilike, + created_at__desc, + created_at__asc, + updated_at__eq, + updated_at__ne, + updated_at__gt, + updated_at__gte, + updated_at__lt, + updated_at__lte, + updated_at__in, + updated_at__nin, + updated_at__notin, + updated_at__isnull, + updated_at__nisnull, + updated_at__isnotnull, + updated_at__l, + updated_at__like, + updated_at__nl, + updated_at__nlike, + updated_at__notlike, + updated_at__il, + updated_at__ilike, + updated_at__nil, + updated_at__nilike, + updated_at__notilike, + updated_at__desc, + updated_at__asc, + deleted_at__eq, + deleted_at__ne, + deleted_at__gt, + deleted_at__gte, + deleted_at__lt, + deleted_at__lte, + deleted_at__in, + deleted_at__nin, + deleted_at__notin, + deleted_at__isnull, + deleted_at__nisnull, + deleted_at__isnotnull, + deleted_at__l, + deleted_at__like, + deleted_at__nl, + deleted_at__nlike, + deleted_at__notlike, + deleted_at__il, + deleted_at__ilike, + deleted_at__nil, + deleted_at__nilike, + deleted_at__notilike, + deleted_at__desc, + deleted_at__asc, + file_name__eq, + file_name__ne, + file_name__gt, + file_name__gte, + file_name__lt, + file_name__lte, + file_name__in, + file_name__nin, + file_name__notin, + file_name__isnull, + file_name__nisnull, + file_name__isnotnull, + file_name__l, + file_name__like, + file_name__nl, + file_name__nlike, + file_name__notlike, + file_name__il, + file_name__ilike, + file_name__nil, + file_name__nilike, + file_name__notilike, + file_name__desc, + file_name__asc, + started_at__eq, + started_at__ne, + started_at__gt, + started_at__gte, + started_at__lt, + started_at__lte, + started_at__in, + started_at__nin, + started_at__notin, + started_at__isnull, + started_at__nisnull, + started_at__isnotnull, + started_at__l, + started_at__like, + started_at__nl, + started_at__nlike, + started_at__notlike, + started_at__il, + started_at__ilike, + started_at__nil, + started_at__nilike, + started_at__notilike, + started_at__desc, + started_at__asc, + ended_at__eq, + ended_at__ne, + ended_at__gt, + ended_at__gte, + ended_at__lt, + ended_at__lte, + ended_at__in, + ended_at__nin, + ended_at__notin, + ended_at__isnull, + ended_at__nisnull, + ended_at__isnotnull, + ended_at__l, + ended_at__like, + ended_at__nl, + ended_at__nlike, + ended_at__notlike, + ended_at__il, + ended_at__ilike, + ended_at__nil, + ended_at__nilike, + ended_at__notilike, + ended_at__desc, + ended_at__asc, + duration__eq, + duration__ne, + duration__gt, + duration__gte, + duration__lt, + duration__lte, + duration__in, + duration__nin, + duration__notin, + duration__isnull, + duration__nisnull, + duration__isnotnull, + duration__l, + duration__like, + duration__nl, + duration__nlike, + duration__notlike, + duration__il, + duration__ilike, + duration__nil, + duration__nilike, + duration__notilike, + duration__desc, + duration__asc, + file_size__eq, + file_size__ne, + file_size__gt, + file_size__gte, + file_size__lt, + file_size__lte, + file_size__in, + file_size__nin, + file_size__notin, + file_size__isnull, + file_size__nisnull, + file_size__isnotnull, + file_size__l, + file_size__like, + file_size__nl, + file_size__nlike, + file_size__notlike, + file_size__il, + file_size__ilike, + file_size__nil, + file_size__nilike, + file_size__notilike, + file_size__desc, + file_size__asc, + thumbnail_name__eq, + thumbnail_name__ne, + thumbnail_name__gt, + thumbnail_name__gte, + thumbnail_name__lt, + thumbnail_name__lte, + thumbnail_name__in, + thumbnail_name__nin, + thumbnail_name__notin, + thumbnail_name__isnull, + thumbnail_name__nisnull, + thumbnail_name__isnotnull, + thumbnail_name__l, + thumbnail_name__like, + thumbnail_name__nl, + thumbnail_name__nlike, + thumbnail_name__notlike, + thumbnail_name__il, + thumbnail_name__ilike, + thumbnail_name__nil, + thumbnail_name__nilike, + thumbnail_name__notilike, + thumbnail_name__desc, + thumbnail_name__asc, + status__eq, + status__ne, + status__gt, + status__gte, + status__lt, + status__lte, + status__in, + status__nin, + status__notin, + status__isnull, + status__nisnull, + status__isnotnull, + status__l, + status__like, + status__nl, + status__nlike, + status__notlike, + status__il, + status__ilike, + status__nil, + status__nilike, + status__notilike, + status__desc, + status__asc, + camera_id__eq, + camera_id__ne, + camera_id__gt, + camera_id__gte, + camera_id__lt, + camera_id__lte, + camera_id__in, + camera_id__nin, + camera_id__notin, + camera_id__isnull, + camera_id__nisnull, + camera_id__isnotnull, + camera_id__l, + camera_id__like, + camera_id__nl, + camera_id__nlike, + camera_id__notlike, + camera_id__il, + camera_id__ilike, + camera_id__nil, + camera_id__nilike, + camera_id__notilike, + camera_id__desc, + camera_id__asc, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if offset is not None: + + _query_params.append(('offset', offset)) + + if id__eq is not None: + + _query_params.append(('id__eq', id__eq)) + + if id__ne is not None: + + _query_params.append(('id__ne', id__ne)) + + if id__gt is not None: + + _query_params.append(('id__gt', id__gt)) + + if id__gte is not None: + + _query_params.append(('id__gte', id__gte)) + + if id__lt is not None: + + _query_params.append(('id__lt', id__lt)) + + if id__lte is not None: + + _query_params.append(('id__lte', id__lte)) + + if id__in is not None: + + _query_params.append(('id__in', id__in)) + + if id__nin is not None: + + _query_params.append(('id__nin', id__nin)) + + if id__notin is not None: + + _query_params.append(('id__notin', id__notin)) + + if id__isnull is not None: + + _query_params.append(('id__isnull', id__isnull)) + + if id__nisnull is not None: + + _query_params.append(('id__nisnull', id__nisnull)) + + if id__isnotnull is not None: + + _query_params.append(('id__isnotnull', id__isnotnull)) + + if id__l is not None: + + _query_params.append(('id__l', id__l)) + + if id__like is not None: + + _query_params.append(('id__like', id__like)) + + if id__nl is not None: + + _query_params.append(('id__nl', id__nl)) + + if id__nlike is not None: + + _query_params.append(('id__nlike', id__nlike)) + + if id__notlike is not None: + + _query_params.append(('id__notlike', id__notlike)) + + if id__il is not None: + + _query_params.append(('id__il', id__il)) + + if id__ilike is not None: + + _query_params.append(('id__ilike', id__ilike)) + + if id__nil is not None: + + _query_params.append(('id__nil', id__nil)) + + if id__nilike is not None: + + _query_params.append(('id__nilike', id__nilike)) + + if id__notilike is not None: + + _query_params.append(('id__notilike', id__notilike)) + + if id__desc is not None: + + _query_params.append(('id__desc', id__desc)) + + if id__asc is not None: + + _query_params.append(('id__asc', id__asc)) + + if created_at__eq is not None: + if isinstance(created_at__eq, datetime): + _query_params.append( + ( + 'created_at__eq', + created_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__eq', created_at__eq)) + + if created_at__ne is not None: + if isinstance(created_at__ne, datetime): + _query_params.append( + ( + 'created_at__ne', + created_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__ne', created_at__ne)) + + if created_at__gt is not None: + if isinstance(created_at__gt, datetime): + _query_params.append( + ( + 'created_at__gt', + created_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__gt', created_at__gt)) + + if created_at__gte is not None: + if isinstance(created_at__gte, datetime): + _query_params.append( + ( + 'created_at__gte', + created_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__gte', created_at__gte)) + + if created_at__lt is not None: + if isinstance(created_at__lt, datetime): + _query_params.append( + ( + 'created_at__lt', + created_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__lt', created_at__lt)) + + if created_at__lte is not None: + if isinstance(created_at__lte, datetime): + _query_params.append( + ( + 'created_at__lte', + created_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__lte', created_at__lte)) + + if created_at__in is not None: + if isinstance(created_at__in, datetime): + _query_params.append( + ( + 'created_at__in', + created_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__in', created_at__in)) + + if created_at__nin is not None: + if isinstance(created_at__nin, datetime): + _query_params.append( + ( + 'created_at__nin', + created_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__nin', created_at__nin)) + + if created_at__notin is not None: + if isinstance(created_at__notin, datetime): + _query_params.append( + ( + 'created_at__notin', + created_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('created_at__notin', created_at__notin)) + + if created_at__isnull is not None: + + _query_params.append(('created_at__isnull', created_at__isnull)) + + if created_at__nisnull is not None: + + _query_params.append(('created_at__nisnull', created_at__nisnull)) + + if created_at__isnotnull is not None: + + _query_params.append(('created_at__isnotnull', created_at__isnotnull)) + + if created_at__l is not None: + + _query_params.append(('created_at__l', created_at__l)) + + if created_at__like is not None: + + _query_params.append(('created_at__like', created_at__like)) + + if created_at__nl is not None: + + _query_params.append(('created_at__nl', created_at__nl)) + + if created_at__nlike is not None: + + _query_params.append(('created_at__nlike', created_at__nlike)) + + if created_at__notlike is not None: + + _query_params.append(('created_at__notlike', created_at__notlike)) + + if created_at__il is not None: + + _query_params.append(('created_at__il', created_at__il)) + + if created_at__ilike is not None: + + _query_params.append(('created_at__ilike', created_at__ilike)) + + if created_at__nil is not None: + + _query_params.append(('created_at__nil', created_at__nil)) + + if created_at__nilike is not None: + + _query_params.append(('created_at__nilike', created_at__nilike)) + + if created_at__notilike is not None: + + _query_params.append(('created_at__notilike', created_at__notilike)) + + if created_at__desc is not None: + + _query_params.append(('created_at__desc', created_at__desc)) + + if created_at__asc is not None: + + _query_params.append(('created_at__asc', created_at__asc)) + + if updated_at__eq is not None: + if isinstance(updated_at__eq, datetime): + _query_params.append( + ( + 'updated_at__eq', + updated_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__eq', updated_at__eq)) + + if updated_at__ne is not None: + if isinstance(updated_at__ne, datetime): + _query_params.append( + ( + 'updated_at__ne', + updated_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__ne', updated_at__ne)) + + if updated_at__gt is not None: + if isinstance(updated_at__gt, datetime): + _query_params.append( + ( + 'updated_at__gt', + updated_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__gt', updated_at__gt)) + + if updated_at__gte is not None: + if isinstance(updated_at__gte, datetime): + _query_params.append( + ( + 'updated_at__gte', + updated_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__gte', updated_at__gte)) + + if updated_at__lt is not None: + if isinstance(updated_at__lt, datetime): + _query_params.append( + ( + 'updated_at__lt', + updated_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__lt', updated_at__lt)) + + if updated_at__lte is not None: + if isinstance(updated_at__lte, datetime): + _query_params.append( + ( + 'updated_at__lte', + updated_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__lte', updated_at__lte)) + + if updated_at__in is not None: + if isinstance(updated_at__in, datetime): + _query_params.append( + ( + 'updated_at__in', + updated_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__in', updated_at__in)) + + if updated_at__nin is not None: + if isinstance(updated_at__nin, datetime): + _query_params.append( + ( + 'updated_at__nin', + updated_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__nin', updated_at__nin)) + + if updated_at__notin is not None: + if isinstance(updated_at__notin, datetime): + _query_params.append( + ( + 'updated_at__notin', + updated_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('updated_at__notin', updated_at__notin)) + + if updated_at__isnull is not None: + + _query_params.append(('updated_at__isnull', updated_at__isnull)) + + if updated_at__nisnull is not None: + + _query_params.append(('updated_at__nisnull', updated_at__nisnull)) + + if updated_at__isnotnull is not None: + + _query_params.append(('updated_at__isnotnull', updated_at__isnotnull)) + + if updated_at__l is not None: + + _query_params.append(('updated_at__l', updated_at__l)) + + if updated_at__like is not None: + + _query_params.append(('updated_at__like', updated_at__like)) + + if updated_at__nl is not None: + + _query_params.append(('updated_at__nl', updated_at__nl)) + + if updated_at__nlike is not None: + + _query_params.append(('updated_at__nlike', updated_at__nlike)) + + if updated_at__notlike is not None: + + _query_params.append(('updated_at__notlike', updated_at__notlike)) + + if updated_at__il is not None: + + _query_params.append(('updated_at__il', updated_at__il)) + + if updated_at__ilike is not None: + + _query_params.append(('updated_at__ilike', updated_at__ilike)) + + if updated_at__nil is not None: + + _query_params.append(('updated_at__nil', updated_at__nil)) + + if updated_at__nilike is not None: + + _query_params.append(('updated_at__nilike', updated_at__nilike)) + + if updated_at__notilike is not None: + + _query_params.append(('updated_at__notilike', updated_at__notilike)) + + if updated_at__desc is not None: + + _query_params.append(('updated_at__desc', updated_at__desc)) + + if updated_at__asc is not None: + + _query_params.append(('updated_at__asc', updated_at__asc)) + + if deleted_at__eq is not None: + if isinstance(deleted_at__eq, datetime): + _query_params.append( + ( + 'deleted_at__eq', + deleted_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__eq', deleted_at__eq)) + + if deleted_at__ne is not None: + if isinstance(deleted_at__ne, datetime): + _query_params.append( + ( + 'deleted_at__ne', + deleted_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__ne', deleted_at__ne)) + + if deleted_at__gt is not None: + if isinstance(deleted_at__gt, datetime): + _query_params.append( + ( + 'deleted_at__gt', + deleted_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__gt', deleted_at__gt)) + + if deleted_at__gte is not None: + if isinstance(deleted_at__gte, datetime): + _query_params.append( + ( + 'deleted_at__gte', + deleted_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__gte', deleted_at__gte)) + + if deleted_at__lt is not None: + if isinstance(deleted_at__lt, datetime): + _query_params.append( + ( + 'deleted_at__lt', + deleted_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__lt', deleted_at__lt)) + + if deleted_at__lte is not None: + if isinstance(deleted_at__lte, datetime): + _query_params.append( + ( + 'deleted_at__lte', + deleted_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__lte', deleted_at__lte)) + + if deleted_at__in is not None: + if isinstance(deleted_at__in, datetime): + _query_params.append( + ( + 'deleted_at__in', + deleted_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__in', deleted_at__in)) + + if deleted_at__nin is not None: + if isinstance(deleted_at__nin, datetime): + _query_params.append( + ( + 'deleted_at__nin', + deleted_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__nin', deleted_at__nin)) + + if deleted_at__notin is not None: + if isinstance(deleted_at__notin, datetime): + _query_params.append( + ( + 'deleted_at__notin', + deleted_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('deleted_at__notin', deleted_at__notin)) + + if deleted_at__isnull is not None: + + _query_params.append(('deleted_at__isnull', deleted_at__isnull)) + + if deleted_at__nisnull is not None: + + _query_params.append(('deleted_at__nisnull', deleted_at__nisnull)) + + if deleted_at__isnotnull is not None: + + _query_params.append(('deleted_at__isnotnull', deleted_at__isnotnull)) + + if deleted_at__l is not None: + + _query_params.append(('deleted_at__l', deleted_at__l)) + + if deleted_at__like is not None: + + _query_params.append(('deleted_at__like', deleted_at__like)) + + if deleted_at__nl is not None: + + _query_params.append(('deleted_at__nl', deleted_at__nl)) + + if deleted_at__nlike is not None: + + _query_params.append(('deleted_at__nlike', deleted_at__nlike)) + + if deleted_at__notlike is not None: + + _query_params.append(('deleted_at__notlike', deleted_at__notlike)) + + if deleted_at__il is not None: + + _query_params.append(('deleted_at__il', deleted_at__il)) + + if deleted_at__ilike is not None: + + _query_params.append(('deleted_at__ilike', deleted_at__ilike)) + + if deleted_at__nil is not None: + + _query_params.append(('deleted_at__nil', deleted_at__nil)) + + if deleted_at__nilike is not None: + + _query_params.append(('deleted_at__nilike', deleted_at__nilike)) + + if deleted_at__notilike is not None: + + _query_params.append(('deleted_at__notilike', deleted_at__notilike)) + + if deleted_at__desc is not None: + + _query_params.append(('deleted_at__desc', deleted_at__desc)) + + if deleted_at__asc is not None: + + _query_params.append(('deleted_at__asc', deleted_at__asc)) + + if file_name__eq is not None: + + _query_params.append(('file_name__eq', file_name__eq)) + + if file_name__ne is not None: + + _query_params.append(('file_name__ne', file_name__ne)) + + if file_name__gt is not None: + + _query_params.append(('file_name__gt', file_name__gt)) + + if file_name__gte is not None: + + _query_params.append(('file_name__gte', file_name__gte)) + + if file_name__lt is not None: + + _query_params.append(('file_name__lt', file_name__lt)) + + if file_name__lte is not None: + + _query_params.append(('file_name__lte', file_name__lte)) + + if file_name__in is not None: + + _query_params.append(('file_name__in', file_name__in)) + + if file_name__nin is not None: + + _query_params.append(('file_name__nin', file_name__nin)) + + if file_name__notin is not None: + + _query_params.append(('file_name__notin', file_name__notin)) + + if file_name__isnull is not None: + + _query_params.append(('file_name__isnull', file_name__isnull)) + + if file_name__nisnull is not None: + + _query_params.append(('file_name__nisnull', file_name__nisnull)) + + if file_name__isnotnull is not None: + + _query_params.append(('file_name__isnotnull', file_name__isnotnull)) + + if file_name__l is not None: + + _query_params.append(('file_name__l', file_name__l)) + + if file_name__like is not None: + + _query_params.append(('file_name__like', file_name__like)) + + if file_name__nl is not None: + + _query_params.append(('file_name__nl', file_name__nl)) + + if file_name__nlike is not None: + + _query_params.append(('file_name__nlike', file_name__nlike)) + + if file_name__notlike is not None: + + _query_params.append(('file_name__notlike', file_name__notlike)) + + if file_name__il is not None: + + _query_params.append(('file_name__il', file_name__il)) + + if file_name__ilike is not None: + + _query_params.append(('file_name__ilike', file_name__ilike)) + + if file_name__nil is not None: + + _query_params.append(('file_name__nil', file_name__nil)) + + if file_name__nilike is not None: + + _query_params.append(('file_name__nilike', file_name__nilike)) + + if file_name__notilike is not None: + + _query_params.append(('file_name__notilike', file_name__notilike)) + + if file_name__desc is not None: + + _query_params.append(('file_name__desc', file_name__desc)) + + if file_name__asc is not None: + + _query_params.append(('file_name__asc', file_name__asc)) + + if started_at__eq is not None: + if isinstance(started_at__eq, datetime): + _query_params.append( + ( + 'started_at__eq', + started_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('started_at__eq', started_at__eq)) + + if started_at__ne is not None: + if isinstance(started_at__ne, datetime): + _query_params.append( + ( + 'started_at__ne', + started_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('started_at__ne', started_at__ne)) + + if started_at__gt is not None: + if isinstance(started_at__gt, datetime): + _query_params.append( + ( + 'started_at__gt', + started_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('started_at__gt', started_at__gt)) + + if started_at__gte is not None: + if isinstance(started_at__gte, datetime): + _query_params.append( + ( + 'started_at__gte', + started_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('started_at__gte', started_at__gte)) + + if started_at__lt is not None: + if isinstance(started_at__lt, datetime): + _query_params.append( + ( + 'started_at__lt', + started_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('started_at__lt', started_at__lt)) + + if started_at__lte is not None: + if isinstance(started_at__lte, datetime): + _query_params.append( + ( + 'started_at__lte', + started_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('started_at__lte', started_at__lte)) + + if started_at__in is not None: + if isinstance(started_at__in, datetime): + _query_params.append( + ( + 'started_at__in', + started_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('started_at__in', started_at__in)) + + if started_at__nin is not None: + if isinstance(started_at__nin, datetime): + _query_params.append( + ( + 'started_at__nin', + started_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('started_at__nin', started_at__nin)) + + if started_at__notin is not None: + if isinstance(started_at__notin, datetime): + _query_params.append( + ( + 'started_at__notin', + started_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('started_at__notin', started_at__notin)) + + if started_at__isnull is not None: + + _query_params.append(('started_at__isnull', started_at__isnull)) + + if started_at__nisnull is not None: + + _query_params.append(('started_at__nisnull', started_at__nisnull)) + + if started_at__isnotnull is not None: + + _query_params.append(('started_at__isnotnull', started_at__isnotnull)) + + if started_at__l is not None: + + _query_params.append(('started_at__l', started_at__l)) + + if started_at__like is not None: + + _query_params.append(('started_at__like', started_at__like)) + + if started_at__nl is not None: + + _query_params.append(('started_at__nl', started_at__nl)) + + if started_at__nlike is not None: + + _query_params.append(('started_at__nlike', started_at__nlike)) + + if started_at__notlike is not None: + + _query_params.append(('started_at__notlike', started_at__notlike)) + + if started_at__il is not None: + + _query_params.append(('started_at__il', started_at__il)) + + if started_at__ilike is not None: + + _query_params.append(('started_at__ilike', started_at__ilike)) + + if started_at__nil is not None: + + _query_params.append(('started_at__nil', started_at__nil)) + + if started_at__nilike is not None: + + _query_params.append(('started_at__nilike', started_at__nilike)) + + if started_at__notilike is not None: + + _query_params.append(('started_at__notilike', started_at__notilike)) + + if started_at__desc is not None: + + _query_params.append(('started_at__desc', started_at__desc)) + + if started_at__asc is not None: + + _query_params.append(('started_at__asc', started_at__asc)) + + if ended_at__eq is not None: + if isinstance(ended_at__eq, datetime): + _query_params.append( + ( + 'ended_at__eq', + ended_at__eq.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('ended_at__eq', ended_at__eq)) + + if ended_at__ne is not None: + if isinstance(ended_at__ne, datetime): + _query_params.append( + ( + 'ended_at__ne', + ended_at__ne.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('ended_at__ne', ended_at__ne)) + + if ended_at__gt is not None: + if isinstance(ended_at__gt, datetime): + _query_params.append( + ( + 'ended_at__gt', + ended_at__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('ended_at__gt', ended_at__gt)) + + if ended_at__gte is not None: + if isinstance(ended_at__gte, datetime): + _query_params.append( + ( + 'ended_at__gte', + ended_at__gte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('ended_at__gte', ended_at__gte)) + + if ended_at__lt is not None: + if isinstance(ended_at__lt, datetime): + _query_params.append( + ( + 'ended_at__lt', + ended_at__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('ended_at__lt', ended_at__lt)) + + if ended_at__lte is not None: + if isinstance(ended_at__lte, datetime): + _query_params.append( + ( + 'ended_at__lte', + ended_at__lte.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('ended_at__lte', ended_at__lte)) + + if ended_at__in is not None: + if isinstance(ended_at__in, datetime): + _query_params.append( + ( + 'ended_at__in', + ended_at__in.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('ended_at__in', ended_at__in)) + + if ended_at__nin is not None: + if isinstance(ended_at__nin, datetime): + _query_params.append( + ( + 'ended_at__nin', + ended_at__nin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('ended_at__nin', ended_at__nin)) + + if ended_at__notin is not None: + if isinstance(ended_at__notin, datetime): + _query_params.append( + ( + 'ended_at__notin', + ended_at__notin.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('ended_at__notin', ended_at__notin)) + + if ended_at__isnull is not None: + + _query_params.append(('ended_at__isnull', ended_at__isnull)) + + if ended_at__nisnull is not None: + + _query_params.append(('ended_at__nisnull', ended_at__nisnull)) + + if ended_at__isnotnull is not None: + + _query_params.append(('ended_at__isnotnull', ended_at__isnotnull)) + + if ended_at__l is not None: + + _query_params.append(('ended_at__l', ended_at__l)) + + if ended_at__like is not None: + + _query_params.append(('ended_at__like', ended_at__like)) + + if ended_at__nl is not None: + + _query_params.append(('ended_at__nl', ended_at__nl)) + + if ended_at__nlike is not None: + + _query_params.append(('ended_at__nlike', ended_at__nlike)) + + if ended_at__notlike is not None: + + _query_params.append(('ended_at__notlike', ended_at__notlike)) + + if ended_at__il is not None: + + _query_params.append(('ended_at__il', ended_at__il)) + + if ended_at__ilike is not None: + + _query_params.append(('ended_at__ilike', ended_at__ilike)) + + if ended_at__nil is not None: + + _query_params.append(('ended_at__nil', ended_at__nil)) + + if ended_at__nilike is not None: + + _query_params.append(('ended_at__nilike', ended_at__nilike)) + + if ended_at__notilike is not None: + + _query_params.append(('ended_at__notilike', ended_at__notilike)) + + if ended_at__desc is not None: + + _query_params.append(('ended_at__desc', ended_at__desc)) + + if ended_at__asc is not None: + + _query_params.append(('ended_at__asc', ended_at__asc)) + + if duration__eq is not None: + + _query_params.append(('duration__eq', duration__eq)) + + if duration__ne is not None: + + _query_params.append(('duration__ne', duration__ne)) + + if duration__gt is not None: + + _query_params.append(('duration__gt', duration__gt)) + + if duration__gte is not None: + + _query_params.append(('duration__gte', duration__gte)) + + if duration__lt is not None: + + _query_params.append(('duration__lt', duration__lt)) + + if duration__lte is not None: + + _query_params.append(('duration__lte', duration__lte)) + + if duration__in is not None: + + _query_params.append(('duration__in', duration__in)) + + if duration__nin is not None: + + _query_params.append(('duration__nin', duration__nin)) + + if duration__notin is not None: + + _query_params.append(('duration__notin', duration__notin)) + + if duration__isnull is not None: + + _query_params.append(('duration__isnull', duration__isnull)) + + if duration__nisnull is not None: + + _query_params.append(('duration__nisnull', duration__nisnull)) + + if duration__isnotnull is not None: + + _query_params.append(('duration__isnotnull', duration__isnotnull)) + + if duration__l is not None: + + _query_params.append(('duration__l', duration__l)) + + if duration__like is not None: + + _query_params.append(('duration__like', duration__like)) + + if duration__nl is not None: + + _query_params.append(('duration__nl', duration__nl)) + + if duration__nlike is not None: + + _query_params.append(('duration__nlike', duration__nlike)) + + if duration__notlike is not None: + + _query_params.append(('duration__notlike', duration__notlike)) + + if duration__il is not None: + + _query_params.append(('duration__il', duration__il)) + + if duration__ilike is not None: + + _query_params.append(('duration__ilike', duration__ilike)) + + if duration__nil is not None: + + _query_params.append(('duration__nil', duration__nil)) + + if duration__nilike is not None: + + _query_params.append(('duration__nilike', duration__nilike)) + + if duration__notilike is not None: + + _query_params.append(('duration__notilike', duration__notilike)) + + if duration__desc is not None: + + _query_params.append(('duration__desc', duration__desc)) + + if duration__asc is not None: + + _query_params.append(('duration__asc', duration__asc)) + + if file_size__eq is not None: + + _query_params.append(('file_size__eq', file_size__eq)) + + if file_size__ne is not None: + + _query_params.append(('file_size__ne', file_size__ne)) + + if file_size__gt is not None: + + _query_params.append(('file_size__gt', file_size__gt)) + + if file_size__gte is not None: + + _query_params.append(('file_size__gte', file_size__gte)) + + if file_size__lt is not None: + + _query_params.append(('file_size__lt', file_size__lt)) + + if file_size__lte is not None: + + _query_params.append(('file_size__lte', file_size__lte)) + + if file_size__in is not None: + + _query_params.append(('file_size__in', file_size__in)) + + if file_size__nin is not None: + + _query_params.append(('file_size__nin', file_size__nin)) + + if file_size__notin is not None: + + _query_params.append(('file_size__notin', file_size__notin)) + + if file_size__isnull is not None: + + _query_params.append(('file_size__isnull', file_size__isnull)) + + if file_size__nisnull is not None: + + _query_params.append(('file_size__nisnull', file_size__nisnull)) + + if file_size__isnotnull is not None: + + _query_params.append(('file_size__isnotnull', file_size__isnotnull)) + + if file_size__l is not None: + + _query_params.append(('file_size__l', file_size__l)) + + if file_size__like is not None: + + _query_params.append(('file_size__like', file_size__like)) + + if file_size__nl is not None: + + _query_params.append(('file_size__nl', file_size__nl)) + + if file_size__nlike is not None: + + _query_params.append(('file_size__nlike', file_size__nlike)) + + if file_size__notlike is not None: + + _query_params.append(('file_size__notlike', file_size__notlike)) + + if file_size__il is not None: + + _query_params.append(('file_size__il', file_size__il)) + + if file_size__ilike is not None: + + _query_params.append(('file_size__ilike', file_size__ilike)) + + if file_size__nil is not None: + + _query_params.append(('file_size__nil', file_size__nil)) + + if file_size__nilike is not None: + + _query_params.append(('file_size__nilike', file_size__nilike)) + + if file_size__notilike is not None: + + _query_params.append(('file_size__notilike', file_size__notilike)) + + if file_size__desc is not None: + + _query_params.append(('file_size__desc', file_size__desc)) + + if file_size__asc is not None: + + _query_params.append(('file_size__asc', file_size__asc)) + + if thumbnail_name__eq is not None: + + _query_params.append(('thumbnail_name__eq', thumbnail_name__eq)) + + if thumbnail_name__ne is not None: + + _query_params.append(('thumbnail_name__ne', thumbnail_name__ne)) + + if thumbnail_name__gt is not None: + + _query_params.append(('thumbnail_name__gt', thumbnail_name__gt)) + + if thumbnail_name__gte is not None: + + _query_params.append(('thumbnail_name__gte', thumbnail_name__gte)) + + if thumbnail_name__lt is not None: + + _query_params.append(('thumbnail_name__lt', thumbnail_name__lt)) + + if thumbnail_name__lte is not None: + + _query_params.append(('thumbnail_name__lte', thumbnail_name__lte)) + + if thumbnail_name__in is not None: + + _query_params.append(('thumbnail_name__in', thumbnail_name__in)) + + if thumbnail_name__nin is not None: + + _query_params.append(('thumbnail_name__nin', thumbnail_name__nin)) + + if thumbnail_name__notin is not None: + + _query_params.append(('thumbnail_name__notin', thumbnail_name__notin)) + + if thumbnail_name__isnull is not None: + + _query_params.append(('thumbnail_name__isnull', thumbnail_name__isnull)) + + if thumbnail_name__nisnull is not None: + + _query_params.append(('thumbnail_name__nisnull', thumbnail_name__nisnull)) + + if thumbnail_name__isnotnull is not None: + + _query_params.append(('thumbnail_name__isnotnull', thumbnail_name__isnotnull)) + + if thumbnail_name__l is not None: + + _query_params.append(('thumbnail_name__l', thumbnail_name__l)) + + if thumbnail_name__like is not None: + + _query_params.append(('thumbnail_name__like', thumbnail_name__like)) + + if thumbnail_name__nl is not None: + + _query_params.append(('thumbnail_name__nl', thumbnail_name__nl)) + + if thumbnail_name__nlike is not None: + + _query_params.append(('thumbnail_name__nlike', thumbnail_name__nlike)) + + if thumbnail_name__notlike is not None: + + _query_params.append(('thumbnail_name__notlike', thumbnail_name__notlike)) + + if thumbnail_name__il is not None: + + _query_params.append(('thumbnail_name__il', thumbnail_name__il)) + + if thumbnail_name__ilike is not None: + + _query_params.append(('thumbnail_name__ilike', thumbnail_name__ilike)) + + if thumbnail_name__nil is not None: + + _query_params.append(('thumbnail_name__nil', thumbnail_name__nil)) + + if thumbnail_name__nilike is not None: + + _query_params.append(('thumbnail_name__nilike', thumbnail_name__nilike)) + + if thumbnail_name__notilike is not None: + + _query_params.append(('thumbnail_name__notilike', thumbnail_name__notilike)) + + if thumbnail_name__desc is not None: + + _query_params.append(('thumbnail_name__desc', thumbnail_name__desc)) + + if thumbnail_name__asc is not None: + + _query_params.append(('thumbnail_name__asc', thumbnail_name__asc)) + + if status__eq is not None: + + _query_params.append(('status__eq', status__eq)) + + if status__ne is not None: + + _query_params.append(('status__ne', status__ne)) + + if status__gt is not None: + + _query_params.append(('status__gt', status__gt)) + + if status__gte is not None: + + _query_params.append(('status__gte', status__gte)) + + if status__lt is not None: + + _query_params.append(('status__lt', status__lt)) + + if status__lte is not None: + + _query_params.append(('status__lte', status__lte)) + + if status__in is not None: + + _query_params.append(('status__in', status__in)) + + if status__nin is not None: + + _query_params.append(('status__nin', status__nin)) + + if status__notin is not None: + + _query_params.append(('status__notin', status__notin)) + + if status__isnull is not None: + + _query_params.append(('status__isnull', status__isnull)) + + if status__nisnull is not None: + + _query_params.append(('status__nisnull', status__nisnull)) + + if status__isnotnull is not None: + + _query_params.append(('status__isnotnull', status__isnotnull)) + + if status__l is not None: + + _query_params.append(('status__l', status__l)) + + if status__like is not None: + + _query_params.append(('status__like', status__like)) + + if status__nl is not None: + + _query_params.append(('status__nl', status__nl)) + + if status__nlike is not None: + + _query_params.append(('status__nlike', status__nlike)) + + if status__notlike is not None: + + _query_params.append(('status__notlike', status__notlike)) + + if status__il is not None: + + _query_params.append(('status__il', status__il)) + + if status__ilike is not None: + + _query_params.append(('status__ilike', status__ilike)) + + if status__nil is not None: + + _query_params.append(('status__nil', status__nil)) + + if status__nilike is not None: + + _query_params.append(('status__nilike', status__nilike)) + + if status__notilike is not None: + + _query_params.append(('status__notilike', status__notilike)) + + if status__desc is not None: + + _query_params.append(('status__desc', status__desc)) + + if status__asc is not None: + + _query_params.append(('status__asc', status__asc)) + + if camera_id__eq is not None: + + _query_params.append(('camera_id__eq', camera_id__eq)) + + if camera_id__ne is not None: + + _query_params.append(('camera_id__ne', camera_id__ne)) + + if camera_id__gt is not None: + + _query_params.append(('camera_id__gt', camera_id__gt)) + + if camera_id__gte is not None: + + _query_params.append(('camera_id__gte', camera_id__gte)) + + if camera_id__lt is not None: + + _query_params.append(('camera_id__lt', camera_id__lt)) + + if camera_id__lte is not None: + + _query_params.append(('camera_id__lte', camera_id__lte)) + + if camera_id__in is not None: + + _query_params.append(('camera_id__in', camera_id__in)) + + if camera_id__nin is not None: + + _query_params.append(('camera_id__nin', camera_id__nin)) + + if camera_id__notin is not None: + + _query_params.append(('camera_id__notin', camera_id__notin)) + + if camera_id__isnull is not None: + + _query_params.append(('camera_id__isnull', camera_id__isnull)) + + if camera_id__nisnull is not None: + + _query_params.append(('camera_id__nisnull', camera_id__nisnull)) + + if camera_id__isnotnull is not None: + + _query_params.append(('camera_id__isnotnull', camera_id__isnotnull)) + + if camera_id__l is not None: + + _query_params.append(('camera_id__l', camera_id__l)) + + if camera_id__like is not None: + + _query_params.append(('camera_id__like', camera_id__like)) + + if camera_id__nl is not None: + + _query_params.append(('camera_id__nl', camera_id__nl)) + + if camera_id__nlike is not None: + + _query_params.append(('camera_id__nlike', camera_id__nlike)) + + if camera_id__notlike is not None: + + _query_params.append(('camera_id__notlike', camera_id__notlike)) + + if camera_id__il is not None: + + _query_params.append(('camera_id__il', camera_id__il)) + + if camera_id__ilike is not None: + + _query_params.append(('camera_id__ilike', camera_id__ilike)) + + if camera_id__nil is not None: + + _query_params.append(('camera_id__nil', camera_id__nil)) + + if camera_id__nilike is not None: + + _query_params.append(('camera_id__nilike', camera_id__nilike)) + + if camera_id__notilike is not None: + + _query_params.append(('camera_id__notilike', camera_id__notilike)) + + if camera_id__desc is not None: + + _query_params.append(('camera_id__desc', camera_id__desc)) + + if camera_id__asc is not None: + + _query_params.append(('camera_id__asc', camera_id__asc)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/videos', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def patch_video( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + video: Video, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetVideos200Response: + """patch_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param video: (required) + :type video: Video + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_video_serialize( + primary_key=primary_key, + video=video, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def patch_video_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + video: Video, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetVideos200Response]: + """patch_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param video: (required) + :type video: Video + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_video_serialize( + primary_key=primary_key, + video=video, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def patch_video_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + video: Video, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param video: (required) + :type video: Video + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_video_serialize( + primary_key=primary_key, + video=video, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _patch_video_serialize( + self, + primary_key, + video, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if video is not None: + _body_params = video + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/api/videos/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_videos( + self, + video: List[Video], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetVideos200Response: + """post_videos + + + :param video: (required) + :type video: List[Video] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_videos_serialize( + video=video, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_videos_with_http_info( + self, + video: List[Video], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetVideos200Response]: + """post_videos + + + :param video: (required) + :type video: List[Video] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_videos_serialize( + video=video, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_videos_without_preload_content( + self, + video: List[Video], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_videos + + + :param video: (required) + :type video: List[Video] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_videos_serialize( + video=video, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_videos_serialize( + self, + video, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'Video': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if video is not None: + _body_params = video + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/videos', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_video( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + video: Video, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetVideos200Response: + """put_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param video: (required) + :type video: Video + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_video_serialize( + primary_key=primary_key, + video=video, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_video_with_http_info( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + video: Video, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetVideos200Response]: + """put_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param video: (required) + :type video: Video + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_video_serialize( + primary_key=primary_key, + video=video, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_video_without_preload_content( + self, + primary_key: Annotated[Any, Field(description="Primary key for Video")], + video: Video, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """put_video + + + :param primary_key: Primary key for Video (required) + :type primary_key: object + :param video: (required) + :type video: Video + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_video_serialize( + primary_key=primary_key, + video=video, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetVideos200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_video_serialize( + self, + primary_key, + video, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if primary_key is not None: + _path_params['primaryKey'] = primary_key + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if video is not None: + _body_params = video + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/videos/{primaryKey}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/object_detector/openapi_client/api_client.py b/object_detector/openapi_client/api_client.py new file mode 100644 index 0000000..22906d5 --- /dev/null +++ b/object_detector/openapi_client/api_client.py @@ -0,0 +1,781 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import datetime +from dateutil.parser import parse +from enum import Enum +import json +import mimetypes +import os +import re +import tempfile + +from urllib.parse import quote +from typing import Tuple, Optional, List, Dict, Union +from pydantic import SecretStr + +from openapi_client.configuration import Configuration +from openapi_client.api_response import ApiResponse, T as ApiResponseT +import openapi_client.models +from openapi_client import rest +from openapi_client.exceptions import ( + ApiValueError, + ApiException, + BadRequestException, + UnauthorizedException, + ForbiddenException, + NotFoundException, + ServiceException +) + +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] + +class ApiClient: + """Generic API client for OpenAPI client library builds. + + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + """ + + PRIMITIVE_TYPES = (float, bool, bytes, str, int) + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int, # TODO remove as only py3 is supported? + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + _pool = None + + def __init__( + self, + configuration=None, + header_name=None, + header_value=None, + cookie=None + ) -> None: + # use default configuration if none is provided + if configuration is None: + configuration = Configuration.get_default() + self.configuration = configuration + + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'OpenAPI-Generator/1.0.0/python' + self.client_side_validation = configuration.client_side_validation + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + pass + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + + _default = None + + @classmethod + def get_default(cls): + """Return new instance of ApiClient. + + This method returns newly created, based on default constructor, + object of ApiClient class or returns a copy of default + ApiClient. + + :return: The ApiClient object. + """ + if cls._default is None: + cls._default = ApiClient() + return cls._default + + @classmethod + def set_default(cls, default): + """Set default instance of ApiClient. + + It stores default ApiClient. + + :param default: object of ApiClient. + """ + cls._default = default + + def param_serialize( + self, + method, + resource_path, + path_params=None, + query_params=None, + header_params=None, + body=None, + post_params=None, + files=None, auth_settings=None, + collection_formats=None, + _host=None, + _request_auth=None + ) -> RequestSerialized: + + """Builds the HTTP request params needed by the request. + :param method: Method to call. + :param resource_path: Path to method endpoint. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :return: tuple of form (path, http_method, query_params, header_params, + body, post_params, files) + """ + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict( + self.parameters_to_tuples(header_params,collection_formats) + ) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples( + path_params, + collection_formats + ) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # post parameters + if post_params or files: + post_params = post_params if post_params else [] + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples( + post_params, + collection_formats + ) + if files: + post_params.extend(self.files_parameters(files)) + + # auth setting + self.update_params_for_auth( + header_params, + query_params, + auth_settings, + resource_path, + method, + body, + request_auth=_request_auth + ) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + if _host is None or self.configuration.ignore_operation_servers: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + url_query = self.parameters_to_url_query( + query_params, + collection_formats + ) + url += "?" + url_query + + return method, url, header_params, body, post_params + + + def call_api( + self, + method, + url, + header_params=None, + body=None, + post_params=None, + _request_timeout=None + ) -> rest.RESTResponse: + """Makes the HTTP request (synchronous) + :param method: Method to call. + :param url: Path to method endpoint. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param _request_timeout: timeout setting for this request. + :return: RESTResponse + """ + + try: + # perform request and return response + response_data = self.rest_client.request( + method, url, + headers=header_params, + body=body, post_params=post_params, + _request_timeout=_request_timeout + ) + + except ApiException as e: + raise e + + return response_data + + def response_deserialize( + self, + response_data: rest.RESTResponse, + response_types_map: Optional[Dict[str, ApiResponseT]]=None + ) -> ApiResponse[ApiResponseT]: + """Deserializes response into an object. + :param response_data: RESTResponse object to be deserialized. + :param response_types_map: dict of response types. + :return: ApiResponse + """ + + msg = "RESTResponse.read() must be called before passing it to response_deserialize()" + assert response_data.data is not None, msg + + response_type = response_types_map.get(str(response_data.status), None) + if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: + # if not found, look for '1XX', '2XX', etc. + response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) + + # deserialize response data + response_text = None + return_data = None + try: + if response_type == "bytearray": + return_data = response_data.data + elif response_type == "file": + return_data = self.__deserialize_file(response_data) + elif response_type is not None: + match = None + content_type = response_data.getheader('content-type') + if content_type is not None: + match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) + encoding = match.group(1) if match else "utf-8" + response_text = response_data.data.decode(encoding) + return_data = self.deserialize(response_text, response_type, content_type) + finally: + if not 200 <= response_data.status <= 299: + raise ApiException.from_response( + http_resp=response_data, + body=response_text, + data=return_data, + ) + + return ApiResponse( + status_code = response_data.status, + data = return_data, + headers = response_data.getheaders(), + raw_data = response_data.data + ) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is SecretStr, return obj.get_secret_value() + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, Enum): + return obj.value + elif isinstance(obj, SecretStr): + return obj.get_secret_value() + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [ + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ] + elif isinstance(obj, tuple): + return tuple( + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + + elif isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): + obj_dict = obj.to_dict() + else: + obj_dict = obj.__dict__ + + return { + key: self.sanitize_for_serialization(val) + for key, val in obj_dict.items() + } + + def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + :param content_type: content type of response. + + :return: deserialized object. + """ + + # fetch data from response object + if content_type is None: + try: + data = json.loads(response_text) + except ValueError: + data = response_text + elif content_type.startswith("application/json"): + if response_text == "": + data = "" + else: + data = json.loads(response_text) + elif content_type.startswith("text/plain"): + data = response_text + else: + raise ApiException( + status=0, + reason="Unsupported content type: {0}".format(content_type) + ) + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if isinstance(klass, str): + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) + assert m is not None, "Malformed List type definition" + sub_kls = m.group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed Dict type definition" + sub_kls = m.group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in data.items()} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(openapi_client.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datetime(data) + elif issubclass(klass, Enum): + return self.__deserialize_enum(data, klass) + else: + return self.__deserialize_model(data, klass) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params: List[Tuple[str, str]] = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def parameters_to_url_query(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: URL query string (e.g. a=Hello%20World&b=123) + """ + new_params: List[Tuple[str, str]] = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if isinstance(v, bool): + v = str(v).lower() + if isinstance(v, (int, float)): + v = str(v) + if isinstance(v, dict): + v = json.dumps(v) + + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, str(value)) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(quote(str(value)) for value in v)) + ) + else: + new_params.append((k, quote(str(v)))) + + return "&".join(["=".join(map(str, item)) for item in new_params]) + + def files_parameters(self, files: Dict[str, Union[str, bytes]]): + """Builds form parameters. + + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + for k, v in files.items(): + if isinstance(v, str): + with open(v, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + elif isinstance(v, bytes): + filename = k + filedata = v + else: + raise ValueError("Unsupported file value") + mimetype = ( + mimetypes.guess_type(filename)[0] + or 'application/octet-stream' + ) + params.append( + tuple([k, tuple([filename, filedata, mimetype])]) + ) + return params + + def select_header_accept(self, accepts: List[str]) -> Optional[str]: + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return None + + for accept in accepts: + if re.search('json', accept, re.IGNORECASE): + return accept + + return accepts[0] + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return None + + for content_type in content_types: + if re.search('json', content_type, re.IGNORECASE): + return content_type + + return content_types[0] + + def update_params_for_auth( + self, + headers, + queries, + auth_settings, + resource_path, + method, + body, + request_auth=None + ) -> None: + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param request_auth: if set, the provided settings will + override the token in the configuration. + """ + if not auth_settings: + return + + if request_auth: + self._apply_auth_params( + headers, + queries, + resource_path, + method, + body, + request_auth + ) + else: + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + self._apply_auth_params( + headers, + queries, + resource_path, + method, + body, + auth_setting + ) + + def _apply_auth_params( + self, + headers, + queries, + resource_path, + method, + body, + auth_setting + ) -> None: + """Updates the request parameters based on a single auth_setting + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param auth_setting: auth settings for the endpoint + """ + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + queries.append((auth_setting['key'], auth_setting['value'])) + else: + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + handle file downloading + save response body into a tmp file and return the instance + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + m = re.search( + r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition + ) + assert m is not None, "Unexpected 'content-disposition' header value" + filename = m.group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return str(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return an original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datetime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __deserialize_enum(self, data, klass): + """Deserializes primitive type to enum. + + :param data: primitive type. + :param klass: class literal. + :return: enum value. + """ + try: + return klass(data) + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as `{1}`" + .format(data, klass) + ) + ) + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + return klass.from_dict(data) diff --git a/object_detector/openapi_client/api_response.py b/object_detector/openapi_client/api_response.py new file mode 100644 index 0000000..9bc7c11 --- /dev/null +++ b/object_detector/openapi_client/api_response.py @@ -0,0 +1,21 @@ +"""API response object.""" + +from __future__ import annotations +from typing import Optional, Generic, Mapping, TypeVar +from pydantic import Field, StrictInt, StrictBytes, BaseModel + +T = TypeVar("T") + +class ApiResponse(BaseModel, Generic[T]): + """ + API response object + """ + + status_code: StrictInt = Field(description="HTTP status code") + headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers") + data: T = Field(description="Deserialized data given the data type") + raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") + + model_config = { + "arbitrary_types_allowed": True + } diff --git a/object_detector/openapi_client/configuration.py b/object_detector/openapi_client/configuration.py new file mode 100644 index 0000000..ca37bb4 --- /dev/null +++ b/object_detector/openapi_client/configuration.py @@ -0,0 +1,450 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import copy +import logging +from logging import FileHandler +import multiprocessing +import sys +from typing import Optional +import urllib3 + +import http.client as httplib + +JSON_SCHEMA_VALIDATION_KEYWORDS = { + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems' +} + +class Configuration: + """This class contains various settings of the API client. + + :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication. + :param password: Password for HTTP basic authentication. + :param access_token: Access token. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum + values before. + :param ssl_ca_cert: str - the path to a file of concatenated CA certificates + in PEM format. + :param retries: Number of retries for API requests. + + """ + + _default = None + + def __init__(self, host=None, + api_key=None, api_key_prefix=None, + username=None, password=None, + access_token=None, + server_index=None, server_variables=None, + server_operation_index=None, server_operation_variables=None, + ignore_operation_servers=False, + ssl_ca_cert=None, + retries=None, + *, + debug: Optional[bool] = None + ) -> None: + """Constructor + """ + self._base_path = "http://localhost" if host is None else host + """Default Base url + """ + self.server_index = 0 if server_index is None and host is None else server_index + self.server_operation_index = server_operation_index or {} + """Default server index + """ + self.server_variables = server_variables or {} + self.server_operation_variables = server_operation_variables or {} + """Default server variables + """ + self.ignore_operation_servers = ignore_operation_servers + """Ignore operation servers + """ + self.temp_folder_path = None + """Temp file folder for downloading files + """ + # Authentication Settings + self.api_key = {} + if api_key: + self.api_key = api_key + """dict to store API key(s) + """ + self.api_key_prefix = {} + if api_key_prefix: + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ + self.username = username + """Username for HTTP basic authentication + """ + self.password = password + """Password for HTTP basic authentication + """ + self.access_token = access_token + """Access token + """ + self.logger = {} + """Logging Settings + """ + self.logger["package_logger"] = logging.getLogger("openapi_client") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + """Log format + """ + self.logger_stream_handler = None + """Log stream handler + """ + self.logger_file_handler: Optional[FileHandler] = None + """Log file handler + """ + self.logger_file = None + """Debug file location + """ + if debug is not None: + self.debug = debug + else: + self.__debug = False + """Debug switch + """ + + self.verify_ssl = True + """SSL/TLS verification + Set this to false to skip verifying SSL certificate when calling API + from https server. + """ + self.ssl_ca_cert = ssl_ca_cert + """Set this to customize the certificate file to verify the peer. + """ + self.cert_file = None + """client certificate file + """ + self.key_file = None + """client key file + """ + self.assert_hostname = None + """Set this to True/False to enable/disable SSL hostname verification. + """ + self.tls_server_name = None + """SSL/TLS Server Name Indication (SNI) + Set this to the SNI value expected by the server. + """ + + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + """urllib3 connection pool's maximum number of connections saved + per pool. urllib3 uses 1 connection as default value, but this is + not the best value when you are making a lot of possibly parallel + requests to the same host, which is often the case here. + cpu_count * 5 is used as default value to increase performance. + """ + + self.proxy: Optional[str] = None + """Proxy URL + """ + self.proxy_headers = None + """Proxy headers + """ + self.safe_chars_for_path_param = '' + """Safe chars for path_param + """ + self.retries = retries + """Adding retries to override urllib3 default value 3 + """ + # Enable client side validation + self.client_side_validation = True + + self.socket_options = None + """Options to pass down to the underlying urllib3 socket + """ + + self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z" + """datetime format + """ + + self.date_format = "%Y-%m-%d" + """date format + """ + + def __deepcopy__(self, memo): + cls = self.__class__ + result = cls.__new__(cls) + memo[id(self)] = result + for k, v in self.__dict__.items(): + if k not in ('logger', 'logger_file_handler'): + setattr(result, k, copy.deepcopy(v, memo)) + # shallow copy of loggers + result.logger = copy.copy(self.logger) + # use setters to configure loggers + result.logger_file = self.logger_file + result.debug = self.debug + return result + + def __setattr__(self, name, value): + object.__setattr__(self, name, value) + + @classmethod + def set_default(cls, default): + """Set default instance of configuration. + + It stores default configuration, which can be + returned by get_default_copy method. + + :param default: object of Configuration + """ + cls._default = default + + @classmethod + def get_default_copy(cls): + """Deprecated. Please use `get_default` instead. + + Deprecated. Please use `get_default` instead. + + :return: The configuration object. + """ + return cls.get_default() + + @classmethod + def get_default(cls): + """Return the default configuration. + + This method returns newly created, based on default constructor, + object of Configuration class or returns a copy of default + configuration. + + :return: The configuration object. + """ + if cls._default is None: + cls._default = Configuration() + return cls._default + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in self.logger.items(): + logger.addHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in self.logger.items(): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in self.logger.items(): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier, alias=None): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :param alias: The alternative identifier of apiKey. + :return: The token for api key authentication. + """ + if self.refresh_api_key_hook is not None: + self.refresh_api_key_hook(self) + key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + username = "" + if self.username is not None: + username = self.username + password = "" + if self.password is not None: + password = self.password + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + auth = {} + return auth + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 1.0\n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self): + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "", + 'description': "No description provided", + } + ] + + def get_host_from_settings(self, index, variables=None, servers=None): + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :param servers: an array of host settings or None + :return: URL based on host settings + """ + if index is None: + return self._base_path + + variables = {} if variables is None else variables + servers = self.get_host_settings() if servers is None else servers + + try: + server = servers[index] + except IndexError: + raise ValueError( + "Invalid index {0} when selecting the host settings. " + "Must be less than {1}".format(index, len(servers))) + + url = server['url'] + + # go through variables and replace placeholders + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) + + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: + raise ValueError( + "The variable `{0}` in the host URL has invalid value " + "{1}. Must be {2}.".format( + variable_name, variables[variable_name], + variable['enum_values'])) + + url = url.replace("{" + variable_name + "}", used_value) + + return url + + @property + def host(self): + """Return generated host.""" + return self.get_host_from_settings(self.server_index, variables=self.server_variables) + + @host.setter + def host(self, value): + """Fix base path.""" + self._base_path = value + self.server_index = None diff --git a/object_detector/openapi_client/exceptions.py b/object_detector/openapi_client/exceptions.py new file mode 100644 index 0000000..352f881 --- /dev/null +++ b/object_detector/openapi_client/exceptions.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from typing import Any, Optional +from typing_extensions import Self + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None) -> None: + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiAttributeError(OpenApiException, AttributeError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Raised when an attribute reference or assignment fails. + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiAttributeError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__( + self, + status=None, + reason=None, + http_resp=None, + *, + body: Optional[str] = None, + data: Optional[Any] = None, + ) -> None: + self.status = status + self.reason = reason + self.body = body + self.data = data + self.headers = None + + if http_resp: + if self.status is None: + self.status = http_resp.status + if self.reason is None: + self.reason = http_resp.reason + if self.body is None: + try: + self.body = http_resp.data.decode('utf-8') + except Exception: + pass + self.headers = http_resp.getheaders() + + @classmethod + def from_response( + cls, + *, + http_resp, + body: Optional[str], + data: Optional[Any], + ) -> Self: + if http_resp.status == 400: + raise BadRequestException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 401: + raise UnauthorizedException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 403: + raise ForbiddenException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 404: + raise NotFoundException(http_resp=http_resp, body=body, data=data) + + if 500 <= http_resp.status <= 599: + raise ServiceException(http_resp=http_resp, body=body, data=data) + raise ApiException(http_resp=http_resp, body=body, data=data) + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.data or self.body: + error_message += "HTTP response body: {0}\n".format(self.data or self.body) + + return error_message + + +class BadRequestException(ApiException): + pass + + +class NotFoundException(ApiException): + pass + + +class UnauthorizedException(ApiException): + pass + + +class ForbiddenException(ApiException): + pass + + +class ServiceException(ApiException): + pass + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, int): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/object_detector/openapi_client/models/__init__.py b/object_detector/openapi_client/models/__init__.py new file mode 100644 index 0000000..45b1542 --- /dev/null +++ b/object_detector/openapi_client/models/__init__.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +# flake8: noqa +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +# import models into model package +from openapi_client.models.camera import Camera +from openapi_client.models.detection import Detection +from openapi_client.models.detection_bounding_box_inner import DetectionBoundingBoxInner +from openapi_client.models.get_cameras200_response import GetCameras200Response +from openapi_client.models.get_cameras_default_response import GetCamerasDefaultResponse +from openapi_client.models.get_detections200_response import GetDetections200Response +from openapi_client.models.get_videos200_response import GetVideos200Response +from openapi_client.models.vec2 import Vec2 +from openapi_client.models.video import Video diff --git a/object_detector/openapi_client/models/camera.py b/object_detector/openapi_client/models/camera.py new file mode 100644 index 0000000..d1a2973 --- /dev/null +++ b/object_detector/openapi_client/models/camera.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Camera(BaseModel): + """ + Camera + """ # noqa: E501 + created_at: Optional[datetime] = None + deleted_at: Optional[datetime] = None + id: Optional[StrictStr] = None + last_seen: Optional[datetime] = None + name: Optional[StrictStr] = None + referenced_by_detection_camera_id_objects: Optional[List[Detection]] = None + referenced_by_video_camera_id_objects: Optional[List[Video]] = None + stream_url: Optional[StrictStr] = None + updated_at: Optional[datetime] = None + __properties: ClassVar[List[str]] = ["created_at", "deleted_at", "id", "last_seen", "name", "referenced_by_detection_camera_id_objects", "referenced_by_video_camera_id_objects", "stream_url", "updated_at"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Camera from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in referenced_by_detection_camera_id_objects (list) + _items = [] + if self.referenced_by_detection_camera_id_objects: + for _item in self.referenced_by_detection_camera_id_objects: + if _item: + _items.append(_item.to_dict()) + _dict['referenced_by_detection_camera_id_objects'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in referenced_by_video_camera_id_objects (list) + _items = [] + if self.referenced_by_video_camera_id_objects: + for _item in self.referenced_by_video_camera_id_objects: + if _item: + _items.append(_item.to_dict()) + _dict['referenced_by_video_camera_id_objects'] = _items + # set to None if deleted_at (nullable) is None + # and model_fields_set contains the field + if self.deleted_at is None and "deleted_at" in self.model_fields_set: + _dict['deleted_at'] = None + + # set to None if last_seen (nullable) is None + # and model_fields_set contains the field + if self.last_seen is None and "last_seen" in self.model_fields_set: + _dict['last_seen'] = None + + # set to None if referenced_by_detection_camera_id_objects (nullable) is None + # and model_fields_set contains the field + if self.referenced_by_detection_camera_id_objects is None and "referenced_by_detection_camera_id_objects" in self.model_fields_set: + _dict['referenced_by_detection_camera_id_objects'] = None + + # set to None if referenced_by_video_camera_id_objects (nullable) is None + # and model_fields_set contains the field + if self.referenced_by_video_camera_id_objects is None and "referenced_by_video_camera_id_objects" in self.model_fields_set: + _dict['referenced_by_video_camera_id_objects'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Camera from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "created_at": obj.get("created_at"), + "deleted_at": obj.get("deleted_at"), + "id": obj.get("id"), + "last_seen": obj.get("last_seen"), + "name": obj.get("name"), + "referenced_by_detection_camera_id_objects": [Detection.from_dict(_item) for _item in obj["referenced_by_detection_camera_id_objects"]] if obj.get("referenced_by_detection_camera_id_objects") is not None else None, + "referenced_by_video_camera_id_objects": [Video.from_dict(_item) for _item in obj["referenced_by_video_camera_id_objects"]] if obj.get("referenced_by_video_camera_id_objects") is not None else None, + "stream_url": obj.get("stream_url"), + "updated_at": obj.get("updated_at") + }) + return _obj + +from openapi_client.models.detection import Detection +from openapi_client.models.video import Video +# TODO: Rewrite to not use raise_errors +Camera.model_rebuild(raise_errors=False) + diff --git a/object_detector/openapi_client/models/detection.py b/object_detector/openapi_client/models/detection.py new file mode 100644 index 0000000..0a2d214 --- /dev/null +++ b/object_detector/openapi_client/models/detection.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from openapi_client.models.detection_bounding_box_inner import DetectionBoundingBoxInner +from typing import Optional, Set +from typing_extensions import Self + +class Detection(BaseModel): + """ + Detection + """ # noqa: E501 + bounding_box: Optional[List[DetectionBoundingBoxInner]] = None + camera_id: Optional[StrictStr] = None + camera_id_object: Optional[Camera] = None + centroid: Optional[DetectionBoundingBoxInner] = None + class_id: Optional[StrictInt] = None + class_name: Optional[StrictStr] = None + created_at: Optional[datetime] = None + deleted_at: Optional[datetime] = None + id: Optional[StrictStr] = None + score: Optional[Union[StrictFloat, StrictInt]] = None + seen_at: Optional[datetime] = None + updated_at: Optional[datetime] = None + video_id: Optional[StrictStr] = None + video_id_object: Optional[Video] = None + __properties: ClassVar[List[str]] = ["bounding_box", "camera_id", "camera_id_object", "centroid", "class_id", "class_name", "created_at", "deleted_at", "id", "score", "seen_at", "updated_at", "video_id", "video_id_object"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Detection from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in bounding_box (list) + _items = [] + if self.bounding_box: + for _item in self.bounding_box: + if _item: + _items.append(_item.to_dict()) + _dict['bounding_box'] = _items + # override the default output from pydantic by calling `to_dict()` of camera_id_object + if self.camera_id_object: + _dict['camera_id_object'] = self.camera_id_object.to_dict() + # override the default output from pydantic by calling `to_dict()` of centroid + if self.centroid: + _dict['centroid'] = self.centroid.to_dict() + # override the default output from pydantic by calling `to_dict()` of video_id_object + if self.video_id_object: + _dict['video_id_object'] = self.video_id_object.to_dict() + # set to None if bounding_box (nullable) is None + # and model_fields_set contains the field + if self.bounding_box is None and "bounding_box" in self.model_fields_set: + _dict['bounding_box'] = None + + # set to None if deleted_at (nullable) is None + # and model_fields_set contains the field + if self.deleted_at is None and "deleted_at" in self.model_fields_set: + _dict['deleted_at'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Detection from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bounding_box": [DetectionBoundingBoxInner.from_dict(_item) for _item in obj["bounding_box"]] if obj.get("bounding_box") is not None else None, + "camera_id": obj.get("camera_id"), + "camera_id_object": Camera.from_dict(obj["camera_id_object"]) if obj.get("camera_id_object") is not None else None, + "centroid": DetectionBoundingBoxInner.from_dict(obj["centroid"]) if obj.get("centroid") is not None else None, + "class_id": obj.get("class_id"), + "class_name": obj.get("class_name"), + "created_at": obj.get("created_at"), + "deleted_at": obj.get("deleted_at"), + "id": obj.get("id"), + "score": obj.get("score"), + "seen_at": obj.get("seen_at"), + "updated_at": obj.get("updated_at"), + "video_id": obj.get("video_id"), + "video_id_object": Video.from_dict(obj["video_id_object"]) if obj.get("video_id_object") is not None else None + }) + return _obj + +from openapi_client.models.camera import Camera +from openapi_client.models.video import Video +# TODO: Rewrite to not use raise_errors +Detection.model_rebuild(raise_errors=False) + diff --git a/object_detector/openapi_client/models/detection_bounding_box_inner.py b/object_detector/openapi_client/models/detection_bounding_box_inner.py new file mode 100644 index 0000000..cbe07cb --- /dev/null +++ b/object_detector/openapi_client/models/detection_bounding_box_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class DetectionBoundingBoxInner(BaseModel): + """ + DetectionBoundingBoxInner + """ # noqa: E501 + x: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="X") + y: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="Y") + __properties: ClassVar[List[str]] = ["X", "Y"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DetectionBoundingBoxInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DetectionBoundingBoxInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "X": obj.get("X"), + "Y": obj.get("Y") + }) + return _obj + + diff --git a/object_detector/openapi_client/models/get_cameras200_response.py b/object_detector/openapi_client/models/get_cameras200_response.py new file mode 100644 index 0000000..0c4ffd0 --- /dev/null +++ b/object_detector/openapi_client/models/get_cameras200_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.camera import Camera +from typing import Optional, Set +from typing_extensions import Self + +class GetCameras200Response(BaseModel): + """ + GetCameras200Response + """ # noqa: E501 + error: Optional[StrictStr] = None + objects: Optional[List[Camera]] = None + status: StrictInt + success: StrictBool + __properties: ClassVar[List[str]] = ["error", "objects", "status", "success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCameras200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in objects (list) + _items = [] + if self.objects: + for _item in self.objects: + if _item: + _items.append(_item.to_dict()) + _dict['objects'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCameras200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "objects": [Camera.from_dict(_item) for _item in obj["objects"]] if obj.get("objects") is not None else None, + "status": obj.get("status"), + "success": obj.get("success") + }) + return _obj + + diff --git a/object_detector/openapi_client/models/get_cameras_default_response.py b/object_detector/openapi_client/models/get_cameras_default_response.py new file mode 100644 index 0000000..c4bfceb --- /dev/null +++ b/object_detector/openapi_client/models/get_cameras_default_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetCamerasDefaultResponse(BaseModel): + """ + GetCamerasDefaultResponse + """ # noqa: E501 + error: Optional[StrictStr] = None + status: StrictInt + success: StrictBool + __properties: ClassVar[List[str]] = ["error", "status", "success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCamerasDefaultResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCamerasDefaultResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "status": obj.get("status"), + "success": obj.get("success") + }) + return _obj + + diff --git a/object_detector/openapi_client/models/get_detections200_response.py b/object_detector/openapi_client/models/get_detections200_response.py new file mode 100644 index 0000000..30c9928 --- /dev/null +++ b/object_detector/openapi_client/models/get_detections200_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.detection import Detection +from typing import Optional, Set +from typing_extensions import Self + +class GetDetections200Response(BaseModel): + """ + GetDetections200Response + """ # noqa: E501 + error: Optional[StrictStr] = None + objects: Optional[List[Detection]] = None + status: StrictInt + success: StrictBool + __properties: ClassVar[List[str]] = ["error", "objects", "status", "success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetDetections200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in objects (list) + _items = [] + if self.objects: + for _item in self.objects: + if _item: + _items.append(_item.to_dict()) + _dict['objects'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetDetections200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "objects": [Detection.from_dict(_item) for _item in obj["objects"]] if obj.get("objects") is not None else None, + "status": obj.get("status"), + "success": obj.get("success") + }) + return _obj + + diff --git a/object_detector/openapi_client/models/get_videos200_response.py b/object_detector/openapi_client/models/get_videos200_response.py new file mode 100644 index 0000000..7f9ca1b --- /dev/null +++ b/object_detector/openapi_client/models/get_videos200_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.video import Video +from typing import Optional, Set +from typing_extensions import Self + +class GetVideos200Response(BaseModel): + """ + GetVideos200Response + """ # noqa: E501 + error: Optional[StrictStr] = None + objects: Optional[List[Video]] = None + status: StrictInt + success: StrictBool + __properties: ClassVar[List[str]] = ["error", "objects", "status", "success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetVideos200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in objects (list) + _items = [] + if self.objects: + for _item in self.objects: + if _item: + _items.append(_item.to_dict()) + _dict['objects'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetVideos200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": obj.get("error"), + "objects": [Video.from_dict(_item) for _item in obj["objects"]] if obj.get("objects") is not None else None, + "status": obj.get("status"), + "success": obj.get("success") + }) + return _obj + + diff --git a/object_detector/openapi_client/models/vec2.py b/object_detector/openapi_client/models/vec2.py new file mode 100644 index 0000000..8d57fb2 --- /dev/null +++ b/object_detector/openapi_client/models/vec2.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class Vec2(BaseModel): + """ + Vec2 + """ # noqa: E501 + x: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="X") + y: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="Y") + __properties: ClassVar[List[str]] = ["X", "Y"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Vec2 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Vec2 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "X": obj.get("X"), + "Y": obj.get("Y") + }) + return _obj + + diff --git a/object_detector/openapi_client/models/video.py b/object_detector/openapi_client/models/video.py new file mode 100644 index 0000000..2f607c3 --- /dev/null +++ b/object_detector/openapi_client/models/video.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class Video(BaseModel): + """ + Video + """ # noqa: E501 + camera_id: Optional[StrictStr] = None + camera_id_object: Optional[Camera] = None + created_at: Optional[datetime] = None + deleted_at: Optional[datetime] = None + duration: Optional[StrictInt] = None + ended_at: Optional[datetime] = None + file_name: Optional[StrictStr] = None + file_size: Optional[Union[StrictFloat, StrictInt]] = None + id: Optional[StrictStr] = None + referenced_by_detection_video_id_objects: Optional[List[Detection]] = None + started_at: Optional[datetime] = None + status: Optional[StrictStr] = None + thumbnail_name: Optional[StrictStr] = None + updated_at: Optional[datetime] = None + __properties: ClassVar[List[str]] = ["camera_id", "camera_id_object", "created_at", "deleted_at", "duration", "ended_at", "file_name", "file_size", "id", "referenced_by_detection_video_id_objects", "started_at", "status", "thumbnail_name", "updated_at"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Video from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of camera_id_object + if self.camera_id_object: + _dict['camera_id_object'] = self.camera_id_object.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in referenced_by_detection_video_id_objects (list) + _items = [] + if self.referenced_by_detection_video_id_objects: + for _item in self.referenced_by_detection_video_id_objects: + if _item: + _items.append(_item.to_dict()) + _dict['referenced_by_detection_video_id_objects'] = _items + # set to None if deleted_at (nullable) is None + # and model_fields_set contains the field + if self.deleted_at is None and "deleted_at" in self.model_fields_set: + _dict['deleted_at'] = None + + # set to None if duration (nullable) is None + # and model_fields_set contains the field + if self.duration is None and "duration" in self.model_fields_set: + _dict['duration'] = None + + # set to None if ended_at (nullable) is None + # and model_fields_set contains the field + if self.ended_at is None and "ended_at" in self.model_fields_set: + _dict['ended_at'] = None + + # set to None if file_size (nullable) is None + # and model_fields_set contains the field + if self.file_size is None and "file_size" in self.model_fields_set: + _dict['file_size'] = None + + # set to None if referenced_by_detection_video_id_objects (nullable) is None + # and model_fields_set contains the field + if self.referenced_by_detection_video_id_objects is None and "referenced_by_detection_video_id_objects" in self.model_fields_set: + _dict['referenced_by_detection_video_id_objects'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Video from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "camera_id": obj.get("camera_id"), + "camera_id_object": Camera.from_dict(obj["camera_id_object"]) if obj.get("camera_id_object") is not None else None, + "created_at": obj.get("created_at"), + "deleted_at": obj.get("deleted_at"), + "duration": obj.get("duration"), + "ended_at": obj.get("ended_at"), + "file_name": obj.get("file_name"), + "file_size": obj.get("file_size"), + "id": obj.get("id"), + "referenced_by_detection_video_id_objects": [Detection.from_dict(_item) for _item in obj["referenced_by_detection_video_id_objects"]] if obj.get("referenced_by_detection_video_id_objects") is not None else None, + "started_at": obj.get("started_at"), + "status": obj.get("status"), + "thumbnail_name": obj.get("thumbnail_name"), + "updated_at": obj.get("updated_at") + }) + return _obj + +from openapi_client.models.camera import Camera +from openapi_client.models.detection import Detection +# TODO: Rewrite to not use raise_errors +Video.model_rebuild(raise_errors=False) + diff --git a/object_detector/openapi_client/py.typed b/object_detector/openapi_client/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/object_detector/openapi_client/rest.py b/object_detector/openapi_client/rest.py new file mode 100644 index 0000000..b9751be --- /dev/null +++ b/object_detector/openapi_client/rest.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import json +import re +import ssl + +import urllib3 + +from openapi_client.exceptions import ApiException, ApiValueError + +SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} +RESTResponseType = urllib3.HTTPResponse + + +def is_socks_proxy_url(url): + if url is None: + return False + split_section = url.split("://") + if len(split_section) < 2: + return False + else: + return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES + + +class RESTResponse(io.IOBase): + + def __init__(self, resp) -> None: + self.response = resp + self.status = resp.status + self.reason = resp.reason + self.data = None + + def read(self): + if self.data is None: + self.data = self.response.data + return self.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.response.headers + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.response.headers.get(name, default) + + +class RESTClientObject: + + def __init__(self, configuration) -> None: + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + pool_args = { + "cert_reqs": cert_reqs, + "ca_certs": configuration.ssl_ca_cert, + "cert_file": configuration.cert_file, + "key_file": configuration.key_file, + } + if configuration.assert_hostname is not None: + pool_args['assert_hostname'] = ( + configuration.assert_hostname + ) + + if configuration.retries is not None: + pool_args['retries'] = configuration.retries + + if configuration.tls_server_name: + pool_args['server_hostname'] = configuration.tls_server_name + + + if configuration.socket_options is not None: + pool_args['socket_options'] = configuration.socket_options + + if configuration.connection_pool_maxsize is not None: + pool_args['maxsize'] = configuration.connection_pool_maxsize + + # https pool manager + self.pool_manager: urllib3.PoolManager + + if configuration.proxy: + if is_socks_proxy_url(configuration.proxy): + from urllib3.contrib.socks import SOCKSProxyManager + pool_args["proxy_url"] = configuration.proxy + pool_args["headers"] = configuration.proxy_headers + self.pool_manager = SOCKSProxyManager(**pool_args) + else: + pool_args["proxy_url"] = configuration.proxy + pool_args["proxy_headers"] = configuration.proxy_headers + self.pool_manager = urllib3.ProxyManager(**pool_args) + else: + self.pool_manager = urllib3.PoolManager(**pool_args) + + def request( + self, + method, + url, + headers=None, + body=None, + post_params=None, + _request_timeout=None + ): + """Perform requests. + + :param method: http request method + :param url: http request url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in [ + 'GET', + 'HEAD', + 'DELETE', + 'POST', + 'PUT', + 'PATCH', + 'OPTIONS' + ] + + if post_params and body: + raise ApiValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, float)): + timeout = urllib3.Timeout(total=_request_timeout) + elif ( + isinstance(_request_timeout, tuple) + and len(_request_timeout) == 2 + ): + timeout = urllib3.Timeout( + connect=_request_timeout[0], + read=_request_timeout[1] + ) + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + + # no content type provided or payload is json + content_type = headers.get('Content-Type') + if ( + not content_type + or re.search('json', content_type, re.IGNORECASE) + ): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, + url, + body=request_body, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif content_type == 'application/x-www-form-urlencoded': + r = self.pool_manager.request( + method, + url, + fields=post_params, + encode_multipart=False, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif content_type == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + # Ensures that dict objects are serialized + post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] + r = self.pool_manager.request( + method, + url, + fields=post_params, + encode_multipart=True, + timeout=timeout, + headers=headers, + preload_content=False + ) + # Pass a `string` parameter directly in the body to support + # other content types than JSON when `body` argument is + # provided in serialized form. + elif isinstance(body, str) or isinstance(body, bytes): + r = self.pool_manager.request( + method, + url, + body=body, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif headers['Content-Type'] == 'text/plain' and isinstance(body, bool): + request_body = "true" if body else "false" + r = self.pool_manager.request( + method, + url, + body=request_body, + preload_content=False, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request( + method, + url, + fields={}, + timeout=timeout, + headers=headers, + preload_content=False + ) + except urllib3.exceptions.SSLError as e: + msg = "\n".join([type(e).__name__, str(e)]) + raise ApiException(status=0, reason=msg) + + return RESTResponse(r) diff --git a/object_detector/pyproject.toml b/object_detector/pyproject.toml new file mode 100644 index 0000000..2a745f7 --- /dev/null +++ b/object_detector/pyproject.toml @@ -0,0 +1,71 @@ +[tool.poetry] +name = "openapi_client" +version = "1.0.0" +description = "Djangolang" +authors = ["OpenAPI Generator Community "] +license = "NoLicense" +readme = "README.md" +repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" +keywords = ["OpenAPI", "OpenAPI-Generator", "Djangolang"] +include = ["openapi_client/py.typed"] + +[tool.poetry.dependencies] +python = "^3.7" + +urllib3 = ">= 1.25.3" +python-dateutil = ">=2.8.2" +pydantic = ">=2" +typing-extensions = ">=4.7.1" + +[tool.poetry.dev-dependencies] +pytest = ">=7.2.1" +tox = ">=3.9.0" +flake8 = ">=4.0.0" +types-python-dateutil = ">=2.8.19.14" +mypy = "1.4.1" + + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[tool.pylint.'MESSAGES CONTROL'] +extension-pkg-whitelist = "pydantic" + +[tool.mypy] +files = [ + "openapi_client", + #"test", # auto-generated tests + "tests", # hand-written tests +] +# TODO: enable "strict" once all these individual checks are passing +# strict = true + +# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options +warn_unused_configs = true +warn_redundant_casts = true +warn_unused_ignores = true + +## Getting these passing should be easy +strict_equality = true +strict_concatenate = true + +## Strongly recommend enabling this one as soon as you can +check_untyped_defs = true + +## These shouldn't be too much additional work, but may be tricky to +## get passing if you use a lot of untyped libraries +disallow_subclassing_any = true +disallow_untyped_decorators = true +disallow_any_generics = true + +### These next few are various gradations of forcing use of type annotations +#disallow_untyped_calls = true +#disallow_incomplete_defs = true +#disallow_untyped_defs = true +# +### This one isn't too hard to get passing, but return on investment is lower +#no_implicit_reexport = true +# +### This one can be tricky to get passing if you use a lot of untyped libraries +#warn_return_any = true diff --git a/object_detector/requirements.txt b/object_detector/requirements.txt new file mode 100644 index 0000000..cc85509 --- /dev/null +++ b/object_detector/requirements.txt @@ -0,0 +1,5 @@ +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.25.3, < 2.1.0 +pydantic >= 2 +typing-extensions >= 4.7.1 diff --git a/object_detector/setup.cfg b/object_detector/setup.cfg new file mode 100644 index 0000000..11433ee --- /dev/null +++ b/object_detector/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max-line-length=99 diff --git a/object_detector/setup.py b/object_detector/setup.py new file mode 100644 index 0000000..6b11c53 --- /dev/null +++ b/object_detector/setup.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from setuptools import setup, find_packages # noqa: H301 + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools +NAME = "openapi-client" +VERSION = "1.0.0" +PYTHON_REQUIRES = ">=3.7" +REQUIRES = [ + "urllib3 >= 1.25.3, < 2.1.0", + "python-dateutil", + "pydantic >= 2", + "typing-extensions >= 4.7.1", +] + +setup( + name=NAME, + version=VERSION, + description="Djangolang", + author="OpenAPI Generator community", + author_email="team@openapitools.org", + url="", + keywords=["OpenAPI", "OpenAPI-Generator", "Djangolang"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description_content_type='text/markdown', + long_description="""\ + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + """, # noqa: E501 + package_data={"openapi_client": ["py.typed"]}, +) diff --git a/object_detector/test-requirements.txt b/object_detector/test-requirements.txt new file mode 100644 index 0000000..8e6d8cb --- /dev/null +++ b/object_detector/test-requirements.txt @@ -0,0 +1,5 @@ +pytest~=7.1.3 +pytest-cov>=2.8.1 +pytest-randomly>=3.12.0 +mypy>=1.4.1 +types-python-dateutil>=2.8.19 diff --git a/object_detector/test/__init__.py b/object_detector/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/object_detector/test/test_camera.py b/object_detector/test/test_camera.py new file mode 100644 index 0000000..a7fd4ef --- /dev/null +++ b/object_detector/test/test_camera.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.camera import Camera + +class TestCamera(unittest.TestCase): + """Camera unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Camera: + """Test Camera + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Camera` + """ + model = Camera() + if include_optional: + return Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_detection_camera_id_objects = [ + openapi_client.models.detection.Detection( + bounding_box = [ + openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ) + ], + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_detection_camera_id_objects = [ + openapi_client.models.detection.Detection( + camera_id = '', + centroid = openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ), + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = openapi_client.models.video.Video( + camera_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = [ + + ], + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) + ], + referenced_by_video_camera_id_objects = [ + openapi_client.models.video.Video( + camera_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + centroid = , + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = , ) + ], + referenced_by_video_camera_id_objects = [ + openapi_client.models.video.Video( + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_detection_camera_id_objects = [ + openapi_client.models.detection.Detection( + bounding_box = [ + openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ) + ], + camera_id = '', + centroid = openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ), + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = openapi_client.models.video.Video( + camera_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = [ + openapi_client.models.detection.Detection( + camera_id = '', + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', ) + ], + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = , + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return Camera( + ) + """ + + def testCamera(self): + """Test Camera""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/test/test_camera_api.py b/object_detector/test/test_camera_api.py new file mode 100644 index 0000000..4b43ddf --- /dev/null +++ b/object_detector/test/test_camera_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.api.camera_api import CameraApi + + +class TestCameraApi(unittest.TestCase): + """CameraApi unit test stubs""" + + def setUp(self) -> None: + self.api = CameraApi() + + def tearDown(self) -> None: + pass + + def test_delete_camera(self) -> None: + """Test case for delete_camera + + """ + pass + + def test_get_camera(self) -> None: + """Test case for get_camera + + """ + pass + + def test_get_cameras(self) -> None: + """Test case for get_cameras + + """ + pass + + def test_patch_camera(self) -> None: + """Test case for patch_camera + + """ + pass + + def test_post_cameras(self) -> None: + """Test case for post_cameras + + """ + pass + + def test_put_camera(self) -> None: + """Test case for put_camera + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/test/test_detection.py b/object_detector/test/test_detection.py new file mode 100644 index 0000000..bbd12be --- /dev/null +++ b/object_detector/test/test_detection.py @@ -0,0 +1,225 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.detection import Detection + +class TestDetection(unittest.TestCase): + """Detection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Detection: + """Test Detection + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Detection` + """ + model = Detection() + if include_optional: + return Detection( + bounding_box = [ + openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ) + ], + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_detection_camera_id_objects = [ + openapi_client.models.detection.Detection( + bounding_box = [ + openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ) + ], + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_video_camera_id_objects = [ + openapi_client.models.video.Video( + camera_id = '', + camera_id_object = , + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = [ + openapi_client.models.detection.Detection( + camera_id = '', + centroid = openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ), + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = openapi_client.models.video.Video( + camera_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) + ], + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + centroid = , + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = , ) + ], + referenced_by_video_camera_id_objects = [ + + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + centroid = openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ), + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = openapi_client.models.video.Video( + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_detection_camera_id_objects = [ + openapi_client.models.detection.Detection( + bounding_box = [ + openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ) + ], + camera_id = '', + centroid = openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ), + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = openapi_client.models.video.Video( + camera_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = [ + openapi_client.models.detection.Detection( + camera_id = '', + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = , ) + ], + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) + ], + referenced_by_video_camera_id_objects = [ + + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = , + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return Detection( + ) + """ + + def testDetection(self): + """Test Detection""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/test/test_detection_api.py b/object_detector/test/test_detection_api.py new file mode 100644 index 0000000..4d91387 --- /dev/null +++ b/object_detector/test/test_detection_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.api.detection_api import DetectionApi + + +class TestDetectionApi(unittest.TestCase): + """DetectionApi unit test stubs""" + + def setUp(self) -> None: + self.api = DetectionApi() + + def tearDown(self) -> None: + pass + + def test_delete_detection(self) -> None: + """Test case for delete_detection + + """ + pass + + def test_get_detection(self) -> None: + """Test case for get_detection + + """ + pass + + def test_get_detections(self) -> None: + """Test case for get_detections + + """ + pass + + def test_patch_detection(self) -> None: + """Test case for patch_detection + + """ + pass + + def test_post_detections(self) -> None: + """Test case for post_detections + + """ + pass + + def test_put_detection(self) -> None: + """Test case for put_detection + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/test/test_detection_bounding_box_inner.py b/object_detector/test/test_detection_bounding_box_inner.py new file mode 100644 index 0000000..0786800 --- /dev/null +++ b/object_detector/test/test_detection_bounding_box_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.detection_bounding_box_inner import DetectionBoundingBoxInner + +class TestDetectionBoundingBoxInner(unittest.TestCase): + """DetectionBoundingBoxInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DetectionBoundingBoxInner: + """Test DetectionBoundingBoxInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DetectionBoundingBoxInner` + """ + model = DetectionBoundingBoxInner() + if include_optional: + return DetectionBoundingBoxInner( + x = 1.337, + y = 1.337 + ) + else: + return DetectionBoundingBoxInner( + ) + """ + + def testDetectionBoundingBoxInner(self): + """Test DetectionBoundingBoxInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/test/test_get_cameras200_response.py b/object_detector/test/test_get_cameras200_response.py new file mode 100644 index 0000000..6402fd9 --- /dev/null +++ b/object_detector/test/test_get_cameras200_response.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.get_cameras200_response import GetCameras200Response + +class TestGetCameras200Response(unittest.TestCase): + """GetCameras200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCameras200Response: + """Test GetCameras200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCameras200Response` + """ + model = GetCameras200Response() + if include_optional: + return GetCameras200Response( + error = '', + objects = [ + openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_detection_camera_id_objects = [ + openapi_client.models.detection.Detection( + bounding_box = [ + openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ) + ], + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_video_camera_id_objects = [ + openapi_client.models.video.Video( + camera_id = '', + camera_id_object = , + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = [ + openapi_client.models.detection.Detection( + camera_id = '', + camera_id_object = , + centroid = openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ), + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = openapi_client.models.video.Video( + camera_id = '', + camera_id_object = , + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = , + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) + ], + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + centroid = , + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = , ) + ], + referenced_by_video_camera_id_objects = [ + + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + status = 56, + success = True + ) + else: + return GetCameras200Response( + status = 56, + success = True, + ) + """ + + def testGetCameras200Response(self): + """Test GetCameras200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/test/test_get_cameras_default_response.py b/object_detector/test/test_get_cameras_default_response.py new file mode 100644 index 0000000..3f22701 --- /dev/null +++ b/object_detector/test/test_get_cameras_default_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.get_cameras_default_response import GetCamerasDefaultResponse + +class TestGetCamerasDefaultResponse(unittest.TestCase): + """GetCamerasDefaultResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCamerasDefaultResponse: + """Test GetCamerasDefaultResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCamerasDefaultResponse` + """ + model = GetCamerasDefaultResponse() + if include_optional: + return GetCamerasDefaultResponse( + error = '', + status = 56, + success = True + ) + else: + return GetCamerasDefaultResponse( + status = 56, + success = True, + ) + """ + + def testGetCamerasDefaultResponse(self): + """Test GetCamerasDefaultResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/test/test_get_detections200_response.py b/object_detector/test/test_get_detections200_response.py new file mode 100644 index 0000000..e79090c --- /dev/null +++ b/object_detector/test/test_get_detections200_response.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.get_detections200_response import GetDetections200Response + +class TestGetDetections200Response(unittest.TestCase): + """GetDetections200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetDetections200Response: + """Test GetDetections200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetDetections200Response` + """ + model = GetDetections200Response() + if include_optional: + return GetDetections200Response( + error = '', + objects = [ + openapi_client.models.detection.Detection( + bounding_box = [ + openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ) + ], + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_detection_camera_id_objects = [ + openapi_client.models.detection.Detection( + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_video_camera_id_objects = [ + openapi_client.models.video.Video( + camera_id = '', + camera_id_object = , + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = [ + + ], + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + centroid = openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ), + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = openapi_client.models.video.Video( + camera_id = '', + camera_id_object = , + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = , + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) + ], + referenced_by_video_camera_id_objects = [ + + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + centroid = , + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = , ) + ], + status = 56, + success = True + ) + else: + return GetDetections200Response( + status = 56, + success = True, + ) + """ + + def testGetDetections200Response(self): + """Test GetDetections200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/test/test_get_videos200_response.py b/object_detector/test/test_get_videos200_response.py new file mode 100644 index 0000000..a4e9695 --- /dev/null +++ b/object_detector/test/test_get_videos200_response.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.get_videos200_response import GetVideos200Response + +class TestGetVideos200Response(unittest.TestCase): + """GetVideos200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetVideos200Response: + """Test GetVideos200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetVideos200Response` + """ + model = GetVideos200Response() + if include_optional: + return GetVideos200Response( + error = '', + objects = [ + openapi_client.models.video.Video( + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_detection_camera_id_objects = [ + openapi_client.models.detection.Detection( + bounding_box = [ + openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ) + ], + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_video_camera_id_objects = [ + openapi_client.models.video.Video( + camera_id = '', + camera_id_object = , + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = [ + openapi_client.models.detection.Detection( + camera_id = '', + camera_id_object = , + centroid = openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ), + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = , ) + ], + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + centroid = , + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = , ) + ], + referenced_by_video_camera_id_objects = [ + + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = , + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + status = 56, + success = True + ) + else: + return GetVideos200Response( + status = 56, + success = True, + ) + """ + + def testGetVideos200Response(self): + """Test GetVideos200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/test/test_vec2.py b/object_detector/test/test_vec2.py new file mode 100644 index 0000000..1ea661a --- /dev/null +++ b/object_detector/test/test_vec2.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.vec2 import Vec2 + +class TestVec2(unittest.TestCase): + """Vec2 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Vec2: + """Test Vec2 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Vec2` + """ + model = Vec2() + if include_optional: + return Vec2( + x = 1.337, + y = 1.337 + ) + else: + return Vec2( + ) + """ + + def testVec2(self): + """Test Vec2""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/test/test_video.py b/object_detector/test/test_video.py new file mode 100644 index 0000000..51fc038 --- /dev/null +++ b/object_detector/test/test_video.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.video import Video + +class TestVideo(unittest.TestCase): + """Video unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Video: + """Test Video + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Video` + """ + model = Video() + if include_optional: + return Video( + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_detection_camera_id_objects = [ + openapi_client.models.detection.Detection( + bounding_box = [ + openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ) + ], + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_video_camera_id_objects = [ + openapi_client.models.video.Video( + camera_id = '', + camera_id_object = , + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = [ + openapi_client.models.detection.Detection( + camera_id = '', + centroid = openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ), + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = openapi_client.models.video.Video( + camera_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) + ], + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + centroid = , + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = , ) + ], + referenced_by_video_camera_id_objects = [ + + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = [ + openapi_client.models.detection.Detection( + bounding_box = [ + openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ) + ], + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + referenced_by_video_camera_id_objects = [ + openapi_client.models.video.Video( + camera_id = '', + camera_id_object = openapi_client.models.camera.Camera( + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + last_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + name = '', + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = [ + openapi_client.models.detection.Detection( + camera_id = '', + camera_id_object = , + centroid = openapi_client.models.detection_bounding_box_inner.Detection_bounding_box_inner( + x = 1.337, + y = 1.337, ), + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = openapi_client.models.video.Video( + camera_id = '', + camera_id_object = , + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + duration = 56, + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + file_name = '', + file_size = 1.337, + id = '', + referenced_by_detection_video_id_objects = , + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) + ], + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + stream_url = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + centroid = , + class_id = 56, + class_name = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + id = '', + score = 1.337, + seen_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + video_id = '', + video_id_object = , ) + ], + started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', + thumbnail_name = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return Video( + ) + """ + + def testVideo(self): + """Test Video""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/test/test_video_api.py b/object_detector/test/test_video_api.py new file mode 100644 index 0000000..7e870a8 --- /dev/null +++ b/object_detector/test/test_video_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Djangolang + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.api.video_api import VideoApi + + +class TestVideoApi(unittest.TestCase): + """VideoApi unit test stubs""" + + def setUp(self) -> None: + self.api = VideoApi() + + def tearDown(self) -> None: + pass + + def test_delete_video(self) -> None: + """Test case for delete_video + + """ + pass + + def test_get_video(self) -> None: + """Test case for get_video + + """ + pass + + def test_get_videos(self) -> None: + """Test case for get_videos + + """ + pass + + def test_patch_video(self) -> None: + """Test case for patch_video + + """ + pass + + def test_post_videos(self) -> None: + """Test case for post_videos + + """ + pass + + def test_put_video(self) -> None: + """Test case for put_video + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/object_detector/tox.ini b/object_detector/tox.ini new file mode 100644 index 0000000..1a9028b --- /dev/null +++ b/object_detector/tox.ini @@ -0,0 +1,9 @@ +[tox] +envlist = py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + pytest --cov=openapi_client diff --git a/openapitools.json b/openapitools.json new file mode 100644 index 0000000..f227cf2 --- /dev/null +++ b/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.7.0" + } +} diff --git a/pkg/api/0_meta.go b/pkg/api/0_meta.go index 89afd06..1ad97bd 100755 --- a/pkg/api/0_meta.go +++ b/pkg/api/0_meta.go @@ -10,6 +10,7 @@ import ( "github.com/go-chi/chi/v5" "github.com/gomodule/redigo/redis" "github.com/initialed85/djangolang/pkg/helpers" + "github.com/initialed85/djangolang/pkg/introspect" "github.com/initialed85/djangolang/pkg/openapi" "github.com/initialed85/djangolang/pkg/server" "github.com/initialed85/djangolang/pkg/types" @@ -17,16 +18,21 @@ import ( "gopkg.in/yaml.v2" ) -type rootTableNameContextKey struct{} - -var _rootTableNameContextKey = rootTableNameContextKey{} - var mu = new(sync.Mutex) var newFromItemFnByTableName = make(map[string]func(map[string]any) (any, error)) var getRouterFnByPattern = make(map[string]server.GetRouterFn) var allObjects = make([]any, 0) var openApi *types.OpenAPI +func isRequired(columns map[string]*introspect.Column, columnName string) bool { + column := columns[columnName] + if column == nil { + return false + } + + return column.NotNull && !column.HasDefault +} + func register( tableName string, object any, diff --git a/pkg/api/bin/api b/pkg/api/bin/api index f30e0fd..561967a 100755 Binary files a/pkg/api/bin/api and b/pkg/api/bin/api differ diff --git a/pkg/api/camera.go b/pkg/api/camera.go index 8e644e7..005d39c 100755 --- a/pkg/api/camera.go +++ b/pkg/api/camera.go @@ -2,7 +2,9 @@ package api import ( "context" + "database/sql" "encoding/json" + "errors" "fmt" "io" "log" @@ -23,12 +25,10 @@ import ( "github.com/initialed85/djangolang/pkg/server" "github.com/initialed85/djangolang/pkg/stream" "github.com/initialed85/djangolang/pkg/types" - _pgtype "github.com/jackc/pgtype" "github.com/jackc/pgx/v5/pgtype" "github.com/jmoiron/sqlx" "github.com/lib/pq" "github.com/lib/pq/hstore" - "github.com/paulmach/orb/geojson" "golang.org/x/exp/maps" ) @@ -87,30 +87,40 @@ var CameraTableColumnsWithTypeCasts = []string{ } var CameraTableColumnLookup = map[string]*introspect.Column{ - CameraTableIDColumn: new(introspect.Column), - CameraTableCreatedAtColumn: new(introspect.Column), - CameraTableUpdatedAtColumn: new(introspect.Column), - CameraTableDeletedAtColumn: new(introspect.Column), - CameraTableNameColumn: new(introspect.Column), - CameraTableStreamURLColumn: new(introspect.Column), - CameraTableLastSeenColumn: new(introspect.Column), + CameraTableIDColumn: {Name: CameraTableIDColumn, NotNull: true, HasDefault: true}, + CameraTableCreatedAtColumn: {Name: CameraTableCreatedAtColumn, NotNull: true, HasDefault: true}, + CameraTableUpdatedAtColumn: {Name: CameraTableUpdatedAtColumn, NotNull: true, HasDefault: true}, + CameraTableDeletedAtColumn: {Name: CameraTableDeletedAtColumn, NotNull: false, HasDefault: false}, + CameraTableNameColumn: {Name: CameraTableNameColumn, NotNull: true, HasDefault: false}, + CameraTableStreamURLColumn: {Name: CameraTableStreamURLColumn, NotNull: true, HasDefault: false}, + CameraTableLastSeenColumn: {Name: CameraTableLastSeenColumn, NotNull: false, HasDefault: false}, } var ( CameraTablePrimaryKeyColumn = CameraTableIDColumn ) - -var ( - _ = time.Time{} - _ = uuid.UUID{} - _ = pq.StringArray{} - _ = hstore.Hstore{} - _ = geojson.Point{} - _ = pgtype.Point{} - _ = _pgtype.Point{} - _ = postgis.PointZ{} - _ = netip.Prefix{} -) +var _ = []any{ + time.Time{}, + time.Duration(0), + nil, + pq.StringArray{}, + string(""), + pq.Int64Array{}, + int64(0), + pq.Float64Array{}, + float64(0), + pq.BoolArray{}, + bool(false), + map[string][]int{}, + uuid.UUID{}, + hstore.Hstore{}, + pgtype.Point{}, + pgtype.Polygon{}, + postgis.PointZ{}, + netip.Prefix{}, + []byte{}, + errors.Is, +} func (m *Camera) GetPrimaryKeyColumn() string { return CameraTablePrimaryKeyColumn @@ -298,6 +308,9 @@ func (m *Camera) Reload( } } + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + t, err := SelectCamera( ctx, tx, @@ -326,11 +339,12 @@ func (m *Camera) Insert( tx *sqlx.Tx, setPrimaryKey bool, setZeroValues bool, + forceSetValuesForFields ...string, ) error { columns := make([]string, 0) values := make([]any, 0) - if setPrimaryKey && (setZeroValues || !types.IsZeroUUID(m.ID)) { + if setPrimaryKey && (setZeroValues || !types.IsZeroUUID(m.ID)) || slices.Contains(forceSetValuesForFields, CameraTableIDColumn) || isRequired(CameraTableColumnLookup, CameraTableIDColumn) { columns = append(columns, CameraTableIDColumn) v, err := types.FormatUUID(m.ID) @@ -341,7 +355,7 @@ func (m *Camera) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.CreatedAt) { + if setZeroValues || !types.IsZeroTime(m.CreatedAt) || slices.Contains(forceSetValuesForFields, CameraTableCreatedAtColumn) || isRequired(CameraTableColumnLookup, CameraTableCreatedAtColumn) { columns = append(columns, CameraTableCreatedAtColumn) v, err := types.FormatTime(m.CreatedAt) @@ -352,7 +366,7 @@ func (m *Camera) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.UpdatedAt) { + if setZeroValues || !types.IsZeroTime(m.UpdatedAt) || slices.Contains(forceSetValuesForFields, CameraTableUpdatedAtColumn) || isRequired(CameraTableColumnLookup, CameraTableUpdatedAtColumn) { columns = append(columns, CameraTableUpdatedAtColumn) v, err := types.FormatTime(m.UpdatedAt) @@ -363,7 +377,7 @@ func (m *Camera) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.DeletedAt) { + if setZeroValues || !types.IsZeroTime(m.DeletedAt) || slices.Contains(forceSetValuesForFields, CameraTableDeletedAtColumn) || isRequired(CameraTableColumnLookup, CameraTableDeletedAtColumn) { columns = append(columns, CameraTableDeletedAtColumn) v, err := types.FormatTime(m.DeletedAt) @@ -374,7 +388,7 @@ func (m *Camera) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroString(m.Name) { + if setZeroValues || !types.IsZeroString(m.Name) || slices.Contains(forceSetValuesForFields, CameraTableNameColumn) || isRequired(CameraTableColumnLookup, CameraTableNameColumn) { columns = append(columns, CameraTableNameColumn) v, err := types.FormatString(m.Name) @@ -385,7 +399,7 @@ func (m *Camera) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroString(m.StreamURL) { + if setZeroValues || !types.IsZeroString(m.StreamURL) || slices.Contains(forceSetValuesForFields, CameraTableStreamURLColumn) || isRequired(CameraTableColumnLookup, CameraTableStreamURLColumn) { columns = append(columns, CameraTableStreamURLColumn) v, err := types.FormatString(m.StreamURL) @@ -396,7 +410,7 @@ func (m *Camera) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.LastSeen) { + if setZeroValues || !types.IsZeroTime(m.LastSeen) || slices.Contains(forceSetValuesForFields, CameraTableLastSeenColumn) || isRequired(CameraTableColumnLookup, CameraTableLastSeenColumn) { columns = append(columns, CameraTableLastSeenColumn) v, err := types.FormatTime(m.LastSeen) @@ -407,6 +421,9 @@ func (m *Camera) Insert( values = append(values, v) } + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + item, err := query.Insert( ctx, tx, @@ -448,7 +465,7 @@ func (m *Camera) Insert( m.ID = temp2 - err = m.Reload(ctx, tx) + err = m.Reload(ctx, tx, slices.Contains(forceSetValuesForFields, "deleted_at")) if err != nil { return fmt.Errorf("failed to reload after insert") } @@ -538,6 +555,9 @@ func (m *Camera) Update( values = append(values, v) + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + _, err = query.Update( ctx, tx, @@ -585,6 +605,9 @@ func (m *Camera) Delete( values = append(values, v) + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + err = query.Delete( ctx, tx, @@ -620,6 +643,9 @@ func SelectCameras( } } + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + items, err := query.Select( ctx, tx, @@ -646,15 +672,12 @@ func SelectCameras( } err = func() error { - possibleRootTableName := ctx.Value(_rootTableNameContextKey) - rootTableName, _ := possibleRootTableName.(string) - if rootTableName == "" { - ctx = context.WithValue(ctx, _rootTableNameContextKey, CameraTable) - } + var ok bool + thisCtx, ok := query.HandleQueryPathGraphCycles(ctx, CameraTable) - if rootTableName != CameraTable { + if ok { object.ReferencedByVideoCameraIDObjects, err = SelectVideos( - ctx, + thisCtx, tx, fmt.Sprintf("%v = $1", VideoTableCameraIDColumn), nil, @@ -663,7 +686,9 @@ func SelectCameras( object.ID, ) if err != nil { - return err + if !errors.Is(err, sql.ErrNoRows) { + return err + } } } @@ -674,15 +699,12 @@ func SelectCameras( } err = func() error { - possibleRootTableName := ctx.Value(_rootTableNameContextKey) - rootTableName, _ := possibleRootTableName.(string) - if rootTableName == "" { - ctx = context.WithValue(ctx, _rootTableNameContextKey, CameraTable) - } + var ok bool + thisCtx, ok := query.HandleQueryPathGraphCycles(ctx, CameraTable) - if rootTableName != CameraTable { + if ok { object.ReferencedByDetectionCameraIDObjects, err = SelectDetections( - ctx, + thisCtx, tx, fmt.Sprintf("%v = $1", DetectionTableCameraIDColumn), nil, @@ -691,7 +713,9 @@ func SelectCameras( object.ID, ) if err != nil { - return err + if !errors.Is(err, sql.ErrNoRows) { + return err + } } } @@ -713,6 +737,9 @@ func SelectCamera( where string, values ...any, ) (*Camera, error) { + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + objects, err := SelectCameras( ctx, tx, @@ -731,7 +758,7 @@ func SelectCamera( } if len(objects) < 1 { - return nil, fmt.Errorf("attempt to call SelectCamera returned no rows") + return nil, sql.ErrNoRows } object := objects[0] @@ -754,6 +781,8 @@ func handleGetCameras(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redis var orderByDirection *string orderBys := make([]string, 0) + includes := make([]string, 0) + values := make([]any, 0) wheres := make([]string, 0) for rawKey, rawValues := range r.URL.Query() { @@ -772,7 +801,9 @@ func handleGetCameras(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redis if !isUnrecognized { column := CameraTableColumnLookup[parts[0]] if column == nil { - isUnrecognized = true + if parts[0] != "load" { + isUnrecognized = true + } } else { switch parts[1] { case "eq": @@ -830,6 +861,11 @@ func handleGetCameras(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redis orderByDirection = helpers.Ptr("ASC") orderBys = append(orderBys, parts[0]) + continue + case "load": + includes = append(includes, parts[0]) + _ = includes + continue default: isUnrecognized = true @@ -1114,8 +1150,19 @@ func handlePostCameras(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redi return } + forceSetValuesForFieldsByObjectIndex := make([][]string, 0) objects := make([]*Camera, 0) for _, item := range allItems { + forceSetValuesForFields := make([]string, 0) + for _, possibleField := range maps.Keys(item) { + if !slices.Contains(CameraTableColumns, possibleField) { + continue + } + + forceSetValuesForFields = append(forceSetValuesForFields, possibleField) + } + forceSetValuesForFieldsByObjectIndex = append(forceSetValuesForFieldsByObjectIndex, forceSetValuesForFields) + object := &Camera{} err = object.FromItem(item) if err != nil { @@ -1147,7 +1194,7 @@ func handlePostCameras(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redi _ = xid for i, object := range objects { - err = object.Insert(r.Context(), tx, false, false) + err = object.Insert(r.Context(), tx, false, false, forceSetValuesForFieldsByObjectIndex[i]...) if err != nil { err = fmt.Errorf("failed to insert %#+v: %v", object, err) helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) @@ -1157,6 +1204,18 @@ func handlePostCameras(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redi objects[i] = object } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.INSERT}, CameraTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1164,11 +1223,16 @@ func handlePostCameras(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redi return } - _, err = waitForChange(r.Context(), []stream.Action{stream.INSERT}, CameraTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusCreated, objects) @@ -1228,6 +1292,18 @@ func handlePutCamera(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redisP return } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_DELETE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, CameraTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1235,11 +1311,16 @@ func handlePutCamera(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redisP return } - _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, CameraTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusOK, []*Camera{object}) @@ -1308,6 +1389,18 @@ func handlePatchCamera(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redi return } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_DELETE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, CameraTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1315,11 +1408,16 @@ func handlePatchCamera(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redi return } - _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, CameraTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusOK, []*Camera{object}) @@ -1366,6 +1464,18 @@ func handleDeleteCamera(w http.ResponseWriter, r *http.Request, db *sqlx.DB, red return } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.DELETE, stream.SOFT_DELETE}, CameraTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1373,11 +1483,16 @@ func handleDeleteCamera(w http.ResponseWriter, r *http.Request, db *sqlx.DB, red return } - _, err = waitForChange(r.Context(), []stream.Action{stream.DELETE, stream.SOFT_DELETE}, CameraTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusNoContent, nil) diff --git a/pkg/api/detection.go b/pkg/api/detection.go index 2ebba07..6f4fb3d 100755 --- a/pkg/api/detection.go +++ b/pkg/api/detection.go @@ -2,7 +2,9 @@ package api import ( "context" + "database/sql" "encoding/json" + "errors" "fmt" "io" "log" @@ -23,12 +25,10 @@ import ( "github.com/initialed85/djangolang/pkg/server" "github.com/initialed85/djangolang/pkg/stream" "github.com/initialed85/djangolang/pkg/types" - _pgtype "github.com/jackc/pgtype" "github.com/jackc/pgx/v5/pgtype" "github.com/jmoiron/sqlx" "github.com/lib/pq" "github.com/lib/pq/hstore" - "github.com/paulmach/orb/geojson" "golang.org/x/exp/maps" ) @@ -43,6 +43,8 @@ type Detection struct { Score float64 `json:"score"` Centroid pgtype.Vec2 `json:"centroid"` BoundingBox []pgtype.Vec2 `json:"bounding_box"` + VideoID uuid.UUID `json:"video_id"` + VideoIDObject *Video `json:"video_id_object"` CameraID uuid.UUID `json:"camera_id"` CameraIDObject *Camera `json:"camera_id_object"` } @@ -60,6 +62,7 @@ var ( DetectionTableScoreColumn = "score" DetectionTableCentroidColumn = "centroid" DetectionTableBoundingBoxColumn = "bounding_box" + DetectionTableVideoIDColumn = "video_id" DetectionTableCameraIDColumn = "camera_id" ) @@ -74,6 +77,7 @@ var ( DetectionTableScoreColumnWithTypeCast = fmt.Sprintf(`"score" AS score`) DetectionTableCentroidColumnWithTypeCast = fmt.Sprintf(`"centroid" AS centroid`) DetectionTableBoundingBoxColumnWithTypeCast = fmt.Sprintf(`"bounding_box" AS bounding_box`) + DetectionTableVideoIDColumnWithTypeCast = fmt.Sprintf(`"video_id" AS video_id`) DetectionTableCameraIDColumnWithTypeCast = fmt.Sprintf(`"camera_id" AS camera_id`) ) @@ -88,6 +92,7 @@ var DetectionTableColumns = []string{ DetectionTableScoreColumn, DetectionTableCentroidColumn, DetectionTableBoundingBoxColumn, + DetectionTableVideoIDColumn, DetectionTableCameraIDColumn, } @@ -102,38 +107,50 @@ var DetectionTableColumnsWithTypeCasts = []string{ DetectionTableScoreColumnWithTypeCast, DetectionTableCentroidColumnWithTypeCast, DetectionTableBoundingBoxColumnWithTypeCast, + DetectionTableVideoIDColumnWithTypeCast, DetectionTableCameraIDColumnWithTypeCast, } var DetectionTableColumnLookup = map[string]*introspect.Column{ - DetectionTableIDColumn: new(introspect.Column), - DetectionTableCreatedAtColumn: new(introspect.Column), - DetectionTableUpdatedAtColumn: new(introspect.Column), - DetectionTableDeletedAtColumn: new(introspect.Column), - DetectionTableSeenAtColumn: new(introspect.Column), - DetectionTableClassIDColumn: new(introspect.Column), - DetectionTableClassNameColumn: new(introspect.Column), - DetectionTableScoreColumn: new(introspect.Column), - DetectionTableCentroidColumn: new(introspect.Column), - DetectionTableBoundingBoxColumn: new(introspect.Column), - DetectionTableCameraIDColumn: new(introspect.Column), + DetectionTableIDColumn: {Name: DetectionTableIDColumn, NotNull: true, HasDefault: true}, + DetectionTableCreatedAtColumn: {Name: DetectionTableCreatedAtColumn, NotNull: true, HasDefault: true}, + DetectionTableUpdatedAtColumn: {Name: DetectionTableUpdatedAtColumn, NotNull: true, HasDefault: true}, + DetectionTableDeletedAtColumn: {Name: DetectionTableDeletedAtColumn, NotNull: false, HasDefault: false}, + DetectionTableSeenAtColumn: {Name: DetectionTableSeenAtColumn, NotNull: true, HasDefault: false}, + DetectionTableClassIDColumn: {Name: DetectionTableClassIDColumn, NotNull: true, HasDefault: false}, + DetectionTableClassNameColumn: {Name: DetectionTableClassNameColumn, NotNull: true, HasDefault: false}, + DetectionTableScoreColumn: {Name: DetectionTableScoreColumn, NotNull: true, HasDefault: false}, + DetectionTableCentroidColumn: {Name: DetectionTableCentroidColumn, NotNull: true, HasDefault: false}, + DetectionTableBoundingBoxColumn: {Name: DetectionTableBoundingBoxColumn, NotNull: true, HasDefault: false}, + DetectionTableVideoIDColumn: {Name: DetectionTableVideoIDColumn, NotNull: true, HasDefault: false}, + DetectionTableCameraIDColumn: {Name: DetectionTableCameraIDColumn, NotNull: true, HasDefault: false}, } var ( DetectionTablePrimaryKeyColumn = DetectionTableIDColumn ) - -var ( - _ = time.Time{} - _ = uuid.UUID{} - _ = pq.StringArray{} - _ = hstore.Hstore{} - _ = geojson.Point{} - _ = pgtype.Point{} - _ = _pgtype.Point{} - _ = postgis.PointZ{} - _ = netip.Prefix{} -) +var _ = []any{ + time.Time{}, + time.Duration(0), + nil, + pq.StringArray{}, + string(""), + pq.Int64Array{}, + int64(0), + pq.Float64Array{}, + float64(0), + pq.BoolArray{}, + bool(false), + map[string][]int{}, + uuid.UUID{}, + hstore.Hstore{}, + pgtype.Point{}, + pgtype.Polygon{}, + postgis.PointZ{}, + netip.Prefix{}, + []byte{}, + errors.Is, +} func (m *Detection) GetPrimaryKeyColumn() string { return DetectionTablePrimaryKeyColumn @@ -360,6 +377,25 @@ func (m *Detection) FromItem(item map[string]any) error { m.BoundingBox = temp2 + case "video_id": + if v == nil { + continue + } + + temp1, err := types.ParseUUID(v) + if err != nil { + return wrapError(k, v, err) + } + + temp2, ok := temp1.(uuid.UUID) + if !ok { + if temp1 != nil { + return wrapError(k, v, fmt.Errorf("failed to cast %#+v to uuid.UUID", temp1)) + } + } + + m.VideoID = temp2 + case "camera_id": if v == nil { continue @@ -397,6 +433,9 @@ func (m *Detection) Reload( } } + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + t, err := SelectDetection( ctx, tx, @@ -417,6 +456,8 @@ func (m *Detection) Reload( m.Score = t.Score m.Centroid = t.Centroid m.BoundingBox = t.BoundingBox + m.VideoID = t.VideoID + m.VideoIDObject = t.VideoIDObject m.CameraID = t.CameraID m.CameraIDObject = t.CameraIDObject @@ -428,11 +469,12 @@ func (m *Detection) Insert( tx *sqlx.Tx, setPrimaryKey bool, setZeroValues bool, + forceSetValuesForFields ...string, ) error { columns := make([]string, 0) values := make([]any, 0) - if setPrimaryKey && (setZeroValues || !types.IsZeroUUID(m.ID)) { + if setPrimaryKey && (setZeroValues || !types.IsZeroUUID(m.ID)) || slices.Contains(forceSetValuesForFields, DetectionTableIDColumn) || isRequired(DetectionTableColumnLookup, DetectionTableIDColumn) { columns = append(columns, DetectionTableIDColumn) v, err := types.FormatUUID(m.ID) @@ -443,7 +485,7 @@ func (m *Detection) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.CreatedAt) { + if setZeroValues || !types.IsZeroTime(m.CreatedAt) || slices.Contains(forceSetValuesForFields, DetectionTableCreatedAtColumn) || isRequired(DetectionTableColumnLookup, DetectionTableCreatedAtColumn) { columns = append(columns, DetectionTableCreatedAtColumn) v, err := types.FormatTime(m.CreatedAt) @@ -454,7 +496,7 @@ func (m *Detection) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.UpdatedAt) { + if setZeroValues || !types.IsZeroTime(m.UpdatedAt) || slices.Contains(forceSetValuesForFields, DetectionTableUpdatedAtColumn) || isRequired(DetectionTableColumnLookup, DetectionTableUpdatedAtColumn) { columns = append(columns, DetectionTableUpdatedAtColumn) v, err := types.FormatTime(m.UpdatedAt) @@ -465,7 +507,7 @@ func (m *Detection) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.DeletedAt) { + if setZeroValues || !types.IsZeroTime(m.DeletedAt) || slices.Contains(forceSetValuesForFields, DetectionTableDeletedAtColumn) || isRequired(DetectionTableColumnLookup, DetectionTableDeletedAtColumn) { columns = append(columns, DetectionTableDeletedAtColumn) v, err := types.FormatTime(m.DeletedAt) @@ -476,7 +518,7 @@ func (m *Detection) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.SeenAt) { + if setZeroValues || !types.IsZeroTime(m.SeenAt) || slices.Contains(forceSetValuesForFields, DetectionTableSeenAtColumn) || isRequired(DetectionTableColumnLookup, DetectionTableSeenAtColumn) { columns = append(columns, DetectionTableSeenAtColumn) v, err := types.FormatTime(m.SeenAt) @@ -487,7 +529,7 @@ func (m *Detection) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroInt(m.ClassID) { + if setZeroValues || !types.IsZeroInt(m.ClassID) || slices.Contains(forceSetValuesForFields, DetectionTableClassIDColumn) || isRequired(DetectionTableColumnLookup, DetectionTableClassIDColumn) { columns = append(columns, DetectionTableClassIDColumn) v, err := types.FormatInt(m.ClassID) @@ -498,7 +540,7 @@ func (m *Detection) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroString(m.ClassName) { + if setZeroValues || !types.IsZeroString(m.ClassName) || slices.Contains(forceSetValuesForFields, DetectionTableClassNameColumn) || isRequired(DetectionTableColumnLookup, DetectionTableClassNameColumn) { columns = append(columns, DetectionTableClassNameColumn) v, err := types.FormatString(m.ClassName) @@ -509,7 +551,7 @@ func (m *Detection) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroFloat(m.Score) { + if setZeroValues || !types.IsZeroFloat(m.Score) || slices.Contains(forceSetValuesForFields, DetectionTableScoreColumn) || isRequired(DetectionTableColumnLookup, DetectionTableScoreColumn) { columns = append(columns, DetectionTableScoreColumn) v, err := types.FormatFloat(m.Score) @@ -520,7 +562,7 @@ func (m *Detection) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroPoint(m.Centroid) { + if setZeroValues || !types.IsZeroPoint(m.Centroid) || slices.Contains(forceSetValuesForFields, DetectionTableCentroidColumn) || isRequired(DetectionTableColumnLookup, DetectionTableCentroidColumn) { columns = append(columns, DetectionTableCentroidColumn) v, err := types.FormatPoint(m.Centroid) @@ -531,7 +573,7 @@ func (m *Detection) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroPolygon(m.BoundingBox) { + if setZeroValues || !types.IsZeroPolygon(m.BoundingBox) || slices.Contains(forceSetValuesForFields, DetectionTableBoundingBoxColumn) || isRequired(DetectionTableColumnLookup, DetectionTableBoundingBoxColumn) { columns = append(columns, DetectionTableBoundingBoxColumn) v, err := types.FormatPolygon(m.BoundingBox) @@ -542,7 +584,18 @@ func (m *Detection) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroUUID(m.CameraID) { + if setZeroValues || !types.IsZeroUUID(m.VideoID) || slices.Contains(forceSetValuesForFields, DetectionTableVideoIDColumn) || isRequired(DetectionTableColumnLookup, DetectionTableVideoIDColumn) { + columns = append(columns, DetectionTableVideoIDColumn) + + v, err := types.FormatUUID(m.VideoID) + if err != nil { + return fmt.Errorf("failed to handle m.VideoID: %v", err) + } + + values = append(values, v) + } + + if setZeroValues || !types.IsZeroUUID(m.CameraID) || slices.Contains(forceSetValuesForFields, DetectionTableCameraIDColumn) || isRequired(DetectionTableColumnLookup, DetectionTableCameraIDColumn) { columns = append(columns, DetectionTableCameraIDColumn) v, err := types.FormatUUID(m.CameraID) @@ -553,6 +606,9 @@ func (m *Detection) Insert( values = append(values, v) } + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + item, err := query.Insert( ctx, tx, @@ -594,7 +650,7 @@ func (m *Detection) Insert( m.ID = temp2 - err = m.Reload(ctx, tx) + err = m.Reload(ctx, tx, slices.Contains(forceSetValuesForFields, "deleted_at")) if err != nil { return fmt.Errorf("failed to reload after insert") } @@ -710,6 +766,17 @@ func (m *Detection) Update( values = append(values, v) } + if setZeroValues || !types.IsZeroUUID(m.VideoID) || slices.Contains(forceSetValuesForFields, DetectionTableVideoIDColumn) { + columns = append(columns, DetectionTableVideoIDColumn) + + v, err := types.FormatUUID(m.VideoID) + if err != nil { + return fmt.Errorf("failed to handle m.VideoID: %v", err) + } + + values = append(values, v) + } + if setZeroValues || !types.IsZeroUUID(m.CameraID) || slices.Contains(forceSetValuesForFields, DetectionTableCameraIDColumn) { columns = append(columns, DetectionTableCameraIDColumn) @@ -728,6 +795,9 @@ func (m *Detection) Update( values = append(values, v) + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + _, err = query.Update( ctx, tx, @@ -775,6 +845,9 @@ func (m *Detection) Delete( values = append(values, v) + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + err = query.Delete( ctx, tx, @@ -810,6 +883,9 @@ func SelectDetections( } } + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + items, err := query.Select( ctx, tx, @@ -835,15 +911,41 @@ func SelectDetections( return nil, err } + if !types.IsZeroUUID(object.VideoID) { + var ok bool + thisCtx, ok := query.HandleQueryPathGraphCycles(ctx, DetectionTable) + + if ok { + object.VideoIDObject, err = SelectVideo( + thisCtx, + tx, + fmt.Sprintf("%v = $1", VideoTablePrimaryKeyColumn), + object.VideoID, + ) + if err != nil { + if !errors.Is(err, sql.ErrNoRows) { + return nil, err + } + } + } + } + if !types.IsZeroUUID(object.CameraID) { - object.CameraIDObject, err = SelectCamera( - ctx, - tx, - fmt.Sprintf("%v = $1", CameraTablePrimaryKeyColumn), - object.CameraID, - ) - if err != nil { - return nil, err + var ok bool + thisCtx, ok := query.HandleQueryPathGraphCycles(ctx, DetectionTable) + + if ok { + object.CameraIDObject, err = SelectCamera( + thisCtx, + tx, + fmt.Sprintf("%v = $1", CameraTablePrimaryKeyColumn), + object.CameraID, + ) + if err != nil { + if !errors.Is(err, sql.ErrNoRows) { + return nil, err + } + } } } @@ -859,6 +961,9 @@ func SelectDetection( where string, values ...any, ) (*Detection, error) { + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + objects, err := SelectDetections( ctx, tx, @@ -877,7 +982,7 @@ func SelectDetection( } if len(objects) < 1 { - return nil, fmt.Errorf("attempt to call SelectDetection returned no rows") + return nil, sql.ErrNoRows } object := objects[0] @@ -900,6 +1005,8 @@ func handleGetDetections(w http.ResponseWriter, r *http.Request, db *sqlx.DB, re var orderByDirection *string orderBys := make([]string, 0) + includes := make([]string, 0) + values := make([]any, 0) wheres := make([]string, 0) for rawKey, rawValues := range r.URL.Query() { @@ -918,7 +1025,9 @@ func handleGetDetections(w http.ResponseWriter, r *http.Request, db *sqlx.DB, re if !isUnrecognized { column := DetectionTableColumnLookup[parts[0]] if column == nil { - isUnrecognized = true + if parts[0] != "load" { + isUnrecognized = true + } } else { switch parts[1] { case "eq": @@ -976,6 +1085,11 @@ func handleGetDetections(w http.ResponseWriter, r *http.Request, db *sqlx.DB, re orderByDirection = helpers.Ptr("ASC") orderBys = append(orderBys, parts[0]) + continue + case "load": + includes = append(includes, parts[0]) + _ = includes + continue default: isUnrecognized = true @@ -1260,8 +1374,19 @@ func handlePostDetections(w http.ResponseWriter, r *http.Request, db *sqlx.DB, r return } + forceSetValuesForFieldsByObjectIndex := make([][]string, 0) objects := make([]*Detection, 0) for _, item := range allItems { + forceSetValuesForFields := make([]string, 0) + for _, possibleField := range maps.Keys(item) { + if !slices.Contains(DetectionTableColumns, possibleField) { + continue + } + + forceSetValuesForFields = append(forceSetValuesForFields, possibleField) + } + forceSetValuesForFieldsByObjectIndex = append(forceSetValuesForFieldsByObjectIndex, forceSetValuesForFields) + object := &Detection{} err = object.FromItem(item) if err != nil { @@ -1293,7 +1418,7 @@ func handlePostDetections(w http.ResponseWriter, r *http.Request, db *sqlx.DB, r _ = xid for i, object := range objects { - err = object.Insert(r.Context(), tx, false, false) + err = object.Insert(r.Context(), tx, false, false, forceSetValuesForFieldsByObjectIndex[i]...) if err != nil { err = fmt.Errorf("failed to insert %#+v: %v", object, err) helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) @@ -1303,6 +1428,18 @@ func handlePostDetections(w http.ResponseWriter, r *http.Request, db *sqlx.DB, r objects[i] = object } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.INSERT}, DetectionTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1310,11 +1447,16 @@ func handlePostDetections(w http.ResponseWriter, r *http.Request, db *sqlx.DB, r return } - _, err = waitForChange(r.Context(), []stream.Action{stream.INSERT}, DetectionTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusCreated, objects) @@ -1374,6 +1516,18 @@ func handlePutDetection(w http.ResponseWriter, r *http.Request, db *sqlx.DB, red return } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_DELETE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, DetectionTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1381,11 +1535,16 @@ func handlePutDetection(w http.ResponseWriter, r *http.Request, db *sqlx.DB, red return } - _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, DetectionTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusOK, []*Detection{object}) @@ -1454,6 +1613,18 @@ func handlePatchDetection(w http.ResponseWriter, r *http.Request, db *sqlx.DB, r return } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_DELETE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, DetectionTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1461,11 +1632,16 @@ func handlePatchDetection(w http.ResponseWriter, r *http.Request, db *sqlx.DB, r return } - _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, DetectionTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusOK, []*Detection{object}) @@ -1512,6 +1688,18 @@ func handleDeleteDetection(w http.ResponseWriter, r *http.Request, db *sqlx.DB, return } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.DELETE, stream.SOFT_DELETE}, DetectionTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1519,11 +1707,16 @@ func handleDeleteDetection(w http.ResponseWriter, r *http.Request, db *sqlx.DB, return } - _, err = waitForChange(r.Context(), []stream.Action{stream.DELETE, stream.SOFT_DELETE}, DetectionTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusNoContent, nil) diff --git a/pkg/api/video.go b/pkg/api/video.go index d7b1328..35cad1c 100755 --- a/pkg/api/video.go +++ b/pkg/api/video.go @@ -2,7 +2,9 @@ package api import ( "context" + "database/sql" "encoding/json" + "errors" "fmt" "io" "log" @@ -23,29 +25,28 @@ import ( "github.com/initialed85/djangolang/pkg/server" "github.com/initialed85/djangolang/pkg/stream" "github.com/initialed85/djangolang/pkg/types" - _pgtype "github.com/jackc/pgtype" "github.com/jackc/pgx/v5/pgtype" "github.com/jmoiron/sqlx" "github.com/lib/pq" "github.com/lib/pq/hstore" - "github.com/paulmach/orb/geojson" "golang.org/x/exp/maps" ) type Video struct { - ID uuid.UUID `json:"id"` - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` - DeletedAt *time.Time `json:"deleted_at"` - FileName string `json:"file_name"` - StartedAt time.Time `json:"started_at"` - EndedAt *time.Time `json:"ended_at"` - Duration *time.Duration `json:"duration"` - FileSize *float64 `json:"file_size"` - ThumbnailName *string `json:"thumbnail_name"` - Status *string `json:"status"` - CameraID uuid.UUID `json:"camera_id"` - CameraIDObject *Camera `json:"camera_id_object"` + ID uuid.UUID `json:"id"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + DeletedAt *time.Time `json:"deleted_at"` + FileName string `json:"file_name"` + StartedAt time.Time `json:"started_at"` + EndedAt *time.Time `json:"ended_at"` + Duration *time.Duration `json:"duration"` + FileSize *float64 `json:"file_size"` + ThumbnailName *string `json:"thumbnail_name"` + Status *string `json:"status"` + CameraID uuid.UUID `json:"camera_id"` + CameraIDObject *Camera `json:"camera_id_object"` + ReferencedByDetectionVideoIDObjects []*Detection `json:"referenced_by_detection_video_id_objects"` } var VideoTable = "video" @@ -111,35 +112,45 @@ var VideoTableColumnsWithTypeCasts = []string{ } var VideoTableColumnLookup = map[string]*introspect.Column{ - VideoTableIDColumn: new(introspect.Column), - VideoTableCreatedAtColumn: new(introspect.Column), - VideoTableUpdatedAtColumn: new(introspect.Column), - VideoTableDeletedAtColumn: new(introspect.Column), - VideoTableFileNameColumn: new(introspect.Column), - VideoTableStartedAtColumn: new(introspect.Column), - VideoTableEndedAtColumn: new(introspect.Column), - VideoTableDurationColumn: new(introspect.Column), - VideoTableFileSizeColumn: new(introspect.Column), - VideoTableThumbnailNameColumn: new(introspect.Column), - VideoTableStatusColumn: new(introspect.Column), - VideoTableCameraIDColumn: new(introspect.Column), + VideoTableIDColumn: {Name: VideoTableIDColumn, NotNull: true, HasDefault: true}, + VideoTableCreatedAtColumn: {Name: VideoTableCreatedAtColumn, NotNull: true, HasDefault: true}, + VideoTableUpdatedAtColumn: {Name: VideoTableUpdatedAtColumn, NotNull: true, HasDefault: true}, + VideoTableDeletedAtColumn: {Name: VideoTableDeletedAtColumn, NotNull: false, HasDefault: false}, + VideoTableFileNameColumn: {Name: VideoTableFileNameColumn, NotNull: true, HasDefault: false}, + VideoTableStartedAtColumn: {Name: VideoTableStartedAtColumn, NotNull: true, HasDefault: false}, + VideoTableEndedAtColumn: {Name: VideoTableEndedAtColumn, NotNull: false, HasDefault: false}, + VideoTableDurationColumn: {Name: VideoTableDurationColumn, NotNull: false, HasDefault: false}, + VideoTableFileSizeColumn: {Name: VideoTableFileSizeColumn, NotNull: false, HasDefault: false}, + VideoTableThumbnailNameColumn: {Name: VideoTableThumbnailNameColumn, NotNull: false, HasDefault: false}, + VideoTableStatusColumn: {Name: VideoTableStatusColumn, NotNull: false, HasDefault: false}, + VideoTableCameraIDColumn: {Name: VideoTableCameraIDColumn, NotNull: true, HasDefault: false}, } var ( VideoTablePrimaryKeyColumn = VideoTableIDColumn ) - -var ( - _ = time.Time{} - _ = uuid.UUID{} - _ = pq.StringArray{} - _ = hstore.Hstore{} - _ = geojson.Point{} - _ = pgtype.Point{} - _ = _pgtype.Point{} - _ = postgis.PointZ{} - _ = netip.Prefix{} -) +var _ = []any{ + time.Time{}, + time.Duration(0), + nil, + pq.StringArray{}, + string(""), + pq.Int64Array{}, + int64(0), + pq.Float64Array{}, + float64(0), + pq.BoolArray{}, + bool(false), + map[string][]int{}, + uuid.UUID{}, + hstore.Hstore{}, + pgtype.Point{}, + pgtype.Polygon{}, + postgis.PointZ{}, + netip.Prefix{}, + []byte{}, + errors.Is, +} func (m *Video) GetPrimaryKeyColumn() string { return VideoTablePrimaryKeyColumn @@ -422,6 +433,9 @@ func (m *Video) Reload( } } + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + t, err := SelectVideo( ctx, tx, @@ -445,6 +459,7 @@ func (m *Video) Reload( m.Status = t.Status m.CameraID = t.CameraID m.CameraIDObject = t.CameraIDObject + m.ReferencedByDetectionVideoIDObjects = t.ReferencedByDetectionVideoIDObjects return nil } @@ -454,11 +469,12 @@ func (m *Video) Insert( tx *sqlx.Tx, setPrimaryKey bool, setZeroValues bool, + forceSetValuesForFields ...string, ) error { columns := make([]string, 0) values := make([]any, 0) - if setPrimaryKey && (setZeroValues || !types.IsZeroUUID(m.ID)) { + if setPrimaryKey && (setZeroValues || !types.IsZeroUUID(m.ID)) || slices.Contains(forceSetValuesForFields, VideoTableIDColumn) || isRequired(VideoTableColumnLookup, VideoTableIDColumn) { columns = append(columns, VideoTableIDColumn) v, err := types.FormatUUID(m.ID) @@ -469,7 +485,7 @@ func (m *Video) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.CreatedAt) { + if setZeroValues || !types.IsZeroTime(m.CreatedAt) || slices.Contains(forceSetValuesForFields, VideoTableCreatedAtColumn) || isRequired(VideoTableColumnLookup, VideoTableCreatedAtColumn) { columns = append(columns, VideoTableCreatedAtColumn) v, err := types.FormatTime(m.CreatedAt) @@ -480,7 +496,7 @@ func (m *Video) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.UpdatedAt) { + if setZeroValues || !types.IsZeroTime(m.UpdatedAt) || slices.Contains(forceSetValuesForFields, VideoTableUpdatedAtColumn) || isRequired(VideoTableColumnLookup, VideoTableUpdatedAtColumn) { columns = append(columns, VideoTableUpdatedAtColumn) v, err := types.FormatTime(m.UpdatedAt) @@ -491,7 +507,7 @@ func (m *Video) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.DeletedAt) { + if setZeroValues || !types.IsZeroTime(m.DeletedAt) || slices.Contains(forceSetValuesForFields, VideoTableDeletedAtColumn) || isRequired(VideoTableColumnLookup, VideoTableDeletedAtColumn) { columns = append(columns, VideoTableDeletedAtColumn) v, err := types.FormatTime(m.DeletedAt) @@ -502,7 +518,7 @@ func (m *Video) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroString(m.FileName) { + if setZeroValues || !types.IsZeroString(m.FileName) || slices.Contains(forceSetValuesForFields, VideoTableFileNameColumn) || isRequired(VideoTableColumnLookup, VideoTableFileNameColumn) { columns = append(columns, VideoTableFileNameColumn) v, err := types.FormatString(m.FileName) @@ -513,7 +529,7 @@ func (m *Video) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.StartedAt) { + if setZeroValues || !types.IsZeroTime(m.StartedAt) || slices.Contains(forceSetValuesForFields, VideoTableStartedAtColumn) || isRequired(VideoTableColumnLookup, VideoTableStartedAtColumn) { columns = append(columns, VideoTableStartedAtColumn) v, err := types.FormatTime(m.StartedAt) @@ -524,7 +540,7 @@ func (m *Video) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroTime(m.EndedAt) { + if setZeroValues || !types.IsZeroTime(m.EndedAt) || slices.Contains(forceSetValuesForFields, VideoTableEndedAtColumn) || isRequired(VideoTableColumnLookup, VideoTableEndedAtColumn) { columns = append(columns, VideoTableEndedAtColumn) v, err := types.FormatTime(m.EndedAt) @@ -535,7 +551,7 @@ func (m *Video) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroDuration(m.Duration) { + if setZeroValues || !types.IsZeroDuration(m.Duration) || slices.Contains(forceSetValuesForFields, VideoTableDurationColumn) || isRequired(VideoTableColumnLookup, VideoTableDurationColumn) { columns = append(columns, VideoTableDurationColumn) v, err := types.FormatDuration(m.Duration) @@ -546,7 +562,7 @@ func (m *Video) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroFloat(m.FileSize) { + if setZeroValues || !types.IsZeroFloat(m.FileSize) || slices.Contains(forceSetValuesForFields, VideoTableFileSizeColumn) || isRequired(VideoTableColumnLookup, VideoTableFileSizeColumn) { columns = append(columns, VideoTableFileSizeColumn) v, err := types.FormatFloat(m.FileSize) @@ -557,7 +573,7 @@ func (m *Video) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroString(m.ThumbnailName) { + if setZeroValues || !types.IsZeroString(m.ThumbnailName) || slices.Contains(forceSetValuesForFields, VideoTableThumbnailNameColumn) || isRequired(VideoTableColumnLookup, VideoTableThumbnailNameColumn) { columns = append(columns, VideoTableThumbnailNameColumn) v, err := types.FormatString(m.ThumbnailName) @@ -568,7 +584,7 @@ func (m *Video) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroString(m.Status) { + if setZeroValues || !types.IsZeroString(m.Status) || slices.Contains(forceSetValuesForFields, VideoTableStatusColumn) || isRequired(VideoTableColumnLookup, VideoTableStatusColumn) { columns = append(columns, VideoTableStatusColumn) v, err := types.FormatString(m.Status) @@ -579,7 +595,7 @@ func (m *Video) Insert( values = append(values, v) } - if setZeroValues || !types.IsZeroUUID(m.CameraID) { + if setZeroValues || !types.IsZeroUUID(m.CameraID) || slices.Contains(forceSetValuesForFields, VideoTableCameraIDColumn) || isRequired(VideoTableColumnLookup, VideoTableCameraIDColumn) { columns = append(columns, VideoTableCameraIDColumn) v, err := types.FormatUUID(m.CameraID) @@ -590,6 +606,9 @@ func (m *Video) Insert( values = append(values, v) } + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + item, err := query.Insert( ctx, tx, @@ -631,7 +650,7 @@ func (m *Video) Insert( m.ID = temp2 - err = m.Reload(ctx, tx) + err = m.Reload(ctx, tx, slices.Contains(forceSetValuesForFields, "deleted_at")) if err != nil { return fmt.Errorf("failed to reload after insert") } @@ -776,6 +795,9 @@ func (m *Video) Update( values = append(values, v) + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + _, err = query.Update( ctx, tx, @@ -823,6 +845,9 @@ func (m *Video) Delete( values = append(values, v) + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + err = query.Delete( ctx, tx, @@ -858,6 +883,9 @@ func SelectVideos( } } + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + items, err := query.Select( ctx, tx, @@ -884,17 +912,51 @@ func SelectVideos( } if !types.IsZeroUUID(object.CameraID) { - object.CameraIDObject, err = SelectCamera( - ctx, - tx, - fmt.Sprintf("%v = $1", CameraTablePrimaryKeyColumn), - object.CameraID, - ) - if err != nil { - return nil, err + var ok bool + thisCtx, ok := query.HandleQueryPathGraphCycles(ctx, VideoTable) + + if ok { + object.CameraIDObject, err = SelectCamera( + thisCtx, + tx, + fmt.Sprintf("%v = $1", CameraTablePrimaryKeyColumn), + object.CameraID, + ) + if err != nil { + if !errors.Is(err, sql.ErrNoRows) { + return nil, err + } + } } } + err = func() error { + var ok bool + thisCtx, ok := query.HandleQueryPathGraphCycles(ctx, VideoTable) + + if ok { + object.ReferencedByDetectionVideoIDObjects, err = SelectDetections( + thisCtx, + tx, + fmt.Sprintf("%v = $1", DetectionTableVideoIDColumn), + nil, + nil, + nil, + object.ID, + ) + if err != nil { + if !errors.Is(err, sql.ErrNoRows) { + return err + } + } + } + + return nil + }() + if err != nil { + return nil, err + } + objects = append(objects, object) } @@ -907,6 +969,9 @@ func SelectVideo( where string, values ...any, ) (*Video, error) { + ctx, cleanup := query.WithQueryID(ctx) + defer cleanup() + objects, err := SelectVideos( ctx, tx, @@ -925,7 +990,7 @@ func SelectVideo( } if len(objects) < 1 { - return nil, fmt.Errorf("attempt to call SelectVideo returned no rows") + return nil, sql.ErrNoRows } object := objects[0] @@ -948,6 +1013,8 @@ func handleGetVideos(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redisP var orderByDirection *string orderBys := make([]string, 0) + includes := make([]string, 0) + values := make([]any, 0) wheres := make([]string, 0) for rawKey, rawValues := range r.URL.Query() { @@ -966,7 +1033,9 @@ func handleGetVideos(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redisP if !isUnrecognized { column := VideoTableColumnLookup[parts[0]] if column == nil { - isUnrecognized = true + if parts[0] != "load" { + isUnrecognized = true + } } else { switch parts[1] { case "eq": @@ -1024,6 +1093,11 @@ func handleGetVideos(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redisP orderByDirection = helpers.Ptr("ASC") orderBys = append(orderBys, parts[0]) + continue + case "load": + includes = append(includes, parts[0]) + _ = includes + continue default: isUnrecognized = true @@ -1308,8 +1382,19 @@ func handlePostVideos(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redis return } + forceSetValuesForFieldsByObjectIndex := make([][]string, 0) objects := make([]*Video, 0) for _, item := range allItems { + forceSetValuesForFields := make([]string, 0) + for _, possibleField := range maps.Keys(item) { + if !slices.Contains(VideoTableColumns, possibleField) { + continue + } + + forceSetValuesForFields = append(forceSetValuesForFields, possibleField) + } + forceSetValuesForFieldsByObjectIndex = append(forceSetValuesForFieldsByObjectIndex, forceSetValuesForFields) + object := &Video{} err = object.FromItem(item) if err != nil { @@ -1341,7 +1426,7 @@ func handlePostVideos(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redis _ = xid for i, object := range objects { - err = object.Insert(r.Context(), tx, false, false) + err = object.Insert(r.Context(), tx, false, false, forceSetValuesForFieldsByObjectIndex[i]...) if err != nil { err = fmt.Errorf("failed to insert %#+v: %v", object, err) helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) @@ -1351,6 +1436,18 @@ func handlePostVideos(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redis objects[i] = object } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.INSERT}, VideoTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1358,11 +1455,16 @@ func handlePostVideos(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redis return } - _, err = waitForChange(r.Context(), []stream.Action{stream.INSERT}, VideoTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusCreated, objects) @@ -1422,6 +1524,18 @@ func handlePutVideo(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redisPo return } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_DELETE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, VideoTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1429,11 +1543,16 @@ func handlePutVideo(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redisPo return } - _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, VideoTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusOK, []*Video{object}) @@ -1502,6 +1621,18 @@ func handlePatchVideo(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redis return } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_DELETE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, VideoTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1509,11 +1640,16 @@ func handlePatchVideo(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redis return } - _, err = waitForChange(r.Context(), []stream.Action{stream.UPDATE, stream.SOFT_RESTORE, stream.SOFT_UPDATE}, VideoTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusOK, []*Video{object}) @@ -1560,6 +1696,18 @@ func handleDeleteVideo(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redi return } + errs := make(chan error, 1) + go func() { + _, err = waitForChange(r.Context(), []stream.Action{stream.DELETE, stream.SOFT_DELETE}, VideoTable, xid) + if err != nil { + err = fmt.Errorf("failed to wait for change: %v", err) + errs <- err + return + } + + errs <- nil + }() + err = tx.Commit() if err != nil { err = fmt.Errorf("failed to commit DB transaction: %v", err) @@ -1567,11 +1715,16 @@ func handleDeleteVideo(w http.ResponseWriter, r *http.Request, db *sqlx.DB, redi return } - _, err = waitForChange(r.Context(), []stream.Action{stream.DELETE, stream.SOFT_DELETE}, VideoTable, xid) - if err != nil { - err = fmt.Errorf("failed to wait for change: %v", err) + select { + case <-r.Context().Done(): + err = fmt.Errorf("context canceled") helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) return + case err = <-errs: + if err != nil { + helpers.HandleErrorResponse(w, http.StatusInternalServerError, err) + return + } } helpers.HandleObjectsResponse(w, http.StatusNoContent, nil) diff --git a/pkg/api_client/client.go b/pkg/api_client/client.go deleted file mode 100644 index 43e89f3..0000000 --- a/pkg/api_client/client.go +++ /dev/null @@ -1,15969 +0,0 @@ -// Package api_client provides primitives to interact with the openapi HTTP API. -// -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT. -package api_client - -import ( - "bytes" - "compress/gzip" - "context" - "encoding/base64" - "encoding/json" - "fmt" - "io" - "net/http" - "net/url" - "path" - "strings" - "time" - - "github.com/getkin/kin-openapi/openapi3" - "github.com/oapi-codegen/runtime" - openapi_types "github.com/oapi-codegen/runtime/types" -) - -// Camera defines model for Camera. -type Camera struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - DeletedAt *time.Time `json:"deleted_at"` - Id *openapi_types.UUID `json:"id,omitempty"` - LastSeen *time.Time `json:"last_seen"` - Name *string `json:"name,omitempty"` - StreamUrl *string `json:"stream_url,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` -} - -// Detection defines model for Detection. -type Detection struct { - BoundingBox *[]struct { - X *float64 `json:"X,omitempty"` - Y *float64 `json:"Y,omitempty"` - } `json:"bounding_box,omitempty"` - CameraId *openapi_types.UUID `json:"camera_id,omitempty"` - CameraIdObject *NullableCamera `json:"camera_id_object,omitempty"` - Centroid *struct { - X *float64 `json:"X,omitempty"` - Y *float64 `json:"Y,omitempty"` - } `json:"centroid,omitempty"` - ClassId *int64 `json:"class_id,omitempty"` - ClassName *string `json:"class_name,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - DeletedAt *time.Time `json:"deleted_at"` - Id *openapi_types.UUID `json:"id,omitempty"` - Score *float64 `json:"score,omitempty"` - SeenAt *time.Time `json:"seen_at,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` -} - -// NullableCamera defines model for NullableCamera. -type NullableCamera = Camera - -// Video defines model for Video. -type Video struct { - CameraId *openapi_types.UUID `json:"camera_id,omitempty"` - CameraIdObject *NullableCamera `json:"camera_id_object,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - DeletedAt *time.Time `json:"deleted_at"` - Duration *int64 `json:"duration"` - EndedAt *time.Time `json:"ended_at"` - FileName *string `json:"file_name,omitempty"` - FileSize *float64 `json:"file_size"` - Id *openapi_types.UUID `json:"id,omitempty"` - StartedAt *time.Time `json:"started_at,omitempty"` - Status *string `json:"status,omitempty"` - ThumbnailName *string `json:"thumbnail_name,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` -} - -// GetCamerasParams defines parameters for GetCameras. -type GetCamerasParams struct { - // Limit SQL LIMIT operator - Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset SQL OFFSET operator - Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"` - - // IdEq SQL = operator - IdEq *openapi_types.UUID `form:"id__eq,omitempty" json:"id__eq,omitempty"` - - // IdNe SQL != operator - IdNe *openapi_types.UUID `form:"id__ne,omitempty" json:"id__ne,omitempty"` - - // IdGt SQL > operator, may not work with all column types - IdGt *openapi_types.UUID `form:"id__gt,omitempty" json:"id__gt,omitempty"` - - // IdGte SQL >= operator, may not work with all column types - IdGte *openapi_types.UUID `form:"id__gte,omitempty" json:"id__gte,omitempty"` - - // IdLt SQL < operator, may not work with all column types - IdLt *openapi_types.UUID `form:"id__lt,omitempty" json:"id__lt,omitempty"` - - // IdLte SQL <= operator, may not work with all column types - IdLte *openapi_types.UUID `form:"id__lte,omitempty" json:"id__lte,omitempty"` - - // IdIn SQL IN operator, permits comma-separated values - IdIn *openapi_types.UUID `form:"id__in,omitempty" json:"id__in,omitempty"` - - // IdNin SQL NOT IN operator, permits comma-separated values - IdNin *openapi_types.UUID `form:"id__nin,omitempty" json:"id__nin,omitempty"` - - // IdNotin SQL NOT IN operator, permits comma-separated values - IdNotin *openapi_types.UUID `form:"id__notin,omitempty" json:"id__notin,omitempty"` - - // IdIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - IdIsnull *openapi_types.UUID `form:"id__isnull,omitempty" json:"id__isnull,omitempty"` - - // IdNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - IdNisnull *openapi_types.UUID `form:"id__nisnull,omitempty" json:"id__nisnull,omitempty"` - - // IdIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - IdIsnotnull *openapi_types.UUID `form:"id__isnotnull,omitempty" json:"id__isnotnull,omitempty"` - - // IdL SQL LIKE operator, value is implicitly prefixed and suffixed with % - IdL *openapi_types.UUID `form:"id__l,omitempty" json:"id__l,omitempty"` - - // IdLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - IdLike *openapi_types.UUID `form:"id__like,omitempty" json:"id__like,omitempty"` - - // IdNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - IdNl *openapi_types.UUID `form:"id__nl,omitempty" json:"id__nl,omitempty"` - - // IdNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - IdNlike *openapi_types.UUID `form:"id__nlike,omitempty" json:"id__nlike,omitempty"` - - // IdNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - IdNotlike *openapi_types.UUID `form:"id__notlike,omitempty" json:"id__notlike,omitempty"` - - // IdIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - IdIl *openapi_types.UUID `form:"id__il,omitempty" json:"id__il,omitempty"` - - // IdIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - IdIlike *openapi_types.UUID `form:"id__ilike,omitempty" json:"id__ilike,omitempty"` - - // IdNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - IdNil *openapi_types.UUID `form:"id__nil,omitempty" json:"id__nil,omitempty"` - - // IdNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - IdNilike *openapi_types.UUID `form:"id__nilike,omitempty" json:"id__nilike,omitempty"` - - // IdNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - IdNotilike *openapi_types.UUID `form:"id__notilike,omitempty" json:"id__notilike,omitempty"` - - // IdDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - IdDesc *openapi_types.UUID `form:"id__desc,omitempty" json:"id__desc,omitempty"` - - // IdAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - IdAsc *openapi_types.UUID `form:"id__asc,omitempty" json:"id__asc,omitempty"` - - // CreatedAtEq SQL = operator - CreatedAtEq *time.Time `form:"created_at__eq,omitempty" json:"created_at__eq,omitempty"` - - // CreatedAtNe SQL != operator - CreatedAtNe *time.Time `form:"created_at__ne,omitempty" json:"created_at__ne,omitempty"` - - // CreatedAtGt SQL > operator, may not work with all column types - CreatedAtGt *time.Time `form:"created_at__gt,omitempty" json:"created_at__gt,omitempty"` - - // CreatedAtGte SQL >= operator, may not work with all column types - CreatedAtGte *time.Time `form:"created_at__gte,omitempty" json:"created_at__gte,omitempty"` - - // CreatedAtLt SQL < operator, may not work with all column types - CreatedAtLt *time.Time `form:"created_at__lt,omitempty" json:"created_at__lt,omitempty"` - - // CreatedAtLte SQL <= operator, may not work with all column types - CreatedAtLte *time.Time `form:"created_at__lte,omitempty" json:"created_at__lte,omitempty"` - - // CreatedAtIn SQL IN operator, permits comma-separated values - CreatedAtIn *time.Time `form:"created_at__in,omitempty" json:"created_at__in,omitempty"` - - // CreatedAtNin SQL NOT IN operator, permits comma-separated values - CreatedAtNin *time.Time `form:"created_at__nin,omitempty" json:"created_at__nin,omitempty"` - - // CreatedAtNotin SQL NOT IN operator, permits comma-separated values - CreatedAtNotin *time.Time `form:"created_at__notin,omitempty" json:"created_at__notin,omitempty"` - - // CreatedAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - CreatedAtIsnull *time.Time `form:"created_at__isnull,omitempty" json:"created_at__isnull,omitempty"` - - // CreatedAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - CreatedAtNisnull *time.Time `form:"created_at__nisnull,omitempty" json:"created_at__nisnull,omitempty"` - - // CreatedAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - CreatedAtIsnotnull *time.Time `form:"created_at__isnotnull,omitempty" json:"created_at__isnotnull,omitempty"` - - // CreatedAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtL *time.Time `form:"created_at__l,omitempty" json:"created_at__l,omitempty"` - - // CreatedAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtLike *time.Time `form:"created_at__like,omitempty" json:"created_at__like,omitempty"` - - // CreatedAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNl *time.Time `form:"created_at__nl,omitempty" json:"created_at__nl,omitempty"` - - // CreatedAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNlike *time.Time `form:"created_at__nlike,omitempty" json:"created_at__nlike,omitempty"` - - // CreatedAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNotlike *time.Time `form:"created_at__notlike,omitempty" json:"created_at__notlike,omitempty"` - - // CreatedAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtIl *time.Time `form:"created_at__il,omitempty" json:"created_at__il,omitempty"` - - // CreatedAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtIlike *time.Time `form:"created_at__ilike,omitempty" json:"created_at__ilike,omitempty"` - - // CreatedAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNil *time.Time `form:"created_at__nil,omitempty" json:"created_at__nil,omitempty"` - - // CreatedAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNilike *time.Time `form:"created_at__nilike,omitempty" json:"created_at__nilike,omitempty"` - - // CreatedAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNotilike *time.Time `form:"created_at__notilike,omitempty" json:"created_at__notilike,omitempty"` - - // CreatedAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - CreatedAtDesc *time.Time `form:"created_at__desc,omitempty" json:"created_at__desc,omitempty"` - - // CreatedAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - CreatedAtAsc *time.Time `form:"created_at__asc,omitempty" json:"created_at__asc,omitempty"` - - // UpdatedAtEq SQL = operator - UpdatedAtEq *time.Time `form:"updated_at__eq,omitempty" json:"updated_at__eq,omitempty"` - - // UpdatedAtNe SQL != operator - UpdatedAtNe *time.Time `form:"updated_at__ne,omitempty" json:"updated_at__ne,omitempty"` - - // UpdatedAtGt SQL > operator, may not work with all column types - UpdatedAtGt *time.Time `form:"updated_at__gt,omitempty" json:"updated_at__gt,omitempty"` - - // UpdatedAtGte SQL >= operator, may not work with all column types - UpdatedAtGte *time.Time `form:"updated_at__gte,omitempty" json:"updated_at__gte,omitempty"` - - // UpdatedAtLt SQL < operator, may not work with all column types - UpdatedAtLt *time.Time `form:"updated_at__lt,omitempty" json:"updated_at__lt,omitempty"` - - // UpdatedAtLte SQL <= operator, may not work with all column types - UpdatedAtLte *time.Time `form:"updated_at__lte,omitempty" json:"updated_at__lte,omitempty"` - - // UpdatedAtIn SQL IN operator, permits comma-separated values - UpdatedAtIn *time.Time `form:"updated_at__in,omitempty" json:"updated_at__in,omitempty"` - - // UpdatedAtNin SQL NOT IN operator, permits comma-separated values - UpdatedAtNin *time.Time `form:"updated_at__nin,omitempty" json:"updated_at__nin,omitempty"` - - // UpdatedAtNotin SQL NOT IN operator, permits comma-separated values - UpdatedAtNotin *time.Time `form:"updated_at__notin,omitempty" json:"updated_at__notin,omitempty"` - - // UpdatedAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - UpdatedAtIsnull *time.Time `form:"updated_at__isnull,omitempty" json:"updated_at__isnull,omitempty"` - - // UpdatedAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - UpdatedAtNisnull *time.Time `form:"updated_at__nisnull,omitempty" json:"updated_at__nisnull,omitempty"` - - // UpdatedAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - UpdatedAtIsnotnull *time.Time `form:"updated_at__isnotnull,omitempty" json:"updated_at__isnotnull,omitempty"` - - // UpdatedAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtL *time.Time `form:"updated_at__l,omitempty" json:"updated_at__l,omitempty"` - - // UpdatedAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtLike *time.Time `form:"updated_at__like,omitempty" json:"updated_at__like,omitempty"` - - // UpdatedAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNl *time.Time `form:"updated_at__nl,omitempty" json:"updated_at__nl,omitempty"` - - // UpdatedAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNlike *time.Time `form:"updated_at__nlike,omitempty" json:"updated_at__nlike,omitempty"` - - // UpdatedAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNotlike *time.Time `form:"updated_at__notlike,omitempty" json:"updated_at__notlike,omitempty"` - - // UpdatedAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtIl *time.Time `form:"updated_at__il,omitempty" json:"updated_at__il,omitempty"` - - // UpdatedAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtIlike *time.Time `form:"updated_at__ilike,omitempty" json:"updated_at__ilike,omitempty"` - - // UpdatedAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNil *time.Time `form:"updated_at__nil,omitempty" json:"updated_at__nil,omitempty"` - - // UpdatedAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNilike *time.Time `form:"updated_at__nilike,omitempty" json:"updated_at__nilike,omitempty"` - - // UpdatedAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNotilike *time.Time `form:"updated_at__notilike,omitempty" json:"updated_at__notilike,omitempty"` - - // UpdatedAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - UpdatedAtDesc *time.Time `form:"updated_at__desc,omitempty" json:"updated_at__desc,omitempty"` - - // UpdatedAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - UpdatedAtAsc *time.Time `form:"updated_at__asc,omitempty" json:"updated_at__asc,omitempty"` - - // DeletedAtEq SQL = operator - DeletedAtEq *time.Time `form:"deleted_at__eq,omitempty" json:"deleted_at__eq,omitempty"` - - // DeletedAtNe SQL != operator - DeletedAtNe *time.Time `form:"deleted_at__ne,omitempty" json:"deleted_at__ne,omitempty"` - - // DeletedAtGt SQL > operator, may not work with all column types - DeletedAtGt *time.Time `form:"deleted_at__gt,omitempty" json:"deleted_at__gt,omitempty"` - - // DeletedAtGte SQL >= operator, may not work with all column types - DeletedAtGte *time.Time `form:"deleted_at__gte,omitempty" json:"deleted_at__gte,omitempty"` - - // DeletedAtLt SQL < operator, may not work with all column types - DeletedAtLt *time.Time `form:"deleted_at__lt,omitempty" json:"deleted_at__lt,omitempty"` - - // DeletedAtLte SQL <= operator, may not work with all column types - DeletedAtLte *time.Time `form:"deleted_at__lte,omitempty" json:"deleted_at__lte,omitempty"` - - // DeletedAtIn SQL IN operator, permits comma-separated values - DeletedAtIn *time.Time `form:"deleted_at__in,omitempty" json:"deleted_at__in,omitempty"` - - // DeletedAtNin SQL NOT IN operator, permits comma-separated values - DeletedAtNin *time.Time `form:"deleted_at__nin,omitempty" json:"deleted_at__nin,omitempty"` - - // DeletedAtNotin SQL NOT IN operator, permits comma-separated values - DeletedAtNotin *time.Time `form:"deleted_at__notin,omitempty" json:"deleted_at__notin,omitempty"` - - // DeletedAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - DeletedAtIsnull *time.Time `form:"deleted_at__isnull,omitempty" json:"deleted_at__isnull,omitempty"` - - // DeletedAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - DeletedAtNisnull *time.Time `form:"deleted_at__nisnull,omitempty" json:"deleted_at__nisnull,omitempty"` - - // DeletedAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - DeletedAtIsnotnull *time.Time `form:"deleted_at__isnotnull,omitempty" json:"deleted_at__isnotnull,omitempty"` - - // DeletedAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtL *time.Time `form:"deleted_at__l,omitempty" json:"deleted_at__l,omitempty"` - - // DeletedAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtLike *time.Time `form:"deleted_at__like,omitempty" json:"deleted_at__like,omitempty"` - - // DeletedAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNl *time.Time `form:"deleted_at__nl,omitempty" json:"deleted_at__nl,omitempty"` - - // DeletedAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNlike *time.Time `form:"deleted_at__nlike,omitempty" json:"deleted_at__nlike,omitempty"` - - // DeletedAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNotlike *time.Time `form:"deleted_at__notlike,omitempty" json:"deleted_at__notlike,omitempty"` - - // DeletedAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtIl *time.Time `form:"deleted_at__il,omitempty" json:"deleted_at__il,omitempty"` - - // DeletedAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtIlike *time.Time `form:"deleted_at__ilike,omitempty" json:"deleted_at__ilike,omitempty"` - - // DeletedAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNil *time.Time `form:"deleted_at__nil,omitempty" json:"deleted_at__nil,omitempty"` - - // DeletedAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNilike *time.Time `form:"deleted_at__nilike,omitempty" json:"deleted_at__nilike,omitempty"` - - // DeletedAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNotilike *time.Time `form:"deleted_at__notilike,omitempty" json:"deleted_at__notilike,omitempty"` - - // DeletedAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - DeletedAtDesc *time.Time `form:"deleted_at__desc,omitempty" json:"deleted_at__desc,omitempty"` - - // DeletedAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - DeletedAtAsc *time.Time `form:"deleted_at__asc,omitempty" json:"deleted_at__asc,omitempty"` - - // NameEq SQL = operator - NameEq *string `form:"name__eq,omitempty" json:"name__eq,omitempty"` - - // NameNe SQL != operator - NameNe *string `form:"name__ne,omitempty" json:"name__ne,omitempty"` - - // NameGt SQL > operator, may not work with all column types - NameGt *string `form:"name__gt,omitempty" json:"name__gt,omitempty"` - - // NameGte SQL >= operator, may not work with all column types - NameGte *string `form:"name__gte,omitempty" json:"name__gte,omitempty"` - - // NameLt SQL < operator, may not work with all column types - NameLt *string `form:"name__lt,omitempty" json:"name__lt,omitempty"` - - // NameLte SQL <= operator, may not work with all column types - NameLte *string `form:"name__lte,omitempty" json:"name__lte,omitempty"` - - // NameIn SQL IN operator, permits comma-separated values - NameIn *string `form:"name__in,omitempty" json:"name__in,omitempty"` - - // NameNin SQL NOT IN operator, permits comma-separated values - NameNin *string `form:"name__nin,omitempty" json:"name__nin,omitempty"` - - // NameNotin SQL NOT IN operator, permits comma-separated values - NameNotin *string `form:"name__notin,omitempty" json:"name__notin,omitempty"` - - // NameIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - NameIsnull *string `form:"name__isnull,omitempty" json:"name__isnull,omitempty"` - - // NameNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - NameNisnull *string `form:"name__nisnull,omitempty" json:"name__nisnull,omitempty"` - - // NameIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - NameIsnotnull *string `form:"name__isnotnull,omitempty" json:"name__isnotnull,omitempty"` - - // NameL SQL LIKE operator, value is implicitly prefixed and suffixed with % - NameL *string `form:"name__l,omitempty" json:"name__l,omitempty"` - - // NameLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - NameLike *string `form:"name__like,omitempty" json:"name__like,omitempty"` - - // NameNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - NameNl *string `form:"name__nl,omitempty" json:"name__nl,omitempty"` - - // NameNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - NameNlike *string `form:"name__nlike,omitempty" json:"name__nlike,omitempty"` - - // NameNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - NameNotlike *string `form:"name__notlike,omitempty" json:"name__notlike,omitempty"` - - // NameIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - NameIl *string `form:"name__il,omitempty" json:"name__il,omitempty"` - - // NameIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - NameIlike *string `form:"name__ilike,omitempty" json:"name__ilike,omitempty"` - - // NameNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - NameNil *string `form:"name__nil,omitempty" json:"name__nil,omitempty"` - - // NameNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - NameNilike *string `form:"name__nilike,omitempty" json:"name__nilike,omitempty"` - - // NameNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - NameNotilike *string `form:"name__notilike,omitempty" json:"name__notilike,omitempty"` - - // NameDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - NameDesc *string `form:"name__desc,omitempty" json:"name__desc,omitempty"` - - // NameAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - NameAsc *string `form:"name__asc,omitempty" json:"name__asc,omitempty"` - - // StreamUrlEq SQL = operator - StreamUrlEq *string `form:"stream_url__eq,omitempty" json:"stream_url__eq,omitempty"` - - // StreamUrlNe SQL != operator - StreamUrlNe *string `form:"stream_url__ne,omitempty" json:"stream_url__ne,omitempty"` - - // StreamUrlGt SQL > operator, may not work with all column types - StreamUrlGt *string `form:"stream_url__gt,omitempty" json:"stream_url__gt,omitempty"` - - // StreamUrlGte SQL >= operator, may not work with all column types - StreamUrlGte *string `form:"stream_url__gte,omitempty" json:"stream_url__gte,omitempty"` - - // StreamUrlLt SQL < operator, may not work with all column types - StreamUrlLt *string `form:"stream_url__lt,omitempty" json:"stream_url__lt,omitempty"` - - // StreamUrlLte SQL <= operator, may not work with all column types - StreamUrlLte *string `form:"stream_url__lte,omitempty" json:"stream_url__lte,omitempty"` - - // StreamUrlIn SQL IN operator, permits comma-separated values - StreamUrlIn *string `form:"stream_url__in,omitempty" json:"stream_url__in,omitempty"` - - // StreamUrlNin SQL NOT IN operator, permits comma-separated values - StreamUrlNin *string `form:"stream_url__nin,omitempty" json:"stream_url__nin,omitempty"` - - // StreamUrlNotin SQL NOT IN operator, permits comma-separated values - StreamUrlNotin *string `form:"stream_url__notin,omitempty" json:"stream_url__notin,omitempty"` - - // StreamUrlIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - StreamUrlIsnull *string `form:"stream_url__isnull,omitempty" json:"stream_url__isnull,omitempty"` - - // StreamUrlNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - StreamUrlNisnull *string `form:"stream_url__nisnull,omitempty" json:"stream_url__nisnull,omitempty"` - - // StreamUrlIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - StreamUrlIsnotnull *string `form:"stream_url__isnotnull,omitempty" json:"stream_url__isnotnull,omitempty"` - - // StreamUrlL SQL LIKE operator, value is implicitly prefixed and suffixed with % - StreamUrlL *string `form:"stream_url__l,omitempty" json:"stream_url__l,omitempty"` - - // StreamUrlLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - StreamUrlLike *string `form:"stream_url__like,omitempty" json:"stream_url__like,omitempty"` - - // StreamUrlNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - StreamUrlNl *string `form:"stream_url__nl,omitempty" json:"stream_url__nl,omitempty"` - - // StreamUrlNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - StreamUrlNlike *string `form:"stream_url__nlike,omitempty" json:"stream_url__nlike,omitempty"` - - // StreamUrlNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - StreamUrlNotlike *string `form:"stream_url__notlike,omitempty" json:"stream_url__notlike,omitempty"` - - // StreamUrlIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - StreamUrlIl *string `form:"stream_url__il,omitempty" json:"stream_url__il,omitempty"` - - // StreamUrlIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - StreamUrlIlike *string `form:"stream_url__ilike,omitempty" json:"stream_url__ilike,omitempty"` - - // StreamUrlNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - StreamUrlNil *string `form:"stream_url__nil,omitempty" json:"stream_url__nil,omitempty"` - - // StreamUrlNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - StreamUrlNilike *string `form:"stream_url__nilike,omitempty" json:"stream_url__nilike,omitempty"` - - // StreamUrlNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - StreamUrlNotilike *string `form:"stream_url__notilike,omitempty" json:"stream_url__notilike,omitempty"` - - // StreamUrlDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - StreamUrlDesc *string `form:"stream_url__desc,omitempty" json:"stream_url__desc,omitempty"` - - // StreamUrlAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - StreamUrlAsc *string `form:"stream_url__asc,omitempty" json:"stream_url__asc,omitempty"` - - // LastSeenEq SQL = operator - LastSeenEq *time.Time `form:"last_seen__eq,omitempty" json:"last_seen__eq,omitempty"` - - // LastSeenNe SQL != operator - LastSeenNe *time.Time `form:"last_seen__ne,omitempty" json:"last_seen__ne,omitempty"` - - // LastSeenGt SQL > operator, may not work with all column types - LastSeenGt *time.Time `form:"last_seen__gt,omitempty" json:"last_seen__gt,omitempty"` - - // LastSeenGte SQL >= operator, may not work with all column types - LastSeenGte *time.Time `form:"last_seen__gte,omitempty" json:"last_seen__gte,omitempty"` - - // LastSeenLt SQL < operator, may not work with all column types - LastSeenLt *time.Time `form:"last_seen__lt,omitempty" json:"last_seen__lt,omitempty"` - - // LastSeenLte SQL <= operator, may not work with all column types - LastSeenLte *time.Time `form:"last_seen__lte,omitempty" json:"last_seen__lte,omitempty"` - - // LastSeenIn SQL IN operator, permits comma-separated values - LastSeenIn *time.Time `form:"last_seen__in,omitempty" json:"last_seen__in,omitempty"` - - // LastSeenNin SQL NOT IN operator, permits comma-separated values - LastSeenNin *time.Time `form:"last_seen__nin,omitempty" json:"last_seen__nin,omitempty"` - - // LastSeenNotin SQL NOT IN operator, permits comma-separated values - LastSeenNotin *time.Time `form:"last_seen__notin,omitempty" json:"last_seen__notin,omitempty"` - - // LastSeenIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - LastSeenIsnull *time.Time `form:"last_seen__isnull,omitempty" json:"last_seen__isnull,omitempty"` - - // LastSeenNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - LastSeenNisnull *time.Time `form:"last_seen__nisnull,omitempty" json:"last_seen__nisnull,omitempty"` - - // LastSeenIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - LastSeenIsnotnull *time.Time `form:"last_seen__isnotnull,omitempty" json:"last_seen__isnotnull,omitempty"` - - // LastSeenL SQL LIKE operator, value is implicitly prefixed and suffixed with % - LastSeenL *time.Time `form:"last_seen__l,omitempty" json:"last_seen__l,omitempty"` - - // LastSeenLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - LastSeenLike *time.Time `form:"last_seen__like,omitempty" json:"last_seen__like,omitempty"` - - // LastSeenNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - LastSeenNl *time.Time `form:"last_seen__nl,omitempty" json:"last_seen__nl,omitempty"` - - // LastSeenNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - LastSeenNlike *time.Time `form:"last_seen__nlike,omitempty" json:"last_seen__nlike,omitempty"` - - // LastSeenNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - LastSeenNotlike *time.Time `form:"last_seen__notlike,omitempty" json:"last_seen__notlike,omitempty"` - - // LastSeenIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - LastSeenIl *time.Time `form:"last_seen__il,omitempty" json:"last_seen__il,omitempty"` - - // LastSeenIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - LastSeenIlike *time.Time `form:"last_seen__ilike,omitempty" json:"last_seen__ilike,omitempty"` - - // LastSeenNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - LastSeenNil *time.Time `form:"last_seen__nil,omitempty" json:"last_seen__nil,omitempty"` - - // LastSeenNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - LastSeenNilike *time.Time `form:"last_seen__nilike,omitempty" json:"last_seen__nilike,omitempty"` - - // LastSeenNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - LastSeenNotilike *time.Time `form:"last_seen__notilike,omitempty" json:"last_seen__notilike,omitempty"` - - // LastSeenDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - LastSeenDesc *time.Time `form:"last_seen__desc,omitempty" json:"last_seen__desc,omitempty"` - - // LastSeenAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - LastSeenAsc *time.Time `form:"last_seen__asc,omitempty" json:"last_seen__asc,omitempty"` -} - -// PostCamerasJSONBody defines parameters for PostCameras. -type PostCamerasJSONBody = []Camera - -// GetDetectionsParams defines parameters for GetDetections. -type GetDetectionsParams struct { - // Limit SQL LIMIT operator - Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset SQL OFFSET operator - Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"` - - // IdEq SQL = operator - IdEq *openapi_types.UUID `form:"id__eq,omitempty" json:"id__eq,omitempty"` - - // IdNe SQL != operator - IdNe *openapi_types.UUID `form:"id__ne,omitempty" json:"id__ne,omitempty"` - - // IdGt SQL > operator, may not work with all column types - IdGt *openapi_types.UUID `form:"id__gt,omitempty" json:"id__gt,omitempty"` - - // IdGte SQL >= operator, may not work with all column types - IdGte *openapi_types.UUID `form:"id__gte,omitempty" json:"id__gte,omitempty"` - - // IdLt SQL < operator, may not work with all column types - IdLt *openapi_types.UUID `form:"id__lt,omitempty" json:"id__lt,omitempty"` - - // IdLte SQL <= operator, may not work with all column types - IdLte *openapi_types.UUID `form:"id__lte,omitempty" json:"id__lte,omitempty"` - - // IdIn SQL IN operator, permits comma-separated values - IdIn *openapi_types.UUID `form:"id__in,omitempty" json:"id__in,omitempty"` - - // IdNin SQL NOT IN operator, permits comma-separated values - IdNin *openapi_types.UUID `form:"id__nin,omitempty" json:"id__nin,omitempty"` - - // IdNotin SQL NOT IN operator, permits comma-separated values - IdNotin *openapi_types.UUID `form:"id__notin,omitempty" json:"id__notin,omitempty"` - - // IdIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - IdIsnull *openapi_types.UUID `form:"id__isnull,omitempty" json:"id__isnull,omitempty"` - - // IdNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - IdNisnull *openapi_types.UUID `form:"id__nisnull,omitempty" json:"id__nisnull,omitempty"` - - // IdIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - IdIsnotnull *openapi_types.UUID `form:"id__isnotnull,omitempty" json:"id__isnotnull,omitempty"` - - // IdL SQL LIKE operator, value is implicitly prefixed and suffixed with % - IdL *openapi_types.UUID `form:"id__l,omitempty" json:"id__l,omitempty"` - - // IdLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - IdLike *openapi_types.UUID `form:"id__like,omitempty" json:"id__like,omitempty"` - - // IdNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - IdNl *openapi_types.UUID `form:"id__nl,omitempty" json:"id__nl,omitempty"` - - // IdNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - IdNlike *openapi_types.UUID `form:"id__nlike,omitempty" json:"id__nlike,omitempty"` - - // IdNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - IdNotlike *openapi_types.UUID `form:"id__notlike,omitempty" json:"id__notlike,omitempty"` - - // IdIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - IdIl *openapi_types.UUID `form:"id__il,omitempty" json:"id__il,omitempty"` - - // IdIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - IdIlike *openapi_types.UUID `form:"id__ilike,omitempty" json:"id__ilike,omitempty"` - - // IdNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - IdNil *openapi_types.UUID `form:"id__nil,omitempty" json:"id__nil,omitempty"` - - // IdNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - IdNilike *openapi_types.UUID `form:"id__nilike,omitempty" json:"id__nilike,omitempty"` - - // IdNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - IdNotilike *openapi_types.UUID `form:"id__notilike,omitempty" json:"id__notilike,omitempty"` - - // IdDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - IdDesc *openapi_types.UUID `form:"id__desc,omitempty" json:"id__desc,omitempty"` - - // IdAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - IdAsc *openapi_types.UUID `form:"id__asc,omitempty" json:"id__asc,omitempty"` - - // CreatedAtEq SQL = operator - CreatedAtEq *time.Time `form:"created_at__eq,omitempty" json:"created_at__eq,omitempty"` - - // CreatedAtNe SQL != operator - CreatedAtNe *time.Time `form:"created_at__ne,omitempty" json:"created_at__ne,omitempty"` - - // CreatedAtGt SQL > operator, may not work with all column types - CreatedAtGt *time.Time `form:"created_at__gt,omitempty" json:"created_at__gt,omitempty"` - - // CreatedAtGte SQL >= operator, may not work with all column types - CreatedAtGte *time.Time `form:"created_at__gte,omitempty" json:"created_at__gte,omitempty"` - - // CreatedAtLt SQL < operator, may not work with all column types - CreatedAtLt *time.Time `form:"created_at__lt,omitempty" json:"created_at__lt,omitempty"` - - // CreatedAtLte SQL <= operator, may not work with all column types - CreatedAtLte *time.Time `form:"created_at__lte,omitempty" json:"created_at__lte,omitempty"` - - // CreatedAtIn SQL IN operator, permits comma-separated values - CreatedAtIn *time.Time `form:"created_at__in,omitempty" json:"created_at__in,omitempty"` - - // CreatedAtNin SQL NOT IN operator, permits comma-separated values - CreatedAtNin *time.Time `form:"created_at__nin,omitempty" json:"created_at__nin,omitempty"` - - // CreatedAtNotin SQL NOT IN operator, permits comma-separated values - CreatedAtNotin *time.Time `form:"created_at__notin,omitempty" json:"created_at__notin,omitempty"` - - // CreatedAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - CreatedAtIsnull *time.Time `form:"created_at__isnull,omitempty" json:"created_at__isnull,omitempty"` - - // CreatedAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - CreatedAtNisnull *time.Time `form:"created_at__nisnull,omitempty" json:"created_at__nisnull,omitempty"` - - // CreatedAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - CreatedAtIsnotnull *time.Time `form:"created_at__isnotnull,omitempty" json:"created_at__isnotnull,omitempty"` - - // CreatedAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtL *time.Time `form:"created_at__l,omitempty" json:"created_at__l,omitempty"` - - // CreatedAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtLike *time.Time `form:"created_at__like,omitempty" json:"created_at__like,omitempty"` - - // CreatedAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNl *time.Time `form:"created_at__nl,omitempty" json:"created_at__nl,omitempty"` - - // CreatedAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNlike *time.Time `form:"created_at__nlike,omitempty" json:"created_at__nlike,omitempty"` - - // CreatedAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNotlike *time.Time `form:"created_at__notlike,omitempty" json:"created_at__notlike,omitempty"` - - // CreatedAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtIl *time.Time `form:"created_at__il,omitempty" json:"created_at__il,omitempty"` - - // CreatedAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtIlike *time.Time `form:"created_at__ilike,omitempty" json:"created_at__ilike,omitempty"` - - // CreatedAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNil *time.Time `form:"created_at__nil,omitempty" json:"created_at__nil,omitempty"` - - // CreatedAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNilike *time.Time `form:"created_at__nilike,omitempty" json:"created_at__nilike,omitempty"` - - // CreatedAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNotilike *time.Time `form:"created_at__notilike,omitempty" json:"created_at__notilike,omitempty"` - - // CreatedAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - CreatedAtDesc *time.Time `form:"created_at__desc,omitempty" json:"created_at__desc,omitempty"` - - // CreatedAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - CreatedAtAsc *time.Time `form:"created_at__asc,omitempty" json:"created_at__asc,omitempty"` - - // UpdatedAtEq SQL = operator - UpdatedAtEq *time.Time `form:"updated_at__eq,omitempty" json:"updated_at__eq,omitempty"` - - // UpdatedAtNe SQL != operator - UpdatedAtNe *time.Time `form:"updated_at__ne,omitempty" json:"updated_at__ne,omitempty"` - - // UpdatedAtGt SQL > operator, may not work with all column types - UpdatedAtGt *time.Time `form:"updated_at__gt,omitempty" json:"updated_at__gt,omitempty"` - - // UpdatedAtGte SQL >= operator, may not work with all column types - UpdatedAtGte *time.Time `form:"updated_at__gte,omitempty" json:"updated_at__gte,omitempty"` - - // UpdatedAtLt SQL < operator, may not work with all column types - UpdatedAtLt *time.Time `form:"updated_at__lt,omitempty" json:"updated_at__lt,omitempty"` - - // UpdatedAtLte SQL <= operator, may not work with all column types - UpdatedAtLte *time.Time `form:"updated_at__lte,omitempty" json:"updated_at__lte,omitempty"` - - // UpdatedAtIn SQL IN operator, permits comma-separated values - UpdatedAtIn *time.Time `form:"updated_at__in,omitempty" json:"updated_at__in,omitempty"` - - // UpdatedAtNin SQL NOT IN operator, permits comma-separated values - UpdatedAtNin *time.Time `form:"updated_at__nin,omitempty" json:"updated_at__nin,omitempty"` - - // UpdatedAtNotin SQL NOT IN operator, permits comma-separated values - UpdatedAtNotin *time.Time `form:"updated_at__notin,omitempty" json:"updated_at__notin,omitempty"` - - // UpdatedAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - UpdatedAtIsnull *time.Time `form:"updated_at__isnull,omitempty" json:"updated_at__isnull,omitempty"` - - // UpdatedAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - UpdatedAtNisnull *time.Time `form:"updated_at__nisnull,omitempty" json:"updated_at__nisnull,omitempty"` - - // UpdatedAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - UpdatedAtIsnotnull *time.Time `form:"updated_at__isnotnull,omitempty" json:"updated_at__isnotnull,omitempty"` - - // UpdatedAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtL *time.Time `form:"updated_at__l,omitempty" json:"updated_at__l,omitempty"` - - // UpdatedAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtLike *time.Time `form:"updated_at__like,omitempty" json:"updated_at__like,omitempty"` - - // UpdatedAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNl *time.Time `form:"updated_at__nl,omitempty" json:"updated_at__nl,omitempty"` - - // UpdatedAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNlike *time.Time `form:"updated_at__nlike,omitempty" json:"updated_at__nlike,omitempty"` - - // UpdatedAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNotlike *time.Time `form:"updated_at__notlike,omitempty" json:"updated_at__notlike,omitempty"` - - // UpdatedAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtIl *time.Time `form:"updated_at__il,omitempty" json:"updated_at__il,omitempty"` - - // UpdatedAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtIlike *time.Time `form:"updated_at__ilike,omitempty" json:"updated_at__ilike,omitempty"` - - // UpdatedAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNil *time.Time `form:"updated_at__nil,omitempty" json:"updated_at__nil,omitempty"` - - // UpdatedAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNilike *time.Time `form:"updated_at__nilike,omitempty" json:"updated_at__nilike,omitempty"` - - // UpdatedAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNotilike *time.Time `form:"updated_at__notilike,omitempty" json:"updated_at__notilike,omitempty"` - - // UpdatedAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - UpdatedAtDesc *time.Time `form:"updated_at__desc,omitempty" json:"updated_at__desc,omitempty"` - - // UpdatedAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - UpdatedAtAsc *time.Time `form:"updated_at__asc,omitempty" json:"updated_at__asc,omitempty"` - - // DeletedAtEq SQL = operator - DeletedAtEq *time.Time `form:"deleted_at__eq,omitempty" json:"deleted_at__eq,omitempty"` - - // DeletedAtNe SQL != operator - DeletedAtNe *time.Time `form:"deleted_at__ne,omitempty" json:"deleted_at__ne,omitempty"` - - // DeletedAtGt SQL > operator, may not work with all column types - DeletedAtGt *time.Time `form:"deleted_at__gt,omitempty" json:"deleted_at__gt,omitempty"` - - // DeletedAtGte SQL >= operator, may not work with all column types - DeletedAtGte *time.Time `form:"deleted_at__gte,omitempty" json:"deleted_at__gte,omitempty"` - - // DeletedAtLt SQL < operator, may not work with all column types - DeletedAtLt *time.Time `form:"deleted_at__lt,omitempty" json:"deleted_at__lt,omitempty"` - - // DeletedAtLte SQL <= operator, may not work with all column types - DeletedAtLte *time.Time `form:"deleted_at__lte,omitempty" json:"deleted_at__lte,omitempty"` - - // DeletedAtIn SQL IN operator, permits comma-separated values - DeletedAtIn *time.Time `form:"deleted_at__in,omitempty" json:"deleted_at__in,omitempty"` - - // DeletedAtNin SQL NOT IN operator, permits comma-separated values - DeletedAtNin *time.Time `form:"deleted_at__nin,omitempty" json:"deleted_at__nin,omitempty"` - - // DeletedAtNotin SQL NOT IN operator, permits comma-separated values - DeletedAtNotin *time.Time `form:"deleted_at__notin,omitempty" json:"deleted_at__notin,omitempty"` - - // DeletedAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - DeletedAtIsnull *time.Time `form:"deleted_at__isnull,omitempty" json:"deleted_at__isnull,omitempty"` - - // DeletedAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - DeletedAtNisnull *time.Time `form:"deleted_at__nisnull,omitempty" json:"deleted_at__nisnull,omitempty"` - - // DeletedAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - DeletedAtIsnotnull *time.Time `form:"deleted_at__isnotnull,omitempty" json:"deleted_at__isnotnull,omitempty"` - - // DeletedAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtL *time.Time `form:"deleted_at__l,omitempty" json:"deleted_at__l,omitempty"` - - // DeletedAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtLike *time.Time `form:"deleted_at__like,omitempty" json:"deleted_at__like,omitempty"` - - // DeletedAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNl *time.Time `form:"deleted_at__nl,omitempty" json:"deleted_at__nl,omitempty"` - - // DeletedAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNlike *time.Time `form:"deleted_at__nlike,omitempty" json:"deleted_at__nlike,omitempty"` - - // DeletedAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNotlike *time.Time `form:"deleted_at__notlike,omitempty" json:"deleted_at__notlike,omitempty"` - - // DeletedAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtIl *time.Time `form:"deleted_at__il,omitempty" json:"deleted_at__il,omitempty"` - - // DeletedAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtIlike *time.Time `form:"deleted_at__ilike,omitempty" json:"deleted_at__ilike,omitempty"` - - // DeletedAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNil *time.Time `form:"deleted_at__nil,omitempty" json:"deleted_at__nil,omitempty"` - - // DeletedAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNilike *time.Time `form:"deleted_at__nilike,omitempty" json:"deleted_at__nilike,omitempty"` - - // DeletedAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNotilike *time.Time `form:"deleted_at__notilike,omitempty" json:"deleted_at__notilike,omitempty"` - - // DeletedAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - DeletedAtDesc *time.Time `form:"deleted_at__desc,omitempty" json:"deleted_at__desc,omitempty"` - - // DeletedAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - DeletedAtAsc *time.Time `form:"deleted_at__asc,omitempty" json:"deleted_at__asc,omitempty"` - - // SeenAtEq SQL = operator - SeenAtEq *time.Time `form:"seen_at__eq,omitempty" json:"seen_at__eq,omitempty"` - - // SeenAtNe SQL != operator - SeenAtNe *time.Time `form:"seen_at__ne,omitempty" json:"seen_at__ne,omitempty"` - - // SeenAtGt SQL > operator, may not work with all column types - SeenAtGt *time.Time `form:"seen_at__gt,omitempty" json:"seen_at__gt,omitempty"` - - // SeenAtGte SQL >= operator, may not work with all column types - SeenAtGte *time.Time `form:"seen_at__gte,omitempty" json:"seen_at__gte,omitempty"` - - // SeenAtLt SQL < operator, may not work with all column types - SeenAtLt *time.Time `form:"seen_at__lt,omitempty" json:"seen_at__lt,omitempty"` - - // SeenAtLte SQL <= operator, may not work with all column types - SeenAtLte *time.Time `form:"seen_at__lte,omitempty" json:"seen_at__lte,omitempty"` - - // SeenAtIn SQL IN operator, permits comma-separated values - SeenAtIn *time.Time `form:"seen_at__in,omitempty" json:"seen_at__in,omitempty"` - - // SeenAtNin SQL NOT IN operator, permits comma-separated values - SeenAtNin *time.Time `form:"seen_at__nin,omitempty" json:"seen_at__nin,omitempty"` - - // SeenAtNotin SQL NOT IN operator, permits comma-separated values - SeenAtNotin *time.Time `form:"seen_at__notin,omitempty" json:"seen_at__notin,omitempty"` - - // SeenAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - SeenAtIsnull *time.Time `form:"seen_at__isnull,omitempty" json:"seen_at__isnull,omitempty"` - - // SeenAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - SeenAtNisnull *time.Time `form:"seen_at__nisnull,omitempty" json:"seen_at__nisnull,omitempty"` - - // SeenAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - SeenAtIsnotnull *time.Time `form:"seen_at__isnotnull,omitempty" json:"seen_at__isnotnull,omitempty"` - - // SeenAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - SeenAtL *time.Time `form:"seen_at__l,omitempty" json:"seen_at__l,omitempty"` - - // SeenAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - SeenAtLike *time.Time `form:"seen_at__like,omitempty" json:"seen_at__like,omitempty"` - - // SeenAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - SeenAtNl *time.Time `form:"seen_at__nl,omitempty" json:"seen_at__nl,omitempty"` - - // SeenAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - SeenAtNlike *time.Time `form:"seen_at__nlike,omitempty" json:"seen_at__nlike,omitempty"` - - // SeenAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - SeenAtNotlike *time.Time `form:"seen_at__notlike,omitempty" json:"seen_at__notlike,omitempty"` - - // SeenAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - SeenAtIl *time.Time `form:"seen_at__il,omitempty" json:"seen_at__il,omitempty"` - - // SeenAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - SeenAtIlike *time.Time `form:"seen_at__ilike,omitempty" json:"seen_at__ilike,omitempty"` - - // SeenAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - SeenAtNil *time.Time `form:"seen_at__nil,omitempty" json:"seen_at__nil,omitempty"` - - // SeenAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - SeenAtNilike *time.Time `form:"seen_at__nilike,omitempty" json:"seen_at__nilike,omitempty"` - - // SeenAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - SeenAtNotilike *time.Time `form:"seen_at__notilike,omitempty" json:"seen_at__notilike,omitempty"` - - // SeenAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - SeenAtDesc *time.Time `form:"seen_at__desc,omitempty" json:"seen_at__desc,omitempty"` - - // SeenAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - SeenAtAsc *time.Time `form:"seen_at__asc,omitempty" json:"seen_at__asc,omitempty"` - - // ClassIdEq SQL = operator - ClassIdEq *int64 `form:"class_id__eq,omitempty" json:"class_id__eq,omitempty"` - - // ClassIdNe SQL != operator - ClassIdNe *int64 `form:"class_id__ne,omitempty" json:"class_id__ne,omitempty"` - - // ClassIdGt SQL > operator, may not work with all column types - ClassIdGt *int64 `form:"class_id__gt,omitempty" json:"class_id__gt,omitempty"` - - // ClassIdGte SQL >= operator, may not work with all column types - ClassIdGte *int64 `form:"class_id__gte,omitempty" json:"class_id__gte,omitempty"` - - // ClassIdLt SQL < operator, may not work with all column types - ClassIdLt *int64 `form:"class_id__lt,omitempty" json:"class_id__lt,omitempty"` - - // ClassIdLte SQL <= operator, may not work with all column types - ClassIdLte *int64 `form:"class_id__lte,omitempty" json:"class_id__lte,omitempty"` - - // ClassIdIn SQL IN operator, permits comma-separated values - ClassIdIn *int64 `form:"class_id__in,omitempty" json:"class_id__in,omitempty"` - - // ClassIdNin SQL NOT IN operator, permits comma-separated values - ClassIdNin *int64 `form:"class_id__nin,omitempty" json:"class_id__nin,omitempty"` - - // ClassIdNotin SQL NOT IN operator, permits comma-separated values - ClassIdNotin *int64 `form:"class_id__notin,omitempty" json:"class_id__notin,omitempty"` - - // ClassIdIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - ClassIdIsnull *int64 `form:"class_id__isnull,omitempty" json:"class_id__isnull,omitempty"` - - // ClassIdNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - ClassIdNisnull *int64 `form:"class_id__nisnull,omitempty" json:"class_id__nisnull,omitempty"` - - // ClassIdIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - ClassIdIsnotnull *int64 `form:"class_id__isnotnull,omitempty" json:"class_id__isnotnull,omitempty"` - - // ClassIdL SQL LIKE operator, value is implicitly prefixed and suffixed with % - ClassIdL *int64 `form:"class_id__l,omitempty" json:"class_id__l,omitempty"` - - // ClassIdLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - ClassIdLike *int64 `form:"class_id__like,omitempty" json:"class_id__like,omitempty"` - - // ClassIdNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ClassIdNl *int64 `form:"class_id__nl,omitempty" json:"class_id__nl,omitempty"` - - // ClassIdNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ClassIdNlike *int64 `form:"class_id__nlike,omitempty" json:"class_id__nlike,omitempty"` - - // ClassIdNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ClassIdNotlike *int64 `form:"class_id__notlike,omitempty" json:"class_id__notlike,omitempty"` - - // ClassIdIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - ClassIdIl *int64 `form:"class_id__il,omitempty" json:"class_id__il,omitempty"` - - // ClassIdIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - ClassIdIlike *int64 `form:"class_id__ilike,omitempty" json:"class_id__ilike,omitempty"` - - // ClassIdNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ClassIdNil *int64 `form:"class_id__nil,omitempty" json:"class_id__nil,omitempty"` - - // ClassIdNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ClassIdNilike *int64 `form:"class_id__nilike,omitempty" json:"class_id__nilike,omitempty"` - - // ClassIdNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ClassIdNotilike *int64 `form:"class_id__notilike,omitempty" json:"class_id__notilike,omitempty"` - - // ClassIdDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - ClassIdDesc *int64 `form:"class_id__desc,omitempty" json:"class_id__desc,omitempty"` - - // ClassIdAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - ClassIdAsc *int64 `form:"class_id__asc,omitempty" json:"class_id__asc,omitempty"` - - // ClassNameEq SQL = operator - ClassNameEq *string `form:"class_name__eq,omitempty" json:"class_name__eq,omitempty"` - - // ClassNameNe SQL != operator - ClassNameNe *string `form:"class_name__ne,omitempty" json:"class_name__ne,omitempty"` - - // ClassNameGt SQL > operator, may not work with all column types - ClassNameGt *string `form:"class_name__gt,omitempty" json:"class_name__gt,omitempty"` - - // ClassNameGte SQL >= operator, may not work with all column types - ClassNameGte *string `form:"class_name__gte,omitempty" json:"class_name__gte,omitempty"` - - // ClassNameLt SQL < operator, may not work with all column types - ClassNameLt *string `form:"class_name__lt,omitempty" json:"class_name__lt,omitempty"` - - // ClassNameLte SQL <= operator, may not work with all column types - ClassNameLte *string `form:"class_name__lte,omitempty" json:"class_name__lte,omitempty"` - - // ClassNameIn SQL IN operator, permits comma-separated values - ClassNameIn *string `form:"class_name__in,omitempty" json:"class_name__in,omitempty"` - - // ClassNameNin SQL NOT IN operator, permits comma-separated values - ClassNameNin *string `form:"class_name__nin,omitempty" json:"class_name__nin,omitempty"` - - // ClassNameNotin SQL NOT IN operator, permits comma-separated values - ClassNameNotin *string `form:"class_name__notin,omitempty" json:"class_name__notin,omitempty"` - - // ClassNameIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - ClassNameIsnull *string `form:"class_name__isnull,omitempty" json:"class_name__isnull,omitempty"` - - // ClassNameNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - ClassNameNisnull *string `form:"class_name__nisnull,omitempty" json:"class_name__nisnull,omitempty"` - - // ClassNameIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - ClassNameIsnotnull *string `form:"class_name__isnotnull,omitempty" json:"class_name__isnotnull,omitempty"` - - // ClassNameL SQL LIKE operator, value is implicitly prefixed and suffixed with % - ClassNameL *string `form:"class_name__l,omitempty" json:"class_name__l,omitempty"` - - // ClassNameLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - ClassNameLike *string `form:"class_name__like,omitempty" json:"class_name__like,omitempty"` - - // ClassNameNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ClassNameNl *string `form:"class_name__nl,omitempty" json:"class_name__nl,omitempty"` - - // ClassNameNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ClassNameNlike *string `form:"class_name__nlike,omitempty" json:"class_name__nlike,omitempty"` - - // ClassNameNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ClassNameNotlike *string `form:"class_name__notlike,omitempty" json:"class_name__notlike,omitempty"` - - // ClassNameIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - ClassNameIl *string `form:"class_name__il,omitempty" json:"class_name__il,omitempty"` - - // ClassNameIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - ClassNameIlike *string `form:"class_name__ilike,omitempty" json:"class_name__ilike,omitempty"` - - // ClassNameNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ClassNameNil *string `form:"class_name__nil,omitempty" json:"class_name__nil,omitempty"` - - // ClassNameNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ClassNameNilike *string `form:"class_name__nilike,omitempty" json:"class_name__nilike,omitempty"` - - // ClassNameNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ClassNameNotilike *string `form:"class_name__notilike,omitempty" json:"class_name__notilike,omitempty"` - - // ClassNameDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - ClassNameDesc *string `form:"class_name__desc,omitempty" json:"class_name__desc,omitempty"` - - // ClassNameAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - ClassNameAsc *string `form:"class_name__asc,omitempty" json:"class_name__asc,omitempty"` - - // ScoreEq SQL = operator - ScoreEq *float64 `form:"score__eq,omitempty" json:"score__eq,omitempty"` - - // ScoreNe SQL != operator - ScoreNe *float64 `form:"score__ne,omitempty" json:"score__ne,omitempty"` - - // ScoreGt SQL > operator, may not work with all column types - ScoreGt *float64 `form:"score__gt,omitempty" json:"score__gt,omitempty"` - - // ScoreGte SQL >= operator, may not work with all column types - ScoreGte *float64 `form:"score__gte,omitempty" json:"score__gte,omitempty"` - - // ScoreLt SQL < operator, may not work with all column types - ScoreLt *float64 `form:"score__lt,omitempty" json:"score__lt,omitempty"` - - // ScoreLte SQL <= operator, may not work with all column types - ScoreLte *float64 `form:"score__lte,omitempty" json:"score__lte,omitempty"` - - // ScoreIn SQL IN operator, permits comma-separated values - ScoreIn *float64 `form:"score__in,omitempty" json:"score__in,omitempty"` - - // ScoreNin SQL NOT IN operator, permits comma-separated values - ScoreNin *float64 `form:"score__nin,omitempty" json:"score__nin,omitempty"` - - // ScoreNotin SQL NOT IN operator, permits comma-separated values - ScoreNotin *float64 `form:"score__notin,omitempty" json:"score__notin,omitempty"` - - // ScoreIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - ScoreIsnull *float64 `form:"score__isnull,omitempty" json:"score__isnull,omitempty"` - - // ScoreNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - ScoreNisnull *float64 `form:"score__nisnull,omitempty" json:"score__nisnull,omitempty"` - - // ScoreIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - ScoreIsnotnull *float64 `form:"score__isnotnull,omitempty" json:"score__isnotnull,omitempty"` - - // ScoreL SQL LIKE operator, value is implicitly prefixed and suffixed with % - ScoreL *float64 `form:"score__l,omitempty" json:"score__l,omitempty"` - - // ScoreLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - ScoreLike *float64 `form:"score__like,omitempty" json:"score__like,omitempty"` - - // ScoreNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ScoreNl *float64 `form:"score__nl,omitempty" json:"score__nl,omitempty"` - - // ScoreNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ScoreNlike *float64 `form:"score__nlike,omitempty" json:"score__nlike,omitempty"` - - // ScoreNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ScoreNotlike *float64 `form:"score__notlike,omitempty" json:"score__notlike,omitempty"` - - // ScoreIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - ScoreIl *float64 `form:"score__il,omitempty" json:"score__il,omitempty"` - - // ScoreIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - ScoreIlike *float64 `form:"score__ilike,omitempty" json:"score__ilike,omitempty"` - - // ScoreNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ScoreNil *float64 `form:"score__nil,omitempty" json:"score__nil,omitempty"` - - // ScoreNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ScoreNilike *float64 `form:"score__nilike,omitempty" json:"score__nilike,omitempty"` - - // ScoreNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ScoreNotilike *float64 `form:"score__notilike,omitempty" json:"score__notilike,omitempty"` - - // ScoreDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - ScoreDesc *float64 `form:"score__desc,omitempty" json:"score__desc,omitempty"` - - // ScoreAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - ScoreAsc *float64 `form:"score__asc,omitempty" json:"score__asc,omitempty"` - - // CameraIdEq SQL = operator - CameraIdEq *openapi_types.UUID `form:"camera_id__eq,omitempty" json:"camera_id__eq,omitempty"` - - // CameraIdNe SQL != operator - CameraIdNe *openapi_types.UUID `form:"camera_id__ne,omitempty" json:"camera_id__ne,omitempty"` - - // CameraIdGt SQL > operator, may not work with all column types - CameraIdGt *openapi_types.UUID `form:"camera_id__gt,omitempty" json:"camera_id__gt,omitempty"` - - // CameraIdGte SQL >= operator, may not work with all column types - CameraIdGte *openapi_types.UUID `form:"camera_id__gte,omitempty" json:"camera_id__gte,omitempty"` - - // CameraIdLt SQL < operator, may not work with all column types - CameraIdLt *openapi_types.UUID `form:"camera_id__lt,omitempty" json:"camera_id__lt,omitempty"` - - // CameraIdLte SQL <= operator, may not work with all column types - CameraIdLte *openapi_types.UUID `form:"camera_id__lte,omitempty" json:"camera_id__lte,omitempty"` - - // CameraIdIn SQL IN operator, permits comma-separated values - CameraIdIn *openapi_types.UUID `form:"camera_id__in,omitempty" json:"camera_id__in,omitempty"` - - // CameraIdNin SQL NOT IN operator, permits comma-separated values - CameraIdNin *openapi_types.UUID `form:"camera_id__nin,omitempty" json:"camera_id__nin,omitempty"` - - // CameraIdNotin SQL NOT IN operator, permits comma-separated values - CameraIdNotin *openapi_types.UUID `form:"camera_id__notin,omitempty" json:"camera_id__notin,omitempty"` - - // CameraIdIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - CameraIdIsnull *openapi_types.UUID `form:"camera_id__isnull,omitempty" json:"camera_id__isnull,omitempty"` - - // CameraIdNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - CameraIdNisnull *openapi_types.UUID `form:"camera_id__nisnull,omitempty" json:"camera_id__nisnull,omitempty"` - - // CameraIdIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - CameraIdIsnotnull *openapi_types.UUID `form:"camera_id__isnotnull,omitempty" json:"camera_id__isnotnull,omitempty"` - - // CameraIdL SQL LIKE operator, value is implicitly prefixed and suffixed with % - CameraIdL *openapi_types.UUID `form:"camera_id__l,omitempty" json:"camera_id__l,omitempty"` - - // CameraIdLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - CameraIdLike *openapi_types.UUID `form:"camera_id__like,omitempty" json:"camera_id__like,omitempty"` - - // CameraIdNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNl *openapi_types.UUID `form:"camera_id__nl,omitempty" json:"camera_id__nl,omitempty"` - - // CameraIdNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNlike *openapi_types.UUID `form:"camera_id__nlike,omitempty" json:"camera_id__nlike,omitempty"` - - // CameraIdNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNotlike *openapi_types.UUID `form:"camera_id__notlike,omitempty" json:"camera_id__notlike,omitempty"` - - // CameraIdIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - CameraIdIl *openapi_types.UUID `form:"camera_id__il,omitempty" json:"camera_id__il,omitempty"` - - // CameraIdIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - CameraIdIlike *openapi_types.UUID `form:"camera_id__ilike,omitempty" json:"camera_id__ilike,omitempty"` - - // CameraIdNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNil *openapi_types.UUID `form:"camera_id__nil,omitempty" json:"camera_id__nil,omitempty"` - - // CameraIdNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNilike *openapi_types.UUID `form:"camera_id__nilike,omitempty" json:"camera_id__nilike,omitempty"` - - // CameraIdNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNotilike *openapi_types.UUID `form:"camera_id__notilike,omitempty" json:"camera_id__notilike,omitempty"` - - // CameraIdDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - CameraIdDesc *openapi_types.UUID `form:"camera_id__desc,omitempty" json:"camera_id__desc,omitempty"` - - // CameraIdAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - CameraIdAsc *openapi_types.UUID `form:"camera_id__asc,omitempty" json:"camera_id__asc,omitempty"` -} - -// PostDetectionsJSONBody defines parameters for PostDetections. -type PostDetectionsJSONBody = []Detection - -// GetVideosParams defines parameters for GetVideos. -type GetVideosParams struct { - // Limit SQL LIMIT operator - Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset SQL OFFSET operator - Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"` - - // IdEq SQL = operator - IdEq *openapi_types.UUID `form:"id__eq,omitempty" json:"id__eq,omitempty"` - - // IdNe SQL != operator - IdNe *openapi_types.UUID `form:"id__ne,omitempty" json:"id__ne,omitempty"` - - // IdGt SQL > operator, may not work with all column types - IdGt *openapi_types.UUID `form:"id__gt,omitempty" json:"id__gt,omitempty"` - - // IdGte SQL >= operator, may not work with all column types - IdGte *openapi_types.UUID `form:"id__gte,omitempty" json:"id__gte,omitempty"` - - // IdLt SQL < operator, may not work with all column types - IdLt *openapi_types.UUID `form:"id__lt,omitempty" json:"id__lt,omitempty"` - - // IdLte SQL <= operator, may not work with all column types - IdLte *openapi_types.UUID `form:"id__lte,omitempty" json:"id__lte,omitempty"` - - // IdIn SQL IN operator, permits comma-separated values - IdIn *openapi_types.UUID `form:"id__in,omitempty" json:"id__in,omitempty"` - - // IdNin SQL NOT IN operator, permits comma-separated values - IdNin *openapi_types.UUID `form:"id__nin,omitempty" json:"id__nin,omitempty"` - - // IdNotin SQL NOT IN operator, permits comma-separated values - IdNotin *openapi_types.UUID `form:"id__notin,omitempty" json:"id__notin,omitempty"` - - // IdIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - IdIsnull *openapi_types.UUID `form:"id__isnull,omitempty" json:"id__isnull,omitempty"` - - // IdNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - IdNisnull *openapi_types.UUID `form:"id__nisnull,omitempty" json:"id__nisnull,omitempty"` - - // IdIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - IdIsnotnull *openapi_types.UUID `form:"id__isnotnull,omitempty" json:"id__isnotnull,omitempty"` - - // IdL SQL LIKE operator, value is implicitly prefixed and suffixed with % - IdL *openapi_types.UUID `form:"id__l,omitempty" json:"id__l,omitempty"` - - // IdLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - IdLike *openapi_types.UUID `form:"id__like,omitempty" json:"id__like,omitempty"` - - // IdNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - IdNl *openapi_types.UUID `form:"id__nl,omitempty" json:"id__nl,omitempty"` - - // IdNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - IdNlike *openapi_types.UUID `form:"id__nlike,omitempty" json:"id__nlike,omitempty"` - - // IdNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - IdNotlike *openapi_types.UUID `form:"id__notlike,omitempty" json:"id__notlike,omitempty"` - - // IdIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - IdIl *openapi_types.UUID `form:"id__il,omitempty" json:"id__il,omitempty"` - - // IdIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - IdIlike *openapi_types.UUID `form:"id__ilike,omitempty" json:"id__ilike,omitempty"` - - // IdNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - IdNil *openapi_types.UUID `form:"id__nil,omitempty" json:"id__nil,omitempty"` - - // IdNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - IdNilike *openapi_types.UUID `form:"id__nilike,omitempty" json:"id__nilike,omitempty"` - - // IdNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - IdNotilike *openapi_types.UUID `form:"id__notilike,omitempty" json:"id__notilike,omitempty"` - - // IdDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - IdDesc *openapi_types.UUID `form:"id__desc,omitempty" json:"id__desc,omitempty"` - - // IdAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - IdAsc *openapi_types.UUID `form:"id__asc,omitempty" json:"id__asc,omitempty"` - - // CreatedAtEq SQL = operator - CreatedAtEq *time.Time `form:"created_at__eq,omitempty" json:"created_at__eq,omitempty"` - - // CreatedAtNe SQL != operator - CreatedAtNe *time.Time `form:"created_at__ne,omitempty" json:"created_at__ne,omitempty"` - - // CreatedAtGt SQL > operator, may not work with all column types - CreatedAtGt *time.Time `form:"created_at__gt,omitempty" json:"created_at__gt,omitempty"` - - // CreatedAtGte SQL >= operator, may not work with all column types - CreatedAtGte *time.Time `form:"created_at__gte,omitempty" json:"created_at__gte,omitempty"` - - // CreatedAtLt SQL < operator, may not work with all column types - CreatedAtLt *time.Time `form:"created_at__lt,omitempty" json:"created_at__lt,omitempty"` - - // CreatedAtLte SQL <= operator, may not work with all column types - CreatedAtLte *time.Time `form:"created_at__lte,omitempty" json:"created_at__lte,omitempty"` - - // CreatedAtIn SQL IN operator, permits comma-separated values - CreatedAtIn *time.Time `form:"created_at__in,omitempty" json:"created_at__in,omitempty"` - - // CreatedAtNin SQL NOT IN operator, permits comma-separated values - CreatedAtNin *time.Time `form:"created_at__nin,omitempty" json:"created_at__nin,omitempty"` - - // CreatedAtNotin SQL NOT IN operator, permits comma-separated values - CreatedAtNotin *time.Time `form:"created_at__notin,omitempty" json:"created_at__notin,omitempty"` - - // CreatedAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - CreatedAtIsnull *time.Time `form:"created_at__isnull,omitempty" json:"created_at__isnull,omitempty"` - - // CreatedAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - CreatedAtNisnull *time.Time `form:"created_at__nisnull,omitempty" json:"created_at__nisnull,omitempty"` - - // CreatedAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - CreatedAtIsnotnull *time.Time `form:"created_at__isnotnull,omitempty" json:"created_at__isnotnull,omitempty"` - - // CreatedAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtL *time.Time `form:"created_at__l,omitempty" json:"created_at__l,omitempty"` - - // CreatedAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtLike *time.Time `form:"created_at__like,omitempty" json:"created_at__like,omitempty"` - - // CreatedAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNl *time.Time `form:"created_at__nl,omitempty" json:"created_at__nl,omitempty"` - - // CreatedAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNlike *time.Time `form:"created_at__nlike,omitempty" json:"created_at__nlike,omitempty"` - - // CreatedAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNotlike *time.Time `form:"created_at__notlike,omitempty" json:"created_at__notlike,omitempty"` - - // CreatedAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtIl *time.Time `form:"created_at__il,omitempty" json:"created_at__il,omitempty"` - - // CreatedAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtIlike *time.Time `form:"created_at__ilike,omitempty" json:"created_at__ilike,omitempty"` - - // CreatedAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNil *time.Time `form:"created_at__nil,omitempty" json:"created_at__nil,omitempty"` - - // CreatedAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNilike *time.Time `form:"created_at__nilike,omitempty" json:"created_at__nilike,omitempty"` - - // CreatedAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CreatedAtNotilike *time.Time `form:"created_at__notilike,omitempty" json:"created_at__notilike,omitempty"` - - // CreatedAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - CreatedAtDesc *time.Time `form:"created_at__desc,omitempty" json:"created_at__desc,omitempty"` - - // CreatedAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - CreatedAtAsc *time.Time `form:"created_at__asc,omitempty" json:"created_at__asc,omitempty"` - - // UpdatedAtEq SQL = operator - UpdatedAtEq *time.Time `form:"updated_at__eq,omitempty" json:"updated_at__eq,omitempty"` - - // UpdatedAtNe SQL != operator - UpdatedAtNe *time.Time `form:"updated_at__ne,omitempty" json:"updated_at__ne,omitempty"` - - // UpdatedAtGt SQL > operator, may not work with all column types - UpdatedAtGt *time.Time `form:"updated_at__gt,omitempty" json:"updated_at__gt,omitempty"` - - // UpdatedAtGte SQL >= operator, may not work with all column types - UpdatedAtGte *time.Time `form:"updated_at__gte,omitempty" json:"updated_at__gte,omitempty"` - - // UpdatedAtLt SQL < operator, may not work with all column types - UpdatedAtLt *time.Time `form:"updated_at__lt,omitempty" json:"updated_at__lt,omitempty"` - - // UpdatedAtLte SQL <= operator, may not work with all column types - UpdatedAtLte *time.Time `form:"updated_at__lte,omitempty" json:"updated_at__lte,omitempty"` - - // UpdatedAtIn SQL IN operator, permits comma-separated values - UpdatedAtIn *time.Time `form:"updated_at__in,omitempty" json:"updated_at__in,omitempty"` - - // UpdatedAtNin SQL NOT IN operator, permits comma-separated values - UpdatedAtNin *time.Time `form:"updated_at__nin,omitempty" json:"updated_at__nin,omitempty"` - - // UpdatedAtNotin SQL NOT IN operator, permits comma-separated values - UpdatedAtNotin *time.Time `form:"updated_at__notin,omitempty" json:"updated_at__notin,omitempty"` - - // UpdatedAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - UpdatedAtIsnull *time.Time `form:"updated_at__isnull,omitempty" json:"updated_at__isnull,omitempty"` - - // UpdatedAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - UpdatedAtNisnull *time.Time `form:"updated_at__nisnull,omitempty" json:"updated_at__nisnull,omitempty"` - - // UpdatedAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - UpdatedAtIsnotnull *time.Time `form:"updated_at__isnotnull,omitempty" json:"updated_at__isnotnull,omitempty"` - - // UpdatedAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtL *time.Time `form:"updated_at__l,omitempty" json:"updated_at__l,omitempty"` - - // UpdatedAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtLike *time.Time `form:"updated_at__like,omitempty" json:"updated_at__like,omitempty"` - - // UpdatedAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNl *time.Time `form:"updated_at__nl,omitempty" json:"updated_at__nl,omitempty"` - - // UpdatedAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNlike *time.Time `form:"updated_at__nlike,omitempty" json:"updated_at__nlike,omitempty"` - - // UpdatedAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNotlike *time.Time `form:"updated_at__notlike,omitempty" json:"updated_at__notlike,omitempty"` - - // UpdatedAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtIl *time.Time `form:"updated_at__il,omitempty" json:"updated_at__il,omitempty"` - - // UpdatedAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtIlike *time.Time `form:"updated_at__ilike,omitempty" json:"updated_at__ilike,omitempty"` - - // UpdatedAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNil *time.Time `form:"updated_at__nil,omitempty" json:"updated_at__nil,omitempty"` - - // UpdatedAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNilike *time.Time `form:"updated_at__nilike,omitempty" json:"updated_at__nilike,omitempty"` - - // UpdatedAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - UpdatedAtNotilike *time.Time `form:"updated_at__notilike,omitempty" json:"updated_at__notilike,omitempty"` - - // UpdatedAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - UpdatedAtDesc *time.Time `form:"updated_at__desc,omitempty" json:"updated_at__desc,omitempty"` - - // UpdatedAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - UpdatedAtAsc *time.Time `form:"updated_at__asc,omitempty" json:"updated_at__asc,omitempty"` - - // DeletedAtEq SQL = operator - DeletedAtEq *time.Time `form:"deleted_at__eq,omitempty" json:"deleted_at__eq,omitempty"` - - // DeletedAtNe SQL != operator - DeletedAtNe *time.Time `form:"deleted_at__ne,omitempty" json:"deleted_at__ne,omitempty"` - - // DeletedAtGt SQL > operator, may not work with all column types - DeletedAtGt *time.Time `form:"deleted_at__gt,omitempty" json:"deleted_at__gt,omitempty"` - - // DeletedAtGte SQL >= operator, may not work with all column types - DeletedAtGte *time.Time `form:"deleted_at__gte,omitempty" json:"deleted_at__gte,omitempty"` - - // DeletedAtLt SQL < operator, may not work with all column types - DeletedAtLt *time.Time `form:"deleted_at__lt,omitempty" json:"deleted_at__lt,omitempty"` - - // DeletedAtLte SQL <= operator, may not work with all column types - DeletedAtLte *time.Time `form:"deleted_at__lte,omitempty" json:"deleted_at__lte,omitempty"` - - // DeletedAtIn SQL IN operator, permits comma-separated values - DeletedAtIn *time.Time `form:"deleted_at__in,omitempty" json:"deleted_at__in,omitempty"` - - // DeletedAtNin SQL NOT IN operator, permits comma-separated values - DeletedAtNin *time.Time `form:"deleted_at__nin,omitempty" json:"deleted_at__nin,omitempty"` - - // DeletedAtNotin SQL NOT IN operator, permits comma-separated values - DeletedAtNotin *time.Time `form:"deleted_at__notin,omitempty" json:"deleted_at__notin,omitempty"` - - // DeletedAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - DeletedAtIsnull *time.Time `form:"deleted_at__isnull,omitempty" json:"deleted_at__isnull,omitempty"` - - // DeletedAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - DeletedAtNisnull *time.Time `form:"deleted_at__nisnull,omitempty" json:"deleted_at__nisnull,omitempty"` - - // DeletedAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - DeletedAtIsnotnull *time.Time `form:"deleted_at__isnotnull,omitempty" json:"deleted_at__isnotnull,omitempty"` - - // DeletedAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtL *time.Time `form:"deleted_at__l,omitempty" json:"deleted_at__l,omitempty"` - - // DeletedAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtLike *time.Time `form:"deleted_at__like,omitempty" json:"deleted_at__like,omitempty"` - - // DeletedAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNl *time.Time `form:"deleted_at__nl,omitempty" json:"deleted_at__nl,omitempty"` - - // DeletedAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNlike *time.Time `form:"deleted_at__nlike,omitempty" json:"deleted_at__nlike,omitempty"` - - // DeletedAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNotlike *time.Time `form:"deleted_at__notlike,omitempty" json:"deleted_at__notlike,omitempty"` - - // DeletedAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtIl *time.Time `form:"deleted_at__il,omitempty" json:"deleted_at__il,omitempty"` - - // DeletedAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtIlike *time.Time `form:"deleted_at__ilike,omitempty" json:"deleted_at__ilike,omitempty"` - - // DeletedAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNil *time.Time `form:"deleted_at__nil,omitempty" json:"deleted_at__nil,omitempty"` - - // DeletedAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNilike *time.Time `form:"deleted_at__nilike,omitempty" json:"deleted_at__nilike,omitempty"` - - // DeletedAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DeletedAtNotilike *time.Time `form:"deleted_at__notilike,omitempty" json:"deleted_at__notilike,omitempty"` - - // DeletedAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - DeletedAtDesc *time.Time `form:"deleted_at__desc,omitempty" json:"deleted_at__desc,omitempty"` - - // DeletedAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - DeletedAtAsc *time.Time `form:"deleted_at__asc,omitempty" json:"deleted_at__asc,omitempty"` - - // FileNameEq SQL = operator - FileNameEq *string `form:"file_name__eq,omitempty" json:"file_name__eq,omitempty"` - - // FileNameNe SQL != operator - FileNameNe *string `form:"file_name__ne,omitempty" json:"file_name__ne,omitempty"` - - // FileNameGt SQL > operator, may not work with all column types - FileNameGt *string `form:"file_name__gt,omitempty" json:"file_name__gt,omitempty"` - - // FileNameGte SQL >= operator, may not work with all column types - FileNameGte *string `form:"file_name__gte,omitempty" json:"file_name__gte,omitempty"` - - // FileNameLt SQL < operator, may not work with all column types - FileNameLt *string `form:"file_name__lt,omitempty" json:"file_name__lt,omitempty"` - - // FileNameLte SQL <= operator, may not work with all column types - FileNameLte *string `form:"file_name__lte,omitempty" json:"file_name__lte,omitempty"` - - // FileNameIn SQL IN operator, permits comma-separated values - FileNameIn *string `form:"file_name__in,omitempty" json:"file_name__in,omitempty"` - - // FileNameNin SQL NOT IN operator, permits comma-separated values - FileNameNin *string `form:"file_name__nin,omitempty" json:"file_name__nin,omitempty"` - - // FileNameNotin SQL NOT IN operator, permits comma-separated values - FileNameNotin *string `form:"file_name__notin,omitempty" json:"file_name__notin,omitempty"` - - // FileNameIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - FileNameIsnull *string `form:"file_name__isnull,omitempty" json:"file_name__isnull,omitempty"` - - // FileNameNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - FileNameNisnull *string `form:"file_name__nisnull,omitempty" json:"file_name__nisnull,omitempty"` - - // FileNameIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - FileNameIsnotnull *string `form:"file_name__isnotnull,omitempty" json:"file_name__isnotnull,omitempty"` - - // FileNameL SQL LIKE operator, value is implicitly prefixed and suffixed with % - FileNameL *string `form:"file_name__l,omitempty" json:"file_name__l,omitempty"` - - // FileNameLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - FileNameLike *string `form:"file_name__like,omitempty" json:"file_name__like,omitempty"` - - // FileNameNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - FileNameNl *string `form:"file_name__nl,omitempty" json:"file_name__nl,omitempty"` - - // FileNameNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - FileNameNlike *string `form:"file_name__nlike,omitempty" json:"file_name__nlike,omitempty"` - - // FileNameNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - FileNameNotlike *string `form:"file_name__notlike,omitempty" json:"file_name__notlike,omitempty"` - - // FileNameIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - FileNameIl *string `form:"file_name__il,omitempty" json:"file_name__il,omitempty"` - - // FileNameIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - FileNameIlike *string `form:"file_name__ilike,omitempty" json:"file_name__ilike,omitempty"` - - // FileNameNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - FileNameNil *string `form:"file_name__nil,omitempty" json:"file_name__nil,omitempty"` - - // FileNameNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - FileNameNilike *string `form:"file_name__nilike,omitempty" json:"file_name__nilike,omitempty"` - - // FileNameNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - FileNameNotilike *string `form:"file_name__notilike,omitempty" json:"file_name__notilike,omitempty"` - - // FileNameDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - FileNameDesc *string `form:"file_name__desc,omitempty" json:"file_name__desc,omitempty"` - - // FileNameAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - FileNameAsc *string `form:"file_name__asc,omitempty" json:"file_name__asc,omitempty"` - - // StartedAtEq SQL = operator - StartedAtEq *time.Time `form:"started_at__eq,omitempty" json:"started_at__eq,omitempty"` - - // StartedAtNe SQL != operator - StartedAtNe *time.Time `form:"started_at__ne,omitempty" json:"started_at__ne,omitempty"` - - // StartedAtGt SQL > operator, may not work with all column types - StartedAtGt *time.Time `form:"started_at__gt,omitempty" json:"started_at__gt,omitempty"` - - // StartedAtGte SQL >= operator, may not work with all column types - StartedAtGte *time.Time `form:"started_at__gte,omitempty" json:"started_at__gte,omitempty"` - - // StartedAtLt SQL < operator, may not work with all column types - StartedAtLt *time.Time `form:"started_at__lt,omitempty" json:"started_at__lt,omitempty"` - - // StartedAtLte SQL <= operator, may not work with all column types - StartedAtLte *time.Time `form:"started_at__lte,omitempty" json:"started_at__lte,omitempty"` - - // StartedAtIn SQL IN operator, permits comma-separated values - StartedAtIn *time.Time `form:"started_at__in,omitempty" json:"started_at__in,omitempty"` - - // StartedAtNin SQL NOT IN operator, permits comma-separated values - StartedAtNin *time.Time `form:"started_at__nin,omitempty" json:"started_at__nin,omitempty"` - - // StartedAtNotin SQL NOT IN operator, permits comma-separated values - StartedAtNotin *time.Time `form:"started_at__notin,omitempty" json:"started_at__notin,omitempty"` - - // StartedAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - StartedAtIsnull *time.Time `form:"started_at__isnull,omitempty" json:"started_at__isnull,omitempty"` - - // StartedAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - StartedAtNisnull *time.Time `form:"started_at__nisnull,omitempty" json:"started_at__nisnull,omitempty"` - - // StartedAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - StartedAtIsnotnull *time.Time `form:"started_at__isnotnull,omitempty" json:"started_at__isnotnull,omitempty"` - - // StartedAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - StartedAtL *time.Time `form:"started_at__l,omitempty" json:"started_at__l,omitempty"` - - // StartedAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - StartedAtLike *time.Time `form:"started_at__like,omitempty" json:"started_at__like,omitempty"` - - // StartedAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - StartedAtNl *time.Time `form:"started_at__nl,omitempty" json:"started_at__nl,omitempty"` - - // StartedAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - StartedAtNlike *time.Time `form:"started_at__nlike,omitempty" json:"started_at__nlike,omitempty"` - - // StartedAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - StartedAtNotlike *time.Time `form:"started_at__notlike,omitempty" json:"started_at__notlike,omitempty"` - - // StartedAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - StartedAtIl *time.Time `form:"started_at__il,omitempty" json:"started_at__il,omitempty"` - - // StartedAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - StartedAtIlike *time.Time `form:"started_at__ilike,omitempty" json:"started_at__ilike,omitempty"` - - // StartedAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - StartedAtNil *time.Time `form:"started_at__nil,omitempty" json:"started_at__nil,omitempty"` - - // StartedAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - StartedAtNilike *time.Time `form:"started_at__nilike,omitempty" json:"started_at__nilike,omitempty"` - - // StartedAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - StartedAtNotilike *time.Time `form:"started_at__notilike,omitempty" json:"started_at__notilike,omitempty"` - - // StartedAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - StartedAtDesc *time.Time `form:"started_at__desc,omitempty" json:"started_at__desc,omitempty"` - - // StartedAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - StartedAtAsc *time.Time `form:"started_at__asc,omitempty" json:"started_at__asc,omitempty"` - - // EndedAtEq SQL = operator - EndedAtEq *time.Time `form:"ended_at__eq,omitempty" json:"ended_at__eq,omitempty"` - - // EndedAtNe SQL != operator - EndedAtNe *time.Time `form:"ended_at__ne,omitempty" json:"ended_at__ne,omitempty"` - - // EndedAtGt SQL > operator, may not work with all column types - EndedAtGt *time.Time `form:"ended_at__gt,omitempty" json:"ended_at__gt,omitempty"` - - // EndedAtGte SQL >= operator, may not work with all column types - EndedAtGte *time.Time `form:"ended_at__gte,omitempty" json:"ended_at__gte,omitempty"` - - // EndedAtLt SQL < operator, may not work with all column types - EndedAtLt *time.Time `form:"ended_at__lt,omitempty" json:"ended_at__lt,omitempty"` - - // EndedAtLte SQL <= operator, may not work with all column types - EndedAtLte *time.Time `form:"ended_at__lte,omitempty" json:"ended_at__lte,omitempty"` - - // EndedAtIn SQL IN operator, permits comma-separated values - EndedAtIn *time.Time `form:"ended_at__in,omitempty" json:"ended_at__in,omitempty"` - - // EndedAtNin SQL NOT IN operator, permits comma-separated values - EndedAtNin *time.Time `form:"ended_at__nin,omitempty" json:"ended_at__nin,omitempty"` - - // EndedAtNotin SQL NOT IN operator, permits comma-separated values - EndedAtNotin *time.Time `form:"ended_at__notin,omitempty" json:"ended_at__notin,omitempty"` - - // EndedAtIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - EndedAtIsnull *time.Time `form:"ended_at__isnull,omitempty" json:"ended_at__isnull,omitempty"` - - // EndedAtNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - EndedAtNisnull *time.Time `form:"ended_at__nisnull,omitempty" json:"ended_at__nisnull,omitempty"` - - // EndedAtIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - EndedAtIsnotnull *time.Time `form:"ended_at__isnotnull,omitempty" json:"ended_at__isnotnull,omitempty"` - - // EndedAtL SQL LIKE operator, value is implicitly prefixed and suffixed with % - EndedAtL *time.Time `form:"ended_at__l,omitempty" json:"ended_at__l,omitempty"` - - // EndedAtLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - EndedAtLike *time.Time `form:"ended_at__like,omitempty" json:"ended_at__like,omitempty"` - - // EndedAtNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - EndedAtNl *time.Time `form:"ended_at__nl,omitempty" json:"ended_at__nl,omitempty"` - - // EndedAtNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - EndedAtNlike *time.Time `form:"ended_at__nlike,omitempty" json:"ended_at__nlike,omitempty"` - - // EndedAtNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - EndedAtNotlike *time.Time `form:"ended_at__notlike,omitempty" json:"ended_at__notlike,omitempty"` - - // EndedAtIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - EndedAtIl *time.Time `form:"ended_at__il,omitempty" json:"ended_at__il,omitempty"` - - // EndedAtIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - EndedAtIlike *time.Time `form:"ended_at__ilike,omitempty" json:"ended_at__ilike,omitempty"` - - // EndedAtNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - EndedAtNil *time.Time `form:"ended_at__nil,omitempty" json:"ended_at__nil,omitempty"` - - // EndedAtNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - EndedAtNilike *time.Time `form:"ended_at__nilike,omitempty" json:"ended_at__nilike,omitempty"` - - // EndedAtNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - EndedAtNotilike *time.Time `form:"ended_at__notilike,omitempty" json:"ended_at__notilike,omitempty"` - - // EndedAtDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - EndedAtDesc *time.Time `form:"ended_at__desc,omitempty" json:"ended_at__desc,omitempty"` - - // EndedAtAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - EndedAtAsc *time.Time `form:"ended_at__asc,omitempty" json:"ended_at__asc,omitempty"` - - // DurationEq SQL = operator - DurationEq *int64 `form:"duration__eq,omitempty" json:"duration__eq,omitempty"` - - // DurationNe SQL != operator - DurationNe *int64 `form:"duration__ne,omitempty" json:"duration__ne,omitempty"` - - // DurationGt SQL > operator, may not work with all column types - DurationGt *int64 `form:"duration__gt,omitempty" json:"duration__gt,omitempty"` - - // DurationGte SQL >= operator, may not work with all column types - DurationGte *int64 `form:"duration__gte,omitempty" json:"duration__gte,omitempty"` - - // DurationLt SQL < operator, may not work with all column types - DurationLt *int64 `form:"duration__lt,omitempty" json:"duration__lt,omitempty"` - - // DurationLte SQL <= operator, may not work with all column types - DurationLte *int64 `form:"duration__lte,omitempty" json:"duration__lte,omitempty"` - - // DurationIn SQL IN operator, permits comma-separated values - DurationIn *int64 `form:"duration__in,omitempty" json:"duration__in,omitempty"` - - // DurationNin SQL NOT IN operator, permits comma-separated values - DurationNin *int64 `form:"duration__nin,omitempty" json:"duration__nin,omitempty"` - - // DurationNotin SQL NOT IN operator, permits comma-separated values - DurationNotin *int64 `form:"duration__notin,omitempty" json:"duration__notin,omitempty"` - - // DurationIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - DurationIsnull *int64 `form:"duration__isnull,omitempty" json:"duration__isnull,omitempty"` - - // DurationNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - DurationNisnull *int64 `form:"duration__nisnull,omitempty" json:"duration__nisnull,omitempty"` - - // DurationIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - DurationIsnotnull *int64 `form:"duration__isnotnull,omitempty" json:"duration__isnotnull,omitempty"` - - // DurationL SQL LIKE operator, value is implicitly prefixed and suffixed with % - DurationL *int64 `form:"duration__l,omitempty" json:"duration__l,omitempty"` - - // DurationLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - DurationLike *int64 `form:"duration__like,omitempty" json:"duration__like,omitempty"` - - // DurationNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DurationNl *int64 `form:"duration__nl,omitempty" json:"duration__nl,omitempty"` - - // DurationNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DurationNlike *int64 `form:"duration__nlike,omitempty" json:"duration__nlike,omitempty"` - - // DurationNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - DurationNotlike *int64 `form:"duration__notlike,omitempty" json:"duration__notlike,omitempty"` - - // DurationIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - DurationIl *int64 `form:"duration__il,omitempty" json:"duration__il,omitempty"` - - // DurationIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - DurationIlike *int64 `form:"duration__ilike,omitempty" json:"duration__ilike,omitempty"` - - // DurationNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DurationNil *int64 `form:"duration__nil,omitempty" json:"duration__nil,omitempty"` - - // DurationNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DurationNilike *int64 `form:"duration__nilike,omitempty" json:"duration__nilike,omitempty"` - - // DurationNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - DurationNotilike *int64 `form:"duration__notilike,omitempty" json:"duration__notilike,omitempty"` - - // DurationDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - DurationDesc *int64 `form:"duration__desc,omitempty" json:"duration__desc,omitempty"` - - // DurationAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - DurationAsc *int64 `form:"duration__asc,omitempty" json:"duration__asc,omitempty"` - - // FileSizeEq SQL = operator - FileSizeEq *float64 `form:"file_size__eq,omitempty" json:"file_size__eq,omitempty"` - - // FileSizeNe SQL != operator - FileSizeNe *float64 `form:"file_size__ne,omitempty" json:"file_size__ne,omitempty"` - - // FileSizeGt SQL > operator, may not work with all column types - FileSizeGt *float64 `form:"file_size__gt,omitempty" json:"file_size__gt,omitempty"` - - // FileSizeGte SQL >= operator, may not work with all column types - FileSizeGte *float64 `form:"file_size__gte,omitempty" json:"file_size__gte,omitempty"` - - // FileSizeLt SQL < operator, may not work with all column types - FileSizeLt *float64 `form:"file_size__lt,omitempty" json:"file_size__lt,omitempty"` - - // FileSizeLte SQL <= operator, may not work with all column types - FileSizeLte *float64 `form:"file_size__lte,omitempty" json:"file_size__lte,omitempty"` - - // FileSizeIn SQL IN operator, permits comma-separated values - FileSizeIn *float64 `form:"file_size__in,omitempty" json:"file_size__in,omitempty"` - - // FileSizeNin SQL NOT IN operator, permits comma-separated values - FileSizeNin *float64 `form:"file_size__nin,omitempty" json:"file_size__nin,omitempty"` - - // FileSizeNotin SQL NOT IN operator, permits comma-separated values - FileSizeNotin *float64 `form:"file_size__notin,omitempty" json:"file_size__notin,omitempty"` - - // FileSizeIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - FileSizeIsnull *float64 `form:"file_size__isnull,omitempty" json:"file_size__isnull,omitempty"` - - // FileSizeNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - FileSizeNisnull *float64 `form:"file_size__nisnull,omitempty" json:"file_size__nisnull,omitempty"` - - // FileSizeIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - FileSizeIsnotnull *float64 `form:"file_size__isnotnull,omitempty" json:"file_size__isnotnull,omitempty"` - - // FileSizeL SQL LIKE operator, value is implicitly prefixed and suffixed with % - FileSizeL *float64 `form:"file_size__l,omitempty" json:"file_size__l,omitempty"` - - // FileSizeLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - FileSizeLike *float64 `form:"file_size__like,omitempty" json:"file_size__like,omitempty"` - - // FileSizeNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - FileSizeNl *float64 `form:"file_size__nl,omitempty" json:"file_size__nl,omitempty"` - - // FileSizeNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - FileSizeNlike *float64 `form:"file_size__nlike,omitempty" json:"file_size__nlike,omitempty"` - - // FileSizeNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - FileSizeNotlike *float64 `form:"file_size__notlike,omitempty" json:"file_size__notlike,omitempty"` - - // FileSizeIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - FileSizeIl *float64 `form:"file_size__il,omitempty" json:"file_size__il,omitempty"` - - // FileSizeIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - FileSizeIlike *float64 `form:"file_size__ilike,omitempty" json:"file_size__ilike,omitempty"` - - // FileSizeNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - FileSizeNil *float64 `form:"file_size__nil,omitempty" json:"file_size__nil,omitempty"` - - // FileSizeNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - FileSizeNilike *float64 `form:"file_size__nilike,omitempty" json:"file_size__nilike,omitempty"` - - // FileSizeNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - FileSizeNotilike *float64 `form:"file_size__notilike,omitempty" json:"file_size__notilike,omitempty"` - - // FileSizeDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - FileSizeDesc *float64 `form:"file_size__desc,omitempty" json:"file_size__desc,omitempty"` - - // FileSizeAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - FileSizeAsc *float64 `form:"file_size__asc,omitempty" json:"file_size__asc,omitempty"` - - // ThumbnailNameEq SQL = operator - ThumbnailNameEq *string `form:"thumbnail_name__eq,omitempty" json:"thumbnail_name__eq,omitempty"` - - // ThumbnailNameNe SQL != operator - ThumbnailNameNe *string `form:"thumbnail_name__ne,omitempty" json:"thumbnail_name__ne,omitempty"` - - // ThumbnailNameGt SQL > operator, may not work with all column types - ThumbnailNameGt *string `form:"thumbnail_name__gt,omitempty" json:"thumbnail_name__gt,omitempty"` - - // ThumbnailNameGte SQL >= operator, may not work with all column types - ThumbnailNameGte *string `form:"thumbnail_name__gte,omitempty" json:"thumbnail_name__gte,omitempty"` - - // ThumbnailNameLt SQL < operator, may not work with all column types - ThumbnailNameLt *string `form:"thumbnail_name__lt,omitempty" json:"thumbnail_name__lt,omitempty"` - - // ThumbnailNameLte SQL <= operator, may not work with all column types - ThumbnailNameLte *string `form:"thumbnail_name__lte,omitempty" json:"thumbnail_name__lte,omitempty"` - - // ThumbnailNameIn SQL IN operator, permits comma-separated values - ThumbnailNameIn *string `form:"thumbnail_name__in,omitempty" json:"thumbnail_name__in,omitempty"` - - // ThumbnailNameNin SQL NOT IN operator, permits comma-separated values - ThumbnailNameNin *string `form:"thumbnail_name__nin,omitempty" json:"thumbnail_name__nin,omitempty"` - - // ThumbnailNameNotin SQL NOT IN operator, permits comma-separated values - ThumbnailNameNotin *string `form:"thumbnail_name__notin,omitempty" json:"thumbnail_name__notin,omitempty"` - - // ThumbnailNameIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - ThumbnailNameIsnull *string `form:"thumbnail_name__isnull,omitempty" json:"thumbnail_name__isnull,omitempty"` - - // ThumbnailNameNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - ThumbnailNameNisnull *string `form:"thumbnail_name__nisnull,omitempty" json:"thumbnail_name__nisnull,omitempty"` - - // ThumbnailNameIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - ThumbnailNameIsnotnull *string `form:"thumbnail_name__isnotnull,omitempty" json:"thumbnail_name__isnotnull,omitempty"` - - // ThumbnailNameL SQL LIKE operator, value is implicitly prefixed and suffixed with % - ThumbnailNameL *string `form:"thumbnail_name__l,omitempty" json:"thumbnail_name__l,omitempty"` - - // ThumbnailNameLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - ThumbnailNameLike *string `form:"thumbnail_name__like,omitempty" json:"thumbnail_name__like,omitempty"` - - // ThumbnailNameNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ThumbnailNameNl *string `form:"thumbnail_name__nl,omitempty" json:"thumbnail_name__nl,omitempty"` - - // ThumbnailNameNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ThumbnailNameNlike *string `form:"thumbnail_name__nlike,omitempty" json:"thumbnail_name__nlike,omitempty"` - - // ThumbnailNameNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - ThumbnailNameNotlike *string `form:"thumbnail_name__notlike,omitempty" json:"thumbnail_name__notlike,omitempty"` - - // ThumbnailNameIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - ThumbnailNameIl *string `form:"thumbnail_name__il,omitempty" json:"thumbnail_name__il,omitempty"` - - // ThumbnailNameIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - ThumbnailNameIlike *string `form:"thumbnail_name__ilike,omitempty" json:"thumbnail_name__ilike,omitempty"` - - // ThumbnailNameNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ThumbnailNameNil *string `form:"thumbnail_name__nil,omitempty" json:"thumbnail_name__nil,omitempty"` - - // ThumbnailNameNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ThumbnailNameNilike *string `form:"thumbnail_name__nilike,omitempty" json:"thumbnail_name__nilike,omitempty"` - - // ThumbnailNameNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - ThumbnailNameNotilike *string `form:"thumbnail_name__notilike,omitempty" json:"thumbnail_name__notilike,omitempty"` - - // ThumbnailNameDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - ThumbnailNameDesc *string `form:"thumbnail_name__desc,omitempty" json:"thumbnail_name__desc,omitempty"` - - // ThumbnailNameAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - ThumbnailNameAsc *string `form:"thumbnail_name__asc,omitempty" json:"thumbnail_name__asc,omitempty"` - - // StatusEq SQL = operator - StatusEq *string `form:"status__eq,omitempty" json:"status__eq,omitempty"` - - // StatusNe SQL != operator - StatusNe *string `form:"status__ne,omitempty" json:"status__ne,omitempty"` - - // StatusGt SQL > operator, may not work with all column types - StatusGt *string `form:"status__gt,omitempty" json:"status__gt,omitempty"` - - // StatusGte SQL >= operator, may not work with all column types - StatusGte *string `form:"status__gte,omitempty" json:"status__gte,omitempty"` - - // StatusLt SQL < operator, may not work with all column types - StatusLt *string `form:"status__lt,omitempty" json:"status__lt,omitempty"` - - // StatusLte SQL <= operator, may not work with all column types - StatusLte *string `form:"status__lte,omitempty" json:"status__lte,omitempty"` - - // StatusIn SQL IN operator, permits comma-separated values - StatusIn *string `form:"status__in,omitempty" json:"status__in,omitempty"` - - // StatusNin SQL NOT IN operator, permits comma-separated values - StatusNin *string `form:"status__nin,omitempty" json:"status__nin,omitempty"` - - // StatusNotin SQL NOT IN operator, permits comma-separated values - StatusNotin *string `form:"status__notin,omitempty" json:"status__notin,omitempty"` - - // StatusIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - StatusIsnull *string `form:"status__isnull,omitempty" json:"status__isnull,omitempty"` - - // StatusNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - StatusNisnull *string `form:"status__nisnull,omitempty" json:"status__nisnull,omitempty"` - - // StatusIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - StatusIsnotnull *string `form:"status__isnotnull,omitempty" json:"status__isnotnull,omitempty"` - - // StatusL SQL LIKE operator, value is implicitly prefixed and suffixed with % - StatusL *string `form:"status__l,omitempty" json:"status__l,omitempty"` - - // StatusLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - StatusLike *string `form:"status__like,omitempty" json:"status__like,omitempty"` - - // StatusNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - StatusNl *string `form:"status__nl,omitempty" json:"status__nl,omitempty"` - - // StatusNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - StatusNlike *string `form:"status__nlike,omitempty" json:"status__nlike,omitempty"` - - // StatusNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - StatusNotlike *string `form:"status__notlike,omitempty" json:"status__notlike,omitempty"` - - // StatusIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - StatusIl *string `form:"status__il,omitempty" json:"status__il,omitempty"` - - // StatusIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - StatusIlike *string `form:"status__ilike,omitempty" json:"status__ilike,omitempty"` - - // StatusNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - StatusNil *string `form:"status__nil,omitempty" json:"status__nil,omitempty"` - - // StatusNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - StatusNilike *string `form:"status__nilike,omitempty" json:"status__nilike,omitempty"` - - // StatusNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - StatusNotilike *string `form:"status__notilike,omitempty" json:"status__notilike,omitempty"` - - // StatusDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - StatusDesc *string `form:"status__desc,omitempty" json:"status__desc,omitempty"` - - // StatusAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - StatusAsc *string `form:"status__asc,omitempty" json:"status__asc,omitempty"` - - // CameraIdEq SQL = operator - CameraIdEq *openapi_types.UUID `form:"camera_id__eq,omitempty" json:"camera_id__eq,omitempty"` - - // CameraIdNe SQL != operator - CameraIdNe *openapi_types.UUID `form:"camera_id__ne,omitempty" json:"camera_id__ne,omitempty"` - - // CameraIdGt SQL > operator, may not work with all column types - CameraIdGt *openapi_types.UUID `form:"camera_id__gt,omitempty" json:"camera_id__gt,omitempty"` - - // CameraIdGte SQL >= operator, may not work with all column types - CameraIdGte *openapi_types.UUID `form:"camera_id__gte,omitempty" json:"camera_id__gte,omitempty"` - - // CameraIdLt SQL < operator, may not work with all column types - CameraIdLt *openapi_types.UUID `form:"camera_id__lt,omitempty" json:"camera_id__lt,omitempty"` - - // CameraIdLte SQL <= operator, may not work with all column types - CameraIdLte *openapi_types.UUID `form:"camera_id__lte,omitempty" json:"camera_id__lte,omitempty"` - - // CameraIdIn SQL IN operator, permits comma-separated values - CameraIdIn *openapi_types.UUID `form:"camera_id__in,omitempty" json:"camera_id__in,omitempty"` - - // CameraIdNin SQL NOT IN operator, permits comma-separated values - CameraIdNin *openapi_types.UUID `form:"camera_id__nin,omitempty" json:"camera_id__nin,omitempty"` - - // CameraIdNotin SQL NOT IN operator, permits comma-separated values - CameraIdNotin *openapi_types.UUID `form:"camera_id__notin,omitempty" json:"camera_id__notin,omitempty"` - - // CameraIdIsnull SQL IS NULL operator, value is ignored (presence of key is sufficient) - CameraIdIsnull *openapi_types.UUID `form:"camera_id__isnull,omitempty" json:"camera_id__isnull,omitempty"` - - // CameraIdNisnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - CameraIdNisnull *openapi_types.UUID `form:"camera_id__nisnull,omitempty" json:"camera_id__nisnull,omitempty"` - - // CameraIdIsnotnull SQL IS NOT NULL operator, value is ignored (presence of key is sufficient) - CameraIdIsnotnull *openapi_types.UUID `form:"camera_id__isnotnull,omitempty" json:"camera_id__isnotnull,omitempty"` - - // CameraIdL SQL LIKE operator, value is implicitly prefixed and suffixed with % - CameraIdL *openapi_types.UUID `form:"camera_id__l,omitempty" json:"camera_id__l,omitempty"` - - // CameraIdLike SQL LIKE operator, value is implicitly prefixed and suffixed with % - CameraIdLike *openapi_types.UUID `form:"camera_id__like,omitempty" json:"camera_id__like,omitempty"` - - // CameraIdNl SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNl *openapi_types.UUID `form:"camera_id__nl,omitempty" json:"camera_id__nl,omitempty"` - - // CameraIdNlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNlike *openapi_types.UUID `form:"camera_id__nlike,omitempty" json:"camera_id__nlike,omitempty"` - - // CameraIdNotlike SQL NOT LIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNotlike *openapi_types.UUID `form:"camera_id__notlike,omitempty" json:"camera_id__notlike,omitempty"` - - // CameraIdIl SQL ILIKE operator, value is implicitly prefixed and suffixed with % - CameraIdIl *openapi_types.UUID `form:"camera_id__il,omitempty" json:"camera_id__il,omitempty"` - - // CameraIdIlike SQL ILIKE operator, value is implicitly prefixed and suffixed with % - CameraIdIlike *openapi_types.UUID `form:"camera_id__ilike,omitempty" json:"camera_id__ilike,omitempty"` - - // CameraIdNil SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNil *openapi_types.UUID `form:"camera_id__nil,omitempty" json:"camera_id__nil,omitempty"` - - // CameraIdNilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNilike *openapi_types.UUID `form:"camera_id__nilike,omitempty" json:"camera_id__nilike,omitempty"` - - // CameraIdNotilike SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with % - CameraIdNotilike *openapi_types.UUID `form:"camera_id__notilike,omitempty" json:"camera_id__notilike,omitempty"` - - // CameraIdDesc SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient) - CameraIdDesc *openapi_types.UUID `form:"camera_id__desc,omitempty" json:"camera_id__desc,omitempty"` - - // CameraIdAsc SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient) - CameraIdAsc *openapi_types.UUID `form:"camera_id__asc,omitempty" json:"camera_id__asc,omitempty"` -} - -// PostVideosJSONBody defines parameters for PostVideos. -type PostVideosJSONBody = []Video - -// PostCamerasJSONRequestBody defines body for PostCameras for application/json ContentType. -type PostCamerasJSONRequestBody = PostCamerasJSONBody - -// PatchCameraJSONRequestBody defines body for PatchCamera for application/json ContentType. -type PatchCameraJSONRequestBody = Camera - -// PutCameraJSONRequestBody defines body for PutCamera for application/json ContentType. -type PutCameraJSONRequestBody = Camera - -// PostDetectionsJSONRequestBody defines body for PostDetections for application/json ContentType. -type PostDetectionsJSONRequestBody = PostDetectionsJSONBody - -// PatchDetectionJSONRequestBody defines body for PatchDetection for application/json ContentType. -type PatchDetectionJSONRequestBody = Detection - -// PutDetectionJSONRequestBody defines body for PutDetection for application/json ContentType. -type PutDetectionJSONRequestBody = Detection - -// PostVideosJSONRequestBody defines body for PostVideos for application/json ContentType. -type PostVideosJSONRequestBody = PostVideosJSONBody - -// PatchVideoJSONRequestBody defines body for PatchVideo for application/json ContentType. -type PatchVideoJSONRequestBody = Video - -// PutVideoJSONRequestBody defines body for PutVideo for application/json ContentType. -type PutVideoJSONRequestBody = Video - -// RequestEditorFn is the function signature for the RequestEditor callback function -type RequestEditorFn func(ctx context.Context, req *http.Request) error - -// Doer performs HTTP requests. -// -// The standard http.Client implements this interface. -type HttpRequestDoer interface { - Do(req *http.Request) (*http.Response, error) -} - -// Client which conforms to the OpenAPI3 specification for this service. -type Client struct { - // The endpoint of the server conforming to this interface, with scheme, - // https://api.deepmap.com for example. This can contain a path relative - // to the server, such as https://api.deepmap.com/dev-test, and all the - // paths in the swagger spec will be appended to the server. - Server string - - // Doer for performing requests, typically a *http.Client with any - // customized settings, such as certificate chains. - Client HttpRequestDoer - - // A list of callbacks for modifying requests which are generated before sending over - // the network. - RequestEditors []RequestEditorFn -} - -// ClientOption allows setting custom parameters during construction -type ClientOption func(*Client) error - -// Creates a new Client, with reasonable defaults -func NewClient(server string, opts ...ClientOption) (*Client, error) { - // create a client with sane default values - client := Client{ - Server: server, - } - // mutate client and add all optional params - for _, o := range opts { - if err := o(&client); err != nil { - return nil, err - } - } - // ensure the server URL always has a trailing slash - if !strings.HasSuffix(client.Server, "/") { - client.Server += "/" - } - // create httpClient, if not already present - if client.Client == nil { - client.Client = &http.Client{} - } - return &client, nil -} - -// WithHTTPClient allows overriding the default Doer, which is -// automatically created using http.Client. This is useful for tests. -func WithHTTPClient(doer HttpRequestDoer) ClientOption { - return func(c *Client) error { - c.Client = doer - return nil - } -} - -// WithRequestEditorFn allows setting up a callback function, which will be -// called right before sending the request. This can be used to mutate the request. -func WithRequestEditorFn(fn RequestEditorFn) ClientOption { - return func(c *Client) error { - c.RequestEditors = append(c.RequestEditors, fn) - return nil - } -} - -// The interface specification for the client above. -type ClientInterface interface { - // GetCameras request - GetCameras(ctx context.Context, params *GetCamerasParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostCamerasWithBody request with any body - PostCamerasWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PostCameras(ctx context.Context, body PostCamerasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteCamera request - DeleteCamera(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetCamera request - GetCamera(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PatchCameraWithBody request with any body - PatchCameraWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PatchCamera(ctx context.Context, primaryKey interface{}, body PatchCameraJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutCameraWithBody request with any body - PutCameraWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PutCamera(ctx context.Context, primaryKey interface{}, body PutCameraJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetDetections request - GetDetections(ctx context.Context, params *GetDetectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostDetectionsWithBody request with any body - PostDetectionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PostDetections(ctx context.Context, body PostDetectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteDetection request - DeleteDetection(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetDetection request - GetDetection(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PatchDetectionWithBody request with any body - PatchDetectionWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PatchDetection(ctx context.Context, primaryKey interface{}, body PatchDetectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutDetectionWithBody request with any body - PutDetectionWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PutDetection(ctx context.Context, primaryKey interface{}, body PutDetectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetVideos request - GetVideos(ctx context.Context, params *GetVideosParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostVideosWithBody request with any body - PostVideosWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PostVideos(ctx context.Context, body PostVideosJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteVideo request - DeleteVideo(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetVideo request - GetVideo(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PatchVideoWithBody request with any body - PatchVideoWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PatchVideo(ctx context.Context, primaryKey interface{}, body PatchVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutVideoWithBody request with any body - PutVideoWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PutVideo(ctx context.Context, primaryKey interface{}, body PutVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) -} - -func (c *Client) GetCameras(ctx context.Context, params *GetCamerasParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCamerasRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostCamerasWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostCamerasRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostCameras(ctx context.Context, body PostCamerasJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostCamerasRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteCamera(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteCameraRequest(c.Server, primaryKey) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetCamera(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCameraRequest(c.Server, primaryKey) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PatchCameraWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchCameraRequestWithBody(c.Server, primaryKey, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PatchCamera(ctx context.Context, primaryKey interface{}, body PatchCameraJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchCameraRequest(c.Server, primaryKey, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutCameraWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutCameraRequestWithBody(c.Server, primaryKey, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutCamera(ctx context.Context, primaryKey interface{}, body PutCameraJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutCameraRequest(c.Server, primaryKey, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetDetections(ctx context.Context, params *GetDetectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetDetectionsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostDetectionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostDetectionsRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostDetections(ctx context.Context, body PostDetectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostDetectionsRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteDetection(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteDetectionRequest(c.Server, primaryKey) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetDetection(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetDetectionRequest(c.Server, primaryKey) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PatchDetectionWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchDetectionRequestWithBody(c.Server, primaryKey, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PatchDetection(ctx context.Context, primaryKey interface{}, body PatchDetectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchDetectionRequest(c.Server, primaryKey, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutDetectionWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutDetectionRequestWithBody(c.Server, primaryKey, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutDetection(ctx context.Context, primaryKey interface{}, body PutDetectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutDetectionRequest(c.Server, primaryKey, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetVideos(ctx context.Context, params *GetVideosParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetVideosRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostVideosWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostVideosRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostVideos(ctx context.Context, body PostVideosJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostVideosRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteVideo(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteVideoRequest(c.Server, primaryKey) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetVideo(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetVideoRequest(c.Server, primaryKey) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PatchVideoWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchVideoRequestWithBody(c.Server, primaryKey, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PatchVideo(ctx context.Context, primaryKey interface{}, body PatchVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPatchVideoRequest(c.Server, primaryKey, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutVideoWithBody(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutVideoRequestWithBody(c.Server, primaryKey, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutVideo(ctx context.Context, primaryKey interface{}, body PutVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutVideoRequest(c.Server, primaryKey, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NewGetCamerasRequest generates requests for GetCameras -func NewGetCamerasRequest(server string, params *GetCamerasParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/cameras") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__eq", runtime.ParamLocationQuery, *params.IdEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ne", runtime.ParamLocationQuery, *params.IdNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__gt", runtime.ParamLocationQuery, *params.IdGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__gte", runtime.ParamLocationQuery, *params.IdGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__lt", runtime.ParamLocationQuery, *params.IdLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__lte", runtime.ParamLocationQuery, *params.IdLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__in", runtime.ParamLocationQuery, *params.IdIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nin", runtime.ParamLocationQuery, *params.IdNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__notin", runtime.ParamLocationQuery, *params.IdNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isnull", runtime.ParamLocationQuery, *params.IdIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisnull", runtime.ParamLocationQuery, *params.IdNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isnotnull", runtime.ParamLocationQuery, *params.IdIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__l", runtime.ParamLocationQuery, *params.IdL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__like", runtime.ParamLocationQuery, *params.IdLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nl", runtime.ParamLocationQuery, *params.IdNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nlike", runtime.ParamLocationQuery, *params.IdNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__notlike", runtime.ParamLocationQuery, *params.IdNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__il", runtime.ParamLocationQuery, *params.IdIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ilike", runtime.ParamLocationQuery, *params.IdIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nil", runtime.ParamLocationQuery, *params.IdNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nilike", runtime.ParamLocationQuery, *params.IdNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__notilike", runtime.ParamLocationQuery, *params.IdNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__desc", runtime.ParamLocationQuery, *params.IdDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__asc", runtime.ParamLocationQuery, *params.IdAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__eq", runtime.ParamLocationQuery, *params.CreatedAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__ne", runtime.ParamLocationQuery, *params.CreatedAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__gt", runtime.ParamLocationQuery, *params.CreatedAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__gte", runtime.ParamLocationQuery, *params.CreatedAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__lt", runtime.ParamLocationQuery, *params.CreatedAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__lte", runtime.ParamLocationQuery, *params.CreatedAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__in", runtime.ParamLocationQuery, *params.CreatedAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nin", runtime.ParamLocationQuery, *params.CreatedAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__notin", runtime.ParamLocationQuery, *params.CreatedAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__isnull", runtime.ParamLocationQuery, *params.CreatedAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nisnull", runtime.ParamLocationQuery, *params.CreatedAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__isnotnull", runtime.ParamLocationQuery, *params.CreatedAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__l", runtime.ParamLocationQuery, *params.CreatedAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__like", runtime.ParamLocationQuery, *params.CreatedAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nl", runtime.ParamLocationQuery, *params.CreatedAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nlike", runtime.ParamLocationQuery, *params.CreatedAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__notlike", runtime.ParamLocationQuery, *params.CreatedAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__il", runtime.ParamLocationQuery, *params.CreatedAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__ilike", runtime.ParamLocationQuery, *params.CreatedAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nil", runtime.ParamLocationQuery, *params.CreatedAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nilike", runtime.ParamLocationQuery, *params.CreatedAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__notilike", runtime.ParamLocationQuery, *params.CreatedAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__desc", runtime.ParamLocationQuery, *params.CreatedAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__asc", runtime.ParamLocationQuery, *params.CreatedAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__eq", runtime.ParamLocationQuery, *params.UpdatedAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__ne", runtime.ParamLocationQuery, *params.UpdatedAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__gt", runtime.ParamLocationQuery, *params.UpdatedAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__gte", runtime.ParamLocationQuery, *params.UpdatedAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__lt", runtime.ParamLocationQuery, *params.UpdatedAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__lte", runtime.ParamLocationQuery, *params.UpdatedAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__in", runtime.ParamLocationQuery, *params.UpdatedAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nin", runtime.ParamLocationQuery, *params.UpdatedAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__notin", runtime.ParamLocationQuery, *params.UpdatedAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__isnull", runtime.ParamLocationQuery, *params.UpdatedAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nisnull", runtime.ParamLocationQuery, *params.UpdatedAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__isnotnull", runtime.ParamLocationQuery, *params.UpdatedAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__l", runtime.ParamLocationQuery, *params.UpdatedAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__like", runtime.ParamLocationQuery, *params.UpdatedAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nl", runtime.ParamLocationQuery, *params.UpdatedAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nlike", runtime.ParamLocationQuery, *params.UpdatedAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__notlike", runtime.ParamLocationQuery, *params.UpdatedAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__il", runtime.ParamLocationQuery, *params.UpdatedAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__ilike", runtime.ParamLocationQuery, *params.UpdatedAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nil", runtime.ParamLocationQuery, *params.UpdatedAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nilike", runtime.ParamLocationQuery, *params.UpdatedAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__notilike", runtime.ParamLocationQuery, *params.UpdatedAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__desc", runtime.ParamLocationQuery, *params.UpdatedAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__asc", runtime.ParamLocationQuery, *params.UpdatedAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__eq", runtime.ParamLocationQuery, *params.DeletedAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__ne", runtime.ParamLocationQuery, *params.DeletedAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__gt", runtime.ParamLocationQuery, *params.DeletedAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__gte", runtime.ParamLocationQuery, *params.DeletedAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__lt", runtime.ParamLocationQuery, *params.DeletedAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__lte", runtime.ParamLocationQuery, *params.DeletedAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__in", runtime.ParamLocationQuery, *params.DeletedAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nin", runtime.ParamLocationQuery, *params.DeletedAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__notin", runtime.ParamLocationQuery, *params.DeletedAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__isnull", runtime.ParamLocationQuery, *params.DeletedAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nisnull", runtime.ParamLocationQuery, *params.DeletedAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__isnotnull", runtime.ParamLocationQuery, *params.DeletedAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__l", runtime.ParamLocationQuery, *params.DeletedAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__like", runtime.ParamLocationQuery, *params.DeletedAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nl", runtime.ParamLocationQuery, *params.DeletedAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nlike", runtime.ParamLocationQuery, *params.DeletedAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__notlike", runtime.ParamLocationQuery, *params.DeletedAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__il", runtime.ParamLocationQuery, *params.DeletedAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__ilike", runtime.ParamLocationQuery, *params.DeletedAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nil", runtime.ParamLocationQuery, *params.DeletedAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nilike", runtime.ParamLocationQuery, *params.DeletedAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__notilike", runtime.ParamLocationQuery, *params.DeletedAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__desc", runtime.ParamLocationQuery, *params.DeletedAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__asc", runtime.ParamLocationQuery, *params.DeletedAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__eq", runtime.ParamLocationQuery, *params.NameEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ne", runtime.ParamLocationQuery, *params.NameNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__gt", runtime.ParamLocationQuery, *params.NameGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__gte", runtime.ParamLocationQuery, *params.NameGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__lt", runtime.ParamLocationQuery, *params.NameLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__lte", runtime.ParamLocationQuery, *params.NameLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__in", runtime.ParamLocationQuery, *params.NameIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nin", runtime.ParamLocationQuery, *params.NameNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__notin", runtime.ParamLocationQuery, *params.NameNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isnull", runtime.ParamLocationQuery, *params.NameIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nisnull", runtime.ParamLocationQuery, *params.NameNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__isnotnull", runtime.ParamLocationQuery, *params.NameIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__l", runtime.ParamLocationQuery, *params.NameL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__like", runtime.ParamLocationQuery, *params.NameLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nl", runtime.ParamLocationQuery, *params.NameNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nlike", runtime.ParamLocationQuery, *params.NameNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__notlike", runtime.ParamLocationQuery, *params.NameNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__il", runtime.ParamLocationQuery, *params.NameIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__ilike", runtime.ParamLocationQuery, *params.NameIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nil", runtime.ParamLocationQuery, *params.NameNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__nilike", runtime.ParamLocationQuery, *params.NameNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__notilike", runtime.ParamLocationQuery, *params.NameNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__desc", runtime.ParamLocationQuery, *params.NameDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NameAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name__asc", runtime.ParamLocationQuery, *params.NameAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__eq", runtime.ParamLocationQuery, *params.StreamUrlEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__ne", runtime.ParamLocationQuery, *params.StreamUrlNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__gt", runtime.ParamLocationQuery, *params.StreamUrlGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__gte", runtime.ParamLocationQuery, *params.StreamUrlGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__lt", runtime.ParamLocationQuery, *params.StreamUrlLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__lte", runtime.ParamLocationQuery, *params.StreamUrlLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__in", runtime.ParamLocationQuery, *params.StreamUrlIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__nin", runtime.ParamLocationQuery, *params.StreamUrlNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__notin", runtime.ParamLocationQuery, *params.StreamUrlNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__isnull", runtime.ParamLocationQuery, *params.StreamUrlIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__nisnull", runtime.ParamLocationQuery, *params.StreamUrlNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__isnotnull", runtime.ParamLocationQuery, *params.StreamUrlIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__l", runtime.ParamLocationQuery, *params.StreamUrlL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__like", runtime.ParamLocationQuery, *params.StreamUrlLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__nl", runtime.ParamLocationQuery, *params.StreamUrlNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__nlike", runtime.ParamLocationQuery, *params.StreamUrlNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__notlike", runtime.ParamLocationQuery, *params.StreamUrlNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__il", runtime.ParamLocationQuery, *params.StreamUrlIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__ilike", runtime.ParamLocationQuery, *params.StreamUrlIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__nil", runtime.ParamLocationQuery, *params.StreamUrlNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__nilike", runtime.ParamLocationQuery, *params.StreamUrlNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__notilike", runtime.ParamLocationQuery, *params.StreamUrlNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__desc", runtime.ParamLocationQuery, *params.StreamUrlDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StreamUrlAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stream_url__asc", runtime.ParamLocationQuery, *params.StreamUrlAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__eq", runtime.ParamLocationQuery, *params.LastSeenEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__ne", runtime.ParamLocationQuery, *params.LastSeenNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__gt", runtime.ParamLocationQuery, *params.LastSeenGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__gte", runtime.ParamLocationQuery, *params.LastSeenGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__lt", runtime.ParamLocationQuery, *params.LastSeenLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__lte", runtime.ParamLocationQuery, *params.LastSeenLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__in", runtime.ParamLocationQuery, *params.LastSeenIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__nin", runtime.ParamLocationQuery, *params.LastSeenNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__notin", runtime.ParamLocationQuery, *params.LastSeenNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__isnull", runtime.ParamLocationQuery, *params.LastSeenIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__nisnull", runtime.ParamLocationQuery, *params.LastSeenNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__isnotnull", runtime.ParamLocationQuery, *params.LastSeenIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__l", runtime.ParamLocationQuery, *params.LastSeenL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__like", runtime.ParamLocationQuery, *params.LastSeenLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__nl", runtime.ParamLocationQuery, *params.LastSeenNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__nlike", runtime.ParamLocationQuery, *params.LastSeenNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__notlike", runtime.ParamLocationQuery, *params.LastSeenNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__il", runtime.ParamLocationQuery, *params.LastSeenIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__ilike", runtime.ParamLocationQuery, *params.LastSeenIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__nil", runtime.ParamLocationQuery, *params.LastSeenNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__nilike", runtime.ParamLocationQuery, *params.LastSeenNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__notilike", runtime.ParamLocationQuery, *params.LastSeenNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__desc", runtime.ParamLocationQuery, *params.LastSeenDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.LastSeenAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "last_seen__asc", runtime.ParamLocationQuery, *params.LastSeenAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostCamerasRequest calls the generic PostCameras builder with application/json body -func NewPostCamerasRequest(server string, body PostCamerasJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostCamerasRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostCamerasRequestWithBody generates requests for PostCameras with any type of body -func NewPostCamerasRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/cameras") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteCameraRequest generates requests for DeleteCamera -func NewDeleteCameraRequest(server string, primaryKey interface{}) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/cameras/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetCameraRequest generates requests for GetCamera -func NewGetCameraRequest(server string, primaryKey interface{}) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/cameras/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPatchCameraRequest calls the generic PatchCamera builder with application/json body -func NewPatchCameraRequest(server string, primaryKey interface{}, body PatchCameraJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPatchCameraRequestWithBody(server, primaryKey, "application/json", bodyReader) -} - -// NewPatchCameraRequestWithBody generates requests for PatchCamera with any type of body -func NewPatchCameraRequestWithBody(server string, primaryKey interface{}, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/cameras/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPutCameraRequest calls the generic PutCamera builder with application/json body -func NewPutCameraRequest(server string, primaryKey interface{}, body PutCameraJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPutCameraRequestWithBody(server, primaryKey, "application/json", bodyReader) -} - -// NewPutCameraRequestWithBody generates requests for PutCamera with any type of body -func NewPutCameraRequestWithBody(server string, primaryKey interface{}, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/cameras/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetDetectionsRequest generates requests for GetDetections -func NewGetDetectionsRequest(server string, params *GetDetectionsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/detections") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__eq", runtime.ParamLocationQuery, *params.IdEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ne", runtime.ParamLocationQuery, *params.IdNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__gt", runtime.ParamLocationQuery, *params.IdGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__gte", runtime.ParamLocationQuery, *params.IdGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__lt", runtime.ParamLocationQuery, *params.IdLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__lte", runtime.ParamLocationQuery, *params.IdLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__in", runtime.ParamLocationQuery, *params.IdIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nin", runtime.ParamLocationQuery, *params.IdNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__notin", runtime.ParamLocationQuery, *params.IdNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isnull", runtime.ParamLocationQuery, *params.IdIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisnull", runtime.ParamLocationQuery, *params.IdNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isnotnull", runtime.ParamLocationQuery, *params.IdIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__l", runtime.ParamLocationQuery, *params.IdL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__like", runtime.ParamLocationQuery, *params.IdLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nl", runtime.ParamLocationQuery, *params.IdNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nlike", runtime.ParamLocationQuery, *params.IdNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__notlike", runtime.ParamLocationQuery, *params.IdNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__il", runtime.ParamLocationQuery, *params.IdIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ilike", runtime.ParamLocationQuery, *params.IdIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nil", runtime.ParamLocationQuery, *params.IdNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nilike", runtime.ParamLocationQuery, *params.IdNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__notilike", runtime.ParamLocationQuery, *params.IdNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__desc", runtime.ParamLocationQuery, *params.IdDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__asc", runtime.ParamLocationQuery, *params.IdAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__eq", runtime.ParamLocationQuery, *params.CreatedAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__ne", runtime.ParamLocationQuery, *params.CreatedAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__gt", runtime.ParamLocationQuery, *params.CreatedAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__gte", runtime.ParamLocationQuery, *params.CreatedAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__lt", runtime.ParamLocationQuery, *params.CreatedAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__lte", runtime.ParamLocationQuery, *params.CreatedAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__in", runtime.ParamLocationQuery, *params.CreatedAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nin", runtime.ParamLocationQuery, *params.CreatedAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__notin", runtime.ParamLocationQuery, *params.CreatedAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__isnull", runtime.ParamLocationQuery, *params.CreatedAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nisnull", runtime.ParamLocationQuery, *params.CreatedAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__isnotnull", runtime.ParamLocationQuery, *params.CreatedAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__l", runtime.ParamLocationQuery, *params.CreatedAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__like", runtime.ParamLocationQuery, *params.CreatedAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nl", runtime.ParamLocationQuery, *params.CreatedAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nlike", runtime.ParamLocationQuery, *params.CreatedAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__notlike", runtime.ParamLocationQuery, *params.CreatedAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__il", runtime.ParamLocationQuery, *params.CreatedAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__ilike", runtime.ParamLocationQuery, *params.CreatedAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nil", runtime.ParamLocationQuery, *params.CreatedAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nilike", runtime.ParamLocationQuery, *params.CreatedAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__notilike", runtime.ParamLocationQuery, *params.CreatedAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__desc", runtime.ParamLocationQuery, *params.CreatedAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__asc", runtime.ParamLocationQuery, *params.CreatedAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__eq", runtime.ParamLocationQuery, *params.UpdatedAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__ne", runtime.ParamLocationQuery, *params.UpdatedAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__gt", runtime.ParamLocationQuery, *params.UpdatedAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__gte", runtime.ParamLocationQuery, *params.UpdatedAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__lt", runtime.ParamLocationQuery, *params.UpdatedAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__lte", runtime.ParamLocationQuery, *params.UpdatedAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__in", runtime.ParamLocationQuery, *params.UpdatedAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nin", runtime.ParamLocationQuery, *params.UpdatedAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__notin", runtime.ParamLocationQuery, *params.UpdatedAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__isnull", runtime.ParamLocationQuery, *params.UpdatedAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nisnull", runtime.ParamLocationQuery, *params.UpdatedAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__isnotnull", runtime.ParamLocationQuery, *params.UpdatedAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__l", runtime.ParamLocationQuery, *params.UpdatedAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__like", runtime.ParamLocationQuery, *params.UpdatedAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nl", runtime.ParamLocationQuery, *params.UpdatedAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nlike", runtime.ParamLocationQuery, *params.UpdatedAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__notlike", runtime.ParamLocationQuery, *params.UpdatedAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__il", runtime.ParamLocationQuery, *params.UpdatedAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__ilike", runtime.ParamLocationQuery, *params.UpdatedAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nil", runtime.ParamLocationQuery, *params.UpdatedAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nilike", runtime.ParamLocationQuery, *params.UpdatedAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__notilike", runtime.ParamLocationQuery, *params.UpdatedAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__desc", runtime.ParamLocationQuery, *params.UpdatedAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__asc", runtime.ParamLocationQuery, *params.UpdatedAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__eq", runtime.ParamLocationQuery, *params.DeletedAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__ne", runtime.ParamLocationQuery, *params.DeletedAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__gt", runtime.ParamLocationQuery, *params.DeletedAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__gte", runtime.ParamLocationQuery, *params.DeletedAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__lt", runtime.ParamLocationQuery, *params.DeletedAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__lte", runtime.ParamLocationQuery, *params.DeletedAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__in", runtime.ParamLocationQuery, *params.DeletedAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nin", runtime.ParamLocationQuery, *params.DeletedAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__notin", runtime.ParamLocationQuery, *params.DeletedAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__isnull", runtime.ParamLocationQuery, *params.DeletedAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nisnull", runtime.ParamLocationQuery, *params.DeletedAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__isnotnull", runtime.ParamLocationQuery, *params.DeletedAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__l", runtime.ParamLocationQuery, *params.DeletedAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__like", runtime.ParamLocationQuery, *params.DeletedAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nl", runtime.ParamLocationQuery, *params.DeletedAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nlike", runtime.ParamLocationQuery, *params.DeletedAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__notlike", runtime.ParamLocationQuery, *params.DeletedAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__il", runtime.ParamLocationQuery, *params.DeletedAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__ilike", runtime.ParamLocationQuery, *params.DeletedAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nil", runtime.ParamLocationQuery, *params.DeletedAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nilike", runtime.ParamLocationQuery, *params.DeletedAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__notilike", runtime.ParamLocationQuery, *params.DeletedAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__desc", runtime.ParamLocationQuery, *params.DeletedAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__asc", runtime.ParamLocationQuery, *params.DeletedAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__eq", runtime.ParamLocationQuery, *params.SeenAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__ne", runtime.ParamLocationQuery, *params.SeenAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__gt", runtime.ParamLocationQuery, *params.SeenAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__gte", runtime.ParamLocationQuery, *params.SeenAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__lt", runtime.ParamLocationQuery, *params.SeenAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__lte", runtime.ParamLocationQuery, *params.SeenAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__in", runtime.ParamLocationQuery, *params.SeenAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__nin", runtime.ParamLocationQuery, *params.SeenAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__notin", runtime.ParamLocationQuery, *params.SeenAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__isnull", runtime.ParamLocationQuery, *params.SeenAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__nisnull", runtime.ParamLocationQuery, *params.SeenAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__isnotnull", runtime.ParamLocationQuery, *params.SeenAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__l", runtime.ParamLocationQuery, *params.SeenAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__like", runtime.ParamLocationQuery, *params.SeenAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__nl", runtime.ParamLocationQuery, *params.SeenAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__nlike", runtime.ParamLocationQuery, *params.SeenAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__notlike", runtime.ParamLocationQuery, *params.SeenAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__il", runtime.ParamLocationQuery, *params.SeenAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__ilike", runtime.ParamLocationQuery, *params.SeenAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__nil", runtime.ParamLocationQuery, *params.SeenAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__nilike", runtime.ParamLocationQuery, *params.SeenAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__notilike", runtime.ParamLocationQuery, *params.SeenAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__desc", runtime.ParamLocationQuery, *params.SeenAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SeenAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seen_at__asc", runtime.ParamLocationQuery, *params.SeenAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__eq", runtime.ParamLocationQuery, *params.ClassIdEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__ne", runtime.ParamLocationQuery, *params.ClassIdNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__gt", runtime.ParamLocationQuery, *params.ClassIdGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__gte", runtime.ParamLocationQuery, *params.ClassIdGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__lt", runtime.ParamLocationQuery, *params.ClassIdLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__lte", runtime.ParamLocationQuery, *params.ClassIdLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__in", runtime.ParamLocationQuery, *params.ClassIdIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__nin", runtime.ParamLocationQuery, *params.ClassIdNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__notin", runtime.ParamLocationQuery, *params.ClassIdNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__isnull", runtime.ParamLocationQuery, *params.ClassIdIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__nisnull", runtime.ParamLocationQuery, *params.ClassIdNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__isnotnull", runtime.ParamLocationQuery, *params.ClassIdIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__l", runtime.ParamLocationQuery, *params.ClassIdL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__like", runtime.ParamLocationQuery, *params.ClassIdLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__nl", runtime.ParamLocationQuery, *params.ClassIdNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__nlike", runtime.ParamLocationQuery, *params.ClassIdNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__notlike", runtime.ParamLocationQuery, *params.ClassIdNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__il", runtime.ParamLocationQuery, *params.ClassIdIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__ilike", runtime.ParamLocationQuery, *params.ClassIdIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__nil", runtime.ParamLocationQuery, *params.ClassIdNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__nilike", runtime.ParamLocationQuery, *params.ClassIdNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__notilike", runtime.ParamLocationQuery, *params.ClassIdNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__desc", runtime.ParamLocationQuery, *params.ClassIdDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassIdAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_id__asc", runtime.ParamLocationQuery, *params.ClassIdAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__eq", runtime.ParamLocationQuery, *params.ClassNameEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__ne", runtime.ParamLocationQuery, *params.ClassNameNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__gt", runtime.ParamLocationQuery, *params.ClassNameGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__gte", runtime.ParamLocationQuery, *params.ClassNameGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__lt", runtime.ParamLocationQuery, *params.ClassNameLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__lte", runtime.ParamLocationQuery, *params.ClassNameLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__in", runtime.ParamLocationQuery, *params.ClassNameIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__nin", runtime.ParamLocationQuery, *params.ClassNameNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__notin", runtime.ParamLocationQuery, *params.ClassNameNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__isnull", runtime.ParamLocationQuery, *params.ClassNameIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__nisnull", runtime.ParamLocationQuery, *params.ClassNameNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__isnotnull", runtime.ParamLocationQuery, *params.ClassNameIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__l", runtime.ParamLocationQuery, *params.ClassNameL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__like", runtime.ParamLocationQuery, *params.ClassNameLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__nl", runtime.ParamLocationQuery, *params.ClassNameNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__nlike", runtime.ParamLocationQuery, *params.ClassNameNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__notlike", runtime.ParamLocationQuery, *params.ClassNameNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__il", runtime.ParamLocationQuery, *params.ClassNameIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__ilike", runtime.ParamLocationQuery, *params.ClassNameIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__nil", runtime.ParamLocationQuery, *params.ClassNameNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__nilike", runtime.ParamLocationQuery, *params.ClassNameNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__notilike", runtime.ParamLocationQuery, *params.ClassNameNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__desc", runtime.ParamLocationQuery, *params.ClassNameDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ClassNameAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "class_name__asc", runtime.ParamLocationQuery, *params.ClassNameAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__eq", runtime.ParamLocationQuery, *params.ScoreEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__ne", runtime.ParamLocationQuery, *params.ScoreNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__gt", runtime.ParamLocationQuery, *params.ScoreGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__gte", runtime.ParamLocationQuery, *params.ScoreGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__lt", runtime.ParamLocationQuery, *params.ScoreLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__lte", runtime.ParamLocationQuery, *params.ScoreLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__in", runtime.ParamLocationQuery, *params.ScoreIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__nin", runtime.ParamLocationQuery, *params.ScoreNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__notin", runtime.ParamLocationQuery, *params.ScoreNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__isnull", runtime.ParamLocationQuery, *params.ScoreIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__nisnull", runtime.ParamLocationQuery, *params.ScoreNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__isnotnull", runtime.ParamLocationQuery, *params.ScoreIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__l", runtime.ParamLocationQuery, *params.ScoreL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__like", runtime.ParamLocationQuery, *params.ScoreLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__nl", runtime.ParamLocationQuery, *params.ScoreNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__nlike", runtime.ParamLocationQuery, *params.ScoreNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__notlike", runtime.ParamLocationQuery, *params.ScoreNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__il", runtime.ParamLocationQuery, *params.ScoreIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__ilike", runtime.ParamLocationQuery, *params.ScoreIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__nil", runtime.ParamLocationQuery, *params.ScoreNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__nilike", runtime.ParamLocationQuery, *params.ScoreNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__notilike", runtime.ParamLocationQuery, *params.ScoreNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__desc", runtime.ParamLocationQuery, *params.ScoreDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScoreAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "score__asc", runtime.ParamLocationQuery, *params.ScoreAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__eq", runtime.ParamLocationQuery, *params.CameraIdEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__ne", runtime.ParamLocationQuery, *params.CameraIdNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__gt", runtime.ParamLocationQuery, *params.CameraIdGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__gte", runtime.ParamLocationQuery, *params.CameraIdGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__lt", runtime.ParamLocationQuery, *params.CameraIdLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__lte", runtime.ParamLocationQuery, *params.CameraIdLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__in", runtime.ParamLocationQuery, *params.CameraIdIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nin", runtime.ParamLocationQuery, *params.CameraIdNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__notin", runtime.ParamLocationQuery, *params.CameraIdNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__isnull", runtime.ParamLocationQuery, *params.CameraIdIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nisnull", runtime.ParamLocationQuery, *params.CameraIdNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__isnotnull", runtime.ParamLocationQuery, *params.CameraIdIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__l", runtime.ParamLocationQuery, *params.CameraIdL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__like", runtime.ParamLocationQuery, *params.CameraIdLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nl", runtime.ParamLocationQuery, *params.CameraIdNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nlike", runtime.ParamLocationQuery, *params.CameraIdNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__notlike", runtime.ParamLocationQuery, *params.CameraIdNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__il", runtime.ParamLocationQuery, *params.CameraIdIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__ilike", runtime.ParamLocationQuery, *params.CameraIdIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nil", runtime.ParamLocationQuery, *params.CameraIdNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nilike", runtime.ParamLocationQuery, *params.CameraIdNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__notilike", runtime.ParamLocationQuery, *params.CameraIdNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__desc", runtime.ParamLocationQuery, *params.CameraIdDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__asc", runtime.ParamLocationQuery, *params.CameraIdAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostDetectionsRequest calls the generic PostDetections builder with application/json body -func NewPostDetectionsRequest(server string, body PostDetectionsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostDetectionsRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostDetectionsRequestWithBody generates requests for PostDetections with any type of body -func NewPostDetectionsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/detections") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteDetectionRequest generates requests for DeleteDetection -func NewDeleteDetectionRequest(server string, primaryKey interface{}) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/detections/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetDetectionRequest generates requests for GetDetection -func NewGetDetectionRequest(server string, primaryKey interface{}) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/detections/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPatchDetectionRequest calls the generic PatchDetection builder with application/json body -func NewPatchDetectionRequest(server string, primaryKey interface{}, body PatchDetectionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPatchDetectionRequestWithBody(server, primaryKey, "application/json", bodyReader) -} - -// NewPatchDetectionRequestWithBody generates requests for PatchDetection with any type of body -func NewPatchDetectionRequestWithBody(server string, primaryKey interface{}, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/detections/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPutDetectionRequest calls the generic PutDetection builder with application/json body -func NewPutDetectionRequest(server string, primaryKey interface{}, body PutDetectionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPutDetectionRequestWithBody(server, primaryKey, "application/json", bodyReader) -} - -// NewPutDetectionRequestWithBody generates requests for PutDetection with any type of body -func NewPutDetectionRequestWithBody(server string, primaryKey interface{}, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/detections/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetVideosRequest generates requests for GetVideos -func NewGetVideosRequest(server string, params *GetVideosParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/videos") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__eq", runtime.ParamLocationQuery, *params.IdEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ne", runtime.ParamLocationQuery, *params.IdNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__gt", runtime.ParamLocationQuery, *params.IdGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__gte", runtime.ParamLocationQuery, *params.IdGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__lt", runtime.ParamLocationQuery, *params.IdLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__lte", runtime.ParamLocationQuery, *params.IdLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__in", runtime.ParamLocationQuery, *params.IdIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nin", runtime.ParamLocationQuery, *params.IdNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__notin", runtime.ParamLocationQuery, *params.IdNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isnull", runtime.ParamLocationQuery, *params.IdIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nisnull", runtime.ParamLocationQuery, *params.IdNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__isnotnull", runtime.ParamLocationQuery, *params.IdIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__l", runtime.ParamLocationQuery, *params.IdL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__like", runtime.ParamLocationQuery, *params.IdLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nl", runtime.ParamLocationQuery, *params.IdNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nlike", runtime.ParamLocationQuery, *params.IdNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__notlike", runtime.ParamLocationQuery, *params.IdNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__il", runtime.ParamLocationQuery, *params.IdIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__ilike", runtime.ParamLocationQuery, *params.IdIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nil", runtime.ParamLocationQuery, *params.IdNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__nilike", runtime.ParamLocationQuery, *params.IdNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__notilike", runtime.ParamLocationQuery, *params.IdNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__desc", runtime.ParamLocationQuery, *params.IdDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IdAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id__asc", runtime.ParamLocationQuery, *params.IdAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__eq", runtime.ParamLocationQuery, *params.CreatedAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__ne", runtime.ParamLocationQuery, *params.CreatedAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__gt", runtime.ParamLocationQuery, *params.CreatedAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__gte", runtime.ParamLocationQuery, *params.CreatedAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__lt", runtime.ParamLocationQuery, *params.CreatedAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__lte", runtime.ParamLocationQuery, *params.CreatedAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__in", runtime.ParamLocationQuery, *params.CreatedAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nin", runtime.ParamLocationQuery, *params.CreatedAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__notin", runtime.ParamLocationQuery, *params.CreatedAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__isnull", runtime.ParamLocationQuery, *params.CreatedAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nisnull", runtime.ParamLocationQuery, *params.CreatedAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__isnotnull", runtime.ParamLocationQuery, *params.CreatedAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__l", runtime.ParamLocationQuery, *params.CreatedAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__like", runtime.ParamLocationQuery, *params.CreatedAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nl", runtime.ParamLocationQuery, *params.CreatedAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nlike", runtime.ParamLocationQuery, *params.CreatedAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__notlike", runtime.ParamLocationQuery, *params.CreatedAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__il", runtime.ParamLocationQuery, *params.CreatedAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__ilike", runtime.ParamLocationQuery, *params.CreatedAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nil", runtime.ParamLocationQuery, *params.CreatedAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__nilike", runtime.ParamLocationQuery, *params.CreatedAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__notilike", runtime.ParamLocationQuery, *params.CreatedAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__desc", runtime.ParamLocationQuery, *params.CreatedAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CreatedAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "created_at__asc", runtime.ParamLocationQuery, *params.CreatedAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__eq", runtime.ParamLocationQuery, *params.UpdatedAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__ne", runtime.ParamLocationQuery, *params.UpdatedAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__gt", runtime.ParamLocationQuery, *params.UpdatedAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__gte", runtime.ParamLocationQuery, *params.UpdatedAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__lt", runtime.ParamLocationQuery, *params.UpdatedAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__lte", runtime.ParamLocationQuery, *params.UpdatedAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__in", runtime.ParamLocationQuery, *params.UpdatedAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nin", runtime.ParamLocationQuery, *params.UpdatedAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__notin", runtime.ParamLocationQuery, *params.UpdatedAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__isnull", runtime.ParamLocationQuery, *params.UpdatedAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nisnull", runtime.ParamLocationQuery, *params.UpdatedAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__isnotnull", runtime.ParamLocationQuery, *params.UpdatedAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__l", runtime.ParamLocationQuery, *params.UpdatedAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__like", runtime.ParamLocationQuery, *params.UpdatedAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nl", runtime.ParamLocationQuery, *params.UpdatedAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nlike", runtime.ParamLocationQuery, *params.UpdatedAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__notlike", runtime.ParamLocationQuery, *params.UpdatedAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__il", runtime.ParamLocationQuery, *params.UpdatedAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__ilike", runtime.ParamLocationQuery, *params.UpdatedAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nil", runtime.ParamLocationQuery, *params.UpdatedAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__nilike", runtime.ParamLocationQuery, *params.UpdatedAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__notilike", runtime.ParamLocationQuery, *params.UpdatedAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__desc", runtime.ParamLocationQuery, *params.UpdatedAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatedAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "updated_at__asc", runtime.ParamLocationQuery, *params.UpdatedAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__eq", runtime.ParamLocationQuery, *params.DeletedAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__ne", runtime.ParamLocationQuery, *params.DeletedAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__gt", runtime.ParamLocationQuery, *params.DeletedAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__gte", runtime.ParamLocationQuery, *params.DeletedAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__lt", runtime.ParamLocationQuery, *params.DeletedAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__lte", runtime.ParamLocationQuery, *params.DeletedAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__in", runtime.ParamLocationQuery, *params.DeletedAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nin", runtime.ParamLocationQuery, *params.DeletedAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__notin", runtime.ParamLocationQuery, *params.DeletedAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__isnull", runtime.ParamLocationQuery, *params.DeletedAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nisnull", runtime.ParamLocationQuery, *params.DeletedAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__isnotnull", runtime.ParamLocationQuery, *params.DeletedAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__l", runtime.ParamLocationQuery, *params.DeletedAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__like", runtime.ParamLocationQuery, *params.DeletedAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nl", runtime.ParamLocationQuery, *params.DeletedAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nlike", runtime.ParamLocationQuery, *params.DeletedAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__notlike", runtime.ParamLocationQuery, *params.DeletedAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__il", runtime.ParamLocationQuery, *params.DeletedAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__ilike", runtime.ParamLocationQuery, *params.DeletedAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nil", runtime.ParamLocationQuery, *params.DeletedAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__nilike", runtime.ParamLocationQuery, *params.DeletedAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__notilike", runtime.ParamLocationQuery, *params.DeletedAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__desc", runtime.ParamLocationQuery, *params.DeletedAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DeletedAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted_at__asc", runtime.ParamLocationQuery, *params.DeletedAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__eq", runtime.ParamLocationQuery, *params.FileNameEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__ne", runtime.ParamLocationQuery, *params.FileNameNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__gt", runtime.ParamLocationQuery, *params.FileNameGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__gte", runtime.ParamLocationQuery, *params.FileNameGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__lt", runtime.ParamLocationQuery, *params.FileNameLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__lte", runtime.ParamLocationQuery, *params.FileNameLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__in", runtime.ParamLocationQuery, *params.FileNameIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__nin", runtime.ParamLocationQuery, *params.FileNameNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__notin", runtime.ParamLocationQuery, *params.FileNameNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__isnull", runtime.ParamLocationQuery, *params.FileNameIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__nisnull", runtime.ParamLocationQuery, *params.FileNameNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__isnotnull", runtime.ParamLocationQuery, *params.FileNameIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__l", runtime.ParamLocationQuery, *params.FileNameL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__like", runtime.ParamLocationQuery, *params.FileNameLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__nl", runtime.ParamLocationQuery, *params.FileNameNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__nlike", runtime.ParamLocationQuery, *params.FileNameNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__notlike", runtime.ParamLocationQuery, *params.FileNameNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__il", runtime.ParamLocationQuery, *params.FileNameIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__ilike", runtime.ParamLocationQuery, *params.FileNameIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__nil", runtime.ParamLocationQuery, *params.FileNameNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__nilike", runtime.ParamLocationQuery, *params.FileNameNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__notilike", runtime.ParamLocationQuery, *params.FileNameNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__desc", runtime.ParamLocationQuery, *params.FileNameDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileNameAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_name__asc", runtime.ParamLocationQuery, *params.FileNameAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__eq", runtime.ParamLocationQuery, *params.StartedAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__ne", runtime.ParamLocationQuery, *params.StartedAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__gt", runtime.ParamLocationQuery, *params.StartedAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__gte", runtime.ParamLocationQuery, *params.StartedAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__lt", runtime.ParamLocationQuery, *params.StartedAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__lte", runtime.ParamLocationQuery, *params.StartedAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__in", runtime.ParamLocationQuery, *params.StartedAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__nin", runtime.ParamLocationQuery, *params.StartedAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__notin", runtime.ParamLocationQuery, *params.StartedAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__isnull", runtime.ParamLocationQuery, *params.StartedAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__nisnull", runtime.ParamLocationQuery, *params.StartedAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__isnotnull", runtime.ParamLocationQuery, *params.StartedAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__l", runtime.ParamLocationQuery, *params.StartedAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__like", runtime.ParamLocationQuery, *params.StartedAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__nl", runtime.ParamLocationQuery, *params.StartedAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__nlike", runtime.ParamLocationQuery, *params.StartedAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__notlike", runtime.ParamLocationQuery, *params.StartedAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__il", runtime.ParamLocationQuery, *params.StartedAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__ilike", runtime.ParamLocationQuery, *params.StartedAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__nil", runtime.ParamLocationQuery, *params.StartedAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__nilike", runtime.ParamLocationQuery, *params.StartedAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__notilike", runtime.ParamLocationQuery, *params.StartedAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__desc", runtime.ParamLocationQuery, *params.StartedAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StartedAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "started_at__asc", runtime.ParamLocationQuery, *params.StartedAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__eq", runtime.ParamLocationQuery, *params.EndedAtEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__ne", runtime.ParamLocationQuery, *params.EndedAtNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__gt", runtime.ParamLocationQuery, *params.EndedAtGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__gte", runtime.ParamLocationQuery, *params.EndedAtGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__lt", runtime.ParamLocationQuery, *params.EndedAtLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__lte", runtime.ParamLocationQuery, *params.EndedAtLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__in", runtime.ParamLocationQuery, *params.EndedAtIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__nin", runtime.ParamLocationQuery, *params.EndedAtNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__notin", runtime.ParamLocationQuery, *params.EndedAtNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__isnull", runtime.ParamLocationQuery, *params.EndedAtIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__nisnull", runtime.ParamLocationQuery, *params.EndedAtNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__isnotnull", runtime.ParamLocationQuery, *params.EndedAtIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__l", runtime.ParamLocationQuery, *params.EndedAtL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__like", runtime.ParamLocationQuery, *params.EndedAtLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__nl", runtime.ParamLocationQuery, *params.EndedAtNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__nlike", runtime.ParamLocationQuery, *params.EndedAtNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__notlike", runtime.ParamLocationQuery, *params.EndedAtNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__il", runtime.ParamLocationQuery, *params.EndedAtIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__ilike", runtime.ParamLocationQuery, *params.EndedAtIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__nil", runtime.ParamLocationQuery, *params.EndedAtNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__nilike", runtime.ParamLocationQuery, *params.EndedAtNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__notilike", runtime.ParamLocationQuery, *params.EndedAtNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__desc", runtime.ParamLocationQuery, *params.EndedAtDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndedAtAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ended_at__asc", runtime.ParamLocationQuery, *params.EndedAtAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__eq", runtime.ParamLocationQuery, *params.DurationEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__ne", runtime.ParamLocationQuery, *params.DurationNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__gt", runtime.ParamLocationQuery, *params.DurationGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__gte", runtime.ParamLocationQuery, *params.DurationGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__lt", runtime.ParamLocationQuery, *params.DurationLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__lte", runtime.ParamLocationQuery, *params.DurationLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__in", runtime.ParamLocationQuery, *params.DurationIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__nin", runtime.ParamLocationQuery, *params.DurationNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__notin", runtime.ParamLocationQuery, *params.DurationNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__isnull", runtime.ParamLocationQuery, *params.DurationIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__nisnull", runtime.ParamLocationQuery, *params.DurationNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__isnotnull", runtime.ParamLocationQuery, *params.DurationIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__l", runtime.ParamLocationQuery, *params.DurationL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__like", runtime.ParamLocationQuery, *params.DurationLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__nl", runtime.ParamLocationQuery, *params.DurationNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__nlike", runtime.ParamLocationQuery, *params.DurationNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__notlike", runtime.ParamLocationQuery, *params.DurationNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__il", runtime.ParamLocationQuery, *params.DurationIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__ilike", runtime.ParamLocationQuery, *params.DurationIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__nil", runtime.ParamLocationQuery, *params.DurationNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__nilike", runtime.ParamLocationQuery, *params.DurationNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__notilike", runtime.ParamLocationQuery, *params.DurationNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__desc", runtime.ParamLocationQuery, *params.DurationDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.DurationAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "duration__asc", runtime.ParamLocationQuery, *params.DurationAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__eq", runtime.ParamLocationQuery, *params.FileSizeEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__ne", runtime.ParamLocationQuery, *params.FileSizeNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__gt", runtime.ParamLocationQuery, *params.FileSizeGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__gte", runtime.ParamLocationQuery, *params.FileSizeGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__lt", runtime.ParamLocationQuery, *params.FileSizeLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__lte", runtime.ParamLocationQuery, *params.FileSizeLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__in", runtime.ParamLocationQuery, *params.FileSizeIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__nin", runtime.ParamLocationQuery, *params.FileSizeNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__notin", runtime.ParamLocationQuery, *params.FileSizeNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__isnull", runtime.ParamLocationQuery, *params.FileSizeIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__nisnull", runtime.ParamLocationQuery, *params.FileSizeNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__isnotnull", runtime.ParamLocationQuery, *params.FileSizeIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__l", runtime.ParamLocationQuery, *params.FileSizeL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__like", runtime.ParamLocationQuery, *params.FileSizeLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__nl", runtime.ParamLocationQuery, *params.FileSizeNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__nlike", runtime.ParamLocationQuery, *params.FileSizeNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__notlike", runtime.ParamLocationQuery, *params.FileSizeNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__il", runtime.ParamLocationQuery, *params.FileSizeIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__ilike", runtime.ParamLocationQuery, *params.FileSizeIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__nil", runtime.ParamLocationQuery, *params.FileSizeNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__nilike", runtime.ParamLocationQuery, *params.FileSizeNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__notilike", runtime.ParamLocationQuery, *params.FileSizeNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__desc", runtime.ParamLocationQuery, *params.FileSizeDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FileSizeAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file_size__asc", runtime.ParamLocationQuery, *params.FileSizeAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__eq", runtime.ParamLocationQuery, *params.ThumbnailNameEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__ne", runtime.ParamLocationQuery, *params.ThumbnailNameNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__gt", runtime.ParamLocationQuery, *params.ThumbnailNameGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__gte", runtime.ParamLocationQuery, *params.ThumbnailNameGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__lt", runtime.ParamLocationQuery, *params.ThumbnailNameLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__lte", runtime.ParamLocationQuery, *params.ThumbnailNameLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__in", runtime.ParamLocationQuery, *params.ThumbnailNameIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__nin", runtime.ParamLocationQuery, *params.ThumbnailNameNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__notin", runtime.ParamLocationQuery, *params.ThumbnailNameNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__isnull", runtime.ParamLocationQuery, *params.ThumbnailNameIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__nisnull", runtime.ParamLocationQuery, *params.ThumbnailNameNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__isnotnull", runtime.ParamLocationQuery, *params.ThumbnailNameIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__l", runtime.ParamLocationQuery, *params.ThumbnailNameL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__like", runtime.ParamLocationQuery, *params.ThumbnailNameLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__nl", runtime.ParamLocationQuery, *params.ThumbnailNameNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__nlike", runtime.ParamLocationQuery, *params.ThumbnailNameNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__notlike", runtime.ParamLocationQuery, *params.ThumbnailNameNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__il", runtime.ParamLocationQuery, *params.ThumbnailNameIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__ilike", runtime.ParamLocationQuery, *params.ThumbnailNameIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__nil", runtime.ParamLocationQuery, *params.ThumbnailNameNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__nilike", runtime.ParamLocationQuery, *params.ThumbnailNameNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__notilike", runtime.ParamLocationQuery, *params.ThumbnailNameNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__desc", runtime.ParamLocationQuery, *params.ThumbnailNameDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ThumbnailNameAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "thumbnail_name__asc", runtime.ParamLocationQuery, *params.ThumbnailNameAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__eq", runtime.ParamLocationQuery, *params.StatusEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__ne", runtime.ParamLocationQuery, *params.StatusNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__gt", runtime.ParamLocationQuery, *params.StatusGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__gte", runtime.ParamLocationQuery, *params.StatusGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__lt", runtime.ParamLocationQuery, *params.StatusLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__lte", runtime.ParamLocationQuery, *params.StatusLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__in", runtime.ParamLocationQuery, *params.StatusIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__nin", runtime.ParamLocationQuery, *params.StatusNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__notin", runtime.ParamLocationQuery, *params.StatusNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__isnull", runtime.ParamLocationQuery, *params.StatusIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__nisnull", runtime.ParamLocationQuery, *params.StatusNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__isnotnull", runtime.ParamLocationQuery, *params.StatusIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__l", runtime.ParamLocationQuery, *params.StatusL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__like", runtime.ParamLocationQuery, *params.StatusLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__nl", runtime.ParamLocationQuery, *params.StatusNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__nlike", runtime.ParamLocationQuery, *params.StatusNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__notlike", runtime.ParamLocationQuery, *params.StatusNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__il", runtime.ParamLocationQuery, *params.StatusIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__ilike", runtime.ParamLocationQuery, *params.StatusIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__nil", runtime.ParamLocationQuery, *params.StatusNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__nilike", runtime.ParamLocationQuery, *params.StatusNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__notilike", runtime.ParamLocationQuery, *params.StatusNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__desc", runtime.ParamLocationQuery, *params.StatusDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.StatusAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status__asc", runtime.ParamLocationQuery, *params.StatusAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdEq != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__eq", runtime.ParamLocationQuery, *params.CameraIdEq); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNe != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__ne", runtime.ParamLocationQuery, *params.CameraIdNe); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdGt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__gt", runtime.ParamLocationQuery, *params.CameraIdGt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdGte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__gte", runtime.ParamLocationQuery, *params.CameraIdGte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdLt != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__lt", runtime.ParamLocationQuery, *params.CameraIdLt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdLte != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__lte", runtime.ParamLocationQuery, *params.CameraIdLte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdIn != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__in", runtime.ParamLocationQuery, *params.CameraIdIn); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nin", runtime.ParamLocationQuery, *params.CameraIdNin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNotin != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__notin", runtime.ParamLocationQuery, *params.CameraIdNotin); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdIsnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__isnull", runtime.ParamLocationQuery, *params.CameraIdIsnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNisnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nisnull", runtime.ParamLocationQuery, *params.CameraIdNisnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdIsnotnull != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__isnotnull", runtime.ParamLocationQuery, *params.CameraIdIsnotnull); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdL != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__l", runtime.ParamLocationQuery, *params.CameraIdL); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdLike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__like", runtime.ParamLocationQuery, *params.CameraIdLike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nl", runtime.ParamLocationQuery, *params.CameraIdNl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nlike", runtime.ParamLocationQuery, *params.CameraIdNlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNotlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__notlike", runtime.ParamLocationQuery, *params.CameraIdNotlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdIl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__il", runtime.ParamLocationQuery, *params.CameraIdIl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdIlike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__ilike", runtime.ParamLocationQuery, *params.CameraIdIlike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNil != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nil", runtime.ParamLocationQuery, *params.CameraIdNil); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__nilike", runtime.ParamLocationQuery, *params.CameraIdNilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdNotilike != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__notilike", runtime.ParamLocationQuery, *params.CameraIdNotilike); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdDesc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__desc", runtime.ParamLocationQuery, *params.CameraIdDesc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.CameraIdAsc != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "camera_id__asc", runtime.ParamLocationQuery, *params.CameraIdAsc); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostVideosRequest calls the generic PostVideos builder with application/json body -func NewPostVideosRequest(server string, body PostVideosJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostVideosRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostVideosRequestWithBody generates requests for PostVideos with any type of body -func NewPostVideosRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/videos") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteVideoRequest generates requests for DeleteVideo -func NewDeleteVideoRequest(server string, primaryKey interface{}) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/videos/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetVideoRequest generates requests for GetVideo -func NewGetVideoRequest(server string, primaryKey interface{}) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/videos/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPatchVideoRequest calls the generic PatchVideo builder with application/json body -func NewPatchVideoRequest(server string, primaryKey interface{}, body PatchVideoJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPatchVideoRequestWithBody(server, primaryKey, "application/json", bodyReader) -} - -// NewPatchVideoRequestWithBody generates requests for PatchVideo with any type of body -func NewPatchVideoRequestWithBody(server string, primaryKey interface{}, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/videos/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PATCH", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPutVideoRequest calls the generic PutVideo builder with application/json body -func NewPutVideoRequest(server string, primaryKey interface{}, body PutVideoJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPutVideoRequestWithBody(server, primaryKey, "application/json", bodyReader) -} - -// NewPutVideoRequestWithBody generates requests for PutVideo with any type of body -func NewPutVideoRequestWithBody(server string, primaryKey interface{}, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "primaryKey", runtime.ParamLocationPath, primaryKey) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/videos/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { - for _, r := range c.RequestEditors { - if err := r(ctx, req); err != nil { - return err - } - } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err - } - } - return nil -} - -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} - -// NewClientWithResponses creates a new ClientWithResponses, which wraps -// Client with return type handling -func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { - client, err := NewClient(server, opts...) - if err != nil { - return nil, err - } - return &ClientWithResponses{client}, nil -} - -// WithBaseURL overrides the baseURL. -func WithBaseURL(baseURL string) ClientOption { - return func(c *Client) error { - newBaseURL, err := url.Parse(baseURL) - if err != nil { - return err - } - c.Server = newBaseURL.String() - return nil - } -} - -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // GetCamerasWithResponse request - GetCamerasWithResponse(ctx context.Context, params *GetCamerasParams, reqEditors ...RequestEditorFn) (*GetCamerasResponse, error) - - // PostCamerasWithBodyWithResponse request with any body - PostCamerasWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCamerasResponse, error) - - PostCamerasWithResponse(ctx context.Context, body PostCamerasJSONRequestBody, reqEditors ...RequestEditorFn) (*PostCamerasResponse, error) - - // DeleteCameraWithResponse request - DeleteCameraWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*DeleteCameraResponse, error) - - // GetCameraWithResponse request - GetCameraWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*GetCameraResponse, error) - - // PatchCameraWithBodyWithResponse request with any body - PatchCameraWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchCameraResponse, error) - - PatchCameraWithResponse(ctx context.Context, primaryKey interface{}, body PatchCameraJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchCameraResponse, error) - - // PutCameraWithBodyWithResponse request with any body - PutCameraWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutCameraResponse, error) - - PutCameraWithResponse(ctx context.Context, primaryKey interface{}, body PutCameraJSONRequestBody, reqEditors ...RequestEditorFn) (*PutCameraResponse, error) - - // GetDetectionsWithResponse request - GetDetectionsWithResponse(ctx context.Context, params *GetDetectionsParams, reqEditors ...RequestEditorFn) (*GetDetectionsResponse, error) - - // PostDetectionsWithBodyWithResponse request with any body - PostDetectionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostDetectionsResponse, error) - - PostDetectionsWithResponse(ctx context.Context, body PostDetectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostDetectionsResponse, error) - - // DeleteDetectionWithResponse request - DeleteDetectionWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*DeleteDetectionResponse, error) - - // GetDetectionWithResponse request - GetDetectionWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*GetDetectionResponse, error) - - // PatchDetectionWithBodyWithResponse request with any body - PatchDetectionWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchDetectionResponse, error) - - PatchDetectionWithResponse(ctx context.Context, primaryKey interface{}, body PatchDetectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchDetectionResponse, error) - - // PutDetectionWithBodyWithResponse request with any body - PutDetectionWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDetectionResponse, error) - - PutDetectionWithResponse(ctx context.Context, primaryKey interface{}, body PutDetectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PutDetectionResponse, error) - - // GetVideosWithResponse request - GetVideosWithResponse(ctx context.Context, params *GetVideosParams, reqEditors ...RequestEditorFn) (*GetVideosResponse, error) - - // PostVideosWithBodyWithResponse request with any body - PostVideosWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostVideosResponse, error) - - PostVideosWithResponse(ctx context.Context, body PostVideosJSONRequestBody, reqEditors ...RequestEditorFn) (*PostVideosResponse, error) - - // DeleteVideoWithResponse request - DeleteVideoWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*DeleteVideoResponse, error) - - // GetVideoWithResponse request - GetVideoWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*GetVideoResponse, error) - - // PatchVideoWithBodyWithResponse request with any body - PatchVideoWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchVideoResponse, error) - - PatchVideoWithResponse(ctx context.Context, primaryKey interface{}, body PatchVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchVideoResponse, error) - - // PutVideoWithBodyWithResponse request with any body - PutVideoWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutVideoResponse, error) - - PutVideoWithResponse(ctx context.Context, primaryKey interface{}, body PutVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*PutVideoResponse, error) -} - -type GetCamerasResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Camera `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r GetCamerasResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetCamerasResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostCamerasResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Camera `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r PostCamerasResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostCamerasResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteCameraResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r DeleteCameraResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteCameraResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetCameraResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Camera `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r GetCameraResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetCameraResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PatchCameraResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Camera `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r PatchCameraResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PatchCameraResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutCameraResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Camera `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r PutCameraResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutCameraResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetDetectionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Detection `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r GetDetectionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetDetectionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostDetectionsResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Detection `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r PostDetectionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostDetectionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteDetectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r DeleteDetectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteDetectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetDetectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Detection `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r GetDetectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetDetectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PatchDetectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Detection `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r PatchDetectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PatchDetectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutDetectionResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Detection `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r PutDetectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutDetectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetVideosResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Video `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r GetVideosResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetVideosResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostVideosResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Video `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r PostVideosResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostVideosResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteVideoResponse struct { - Body []byte - HTTPResponse *http.Response - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r DeleteVideoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteVideoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetVideoResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Video `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r GetVideoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetVideoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PatchVideoResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Video `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r PatchVideoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PatchVideoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutVideoResponse struct { - Body []byte - HTTPResponse *http.Response - JSON200 *struct { - Error *string `json:"error,omitempty"` - Objects *[]Video `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - JSONDefault *struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } -} - -// Status returns HTTPResponse.Status -func (r PutVideoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutVideoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// GetCamerasWithResponse request returning *GetCamerasResponse -func (c *ClientWithResponses) GetCamerasWithResponse(ctx context.Context, params *GetCamerasParams, reqEditors ...RequestEditorFn) (*GetCamerasResponse, error) { - rsp, err := c.GetCameras(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetCamerasResponse(rsp) -} - -// PostCamerasWithBodyWithResponse request with arbitrary body returning *PostCamerasResponse -func (c *ClientWithResponses) PostCamerasWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCamerasResponse, error) { - rsp, err := c.PostCamerasWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostCamerasResponse(rsp) -} - -func (c *ClientWithResponses) PostCamerasWithResponse(ctx context.Context, body PostCamerasJSONRequestBody, reqEditors ...RequestEditorFn) (*PostCamerasResponse, error) { - rsp, err := c.PostCameras(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostCamerasResponse(rsp) -} - -// DeleteCameraWithResponse request returning *DeleteCameraResponse -func (c *ClientWithResponses) DeleteCameraWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*DeleteCameraResponse, error) { - rsp, err := c.DeleteCamera(ctx, primaryKey, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteCameraResponse(rsp) -} - -// GetCameraWithResponse request returning *GetCameraResponse -func (c *ClientWithResponses) GetCameraWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*GetCameraResponse, error) { - rsp, err := c.GetCamera(ctx, primaryKey, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetCameraResponse(rsp) -} - -// PatchCameraWithBodyWithResponse request with arbitrary body returning *PatchCameraResponse -func (c *ClientWithResponses) PatchCameraWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchCameraResponse, error) { - rsp, err := c.PatchCameraWithBody(ctx, primaryKey, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePatchCameraResponse(rsp) -} - -func (c *ClientWithResponses) PatchCameraWithResponse(ctx context.Context, primaryKey interface{}, body PatchCameraJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchCameraResponse, error) { - rsp, err := c.PatchCamera(ctx, primaryKey, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePatchCameraResponse(rsp) -} - -// PutCameraWithBodyWithResponse request with arbitrary body returning *PutCameraResponse -func (c *ClientWithResponses) PutCameraWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutCameraResponse, error) { - rsp, err := c.PutCameraWithBody(ctx, primaryKey, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutCameraResponse(rsp) -} - -func (c *ClientWithResponses) PutCameraWithResponse(ctx context.Context, primaryKey interface{}, body PutCameraJSONRequestBody, reqEditors ...RequestEditorFn) (*PutCameraResponse, error) { - rsp, err := c.PutCamera(ctx, primaryKey, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutCameraResponse(rsp) -} - -// GetDetectionsWithResponse request returning *GetDetectionsResponse -func (c *ClientWithResponses) GetDetectionsWithResponse(ctx context.Context, params *GetDetectionsParams, reqEditors ...RequestEditorFn) (*GetDetectionsResponse, error) { - rsp, err := c.GetDetections(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetDetectionsResponse(rsp) -} - -// PostDetectionsWithBodyWithResponse request with arbitrary body returning *PostDetectionsResponse -func (c *ClientWithResponses) PostDetectionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostDetectionsResponse, error) { - rsp, err := c.PostDetectionsWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostDetectionsResponse(rsp) -} - -func (c *ClientWithResponses) PostDetectionsWithResponse(ctx context.Context, body PostDetectionsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostDetectionsResponse, error) { - rsp, err := c.PostDetections(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostDetectionsResponse(rsp) -} - -// DeleteDetectionWithResponse request returning *DeleteDetectionResponse -func (c *ClientWithResponses) DeleteDetectionWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*DeleteDetectionResponse, error) { - rsp, err := c.DeleteDetection(ctx, primaryKey, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteDetectionResponse(rsp) -} - -// GetDetectionWithResponse request returning *GetDetectionResponse -func (c *ClientWithResponses) GetDetectionWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*GetDetectionResponse, error) { - rsp, err := c.GetDetection(ctx, primaryKey, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetDetectionResponse(rsp) -} - -// PatchDetectionWithBodyWithResponse request with arbitrary body returning *PatchDetectionResponse -func (c *ClientWithResponses) PatchDetectionWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchDetectionResponse, error) { - rsp, err := c.PatchDetectionWithBody(ctx, primaryKey, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePatchDetectionResponse(rsp) -} - -func (c *ClientWithResponses) PatchDetectionWithResponse(ctx context.Context, primaryKey interface{}, body PatchDetectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchDetectionResponse, error) { - rsp, err := c.PatchDetection(ctx, primaryKey, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePatchDetectionResponse(rsp) -} - -// PutDetectionWithBodyWithResponse request with arbitrary body returning *PutDetectionResponse -func (c *ClientWithResponses) PutDetectionWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDetectionResponse, error) { - rsp, err := c.PutDetectionWithBody(ctx, primaryKey, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutDetectionResponse(rsp) -} - -func (c *ClientWithResponses) PutDetectionWithResponse(ctx context.Context, primaryKey interface{}, body PutDetectionJSONRequestBody, reqEditors ...RequestEditorFn) (*PutDetectionResponse, error) { - rsp, err := c.PutDetection(ctx, primaryKey, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutDetectionResponse(rsp) -} - -// GetVideosWithResponse request returning *GetVideosResponse -func (c *ClientWithResponses) GetVideosWithResponse(ctx context.Context, params *GetVideosParams, reqEditors ...RequestEditorFn) (*GetVideosResponse, error) { - rsp, err := c.GetVideos(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetVideosResponse(rsp) -} - -// PostVideosWithBodyWithResponse request with arbitrary body returning *PostVideosResponse -func (c *ClientWithResponses) PostVideosWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostVideosResponse, error) { - rsp, err := c.PostVideosWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostVideosResponse(rsp) -} - -func (c *ClientWithResponses) PostVideosWithResponse(ctx context.Context, body PostVideosJSONRequestBody, reqEditors ...RequestEditorFn) (*PostVideosResponse, error) { - rsp, err := c.PostVideos(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostVideosResponse(rsp) -} - -// DeleteVideoWithResponse request returning *DeleteVideoResponse -func (c *ClientWithResponses) DeleteVideoWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*DeleteVideoResponse, error) { - rsp, err := c.DeleteVideo(ctx, primaryKey, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteVideoResponse(rsp) -} - -// GetVideoWithResponse request returning *GetVideoResponse -func (c *ClientWithResponses) GetVideoWithResponse(ctx context.Context, primaryKey interface{}, reqEditors ...RequestEditorFn) (*GetVideoResponse, error) { - rsp, err := c.GetVideo(ctx, primaryKey, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetVideoResponse(rsp) -} - -// PatchVideoWithBodyWithResponse request with arbitrary body returning *PatchVideoResponse -func (c *ClientWithResponses) PatchVideoWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchVideoResponse, error) { - rsp, err := c.PatchVideoWithBody(ctx, primaryKey, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePatchVideoResponse(rsp) -} - -func (c *ClientWithResponses) PatchVideoWithResponse(ctx context.Context, primaryKey interface{}, body PatchVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchVideoResponse, error) { - rsp, err := c.PatchVideo(ctx, primaryKey, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePatchVideoResponse(rsp) -} - -// PutVideoWithBodyWithResponse request with arbitrary body returning *PutVideoResponse -func (c *ClientWithResponses) PutVideoWithBodyWithResponse(ctx context.Context, primaryKey interface{}, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutVideoResponse, error) { - rsp, err := c.PutVideoWithBody(ctx, primaryKey, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutVideoResponse(rsp) -} - -func (c *ClientWithResponses) PutVideoWithResponse(ctx context.Context, primaryKey interface{}, body PutVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*PutVideoResponse, error) { - rsp, err := c.PutVideo(ctx, primaryKey, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutVideoResponse(rsp) -} - -// ParseGetCamerasResponse parses an HTTP response from a GetCamerasWithResponse call -func ParseGetCamerasResponse(rsp *http.Response) (*GetCamerasResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetCamerasResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Camera `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParsePostCamerasResponse parses an HTTP response from a PostCamerasWithResponse call -func ParsePostCamerasResponse(rsp *http.Response) (*PostCamerasResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostCamerasResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Camera `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDeleteCameraResponse parses an HTTP response from a DeleteCameraWithResponse call -func ParseDeleteCameraResponse(rsp *http.Response) (*DeleteCameraResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteCameraResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetCameraResponse parses an HTTP response from a GetCameraWithResponse call -func ParseGetCameraResponse(rsp *http.Response) (*GetCameraResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetCameraResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Camera `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParsePatchCameraResponse parses an HTTP response from a PatchCameraWithResponse call -func ParsePatchCameraResponse(rsp *http.Response) (*PatchCameraResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PatchCameraResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Camera `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParsePutCameraResponse parses an HTTP response from a PutCameraWithResponse call -func ParsePutCameraResponse(rsp *http.Response) (*PutCameraResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutCameraResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Camera `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetDetectionsResponse parses an HTTP response from a GetDetectionsWithResponse call -func ParseGetDetectionsResponse(rsp *http.Response) (*GetDetectionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetDetectionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Detection `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParsePostDetectionsResponse parses an HTTP response from a PostDetectionsWithResponse call -func ParsePostDetectionsResponse(rsp *http.Response) (*PostDetectionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostDetectionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Detection `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDeleteDetectionResponse parses an HTTP response from a DeleteDetectionWithResponse call -func ParseDeleteDetectionResponse(rsp *http.Response) (*DeleteDetectionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteDetectionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetDetectionResponse parses an HTTP response from a GetDetectionWithResponse call -func ParseGetDetectionResponse(rsp *http.Response) (*GetDetectionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetDetectionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Detection `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParsePatchDetectionResponse parses an HTTP response from a PatchDetectionWithResponse call -func ParsePatchDetectionResponse(rsp *http.Response) (*PatchDetectionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PatchDetectionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Detection `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParsePutDetectionResponse parses an HTTP response from a PutDetectionWithResponse call -func ParsePutDetectionResponse(rsp *http.Response) (*PutDetectionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutDetectionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Detection `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetVideosResponse parses an HTTP response from a GetVideosWithResponse call -func ParseGetVideosResponse(rsp *http.Response) (*GetVideosResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetVideosResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Video `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParsePostVideosResponse parses an HTTP response from a PostVideosWithResponse call -func ParsePostVideosResponse(rsp *http.Response) (*PostVideosResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostVideosResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Video `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseDeleteVideoResponse parses an HTTP response from a DeleteVideoWithResponse call -func ParseDeleteVideoResponse(rsp *http.Response) (*DeleteVideoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteVideoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParseGetVideoResponse parses an HTTP response from a GetVideoWithResponse call -func ParseGetVideoResponse(rsp *http.Response) (*GetVideoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetVideoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Video `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParsePatchVideoResponse parses an HTTP response from a PatchVideoWithResponse call -func ParsePatchVideoResponse(rsp *http.Response) (*PatchVideoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PatchVideoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Video `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// ParsePutVideoResponse parses an HTTP response from a PutVideoWithResponse call -func ParsePutVideoResponse(rsp *http.Response) (*PutVideoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutVideoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Error *string `json:"error,omitempty"` - Objects *[]Video `json:"objects,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true: - var dest struct { - Error *string `json:"error,omitempty"` - Status int32 `json:"status"` - Success bool `json:"success"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSONDefault = &dest - - } - - return response, nil -} - -// Base64 encoded, gzipped, json marshaled Swagger object -var swaggerSpec = []string{ - - "H4sIAAAAAAAC/+ydUY/btpbHv4rKdoFdwLeeTYI+DOCHNMkUg+a22aQt9qI7GHAkeoYpRSkk1Xt9B/7u", - "C0m2RdqSPPJQ1jkonzLjscWfz+Gh9I+O+H8kcZbmmWTSaHL5SHT8wFJa/fiGpkzR8qdcZTlThrPq9Vgx", - "alhyS0352zJTafkTSahhfzM8ZWRGzCpn5JJoo7i8J+sZSZhgRz4jCyHonWDk0qiCtRyDJ85ni4InbUMJ", - "qs2tZkyePpKkKSs/ffAHbRSj6W2hROufizwZGJn17pXs7jOLTXmUt8yw2PBMHob+LitkwuX97V32r/J3", - "bliqD9/2v+7wWVF+2d1IskjvmCpH+seT3tfGuHmBKkVX5e9xNVdun5ii3btvN0e8fCTfKLYkl+TreTMf", - "55vJOP9pk7DNjCyPwKRRWT3cub97LKjW+1+VS/Pdq+bzXBp2Xw9Uv71zSgGvJh1nij0xpGXRDfoefupl", - "b3aE9erM69VvPGFZS9jPvSRMlOakUHS7Wh8sBx2ftpYHJpNnAiy5YN3rS/VXzf/dUcQdR2+K+qnrhKFq", - "aPS1oabQrdTmoUjvJOWi+4v5mLzlS1wuq9lruCnDQN5+pvI+E1Tekxn5kyld5Zb897cX5ahZziTNObkk", - "L7+9+PaCzEhOzUP1JeY05/N6Hle/37OKrKyJaoJcJ+SS/MDMm81byo8qmjLDlCaXvz+ShOlY8byeTOTT", - "/7yP3l///fqXqD5CpkgJSy7Jl4KpFdmWPRE85YbMNpdu+9Pw5YuWs9J61jbaz1dXn94dHS5bLjXzMt7i", - "2FA8ub1lX9qHap+I7QN99aSRJHv+SP9XXFy8ZLvRZlFKV5HMTPTPTP0R/ZObh4gKEcWZKFIZlYfUPUT3", - "xhfRwh+SryjFvpCEryjFC39IHqJ0/ZOFkzOVcqOjOEtT+jfNyqXDsCT6k4qiF4XL55P89PMvnmgkMJzM", - "+AC6/hT99Ov79xZRNXLEdcTvZaZYEv1nrphmMmZRtoz+YKvyb7pYLnnMmTT/1ZdAXZ6j/UD+/MuIoBIN", - "KdcyM35Y31//+K4VMs0Fj7kRqyhXbMn/xZKIyqQGLH+plpT/6FtDQMPxP5ifQh6PUQr4hBjCmBk/mNfj", - "MXIBHM9bnkeklFxgYEQRysx4Av3549t3H6Pv/xHdRm/ffXozzvmwHNYr6uuxSKkP0KNqsPmvpG792fv/", - "DKeJUHvYLjE6eFh/itTG61KmJ+It/PN5jV/sm094jV+88M/nK37PF2o2V5daG4zlR0M6FQuZrVvnDk/o", - "WGLXyXOPlDyJeDQ96U4BlNhH5PBg8HGuq5zlCQ9p51XgScvC+MBSIMNFF+A+PT18kRgfmAtMrH6nwxmQ", - "JRfogPEFuVeQD6YeXZXb7N3q/Dncr8fGpt6ojwrnphXgrHrdHhagXrfxIOp1lw+eXrf5IOp1lw+OXre5", - "gGlip2Ihs2HQ606e0QhfdwqgxMah153lCQ8pBjnpzGGBDBddgDHodWd5EJhYUUhJ96Qh0AHjCzIyvW6z", - "I9LrNvYZ9Xrz2MVZ9bo9LEC9buNB1OsuHzy9bvNB1OsuHxy9bnMB08ROxUJmw6DXnTyjEb7uFECJjUOv", - "O8sTHlIMctKZwwIZLroAY9DrzvIgMLGikJLuSUOgA8YXZGR63WZHpNdt7DPq9fKfA6XuSZTXx96T42dW", - "3jXDnuY+t7zeQpwaidgfhDg1EvHCJ8QJkXi+rKsH31NzZ5SVm3qYHOBA0U4rXjdpOdR/00u9bcbgsrUL", - "0AkV3KbCgeHsX79MLGo280pAZIIZqhblN6Vw2hSfAAd0cvZG5ZJcwKQCGq42yQVDXdWAB7oKhISq2egp", - "aEe1TLPd3lhqyR5hWs1kk0ysnFyUSfWTjTKxinJRJtFSNsJ0gsapGSAYwNSVkyiIOsbNIXRCcHrLWQtA", - "QgETFM58E3DJIIcNmBpzClQAxYImNdx1V0BmAx06uFrNxoSp2GzCcXTbbgv2s7ajWqMC7Ea16CA2ozp4", - "8HpRLTyIragOHpxOVAsLWLOnXauA0TC0odpJRtPO6eQfIzWOHlR7XUIDiqFB0p6/AhcttvBiaD+1FwaB", - "CBVFX6RzrhDYeNGFGFnnqYWOqPHUoj6p7/RmRhTTeSZ1bQ724uKi8gjLpGGyskmieTkhKqOk+Wdd22k1", - "g7jWYkypTLWaQtXGTtrxRuyzEWvsw/YdDRtzqqPuRjOiizhm2rayussywaisTKcU+1JwxRJy+fv2sM1H", - "blpNqfYyXL93WYjoPdcmumImfoiWmYq2XlLVR5a0EGaUsEIKxhXlgiWdgShTSe91efhNcm/WM5JnusWM", - "60OmLTeukoxp832WrAYF8VkTzQ2JUQVbh1LxWCpvqh3pQq20R6KtWNYzx8lu/pgrnlK1+pGt1iVn/QzC", - "YTG9rV7fHOaIt92H+pDV+acB2p57cmoemlNPMzzZLxXrNNR2inlV43ZMj2vD0qiG/otPj85ItK+l/b6G", - "MFIflsyTlsxqJoSri6QzEB1XF9TEDy2XF+XLE1fFaZc0T5nU4cpl3DL8tdqbJ9RheyQ6CrFou8ovTCjC", - "UIQnFeFHlgsahyrsCkWfgEiYYXF5oF437LfNu4IhdjDEDobYwRA7GGIHQ+xgiB0MsYMhdjDEDobYwRA7", - "GGIHQ+xgiB0MsYMhdjDEDobYwRA7GGIHQ+xgiB0MsYMhdjDEDobYwRA7GGIHQ+xgiB0MsYMhdjDEDobY", - "wRA7GGIHQ+xgiB0MsYMhdjDEDobYwRA7GGIHQ+xgiB0MsYMhdjDEDobYwRA7GGIHQ+xgiB0MsYMhdjDE", - "DobYwRA7GGIHQ+yBRm+MyXOL9d2YAJX6jg2iTLfg4Gn0HRxEgW7BwVHnOyhg8repT7BgGER5k1400tbK", - "PD5mHFq8WYmQYGIQic28FZhYcYUWg/huFgOBBhSFIrTODAIXLbLwIlPbO3BEUnvHfEadHQuq9W3frmdc", - "mu9ePXmDta8GjNgls4eN6PFp8x3ZvfFHtvCN5i9qsV804S9q8cI3mpeoeXhEeofUJRSHEXl6cLupSaBY", - "3cJ6YAZHe5S8SWyPRB0OO97j2FbOsREfkdTDmEd6FLBZe1BAdl7bDS/8sVmlwEOKKax9QnrgMjA2KxdI", - "MD3mf3RayQUmVlSh7ZXPw4DHfxJ8h90tnk9Gfj0uMfUD/EQVW/5yoJx9bc1mjbCnlM+9C5tFsqeMz77h", - "moNyalRi3yji1KjEC/8oJ0TFl1SrEfaU2jk3ILNrBgjGgXKdeMszO1GHug/ANmFODqETtivRKXcCs9cC", - "kFD7l0FTb5RlzzcBlwxy2FqU46Tbc9kFKoBinZzPM9BJLiCzgQ5dm9IDssOXhXmg7GBs5mUR0lMAj/f4", - "xpliPV3FWXEnrLurskjvnnOzczNcZ0PxoOE8dhPXWJ29xCdgLbxy+YtX7JFL+ItXvPDK5SVeHhpha57O", - "HthBOJ56czcVCJGpp1t4WOJGaxXe5LOv6XYw6Xgdt9tUo8I91h48CHikLrDNMgOfsLtDbXCZjwoqBRJM", - "NAHt7QIeVvSjgnKBgdFj2sdFlVygAcUT1P5m30G043f61sw9fb6n8r4eEZf6oT1+F7HyjL49n62xNSAs", - "d2MLDJjJsUMGyuvYIgNmeeyQgXA+tojgOA7b1QiTCrgdsp1VDF7DTsKRAYP3SLYXHQyMwK1+7bkq0IAi", - "CipwG2W79AUOSuhOwM7yLxChYgosHqdlixqH4bIFPNR3+WZGFNN5JjXT5ftfXFyU/8SZNEya8kealzOA", - "ll9n/lmX3+nROn6uym9jeP1pplSmWm47z0h295nFpnoTNyytfvhGsSW5JF/P4yzNM8mk0fP6yHr+lhkW", - "VyFc76CpUnRV/q4NNYXeb1R++aKlUXlGdBHHTGuL6i7LBKOyzBZR7EvBFUvI5e/bwzYfudkdr8Yn6/Ij", - "e/mt37ssRPSeaxNdMRM/RMtMRbuvoEn1qSUthBkluJDicUW5YElfLMqE0ntdjtBk+WY9I3mmq6DU9cEz", - "eZ2QS/Ih08b6eI3ItPk+S1aDovnceeeGx6iCrUPx+C2eN5UtXaievmB0lM96RuY05/Nk99b5Y654StXq", - "R7Zal8D1poSHFfa2er052IzkVNGUGabKYfbPaB/qo1anJwdue3bKqXloTk4NBNmvH+tE1XYmelVDd0yY", - "a8PSqEYPE6YvGJ3r7T1rWW5/YAbeTAjL6qnLajUxwjVJUyRDr0moiR9aLkrKl0HUyWnXQk+c5uGSZ/Ta", - "/LVy9gnF2ReM7uos2gRDYUJlhsp8dmV+ZLmgcSjN/mgckSN/8oRlFWDX1eZv9TuOFGp96+fv178c66QQ", - "POXdO2q1xrHjP+2urj69Ozpctlxq5mW8oz0i5+tGgdeGArD/BGDjCcCOE0CtJrB6TIA1l2DoKkHTToKn", - "jwRFAwnozhEMLSPwe0VQNIlg6A4B3haCox8EQyMIkg4QZK0feHo+Tmn2OPFhiOo+5NlNwO1hAVqL2XgQ", - "3cVcPngGYzYfRI8xlw+OzZjNBczQy6lYyGwY/MacPKOx73KnAEpsHMZjzvKEhxSDR5YzhwUyXHQBxuBD", - "5iwPAhMrCrss96Qh0AHjCzIyWzKbHZEzmY19RnOyomqiObtet4cFqNdtPIh63eWDp9dtPoh63eWDo9dt", - "LmCa2KlYyGwY9LqTZzTC150CKLFx6HVnecJDikFOOnNYIMNFF2AMet1ZHgQmVhRS0j1pCHTA+IKMTK/b", - "7Ij0uo19Rr1eP5Z7dr1uDwtQr9t4EPW6ywdPr9t8EPW6ywdHr9tcwDSxU7GQ2TDodSfPaISvOwVQYuPQ", - "687yhIcUg5x05rBAhosuwBj0urM8CEysKKSke9IQ6IDxBRmZXrfZEel1G/uMen3JBRvVw9waYFoLcwtk", - "Ygdzh2RSA3OLZGL/codkEvtyi2A623C7WmBQAPMut7ME0RjcSSBwQHDG5fYiAJEJmP+2PdcEWDDAQQPm", - "WW6XpoBJBc1221luBWA0yIGDa1duUcJ0K7cARzIrN1RNcD/VHhbg/VQbD+L9VJcP3v1Umw/i/VSXD879", - "VJsL2D1Lp2Ihs2G4n+rkGc2NSXcKoMTGcT/VWZ7wkGK43efMYYEMF12AMdxPdZYHgYkVxa0+96Qh0AHj", - "CzKy+6k2O6L7qTb2Ge+nMpmcX603gwLU6g0cRKVu08HT6Q0dRJVu08HR6A0VMBVsVSlcMgzq3MowGpFr", - "Jx8hNA5dbi1IWDgxSEZr7gpUsMiCi0GNW0uCwEOKQiTapwiBDBdbgJFp8IYckQJvoM/5/HFRG3J1628u", - "zXevnmxk9dWAEbvE97ARPT51vCO7N/7IFr7R/EUt9osm/EUtXvhG8xI1D4/K7pC6dOMwIk8P8DY1CRSr", - "W2cPzOBojxQ3ie3Rq8Nhx3ss18o5NuIj8noY80iPhDVrDwrIzqu74YU/NqsUeEgxhbVPTw9cBsZm5QIJ", - "psf8j04rucDEiiq0vQJ6GPD4TwTvsLvV88nIr8clpn6An/aYrub/Zj03rrPiTlhKXRbp3XOEszVk523r", - "QUN6fla4Ruu8aX0C2sI7m7+4xZ7ZhL+4xQvvbF7i5ulB25qp87brICSPz/9uKhMqV8+N6mFJHPVJ5U1u", - "++74DqYd99HgbdrRIR+7RT0IesSH7jZLEA7K7nskg8t/dFgpEKGiCmzvjelhi8HosFxg4fQ4BcbHlVyg", - "gsUV3P7b0YOIz/NMds3dczP6VObXIyNTP8RHxa15KNI7SbkYdXOt/VGm3WFrn2bibbYOcSbda2sfZ+IN", - "tw5xJtl1ax9juk2vDmoJEAqwTbgOkgZxo6vDfGKgBLcn18E6ARYM2EZTB/NPwKaDHj5gm3UdFK4AjAZt", - "96nDtVlA5wMfQri7eO2jwtzKa59ytP28TKHH0oPbo0+rA7cUE+u/BmNS3bfFmFjvNRiT6Lzt8NOJql1t", - "AEAApud2yYGokJq8QaYDp9t29Q4OCJjQ2M0vAZMKariA6bFdIQqASNDEQ7OmCqhcYEMGV2dtEWHqqy3d", - "OLoqpilT9JYn3f2rRcETf3suWQN2da8OGdCf+rLAunpXh4MtvJP5ilnsmUz4ilm88E7mIWbPFzEWUVcH", - "5hAgP8rKrkaYVN39qoPSN5YEtLPa0/o5lHU03eUkHBnwkU7VIcjjXOvYiw4Gxs7WqaElPzqqFGhAEQW1", - "rz910AIwOioXOCi9JX98WMkFIlRMge3tSh3CO7rytai7e1JPJH49MjAdyHszI4rpPJOa6fL9Ly4uyn/i", - "TBomTfkjzcsZUD1AOv+sy+/0aB0/V+W3Mbz+NFMqUy0yfEayu88sNtWbuGFp9cM3ii3JJfl6Hmdpnkkm", - "jZ7XR9bz33jCsvKDmyNRpeiq/L0W/vsPr7580fLw6ozoIo6Z1hbRXZYJRmWZKaLYl4IrlpDL37eHbT5y", - "sztejU7W5Uf2clu/d1mI6D3XJrpiJn6IlpmKKnxNqk8saSHMKEGFFIsrygVLuuJQJpLe6/LodWZv1jOS", - "Z7oKRl0PPJPXCbkkHzJtNh+rsZg232fJalAEnzPH3HAYVbB1KBJ/RfJGMWpYqJK2QLSUyXpG5jTn8z+r", - "t8wfc8VTqlY/stW6hKyNvg+r6G31en2QGcmpoikzTJWH3j9DfaiPWJ1udjDbM01OzUNzomkGJ/s1Yp10", - "2s4qr2rYjolxbVga1ch/7YnRFYjW9fOetSyfPzADJ+thmTxlmawmQbiW6IpD+7UENfFDy8VE+fKk9XDa", - "9csTpnO4TBm1/n7NExrORu2BaK/Aou1ivjCh+kL1Da6+jywXNA7l1x6JNpmwXv9/AAAA//+fEkYfGOYB", - "AA==", -} - -// GetSwagger returns the content of the embedded swagger specification file -// or error if failed to decode -func decodeSpec() ([]byte, error) { - zipped, err := base64.StdEncoding.DecodeString(strings.Join(swaggerSpec, "")) - if err != nil { - return nil, fmt.Errorf("error base64 decoding spec: %w", err) - } - zr, err := gzip.NewReader(bytes.NewReader(zipped)) - if err != nil { - return nil, fmt.Errorf("error decompressing spec: %w", err) - } - var buf bytes.Buffer - _, err = buf.ReadFrom(zr) - if err != nil { - return nil, fmt.Errorf("error decompressing spec: %w", err) - } - - return buf.Bytes(), nil -} - -var rawSpec = decodeSpecCached() - -// a naive cached of a decoded swagger spec -func decodeSpecCached() func() ([]byte, error) { - data, err := decodeSpec() - return func() ([]byte, error) { - return data, err - } -} - -// Constructs a synthetic filesystem for resolving external references when loading openapi specifications. -func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) { - res := make(map[string]func() ([]byte, error)) - if len(pathToFile) > 0 { - res[pathToFile] = rawSpec - } - - return res -} - -// GetSwagger returns the Swagger specification corresponding to the generated code -// in this file. The external references of Swagger specification are resolved. -// The logic of resolving external references is tightly connected to "import-mapping" feature. -// Externally referenced files must be embedded in the corresponding golang packages. -// Urls can be supported but this task was out of the scope. -func GetSwagger() (swagger *openapi3.T, err error) { - resolvePath := PathToRawSpec("") - - loader := openapi3.NewLoader() - loader.IsExternalRefsAllowed = true - loader.ReadFromURIFunc = func(loader *openapi3.Loader, url *url.URL) ([]byte, error) { - pathToFile := url.String() - pathToFile = path.Clean(pathToFile) - getSpec, ok := resolvePath[pathToFile] - if !ok { - err1 := fmt.Errorf("path not found: %s", pathToFile) - return nil, err1 - } - return getSpec() - } - var specData []byte - specData, err = rawSpec() - if err != nil { - return - } - swagger, err = loader.LoadFromData(specData) - if err != nil { - return - } - return -} diff --git a/schema/openapi.json b/schema/openapi.json index 8786f8a..9baee0b 100644 --- a/schema/openapi.json +++ b/schema/openapi.json @@ -127,8 +127,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -137,8 +136,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -147,8 +145,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -157,8 +154,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -167,8 +163,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -177,8 +172,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -187,8 +181,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -197,8 +190,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -207,8 +199,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -217,8 +208,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -227,8 +217,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -237,8 +226,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -247,8 +235,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -257,8 +244,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -267,8 +253,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -367,8 +352,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -377,8 +361,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -387,8 +370,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -397,8 +379,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -407,8 +388,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -417,8 +397,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -427,8 +406,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -437,8 +415,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -447,8 +424,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -457,8 +433,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -467,8 +442,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -477,8 +451,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -487,8 +460,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -497,8 +469,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -507,8 +478,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -607,8 +577,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -617,8 +586,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -627,8 +595,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -637,8 +604,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -647,8 +613,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -657,8 +622,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -667,8 +631,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -677,8 +640,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -687,8 +649,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -697,8 +658,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -707,8 +667,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -717,8 +676,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -727,8 +685,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -737,8 +694,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -747,8 +703,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -847,8 +802,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -857,8 +811,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -867,8 +820,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -877,8 +829,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -887,8 +838,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -897,8 +847,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -907,8 +856,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -917,8 +865,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -927,8 +874,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -937,8 +883,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -947,8 +892,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -957,8 +901,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -967,8 +910,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -977,8 +919,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -987,8 +928,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -1519,8 +1459,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -1529,8 +1468,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -1539,8 +1477,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -1549,8 +1486,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -1559,8 +1495,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -1569,8 +1504,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -1579,8 +1513,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -1589,8 +1522,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -1599,8 +1531,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -1609,8 +1540,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -1619,8 +1549,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -1629,8 +1558,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -1639,8 +1567,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -1649,8 +1576,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -1659,8 +1585,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" } @@ -2221,8 +2146,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2231,8 +2155,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2241,8 +2164,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2251,8 +2173,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2261,8 +2182,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2271,8 +2191,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2281,8 +2200,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2291,8 +2209,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2301,8 +2218,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2311,8 +2227,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2321,8 +2236,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2331,8 +2245,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2341,8 +2254,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2351,8 +2263,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -2361,8 +2272,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -2461,8 +2371,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2471,8 +2380,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2481,8 +2389,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2491,8 +2398,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2501,8 +2407,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2511,8 +2416,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2521,8 +2425,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2531,8 +2434,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2541,8 +2443,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2551,8 +2452,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2561,8 +2461,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2571,8 +2470,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2581,8 +2479,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2591,8 +2488,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -2601,8 +2497,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -2701,8 +2596,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2711,8 +2605,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2721,8 +2614,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2731,8 +2623,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2741,8 +2632,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2751,8 +2641,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2761,8 +2650,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2771,8 +2659,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2781,8 +2668,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2791,8 +2677,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2801,8 +2686,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2811,8 +2695,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2821,8 +2704,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2831,8 +2713,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -2841,8 +2722,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -2941,8 +2821,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2951,8 +2830,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2961,8 +2839,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -2971,8 +2848,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2981,8 +2857,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -2991,8 +2866,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3001,8 +2875,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3011,8 +2884,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3021,8 +2893,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3031,8 +2902,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3041,8 +2911,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3051,8 +2920,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3061,8 +2929,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3071,8 +2938,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -3081,8 +2947,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -3181,8 +3046,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -3191,8 +3055,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -3201,8 +3064,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -3211,8 +3073,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3221,8 +3082,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3231,8 +3091,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3241,8 +3100,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3251,8 +3109,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3261,8 +3118,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3271,8 +3127,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3281,8 +3136,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3291,8 +3145,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3301,8 +3154,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3311,8 +3163,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -3321,8 +3172,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -3421,8 +3271,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -3431,8 +3280,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -3441,8 +3289,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -3451,8 +3298,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3461,8 +3307,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3471,8 +3316,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3481,8 +3325,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3491,8 +3334,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3501,8 +3343,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3511,8 +3352,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3521,8 +3361,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3531,8 +3370,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3541,8 +3379,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -3551,8 +3388,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -3561,8 +3397,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -3877,148 +3712,358 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" + }, + "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" + }, + { + "name": "score__nisnull", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" + }, + { + "name": "score__isnotnull", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" + }, + { + "name": "score__l", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" + }, + { + "name": "score__like", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" + }, + { + "name": "score__nl", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" + }, + { + "name": "score__nlike", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" + }, + { + "name": "score__notlike", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" + }, + { + "name": "score__il", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" + }, + { + "name": "score__ilike", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" + }, + { + "name": "score__nil", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" + }, + { + "name": "score__nilike", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" + }, + { + "name": "score__notilike", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" + }, + { + "name": "score__desc", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" + }, + { + "name": "score__asc", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" + }, + { + "name": "video_id__eq", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "SQL = operator" + }, + { + "name": "video_id__ne", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "SQL != operator" + }, + { + "name": "video_id__gt", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "SQL \u003e operator, may not work with all column types" + }, + { + "name": "video_id__gte", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "SQL \u003e= operator, may not work with all column types" + }, + { + "name": "video_id__lt", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "SQL \u003c operator, may not work with all column types" + }, + { + "name": "video_id__lte", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "SQL \u003c= operator, may not work with all column types" + }, + { + "name": "video_id__in", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "SQL IN operator, permits comma-separated values" + }, + { + "name": "video_id__nin", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "SQL NOT IN operator, permits comma-separated values" + }, + { + "name": "video_id__notin", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "SQL NOT IN operator, permits comma-separated values" + }, + { + "name": "video_id__isnull", + "in": "query", + "required": false, + "schema": { + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, { - "name": "score__nisnull", + "name": "video_id__nisnull", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, { - "name": "score__isnotnull", + "name": "video_id__isnotnull", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, { - "name": "score__l", + "name": "video_id__l", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, { - "name": "score__like", + "name": "video_id__like", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, { - "name": "score__nl", + "name": "video_id__nl", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, { - "name": "score__nlike", + "name": "video_id__nlike", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, { - "name": "score__notlike", + "name": "video_id__notlike", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, { - "name": "score__il", + "name": "video_id__il", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, { - "name": "score__ilike", + "name": "video_id__ilike", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, { - "name": "score__nil", + "name": "video_id__nil", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, { - "name": "score__nilike", + "name": "video_id__nilike", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, { - "name": "score__notilike", + "name": "video_id__notilike", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, { - "name": "score__desc", + "name": "video_id__desc", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, { - "name": "score__asc", + "name": "video_id__asc", "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -4117,8 +4162,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -4127,8 +4171,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -4137,8 +4180,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -4147,8 +4189,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4157,8 +4198,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4167,8 +4207,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4177,8 +4216,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4187,8 +4225,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4197,8 +4234,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4207,8 +4243,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4217,8 +4252,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4227,8 +4261,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4237,8 +4270,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4247,8 +4279,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -4257,8 +4288,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" } @@ -4819,8 +4849,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -4829,8 +4858,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -4839,8 +4867,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -4849,8 +4876,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4859,8 +4885,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4869,8 +4894,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4879,8 +4903,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4889,8 +4912,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4899,8 +4921,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4909,8 +4930,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4919,8 +4939,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4929,8 +4948,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4939,8 +4957,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -4949,8 +4966,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -4959,8 +4975,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -5059,8 +5074,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -5069,8 +5083,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -5079,8 +5092,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -5089,8 +5101,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5099,8 +5110,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5109,8 +5119,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5119,8 +5128,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5129,8 +5137,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5139,8 +5146,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5149,8 +5155,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5159,8 +5164,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5169,8 +5173,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5179,8 +5182,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5189,8 +5191,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -5199,8 +5200,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -5299,8 +5299,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -5309,8 +5308,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -5319,8 +5317,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -5329,8 +5326,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5339,8 +5335,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5349,8 +5344,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5359,8 +5353,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5369,8 +5362,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5379,8 +5371,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5389,8 +5380,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5399,8 +5389,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5409,8 +5398,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5419,8 +5407,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5429,8 +5416,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -5439,8 +5425,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -5539,8 +5524,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -5549,8 +5533,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -5559,8 +5542,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -5569,8 +5551,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5579,8 +5560,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5589,8 +5569,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5599,8 +5578,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5609,8 +5587,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5619,8 +5596,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5629,8 +5605,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5639,8 +5614,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5649,8 +5623,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5659,8 +5632,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -5669,8 +5641,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -5679,8 +5650,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -5995,8 +5965,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6005,8 +5974,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6015,8 +5983,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6025,8 +5992,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6035,8 +6001,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6045,8 +6010,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6055,8 +6019,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6065,8 +6028,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6075,8 +6037,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6085,8 +6046,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6095,8 +6055,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6105,8 +6064,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6115,8 +6073,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6125,8 +6082,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -6135,8 +6091,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -6235,8 +6190,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6245,8 +6199,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6255,8 +6208,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6265,8 +6217,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6275,8 +6226,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6285,8 +6235,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6295,8 +6244,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6305,8 +6253,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6315,8 +6262,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6325,8 +6271,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6335,8 +6280,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6345,8 +6289,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6355,8 +6298,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6365,8 +6307,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -6375,8 +6316,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -6475,8 +6415,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6485,8 +6424,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6495,8 +6433,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6505,8 +6442,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6515,8 +6451,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6525,8 +6460,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6535,8 +6469,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6545,8 +6478,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6555,8 +6487,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6565,8 +6496,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6575,8 +6505,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6585,8 +6514,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6595,8 +6523,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6605,8 +6532,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -6615,8 +6541,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "format": "int64" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -6715,8 +6640,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6725,8 +6649,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6735,8 +6658,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -6745,8 +6667,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6755,8 +6676,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6765,8 +6685,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6775,8 +6694,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6785,8 +6703,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6795,8 +6712,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6805,8 +6721,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6815,8 +6730,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6825,8 +6739,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6835,8 +6748,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -6845,8 +6757,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -6855,8 +6766,7 @@ "in": "query", "required": false, "schema": { - "type": "number", - "format": "double" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" }, @@ -7387,8 +7297,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NULL operator, value is ignored (presence of key is sufficient)" }, @@ -7397,8 +7306,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -7407,8 +7315,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL IS NOT NULL operator, value is ignored (presence of key is sufficient)" }, @@ -7417,8 +7324,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -7427,8 +7333,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -7437,8 +7342,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -7447,8 +7351,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -7457,8 +7360,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT LIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -7467,8 +7369,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -7477,8 +7378,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -7487,8 +7387,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -7497,8 +7396,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -7507,8 +7405,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL NOT ILIKE operator, value is implicitly prefixed and suffixed with %" }, @@ -7517,8 +7414,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ORDER BY _ DESC operator, value is ignored (presence of key is sufficient)" }, @@ -7527,8 +7423,7 @@ "in": "query", "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, "description": "SQL ORDER BY _ ASC operator, value is ignored (presence of key is sufficient)" } @@ -8014,6 +7909,7 @@ "properties": { "bounding_box": { "type": "array", + "nullable": true, "items": { "type": "object", "properties": { @@ -8079,23 +7975,33 @@ "updated_at": { "type": "string", "format": "date-time" + }, + "video_id": { + "type": "string", + "format": "uuid" + }, + "video_id_object": { + "$ref": "#/components/schemas/NullableVideo" } } }, "NullableArrayOfCamera": { "type": "array", + "nullable": true, "items": { "$ref": "#/components/schemas/Camera" } }, "NullableArrayOfDetection": { "type": "array", + "nullable": true, "items": { "$ref": "#/components/schemas/Detection" } }, "NullableArrayOfVideo": { "type": "array", + "nullable": true, "items": { "$ref": "#/components/schemas/Video" } @@ -8166,6 +8072,9 @@ "type": "string", "format": "uuid" }, + "referenced_by_detection_video_id_objects": { + "$ref": "#/components/schemas/NullableArrayOfDetection" + }, "started_at": { "type": "string", "format": "date-time" diff --git a/yolov8n.pt b/yolov8n.pt new file mode 100644 index 0000000..0db4ca4 Binary files /dev/null and b/yolov8n.pt differ