From 505b8a59406264c49356de270117194e7890a549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20D=C3=ADaz=20Marco?= Date: Sun, 15 Jan 2023 20:03:56 +0100 Subject: [PATCH 1/6] Add containerized development environment. --- .env.example | 2 ++ .gitignore | 2 +- Dockerfile | 42 +++++++++++++++++++++++++++++++++++++++++ Makefile | 35 +++++++++++++++++++++++++--------- README.md | 47 ++++++++++++++++++++++++++++++---------------- docker-compose.yml | 16 ++++++++++++++++ 6 files changed, 118 insertions(+), 26 deletions(-) create mode 100755 .env.example create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/.env.example b/.env.example new file mode 100755 index 0000000000..eed8916673 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +# Docker +#USER_ID=1000 diff --git a/.gitignore b/.gitignore index c8c389c08d..a66885fdbc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .DS_Store +.env .gobincache/ - diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..d0368e02ca --- /dev/null +++ b/Dockerfile @@ -0,0 +1,42 @@ +ARG GO_VERSION=1.19.5 +ARG ALPINE_VERSION=3.17 +ARG GOIMPORTS_VERSION=0.5.0 +ARG DELVE_VERSION=1.20.1 +ARG SWAGGER_VERSION=0.30.3 + + +## Base image +FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base + +WORKDIR /go/src/app + +ENV CGO_ENABLED=0 + + +## Development image +FROM base AS development + +ARG GOIMPORTS_VERSION +ARG DELVE_VERSION +ARG SWAGGER_VERSION + +RUN apk add \ + bash \ + curl \ + git \ + jq \ + python3 \ + zsh \ + && go install golang.org/x/tools/cmd/goimports@v${GOIMPORTS_VERSION} \ + && go install github.com/go-delve/delve/cmd/dlv@v${DELVE_VERSION} \ + && go install github.com/go-swagger/go-swagger/cmd/swagger@v${SWAGGER_VERSION} + +ARG USER_ID=1000 +ENV USER_NAME=default + +ENV PROMPT="%B%F{cyan}%n%f@%m:%F{yellow}%~%f %F{%(?.green.red[%?] )}>%f %b" + +RUN adduser -D -u $USER_ID ${USER_NAME} \ + && chown -R ${USER_NAME}: /go/pkg + +USER ${USER_NAME} diff --git a/Makefile b/Makefile index fcd8872695..38ccc49a84 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,29 @@ -deps: - go mod download - go install github.com/go-swagger/go-swagger/cmd/swagger@latest +# Helpers +IS_DARWIN := $(filter Darwin,$(shell uname -s)) -generate: deps - swagger generate client --target=./netbox --copyright-file=copyright_header.txt +define set_env + sed $(if $(IS_DARWIN),-i "",-i) -e "s/^#*\($(1)=\).*/$(if $(2),,#)\1$(2)/" .env +endef -clean: - rm -rf netbox/client netbox/models +EXEC := docker compose exec app -integration: - go test ./... -tags=integration +# Environment recipes +.PHONY: default +default: init up + +.PHONY: init +init: + test -f .env || cp .env.example .env + $(call set_env,USER_ID,$(shell id -u)) + +.PHONY: up +up: + DOCKER_BUILDKIT=1 docker compose up -d --build + +.PHONY: down +down: + docker compose down + +.PHONY: shell +shell: + $(EXEC) zsh diff --git a/README.md b/README.md index 5ff2826b94..5dad139ac8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -go-netbox -========= +# go-netbox [![GoDoc](http://godoc.org/github.com/netbox-community/go-netbox?status.svg)](http://godoc.org/github.com/netbox-community/go-netbox) [![Build Status](https://github.com/netbox-community/go-netbox/workflows/main/badge.svg?branch=master)](https://github.com/netbox-community/go-netbox/actions) [![Report Card](https://goreportcard.com/badge/github.com/netbox-community/go-netbox)](https://goreportcard.com/report/github.com/netbox-community/go-netbox) @@ -7,8 +6,7 @@ Package `netbox` provides an API 3.2 client for [netbox-community's Netbox](http This package assumes you are using Netbox 3.2, as the Netbox 1.0 API no longer exists. If you need support for previous Netbox versions, you can still import the corresponding release of the library. For example, run `go get github.com/netbox-community/go-netbox@netbox_v2.11` if you need compatibility with Netbox 2.11. -Using the client -================ +## Using the client The `github.com/netbox-community/go-netbox/netbox` package has some convenience functions for creating clients with the most common configurations you are likely to need while connecting to NetBox. `NewNetboxAt` allows you to specify a hostname @@ -68,16 +66,14 @@ func main() { } ``` -Go Module support -================ +## Go Module support Go 1.16+ `go get github.com/netbox-community/go-netbox` -More complex client configuration -================================= +## More complex client configuration The client is generated using [go-swagger](https://github.com/go-swagger/go-swagger). This means the generated client makes use of [github.com/go-openapi/runtime/client](https://godoc.org/github.com/go-openapi/runtime/client). If you need @@ -88,14 +84,33 @@ The [godocs for the go-openapi/runtime/client module](https://godoc.org/github.c the client options in detail, including different authentication and debugging options. One thing I want to flag because it is so useful: setting the `DEBUG` environment variable will dump all requests to standard out. -Regenerating the client -======================= +## Development -To regenerate the client with a new or different swagger schema, first clean the existing client, then replace -swagger.json and finally re-generate: +The project comes with a containerized development environment that can be used from any platform. It is only required to have [Git](https://git-scm.com) and [Docker Desktop](https://www.docker.com/products/docker-desktop/) (or, separately, [Docker](https://docs.docker.com/engine/install) and [Docker Compose](https://docs.docker.com/compose/install/)) installed on the machine. + +To start the development environment, run the following command. + +```bash +make ``` -make clean -./scripts/swagger_modifier.py new_swagger_file.json -mv swagger_transformed.json swagger.json -make generate + +Then, to attach a shell in the container, run the command below. + +```bash +make shell ``` + +Finally, to stop the development environment, run the following command. + +```bash +make down +``` + +### Considerations + +The library is almost entirely generated from the Netbox [OpenAPI](https://www.openapis.org/) specification. Therefore, files under directories `netbox/client` and `netbox/models` should not be directly modified, as they will be overwritten in the next regeneration (see next section). + +To fix issues in generated code, there are two options: + +- Change the OpenAPI spec with pre-generation hooks (see [`scripts/pre-generation`](scripts/pre-generation)). +- If the above is not possible, change the generated code with post-generation hooks (see [`scripts/post-generation`](scripts/post-generation)). diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000..dc4ee24815 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +services: + app: + build: + context: . + target: development + args: + USER_ID: ${USER_ID:-1000} + volumes: + - .:/go/src/app + - cache:/go/pkg + env_file: .env + hostname: app + tty: true + +volumes: + cache: From eacc757bb5061a8bdb50cf8415c5e932c732db12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20D=C3=ADaz=20Marco?= Date: Sun, 15 Jan 2023 20:21:59 +0100 Subject: [PATCH 2/6] Improve code generation workflow. --- Makefile | 11 +++++ README.md | 20 +++++++++ api/netbox_docker_version | 1 + api/netbox_version | 1 + swagger.json => api/openapi.json | 0 .../copyright_header.txt | 0 scripts/fetch-spec.sh | 26 +++++++++++ scripts/generate-code.sh | 26 +++++++++++ scripts/{licensecheck.sh => license-check.sh} | 0 scripts/post-generation/fix-integers.sh | 18 ++++++++ .../fix-schema.py} | 19 ++------ scripts/set-versions.sh | 43 +++++++++++++++++++ 12 files changed, 150 insertions(+), 15 deletions(-) create mode 100644 api/netbox_docker_version create mode 100644 api/netbox_version rename swagger.json => api/openapi.json (100%) rename copyright_header.txt => assets/copyright_header.txt (100%) create mode 100755 scripts/fetch-spec.sh create mode 100755 scripts/generate-code.sh rename scripts/{licensecheck.sh => license-check.sh} (100%) create mode 100755 scripts/post-generation/fix-integers.sh rename scripts/{swagger_modifier.py => pre-generation/fix-schema.py} (81%) create mode 100755 scripts/set-versions.sh diff --git a/Makefile b/Makefile index 38ccc49a84..2ba9068822 100644 --- a/Makefile +++ b/Makefile @@ -27,3 +27,14 @@ down: .PHONY: shell shell: $(EXEC) zsh + +# Project recipes +.PHONY: build +build: + $(EXEC) ./scripts/set-versions.sh $(NETBOX_VERSION) $(NETBOX_DOCKER_VERSION) + ./scripts/fetch-spec.sh $$(cat api/netbox_version) $$(cat api/netbox_docker_version) + $(EXEC) ./scripts/generate-code.sh + +.PHONY: test +test: + $(EXEC) go test ./... -tags=integration diff --git a/README.md b/README.md index 5dad139ac8..310d1aaa08 100644 --- a/README.md +++ b/README.md @@ -114,3 +114,23 @@ To fix issues in generated code, there are two options: - Change the OpenAPI spec with pre-generation hooks (see [`scripts/pre-generation`](scripts/pre-generation)). - If the above is not possible, change the generated code with post-generation hooks (see [`scripts/post-generation`](scripts/post-generation)). + +### Regenerate the library + +To update the OpenAPI specification to the latest Netbox version and regenerate the library, run the following command. + +```bash +make build +``` + +If regeneration of the library is needed for a specific Netbox version other than the latest one, pass the corresponding argument. + +```bash +make build NETBOX_VERSION=3.0.0 +``` + +In order to obtain the OpenAPI specification, the version of _[netbox-docker](https://github.com/netbox-community/netbox-docker)_ corresponding to the given Netbox version is used. However, it is also possible to provide a specific version of _netbox-docker_. + +```bash +make build NETBOX_VERSION=3.0.0 NETBOX_DOCKER_VERSION=1.3.1 +``` diff --git a/api/netbox_docker_version b/api/netbox_docker_version new file mode 100644 index 0000000000..276cbf9e28 --- /dev/null +++ b/api/netbox_docker_version @@ -0,0 +1 @@ +2.3.0 diff --git a/api/netbox_version b/api/netbox_version new file mode 100644 index 0000000000..5f6fc5edc2 --- /dev/null +++ b/api/netbox_version @@ -0,0 +1 @@ +3.3.10 diff --git a/swagger.json b/api/openapi.json similarity index 100% rename from swagger.json rename to api/openapi.json diff --git a/copyright_header.txt b/assets/copyright_header.txt similarity index 100% rename from copyright_header.txt rename to assets/copyright_header.txt diff --git a/scripts/fetch-spec.sh b/scripts/fetch-spec.sh new file mode 100755 index 0000000000..93fc30089f --- /dev/null +++ b/scripts/fetch-spec.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +set -euo pipefail + +NETBOX_VERSION="$1" +NETBOX_DOCKER_VERSION="$2" + +REPO_DIR='/tmp/netbox-docker' + +rm -rf "${REPO_DIR}" + +git clone https://github.com/netbox-community/netbox-docker.git \ + --config advice.detachedHead=false \ + --branch ${NETBOX_DOCKER_VERSION} \ + --depth=1 \ + --quiet \ + "${REPO_DIR}" + +mv "${REPO_DIR}/docker-compose.override.yml.example" "${REPO_DIR}/docker-compose.override.yml" + +export VERSION="v${NETBOX_VERSION}" +docker compose --project-directory="${REPO_DIR}" up --detach --quiet-pull + +curl --silent http://127.0.0.1:8000/api/docs/?format=openapi > api/openapi.json + +docker compose --project-directory="${REPO_DIR}" down diff --git a/scripts/generate-code.sh b/scripts/generate-code.sh new file mode 100755 index 0000000000..ff6e0ae6d8 --- /dev/null +++ b/scripts/generate-code.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +set -euo pipefail + +export SRC_DIR='./netbox' + +# Prepare environment +rm -rf netbox/client netbox/models +go mod download + +# Run pre-generation hooks +for SCRIPT in scripts/pre-generation/*; do + "${SCRIPT}" +done + +# Generate code +swagger generate client -f api/openapi.json --target="${SRC_DIR}" --copyright-file=assets/copyright_header.txt +go mod tidy + +# Run post-generation hooks +for SCRIPT in scripts/post-generation/*; do + "${SCRIPT}" +done + +# Format generated code and fix imports +goimports -w "${SRC_DIR}" diff --git a/scripts/licensecheck.sh b/scripts/license-check.sh similarity index 100% rename from scripts/licensecheck.sh rename to scripts/license-check.sh diff --git a/scripts/post-generation/fix-integers.sh b/scripts/post-generation/fix-integers.sh new file mode 100755 index 0000000000..24b6f2b2f6 --- /dev/null +++ b/scripts/post-generation/fix-integers.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# Maximum and minimum values in spec that correspond to +# `math.MaxInt64` and `math.MinInt64`, respectively, are not rendered +# properly by "go-swagger", thus causing the following errors. +# +# cannot use -9.223372036854776e+18 (untyped float constant -9.22337e+18) as int64 value in argument to validate.MinimumInt (truncated) +# cannot use 9.223372036854776e+18 (untyped float constant 9.22337e+18) as int64 value in argument to validate.MaximumInt (truncated) +# +# See: https://github.com/go-swagger/go-swagger/issues/2755 + +set -euo pipefail + +find "${SRC_DIR}" -type f -name '*.go' -exec \ + sed -i \ + -e 's/-9.223372036854776e+18/math.MinInt64/' \ + -e 's/9.223372036854776e+18/math.MaxInt64/' \ + {} \; diff --git a/scripts/swagger_modifier.py b/scripts/pre-generation/fix-schema.py similarity index 81% rename from scripts/swagger_modifier.py rename to scripts/pre-generation/fix-schema.py index 149e71ea6d..24d75c88c6 100755 --- a/scripts/swagger_modifier.py +++ b/scripts/pre-generation/fix-schema.py @@ -44,7 +44,7 @@ def cli_arguments(): :return: argparse.parser object """ parser = argparse.ArgumentParser( - description=('Modifications on swagger.json.')) + description=('Modifications on openapi.json.')) parser.add_argument('-v', '--verbose', action='count', @@ -52,11 +52,11 @@ def cli_arguments(): help='Increase output verbosity.') parser.add_argument('-o', '--output', - default='swagger_transformed.json', + default='api/openapi.json', help='Output file') parser.add_argument('input', nargs='?', - default='swagger.json', + default='api/openapi.json', help='Original input json file') return parser.parse_args() @@ -124,17 +124,6 @@ def complete_data(input_file, log): def_properties[def_property].update( modify_properties[prop]) - for p in def_properties: - # The maximum value (9223372036854775807) set here lead to an error - # cannot use 9.223372036854776e+18 (untyped float constant 9.22337e+18) as int64 value in argument to validate.MaximumInt (truncated) # noqa E501 - # There's issue opened on this https://github.com/go-swagger/go-swagger/issues/2755 # noqa E501 - if def_properties[p].get('maximum', 0) == 9223372036854775807: - log.info('Changing maximum value for {}'.format(p)) - def_properties[p]['maximum'] = 2147483647 - # The minimum value also has same issue. - if def_properties[p].get('minimum', 0) == -9223372036854775808: - log.info('Changing minimum value for {}'.format(p)) - def_properties[p]['minimum'] = -2147483648 return (data) @@ -160,7 +149,7 @@ def write_results(data, output_file, log): def main(): args = cli_arguments() # Get logger - log = init_logger('swagger', args.verbose, logfile='/tmp/swagger.log') + log = init_logger('openapi', args.verbose, logfile='/tmp/openapi.log') modified_data = complete_data(args.input, log) write_results(modified_data, args.output, log) diff --git a/scripts/set-versions.sh b/scripts/set-versions.sh new file mode 100755 index 0000000000..cf2e86cf14 --- /dev/null +++ b/scripts/set-versions.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash + +NETBOX_VERSION='latest' +NETBOX_DOCKER_VERSION='auto' + +set -euo pipefail + +# Parse Netbox version +if [ "$#" -gt 0 ]; then + NETBOX_VERSION="$1" +fi + +if [ "${NETBOX_VERSION}" == 'latest' ]; then + NETBOX_VERSION=$(curl --silent https://api.github.com/repos/netbox-community/netbox/releases/latest | + jq '.tag_name' | + sed -E 's/"v([^"]+)"/\1/') +fi + +# Parse Netbox Docker version +if [ "$#" -gt 1 ]; then + NETBOX_DOCKER_VERSION="$2" +fi + +if [ "${NETBOX_DOCKER_VERSION}" == 'auto' ]; then + NEXT='https://registry.hub.docker.com/v2/repositories/netboxcommunity/netbox/tags/?page=1&page_size=1000' + NETBOX_DOCKER_VERSION='' + + while [ "${NEXT}" != "null" ] && [ "${NETBOX_DOCKER_VERSION}" == "" ]; do + RESPONSE=$(curl --silent "${NEXT}") + NEXT=$(echo -E "${RESPONSE}" | jq '.next') + + NETBOX_DOCKER_VERSION=$(echo -E "${RESPONSE}" | + jq -r ".results[] | select(.name | startswith(\"v${NETBOX_VERSION}-\")) | .name" | + cut -d "-" -f 2) + done + + unset NEXT + unset RESPONSE +fi + +# Print variables +echo ${NETBOX_VERSION} > api/netbox_version +echo ${NETBOX_DOCKER_VERSION} > api/netbox_docker_version From 6f8ab2b0138c277da2a8bfd47aa085fd20e37e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20D=C3=ADaz=20Marco?= Date: Sun, 15 Jan 2023 20:58:20 +0100 Subject: [PATCH 3/6] Rename script usage in GitHub workflow. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5bb42acd20..00e5ed19da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v2 - name: License check - run: ./scripts/licensecheck.sh + run: ./scripts/license-check.sh - name: Go installation uses: actions/setup-go@v2 From 2ef666102a83bcfd651b102457b57fe140c06e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20D=C3=ADaz=20Marco?= Date: Sun, 15 Jan 2023 21:00:12 +0100 Subject: [PATCH 4/6] Update library to Netbox 3.4.2. --- api/netbox_docker_version | 2 +- api/netbox_version | 2 +- api/openapi.json | 7299 +++++++++++++---- go.mod | 21 + ...ts_circuit_terminations_list_parameters.go | 62 + .../circuits_circuit_types_list_parameters.go | 93 + .../circuits_circuits_list_parameters.go | 62 + netbox/client/circuits/circuits_client.go | 102 +- ...cuits_provider_networks_list_parameters.go | 93 + .../circuits_providers_list_parameters.go | 279 +- .../dcim/dcim_cables_list_parameters.go | 31 + netbox/client/dcim/dcim_client.go | 1182 ++- ..._console_port_templates_list_parameters.go | 31 + .../dcim_console_ports_list_parameters.go | 93 + ...e_server_port_templates_list_parameters.go | 31 + ...im_console_server_ports_list_parameters.go | 93 + ...im_device_bay_templates_list_parameters.go | 31 + .../dcim/dcim_device_bays_list_parameters.go | 93 + .../dcim/dcim_device_roles_list_parameters.go | 124 + .../dcim/dcim_device_types_list_parameters.go | 341 + .../dcim/dcim_devices_list_parameters.go | 155 + ...im_front_port_templates_list_parameters.go | 62 + .../dcim/dcim_front_ports_list_parameters.go | 124 + ...cim_interface_templates_list_parameters.go | 31 + .../dcim/dcim_interfaces_list_parameters.go | 279 + ...im_inventory_item_roles_list_parameters.go | 93 + ...nventory_item_templates_list_parameters.go | 93 + .../dcim_inventory_items_list_parameters.go | 155 + .../dcim/dcim_locations_list_parameters.go | 93 + .../dcim_manufacturers_list_parameters.go | 93 + ...im_module_bay_templates_list_parameters.go | 31 + .../dcim/dcim_module_bays_list_parameters.go | 93 + .../dcim/dcim_module_types_list_parameters.go | 310 + .../dcim/dcim_modules_list_parameters.go | 124 + .../dcim/dcim_platforms_list_parameters.go | 124 + .../dcim/dcim_power_feeds_list_parameters.go | 31 + ..._power_outlet_templates_list_parameters.go | 31 + .../dcim_power_outlets_list_parameters.go | 93 + .../dcim/dcim_power_panels_list_parameters.go | 31 + ...im_power_port_templates_list_parameters.go | 31 + .../dcim/dcim_power_ports_list_parameters.go | 93 + .../dcim_rack_reservations_list_parameters.go | 31 + .../dcim/dcim_rack_roles_list_parameters.go | 124 + .../client/dcim/dcim_racks_list_parameters.go | 744 ++ ...cim_rear_port_templates_list_parameters.go | 62 + .../dcim/dcim_rear_ports_list_parameters.go | 124 + .../dcim/dcim_regions_list_parameters.go | 93 + .../dcim/dcim_site_groups_list_parameters.go | 93 + .../client/dcim/dcim_sites_list_parameters.go | 124 + .../dcim_virtual_chassis_list_parameters.go | 62 + ..._device_contexts_bulk_delete_parameters.go | 143 + ...l_device_contexts_bulk_delete_responses.go | 176 + ...contexts_bulk_partial_update_parameters.go | 165 + ..._contexts_bulk_partial_update_responses.go | 190 + ..._device_contexts_bulk_update_parameters.go | 165 + ...l_device_contexts_bulk_update_responses.go | 190 + ...rtual_device_contexts_create_parameters.go | 165 + ...irtual_device_contexts_create_responses.go | 190 + ...rtual_device_contexts_delete_parameters.go | 167 + ...irtual_device_contexts_delete_responses.go | 176 + ...virtual_device_contexts_list_parameters.go | 1704 ++++ ..._virtual_device_contexts_list_responses.go | 356 + ...vice_contexts_partial_update_parameters.go | 188 + ...evice_contexts_partial_update_responses.go | 190 + ...virtual_device_contexts_read_parameters.go | 167 + ..._virtual_device_contexts_read_responses.go | 190 + ...rtual_device_contexts_update_parameters.go | 188 + ...irtual_device_contexts_update_responses.go | 190 + netbox/client/extras/extras_client.go | 542 +- .../extras_config_contexts_list_parameters.go | 31 + .../extras_custom_fields_list_parameters.go | 279 + .../extras_custom_links_list_parameters.go | 560 +- ...extras_export_templates_list_parameters.go | 560 +- ...xtras_image_attachments_list_parameters.go | 31 + .../extras_job_results_list_parameters.go | 527 ++ .../extras_object_changes_list_parameters.go | 62 + ...as_saved_filters_bulk_delete_parameters.go | 143 + ...ras_saved_filters_bulk_delete_responses.go | 176 + ..._filters_bulk_partial_update_parameters.go | 165 + ...d_filters_bulk_partial_update_responses.go | 190 + ...as_saved_filters_bulk_update_parameters.go | 165 + ...ras_saved_filters_bulk_update_responses.go | 190 + .../extras_saved_filters_create_parameters.go | 165 + .../extras_saved_filters_create_responses.go | 190 + .../extras_saved_filters_delete_parameters.go | 167 + .../extras_saved_filters_delete_responses.go | 176 + .../extras_saved_filters_list_parameters.go | 2386 ++++++ .../extras_saved_filters_list_responses.go | 356 + ...saved_filters_partial_update_parameters.go | 188 + ..._saved_filters_partial_update_responses.go | 190 + .../extras_saved_filters_read_parameters.go | 167 + .../extras_saved_filters_read_responses.go | 190 + .../extras_saved_filters_update_parameters.go | 188 + .../extras_saved_filters_update_responses.go | 190 + .../extras/extras_tags_list_parameters.go | 124 + .../extras/extras_webhooks_list_parameters.go | 155 + .../ipam/ipam_aggregates_list_parameters.go | 31 + .../client/ipam/ipam_asns_list_parameters.go | 31 + netbox/client/ipam/ipam_client.go | 356 +- .../ipam/ipam_fhrp_groups_list_parameters.go | 372 + .../ipam/ipam_ip_addresses_list_parameters.go | 62 + .../ipam/ipam_ip_ranges_list_parameters.go | 31 + .../ipam/ipam_l2vpns_list_parameters.go | 403 + .../ipam/ipam_prefixes_list_parameters.go | 31 + .../client/ipam/ipam_rirs_list_parameters.go | 93 + .../client/ipam/ipam_roles_list_parameters.go | 93 + .../ipam_route_targets_list_parameters.go | 62 + .../ipam_service_templates_list_parameters.go | 31 + .../ipam/ipam_services_list_parameters.go | 62 + .../ipam/ipam_vlan_groups_list_parameters.go | 93 + .../client/ipam/ipam_vlans_list_parameters.go | 62 + .../client/ipam/ipam_vrfs_list_parameters.go | 93 + netbox/client/net_box_api_client.go | 4 +- netbox/client/status/status_client.go | 2 +- netbox/client/tenancy/tenancy_client.go | 120 +- .../tenancy_contact_groups_list_parameters.go | 93 + .../tenancy_contact_roles_list_parameters.go | 93 + .../tenancy_contacts_list_parameters.go | 186 + .../tenancy_tenant_groups_list_parameters.go | 93 + .../tenancy_tenants_list_parameters.go | 93 + netbox/client/users/users_client.go | 84 +- .../virtualization/virtualization_client.go | 100 +- ...lization_cluster_groups_list_parameters.go | 93 + ...alization_cluster_types_list_parameters.go | 93 + ...virtualization_clusters_list_parameters.go | 31 + ...rtualization_interfaces_list_parameters.go | 62 + ...zation_virtual_machines_list_parameters.go | 31 + netbox/client/wireless/wireless_client.go | 60 +- ...ess_wireless_lan_groups_list_parameters.go | 93 + .../wireless_wireless_lans_list_parameters.go | 155 + ...wireless_wireless_links_list_parameters.go | 93 + netbox/models/a_s_n.go | 3 + netbox/models/aggregate.go | 3 + netbox/models/cable.go | 23 + netbox/models/cable_termination.go | 5 +- netbox/models/cluster.go | 20 + netbox/models/contact.go | 20 + netbox/models/contact_assignment.go | 5 +- netbox/models/custom_field.go | 43 +- netbox/models/custom_link.go | 15 +- netbox/models/device.go | 28 +- netbox/models/device_type.go | 224 + netbox/models/device_with_config_context.go | 8 +- netbox/models/export_template.go | 15 +- netbox/models/f_h_r_p_group.go | 23 + netbox/models/f_h_r_p_group_assignment.go | 5 +- netbox/models/image_attachment.go | 5 +- netbox/models/interface.go | 124 +- netbox/models/interface_template.go | 62 +- netbox/models/inventory_item.go | 5 +- netbox/models/inventory_item_template.go | 5 +- netbox/models/ip_address.go | 8 +- netbox/models/ip_range.go | 3 + netbox/models/job_result.go | 81 +- netbox/models/journal_entry.go | 5 +- netbox/models/l2_v_p_n.go | 12 +- netbox/models/l2_v_p_n_termination.go | 5 +- netbox/models/module.go | 234 + netbox/models/module_type.go | 225 + netbox/models/nested_l2_v_p_n.go | 9 +- .../models/nested_virtual_device_context.go | 244 + netbox/models/object_change.go | 5 +- netbox/models/power_feed.go | 20 + netbox/models/power_panel.go | 23 + netbox/models/prefix.go | 3 + netbox/models/provider.go | 76 +- netbox/models/rack.go | 298 +- netbox/models/rack_reservation.go | 3 + netbox/models/route_target.go | 3 + netbox/models/saved_filter.go | 362 + netbox/models/service.go | 3 + netbox/models/service_template.go | 3 + netbox/models/site.go | 2 +- netbox/models/v_l_a_n.go | 3 + netbox/models/v_l_a_n_group.go | 2 +- netbox/models/v_r_f.go | 3 + netbox/models/virtual_chassis.go | 23 + netbox/models/virtual_device_context.go | 633 ++ netbox/models/webhook.go | 6 +- netbox/models/wireless_l_a_n.go | 204 + netbox/models/wireless_link.go | 3 + netbox/models/writable_a_s_n.go | 3 + netbox/models/writable_aggregate.go | 3 + netbox/models/writable_cable.go | 23 + netbox/models/writable_cluster.go | 32 +- .../models/writable_console_port_template.go | 32 +- .../writable_console_server_port_template.go | 32 +- netbox/models/writable_contact.go | 32 +- netbox/models/writable_contact_assignment.go | 15 +- netbox/models/writable_contact_group.go | 16 +- netbox/models/writable_custom_field.go | 36 +- netbox/models/writable_device_type.go | 79 + .../writable_device_with_config_context.go | 66 +- .../writable_f_h_r_p_group_assignment.go | 5 +- netbox/models/writable_front_port_template.go | 32 +- netbox/models/writable_interface.go | 53 +- netbox/models/writable_interface_template.go | 63 +- netbox/models/writable_inventory_item.go | 5 +- .../writable_inventory_item_template.go | 5 +- netbox/models/writable_ip_address.go | 8 +- netbox/models/writable_ip_range.go | 3 + netbox/models/writable_journal_entry.go | 5 +- netbox/models/writable_l2_v_p_n.go | 12 +- .../models/writable_l2_v_p_n_termination.go | 5 +- netbox/models/writable_module.go | 83 + netbox/models/writable_module_type.go | 80 + netbox/models/writable_power_feed.go | 20 + .../models/writable_power_outlet_template.go | 32 +- netbox/models/writable_power_panel.go | 23 + netbox/models/writable_power_port_template.go | 32 +- netbox/models/writable_prefix.go | 3 + netbox/models/writable_provider.go | 70 +- netbox/models/writable_rack.go | 139 +- netbox/models/writable_rack_reservation.go | 3 + netbox/models/writable_rear_port_template.go | 32 +- netbox/models/writable_route_target.go | 3 + netbox/models/writable_service.go | 3 + netbox/models/writable_service_template.go | 3 + netbox/models/writable_site.go | 2 +- netbox/models/writable_v_l_a_n.go | 19 +- netbox/models/writable_v_r_f.go | 3 + netbox/models/writable_virtual_chassis.go | 23 + .../models/writable_virtual_device_context.go | 430 + netbox/models/writable_wireless_l_a_n.go | 59 + .../models/writable_wireless_l_a_n_group.go | 16 +- netbox/models/writable_wireless_link.go | 3 + 226 files changed, 32192 insertions(+), 3129 deletions(-) create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_delete_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_delete_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_partial_update_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_partial_update_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_update_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_bulk_update_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_create_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_create_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_delete_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_delete_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_list_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_list_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_partial_update_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_partial_update_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_read_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_read_responses.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_update_parameters.go create mode 100644 netbox/client/dcim/dcim_virtual_device_contexts_update_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_delete_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_delete_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_partial_update_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_partial_update_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_update_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_bulk_update_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_create_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_create_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_delete_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_delete_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_list_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_list_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_partial_update_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_partial_update_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_read_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_read_responses.go create mode 100644 netbox/client/extras/extras_saved_filters_update_parameters.go create mode 100644 netbox/client/extras/extras_saved_filters_update_responses.go create mode 100644 netbox/models/nested_virtual_device_context.go create mode 100644 netbox/models/saved_filter.go create mode 100644 netbox/models/virtual_device_context.go create mode 100644 netbox/models/writable_virtual_device_context.go diff --git a/api/netbox_docker_version b/api/netbox_docker_version index 276cbf9e28..197c4d5c2d 100644 --- a/api/netbox_docker_version +++ b/api/netbox_docker_version @@ -1 +1 @@ -2.3.0 +2.4.0 diff --git a/api/netbox_version b/api/netbox_version index 5f6fc5edc2..4d9d11cf50 100644 --- a/api/netbox_version +++ b/api/netbox_version @@ -1 +1 @@ -3.3.10 +3.4.2 diff --git a/api/openapi.json b/api/openapi.json index c8f508e604..093f75c1c5 100644 --- a/api/openapi.json +++ b/api/openapi.json @@ -7,11 +7,11 @@ "license": { "name": "Apache v2 License" }, - "version": "3.3" + "version": "3.4" }, - "host": "localhost", + "host": "127.0.0.1:8000", "schemes": [ - "https" + "http" ], "basePath": "/api", "consumes": [ @@ -36,7 +36,7 @@ "/circuits/circuit-terminations/": { "get": { "operationId": "circuits_circuit-terminations_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -332,6 +332,13 @@ "required": false, "type": "string" }, + { + "name": "xconnect_id__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -395,6 +402,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "cable_end__n", "in": "query", @@ -846,7 +860,7 @@ "/circuits/circuit-types/": { "get": { "operationId": "circuits_circuit-types_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -1002,6 +1016,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -1065,6 +1086,13 @@ "required": false, "type": "string" }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -1128,6 +1156,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -1510,7 +1545,7 @@ "/circuits/circuits/": { "get": { "operationId": "circuits_circuits_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -1813,6 +1848,13 @@ "required": false, "type": "string" }, + { + "name": "cid__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -1876,6 +1918,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "install_date__n", "in": "query", @@ -2496,7 +2545,7 @@ "/circuits/provider-networks/": { "get": { "operationId": "circuits_provider-networks_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -2666,6 +2715,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "service_id__n", "in": "query", @@ -2729,6 +2785,13 @@ "required": false, "type": "string" }, + { + "name": "service_id__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -2792,6 +2855,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -3188,7 +3258,7 @@ "/circuits/providers/": { "get": { "operationId": "circuits_providers_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -3211,13 +3281,6 @@ "required": false, "type": "string" }, - { - "name": "asn", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, { "name": "account", "in": "query", @@ -3421,6 +3484,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -3485,35 +3555,7 @@ "type": "string" }, { - "name": "asn__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "asn__lte", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "asn__lt", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "asn__gte", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "asn__gt", + "name": "slug__empty", "in": "query", "description": "", "required": false, @@ -3582,6 +3624,13 @@ "required": false, "type": "string" }, + { + "name": "account__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -4034,7 +4083,7 @@ "/dcim/cable-terminations/": { "get": { "operationId": "dcim_cable-terminations_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -4467,7 +4516,7 @@ "/dcim/cables/": { "get": { "operationId": "dcim_cables_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -4756,6 +4805,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "length__n", "in": "query", @@ -5354,7 +5410,7 @@ "/dcim/console-port-templates/": { "get": { "operationId": "dcim_console-port-templates_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -5510,6 +5566,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "type__n", "in": "query", @@ -5906,7 +5969,7 @@ "/dcim/console-ports/": { "get": { "operationId": "dcim_console-ports_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -6202,6 +6265,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "label__n", "in": "query", @@ -6265,6 +6335,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -6328,6 +6405,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "cable_end__n", "in": "query", @@ -6863,7 +6947,7 @@ "/dcim/console-server-port-templates/": { "get": { "operationId": "dcim_console-server-port-templates_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -7019,6 +7103,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "type__n", "in": "query", @@ -7415,7 +7506,7 @@ "/dcim/console-server-ports/": { "get": { "operationId": "dcim_console-server-ports_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -7711,6 +7802,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "label__n", "in": "query", @@ -7774,6 +7872,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -7837,6 +7942,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "cable_end__n", "in": "query", @@ -8372,7 +8484,7 @@ "/dcim/device-bay-templates/": { "get": { "operationId": "dcim_device-bay-templates_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -8514,6 +8626,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -8896,7 +9015,7 @@ "/dcim/device-bays/": { "get": { "operationId": "dcim_device-bays_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -9150,6 +9269,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "label__n", "in": "query", @@ -9213,6 +9339,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -9276,6 +9409,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "region_id__n", "in": "query", @@ -9756,7 +9896,7 @@ "/dcim/device-roles/": { "get": { "operationId": "dcim_device-roles_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -9926,6 +10066,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -9989,6 +10136,13 @@ "required": false, "type": "string" }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "color__n", "in": "query", @@ -10052,6 +10206,13 @@ "required": false, "type": "string" }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -10115,6 +10276,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -10497,7 +10665,7 @@ "/dcim/device-types/": { "get": { "operationId": "dcim_device-types_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -10555,6 +10723,20 @@ "required": false, "type": "string" }, + { + "name": "weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created", "in": "query", @@ -10772,6 +10954,13 @@ "required": false, "type": "string" }, + { + "name": "model__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -10835,6 +11024,13 @@ "required": false, "type": "string" }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "part_number__n", "in": "query", @@ -10898,6 +11094,13 @@ "required": false, "type": "string" }, + { + "name": "part_number__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "u_height__n", "in": "query", @@ -10947,6 +11150,48 @@ "required": false, "type": "string" }, + { + "name": "weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -11343,7 +11588,7 @@ "/dcim/devices/": { "get": { "operationId": "dcim_devices_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -11352,13 +11597,6 @@ "required": false, "type": "string" }, - { - "name": "name", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, { "name": "asset_tag", "in": "query", @@ -11499,6 +11737,13 @@ "required": false, "type": "string" }, + { + "name": "device_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "device_type_id", "in": "query", @@ -11611,6 +11856,13 @@ "required": false, "type": "string" }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "status", "in": "query", @@ -11751,69 +12003,6 @@ "required": false, "type": "string" }, - { - "name": "name__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "name__ic", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "name__nic", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "name__iew", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "name__niew", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "name__isw", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "name__nisw", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "name__ie", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "name__nie", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, { "name": "asset_tag__n", "in": "query", @@ -11877,6 +12066,13 @@ "required": false, "type": "string" }, + { + "name": "asset_tag__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "face__n", "in": "query", @@ -12136,6 +12332,13 @@ "required": false, "type": "string" }, + { + "name": "device_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "device_type_id__n", "in": "query", @@ -12248,6 +12451,76 @@ "required": false, "type": "string" }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "status__n", "in": "query", @@ -12381,6 +12654,13 @@ "required": false, "type": "string" }, + { + "name": "serial__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "virtual_chassis_id__n", "in": "query", @@ -12734,7 +13014,7 @@ "/dcim/front-port-templates/": { "get": { "operationId": "dcim_front-port-templates_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -12897,6 +13177,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "type__n", "in": "query", @@ -12967,6 +13254,13 @@ "required": false, "type": "string" }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -13356,7 +13650,7 @@ "/dcim/front-ports/": { "get": { "operationId": "dcim_front-ports_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -13652,6 +13946,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "label__n", "in": "query", @@ -13715,6 +14016,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "type__n", "in": "query", @@ -13785,6 +14093,13 @@ "required": false, "type": "string" }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -13848,6 +14163,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "cable_end__n", "in": "query", @@ -14376,7 +14698,7 @@ "/dcim/interface-templates/": { "get": { "operationId": "dcim_interface-templates_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -14553,6 +14875,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "type__n", "in": "query", @@ -14963,7 +15292,7 @@ "/dcim/interfaces/": { "get": { "operationId": "dcim_interfaces_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -15322,6 +15651,27 @@ "required": false, "type": "string" }, + { + "name": "vdc_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vdc_identifier", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vdc", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "id__n", "in": "query", @@ -15420,6 +15770,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "label__n", "in": "query", @@ -15483,6 +15840,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "type__n", "in": "query", @@ -15728,6 +16092,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "cable_end__n", "in": "query", @@ -16106,6 +16477,27 @@ "required": false, "type": "string" }, + { + "name": "vdc_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vdc_identifier__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vdc__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "ordering", "in": "query", @@ -16445,7 +16837,7 @@ "/dcim/inventory-item-roles/": { "get": { "operationId": "dcim_inventory-item-roles_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -16601,6 +16993,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -16664,6 +17063,13 @@ "required": false, "type": "string" }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "color__n", "in": "query", @@ -16727,6 +17133,13 @@ "required": false, "type": "string" }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -17109,7 +17522,7 @@ "/dcim/inventory-item-templates/": { "get": { "operationId": "dcim_inventory-item-templates_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -17314,6 +17727,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "label__n", "in": "query", @@ -17377,6 +17797,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "part_id__n", "in": "query", @@ -17440,6 +17867,13 @@ "required": false, "type": "string" }, + { + "name": "part_id__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -17899,7 +18333,7 @@ "/dcim/inventory-items/": { "get": { "operationId": "dcim_inventory-items_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -18223,6 +18657,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "label__n", "in": "query", @@ -18286,6 +18727,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "part_id__n", "in": "query", @@ -18349,6 +18797,13 @@ "required": false, "type": "string" }, + { + "name": "part_id__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "asset_tag__n", "in": "query", @@ -18412,6 +18867,13 @@ "required": false, "type": "string" }, + { + "name": "asset_tag__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "region_id__n", "in": "query", @@ -18727,6 +19189,13 @@ "required": false, "type": "string" }, + { + "name": "serial__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "ordering", "in": "query", @@ -19032,7 +19501,7 @@ "/dcim/locations/": { "get": { "operationId": "dcim_locations_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -19300,6 +19769,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -19363,6 +19839,13 @@ "required": false, "type": "string" }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "status__n", "in": "query", @@ -19433,6 +19916,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "tenant_group_id__n", "in": "query", @@ -19920,7 +20410,7 @@ "/dcim/manufacturers/": { "get": { "operationId": "dcim_manufacturers_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -20097,6 +20587,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -20160,6 +20657,13 @@ "required": false, "type": "string" }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -20223,6 +20727,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -20626,7 +21137,7 @@ "/dcim/module-bay-templates/": { "get": { "operationId": "dcim_module-bay-templates_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -20768,6 +21279,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -21150,7 +21668,7 @@ "/dcim/module-bays/": { "get": { "operationId": "dcim_module-bays_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -21404,6 +21922,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "label__n", "in": "query", @@ -21467,6 +21992,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -21530,6 +22062,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "region_id__n", "in": "query", @@ -22010,7 +22549,7 @@ "/dcim/module-types/": { "get": { "operationId": "dcim_module-types_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -22033,6 +22572,20 @@ "required": false, "type": "string" }, + { + "name": "weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created", "in": "query", @@ -22215,6 +22768,13 @@ "required": false, "type": "string" }, + { + "name": "model__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "part_number__n", "in": "query", @@ -22278,6 +22838,55 @@ "required": false, "type": "string" }, + { + "name": "part_number__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -22674,7 +23283,7 @@ "/dcim/modules/": { "get": { "operationId": "dcim_modules_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -22683,6 +23292,13 @@ "required": false, "type": "string" }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "asset_tag", "in": "query", @@ -22802,6 +23418,13 @@ "required": false, "type": "string" }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "asset_tag__n", "in": "query", @@ -22865,6 +23488,13 @@ "required": false, "type": "string" }, + { + "name": "asset_tag__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -23047,6 +23677,13 @@ "required": false, "type": "string" }, + { + "name": "serial__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "ordering", "in": "query", @@ -23352,7 +23989,7 @@ "/dcim/platforms/": { "get": { "operationId": "dcim_platforms_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -23529,6 +24166,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -23592,6 +24236,13 @@ "required": false, "type": "string" }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "napalm_driver__n", "in": "query", @@ -23655,6 +24306,13 @@ "required": false, "type": "string" }, + { + "name": "napalm_driver__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -23718,6 +24376,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -24114,7 +24779,7 @@ "/dcim/power-feeds/": { "get": { "operationId": "dcim_power-feeds_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -24389,6 +25054,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "status__n", "in": "query", @@ -25001,7 +25673,7 @@ "/dcim/power-outlet-templates/": { "get": { "operationId": "dcim_power-outlet-templates_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -25164,6 +25836,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "type__n", "in": "query", @@ -25567,7 +26246,7 @@ "/dcim/power-outlets/": { "get": { "operationId": "dcim_power-outlets_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -25870,6 +26549,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "label__n", "in": "query", @@ -25933,6 +26619,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "feed_leg__n", "in": "query", @@ -26003,6 +26696,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "cable_end__n", "in": "query", @@ -26538,7 +27238,7 @@ "/dcim/power-panels/": { "get": { "operationId": "dcim_power-panels_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -26750,6 +27450,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -27202,7 +27909,7 @@ "/dcim/power-port-templates/": { "get": { "operationId": "dcim_power-port-templates_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -27372,6 +28079,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "type__n", "in": "query", @@ -27838,7 +28552,7 @@ "/dcim/power-ports/": { "get": { "operationId": "dcim_power-ports_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -28148,6 +28862,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "label__n", "in": "query", @@ -28211,6 +28932,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "maximum_draw__n", "in": "query", @@ -28344,6 +29072,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "cable_end__n", "in": "query", @@ -28879,7 +29614,7 @@ "/dcim/rack-reservations/": { "get": { "operationId": "dcim_rack-reservations_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -29161,6 +29896,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "last_updated__n", "in": "query", @@ -29613,7 +30355,7 @@ "/dcim/rack-roles/": { "get": { "operationId": "dcim_rack-roles_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -29776,6 +30518,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -29839,6 +30588,13 @@ "required": false, "type": "string" }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "color__n", "in": "query", @@ -29902,6 +30658,13 @@ "required": false, "type": "string" }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -29965,6 +30728,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -30347,7 +31117,7 @@ "/dcim/racks/": { "get": { "operationId": "dcim_racks_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -30412,6 +31182,34 @@ "required": false, "type": "string" }, + { + "name": "mounting_depth", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created", "in": "query", @@ -30685,6 +31483,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "facility_id__n", "in": "query", @@ -30748,6 +31553,13 @@ "required": false, "type": "string" }, + { + "name": "facility_id__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "asset_tag__n", "in": "query", @@ -30811,6 +31623,13 @@ "required": false, "type": "string" }, + { + "name": "asset_tag__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "u_height__n", "in": "query", @@ -30923,6 +31742,118 @@ "required": false, "type": "string" }, + { + "name": "mounting_depth__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mounting_depth__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mounting_depth__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mounting_depth__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mounting_depth__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -31203,6 +32134,13 @@ "required": false, "type": "string" }, + { + "name": "serial__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "ordering", "in": "query", @@ -31623,7 +32561,7 @@ "/dcim/rear-port-templates/": { "get": { "operationId": "dcim_rear-port-templates_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -31793,6 +32731,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "type__n", "in": "query", @@ -31863,6 +32808,13 @@ "required": false, "type": "string" }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "positions__n", "in": "query", @@ -32287,7 +33239,7 @@ "/dcim/rear-ports/": { "get": { "operationId": "dcim_rear-ports_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -32590,6 +33542,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "label__n", "in": "query", @@ -32653,6 +33612,13 @@ "required": false, "type": "string" }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "type__n", "in": "query", @@ -32723,6 +33689,13 @@ "required": false, "type": "string" }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "positions__n", "in": "query", @@ -32821,6 +33794,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "cable_end__n", "in": "query", @@ -33349,7 +34329,7 @@ "/dcim/regions/": { "get": { "operationId": "dcim_regions_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -33540,6 +34520,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -33603,6 +34590,13 @@ "required": false, "type": "string" }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -33666,6 +34660,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -34083,7 +35084,7 @@ "/dcim/site-groups/": { "get": { "operationId": "dcim_site-groups_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -34274,6 +35275,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -34337,6 +35345,13 @@ "required": false, "type": "string" }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "description__n", "in": "query", @@ -34400,6 +35415,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -34817,7 +35839,7 @@ "/dcim/sites/": { "get": { "operationId": "dcim_sites_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -35092,6 +36114,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "slug__n", "in": "query", @@ -35155,6 +36184,13 @@ "required": false, "type": "string" }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "facility__n", "in": "query", @@ -35218,6 +36254,13 @@ "required": false, "type": "string" }, + { + "name": "facility__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "latitude__n", "in": "query", @@ -35351,6 +36394,13 @@ "required": false, "type": "string" }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -35831,7 +36881,7 @@ "/dcim/virtual-chassis/": { "get": { "operationId": "dcim_virtual-chassis_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "description": "", "parameters": [ { "name": "id", @@ -36050,6 +37100,13 @@ "required": false, "type": "string" }, + { + "name": "domain__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "name__n", "in": "query", @@ -36113,6 +37170,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -36562,10 +37626,10 @@ } ] }, - "/extras/config-contexts/": { + "/dcim/virtual-device-contexts/": { "get": { - "operationId": "extras_config-contexts_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "operationId": "dcim_virtual-device-contexts_list", + "description": "", "parameters": [ { "name": "id", @@ -36575,14 +37639,14 @@ "type": "string" }, { - "name": "name", + "name": "device", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "is_active", + "name": "name", "in": "query", "description": "", "required": false, @@ -36610,126 +37674,7 @@ "type": "string" }, { - "name": "region_id", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "region", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "site_group", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "site_group_id", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "site_id", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "site", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "location_id", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "location", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "device_type_id", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "role_id", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "role", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "platform_id", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "platform", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "cluster_type_id", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "cluster_type", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "cluster_group_id", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "cluster_group", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "cluster_id", + "name": "tag", "in": "query", "description": "", "required": false, @@ -36764,14 +37709,21 @@ "type": "string" }, { - "name": "tag_id", + "name": "device_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "tag", + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "has_primary_ip", "in": "query", "description": "", "required": false, @@ -36812,6 +37764,13 @@ "required": false, "type": "string" }, + { + "name": "device__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "name__n", "in": "query", @@ -36875,6 +37834,13 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "created__n", "in": "query", @@ -36946,126 +37912,7 @@ "type": "string" }, { - "name": "region_id__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "region__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "site_group__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "site_group_id__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "site_id__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "site__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "location_id__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "location__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "device_type_id__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "role_id__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "role__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "platform_id__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "platform__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "cluster_type_id__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "cluster_type__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "cluster_group_id__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "cluster_group__n", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "cluster_id__n", + "name": "tag__n", "in": "query", "description": "", "required": false, @@ -37100,14 +37947,14 @@ "type": "string" }, { - "name": "tag_id__n", + "name": "device_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "tag__n", + "name": "status__n", "in": "query", "description": "", "required": false, @@ -37161,7 +38008,7 @@ "results": { "type": "array", "items": { - "$ref": "#/definitions/ConfigContext" + "$ref": "#/definitions/VirtualDeviceContext" } } } @@ -37176,11 +38023,11 @@ } }, "tags": [ - "extras" + "dcim" ] }, "post": { - "operationId": "extras_config-contexts_create", + "operationId": "dcim_virtual-device-contexts_create", "description": "", "parameters": [ { @@ -37188,7 +38035,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WritableConfigContext" + "$ref": "#/definitions/WritableVirtualDeviceContext" } } ], @@ -37196,7 +38043,7 @@ "201": { "description": "", "schema": { - "$ref": "#/definitions/ConfigContext" + "$ref": "#/definitions/VirtualDeviceContext" } }, "default": { @@ -37208,11 +38055,11 @@ } }, "tags": [ - "extras" + "dcim" ] }, "put": { - "operationId": "extras_config-contexts_bulk_update", + "operationId": "dcim_virtual-device-contexts_bulk_update", "description": "", "parameters": [ { @@ -37220,7 +38067,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WritableConfigContext" + "$ref": "#/definitions/WritableVirtualDeviceContext" } } ], @@ -37228,7 +38075,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ConfigContext" + "$ref": "#/definitions/VirtualDeviceContext" } }, "default": { @@ -37240,11 +38087,11 @@ } }, "tags": [ - "extras" + "dcim" ] }, "patch": { - "operationId": "extras_config-contexts_bulk_partial_update", + "operationId": "dcim_virtual-device-contexts_bulk_partial_update", "description": "", "parameters": [ { @@ -37252,7 +38099,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WritableConfigContext" + "$ref": "#/definitions/WritableVirtualDeviceContext" } } ], @@ -37260,7 +38107,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ConfigContext" + "$ref": "#/definitions/VirtualDeviceContext" } }, "default": { @@ -37272,11 +38119,11 @@ } }, "tags": [ - "extras" + "dcim" ] }, "delete": { - "operationId": "extras_config-contexts_bulk_delete", + "operationId": "dcim_virtual-device-contexts_bulk_delete", "description": "", "parameters": [], "responses": { @@ -37292,21 +38139,21 @@ } }, "tags": [ - "extras" + "dcim" ] }, "parameters": [] }, - "/extras/config-contexts/{id}/": { + "/dcim/virtual-device-contexts/{id}/": { "get": { - "operationId": "extras_config-contexts_read", + "operationId": "dcim_virtual-device-contexts_read", "description": "", "parameters": [], "responses": { "200": { "description": "", "schema": { - "$ref": "#/definitions/ConfigContext" + "$ref": "#/definitions/VirtualDeviceContext" } }, "default": { @@ -37318,11 +38165,11 @@ } }, "tags": [ - "extras" + "dcim" ] }, "put": { - "operationId": "extras_config-contexts_update", + "operationId": "dcim_virtual-device-contexts_update", "description": "", "parameters": [ { @@ -37330,7 +38177,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WritableConfigContext" + "$ref": "#/definitions/WritableVirtualDeviceContext" } } ], @@ -37338,7 +38185,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ConfigContext" + "$ref": "#/definitions/VirtualDeviceContext" } }, "default": { @@ -37350,11 +38197,11 @@ } }, "tags": [ - "extras" + "dcim" ] }, "patch": { - "operationId": "extras_config-contexts_partial_update", + "operationId": "dcim_virtual-device-contexts_partial_update", "description": "", "parameters": [ { @@ -37362,7 +38209,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WritableConfigContext" + "$ref": "#/definitions/WritableVirtualDeviceContext" } } ], @@ -37370,7 +38217,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ConfigContext" + "$ref": "#/definitions/VirtualDeviceContext" } }, "default": { @@ -37382,11 +38229,11 @@ } }, "tags": [ - "extras" + "dcim" ] }, "delete": { - "operationId": "extras_config-contexts_delete", + "operationId": "dcim_virtual-device-contexts_delete", "description": "", "parameters": [], "responses": { @@ -37402,336 +38249,264 @@ } }, "tags": [ - "extras" + "dcim" ] }, "parameters": [ { "name": "id", "in": "path", - "description": "A unique integer value identifying this config context.", + "description": "A unique integer value identifying this virtual device context.", "required": true, "type": "integer" } ] }, - "/extras/content-types/": { + "/extras/config-contexts/": { "get": { - "operationId": "extras_content-types_list", - "description": "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", + "operationId": "extras_config-contexts_list", + "description": "", "parameters": [ { "name": "id", "in": "query", "description": "", "required": false, - "type": "number" + "type": "string" }, { - "name": "app_label", + "name": "name", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "model", + "name": "is_active", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "q", + "name": "created", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "ordering", + "name": "last_updated", "in": "query", - "description": "Which field to use when ordering the results.", + "description": "", "required": false, "type": "string" }, { - "name": "limit", + "name": "q", "in": "query", - "description": "Number of results to return per page.", + "description": "", "required": false, - "type": "integer" + "type": "string" }, { - "name": "offset", + "name": "region_id", "in": "query", - "description": "The initial index from which to return the results.", - "required": false, - "type": "integer" - } - ], - "responses": { - "200": { "description": "", - "schema": { - "required": [ - "count", - "results" - ], - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "next": { - "type": "string", - "format": "uri", - "x-nullable": true - }, - "previous": { - "type": "string", - "format": "uri", - "x-nullable": true - }, - "results": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentType" - } - } - } - } + "required": false, + "type": "string" }, - "default": { - "description": "", - "schema": { - "additionalProperties": true, - "type": "object" - } - } - }, - "tags": [ - "extras" - ] - }, - "parameters": [] - }, - "/extras/content-types/{id}/": { - "get": { - "operationId": "extras_content-types_read", - "description": "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", - "parameters": [], - "responses": { - "200": { + { + "name": "region", + "in": "query", "description": "", - "schema": { - "$ref": "#/definitions/ContentType" - } + "required": false, + "type": "string" }, - "default": { + { + "name": "site_group", + "in": "query", "description": "", - "schema": { - "additionalProperties": true, - "type": "object" - } - } - }, - "tags": [ - "extras" - ] - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "A unique integer value identifying this content type.", - "required": true, - "type": "integer" - } - ] - }, - "/extras/custom-fields/": { - "get": { - "operationId": "extras_custom-fields_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", - "parameters": [ + "required": false, + "type": "string" + }, { - "name": "id", + "name": "site_group_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_types", + "name": "site_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "name", + "name": "site", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name", + "name": "location_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "required", + "name": "location", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "filter_logic", + "name": "device_type_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "ui_visibility", + "name": "role_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "weight", + "name": "role", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description", + "name": "platform_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "q", + "name": "platform", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "type", + "name": "cluster_type_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_type_id", + "name": "cluster_type", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__n", + "name": "cluster_group_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__lte", + "name": "cluster_group", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__lt", + "name": "cluster_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__gte", + "name": "tenant_group_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__gt", + "name": "tenant_group", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_types__n", + "name": "tenant_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_types__ic", + "name": "tenant", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_types__nic", + "name": "tag_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_types__iew", + "name": "tag", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_types__niew", + "name": "id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_types__isw", + "name": "id__lte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_types__nisw", + "name": "id__lt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_types__ie", + "name": "id__gte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_types__nie", + "name": "id__gt", "in": "query", "description": "", "required": false, @@ -37801,217 +38576,245 @@ "type": "string" }, { - "name": "group_name__n", + "name": "name__empty", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__ic", + "name": "created__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__nic", + "name": "created__lte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__iew", + "name": "created__lt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__niew", + "name": "created__gte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__isw", + "name": "created__gt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__nisw", + "name": "last_updated__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__ie", + "name": "last_updated__lte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__nie", + "name": "last_updated__lt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "filter_logic__n", + "name": "last_updated__gte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "ui_visibility__n", + "name": "last_updated__gt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "weight__n", + "name": "region_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "weight__lte", + "name": "region__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "weight__lt", + "name": "site_group__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "weight__gte", + "name": "site_group_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "weight__gt", + "name": "site_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__n", + "name": "site__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__ic", + "name": "location_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__nic", + "name": "location__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__iew", + "name": "device_type_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__niew", + "name": "role_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__isw", + "name": "role__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__nisw", + "name": "platform_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__ie", + "name": "platform__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__nie", + "name": "cluster_type_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "type__n", + "name": "cluster_type__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_type_id__n", + "name": "cluster_group_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_type_id__lte", + "name": "cluster_group__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_type_id__lt", + "name": "cluster_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_type_id__gte", + "name": "tenant_group_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_type_id__gt", + "name": "tenant_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", "in": "query", "description": "", "required": false, @@ -38065,7 +38868,7 @@ "results": { "type": "array", "items": { - "$ref": "#/definitions/CustomField" + "$ref": "#/definitions/ConfigContext" } } } @@ -38084,7 +38887,7 @@ ] }, "post": { - "operationId": "extras_custom-fields_create", + "operationId": "extras_config-contexts_create", "description": "", "parameters": [ { @@ -38092,7 +38895,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WritableCustomField" + "$ref": "#/definitions/WritableConfigContext" } } ], @@ -38100,7 +38903,7 @@ "201": { "description": "", "schema": { - "$ref": "#/definitions/CustomField" + "$ref": "#/definitions/ConfigContext" } }, "default": { @@ -38116,7 +38919,7 @@ ] }, "put": { - "operationId": "extras_custom-fields_bulk_update", + "operationId": "extras_config-contexts_bulk_update", "description": "", "parameters": [ { @@ -38124,7 +38927,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WritableCustomField" + "$ref": "#/definitions/WritableConfigContext" } } ], @@ -38132,7 +38935,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/CustomField" + "$ref": "#/definitions/ConfigContext" } }, "default": { @@ -38148,7 +38951,7 @@ ] }, "patch": { - "operationId": "extras_custom-fields_bulk_partial_update", + "operationId": "extras_config-contexts_bulk_partial_update", "description": "", "parameters": [ { @@ -38156,7 +38959,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WritableCustomField" + "$ref": "#/definitions/WritableConfigContext" } } ], @@ -38164,7 +38967,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/CustomField" + "$ref": "#/definitions/ConfigContext" } }, "default": { @@ -38180,7 +38983,7 @@ ] }, "delete": { - "operationId": "extras_custom-fields_bulk_delete", + "operationId": "extras_config-contexts_bulk_delete", "description": "", "parameters": [], "responses": { @@ -38201,16 +39004,16 @@ }, "parameters": [] }, - "/extras/custom-fields/{id}/": { + "/extras/config-contexts/{id}/": { "get": { - "operationId": "extras_custom-fields_read", + "operationId": "extras_config-contexts_read", "description": "", "parameters": [], "responses": { "200": { "description": "", "schema": { - "$ref": "#/definitions/CustomField" + "$ref": "#/definitions/ConfigContext" } }, "default": { @@ -38226,7 +39029,7 @@ ] }, "put": { - "operationId": "extras_custom-fields_update", + "operationId": "extras_config-contexts_update", "description": "", "parameters": [ { @@ -38234,7 +39037,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WritableCustomField" + "$ref": "#/definitions/WritableConfigContext" } } ], @@ -38242,7 +39045,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/CustomField" + "$ref": "#/definitions/ConfigContext" } }, "default": { @@ -38258,7 +39061,7 @@ ] }, "patch": { - "operationId": "extras_custom-fields_partial_update", + "operationId": "extras_config-contexts_partial_update", "description": "", "parameters": [ { @@ -38266,7 +39069,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WritableCustomField" + "$ref": "#/definitions/WritableConfigContext" } } ], @@ -38274,7 +39077,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/CustomField" + "$ref": "#/definitions/ConfigContext" } }, "default": { @@ -38290,7 +39093,7 @@ ] }, "delete": { - "operationId": "extras_custom-fields_delete", + "operationId": "extras_config-contexts_delete", "description": "", "parameters": [], "responses": { @@ -38313,26 +39116,161 @@ { "name": "id", "in": "path", - "description": "A unique integer value identifying this custom field.", + "description": "A unique integer value identifying this config context.", "required": true, "type": "integer" } ] }, - "/extras/custom-links/": { + "/extras/content-types/": { "get": { - "operationId": "extras_custom-links_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "operationId": "extras_content-types_list", + "description": "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", "parameters": [ { "name": "id", "in": "query", "description": "", "required": false, + "type": "number" + }, + { + "name": "app_label", + "in": "query", + "description": "", + "required": false, "type": "string" }, { - "name": "content_type", + "name": "model", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ContentType" + } + } + } + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/content-types/{id}/": { + "get": { + "operationId": "extras_content-types_read", + "description": "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ContentType" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this content type.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/custom-fields/": { + "get": { + "operationId": "extras_custom-fields_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types", "in": "query", "description": "", "required": false, @@ -38346,42 +39284,49 @@ "type": "string" }, { - "name": "enabled", + "name": "group_name", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_text", + "name": "required", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_url", + "name": "search_weight", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "weight", + "name": "filter_logic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name", + "name": "ui_visibility", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "new_window", + "name": "weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", "in": "query", "description": "", "required": false, @@ -38394,6 +39339,20 @@ "required": false, "type": "string" }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "id__n", "in": "query", @@ -38430,7 +39389,63 @@ "type": "string" }, { - "name": "content_type__n", + "name": "content_types__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nie", "in": "query", "description": "", "required": false, @@ -38500,126 +39515,126 @@ "type": "string" }, { - "name": "link_text__n", + "name": "name__empty", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_text__ic", + "name": "group_name__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_text__nic", + "name": "group_name__ic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_text__iew", + "name": "group_name__nic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_text__niew", + "name": "group_name__iew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_text__isw", + "name": "group_name__niew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_text__nisw", + "name": "group_name__isw", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_text__ie", + "name": "group_name__nisw", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_text__nie", + "name": "group_name__ie", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_url__n", + "name": "group_name__nie", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_url__ic", + "name": "group_name__empty", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_url__nic", + "name": "search_weight__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_url__iew", + "name": "search_weight__lte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_url__niew", + "name": "search_weight__lt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_url__isw", + "name": "search_weight__gte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_url__nisw", + "name": "search_weight__gt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_url__ie", + "name": "filter_logic__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "link_url__nie", + "name": "ui_visibility__n", "in": "query", "description": "", "required": false, @@ -38661,63 +39676,112 @@ "type": "string" }, { - "name": "group_name__n", + "name": "description__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__ic", + "name": "description__ic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__nic", + "name": "description__nic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__iew", + "name": "description__iew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__niew", + "name": "description__niew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__isw", + "name": "description__isw", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__nisw", + "name": "description__nisw", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__ie", + "name": "description__ie", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "group_name__nie", + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gt", "in": "query", "description": "", "required": false, @@ -38771,7 +39835,7 @@ "results": { "type": "array", "items": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/CustomField" } } } @@ -38790,7 +39854,7 @@ ] }, "post": { - "operationId": "extras_custom-links_create", + "operationId": "extras_custom-fields_create", "description": "", "parameters": [ { @@ -38798,7 +39862,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/WritableCustomField" } } ], @@ -38806,7 +39870,7 @@ "201": { "description": "", "schema": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/CustomField" } }, "default": { @@ -38822,7 +39886,7 @@ ] }, "put": { - "operationId": "extras_custom-links_bulk_update", + "operationId": "extras_custom-fields_bulk_update", "description": "", "parameters": [ { @@ -38830,7 +39894,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/WritableCustomField" } } ], @@ -38838,7 +39902,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/CustomField" } }, "default": { @@ -38854,7 +39918,7 @@ ] }, "patch": { - "operationId": "extras_custom-links_bulk_partial_update", + "operationId": "extras_custom-fields_bulk_partial_update", "description": "", "parameters": [ { @@ -38862,7 +39926,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/WritableCustomField" } } ], @@ -38870,7 +39934,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/CustomField" } }, "default": { @@ -38886,7 +39950,7 @@ ] }, "delete": { - "operationId": "extras_custom-links_bulk_delete", + "operationId": "extras_custom-fields_bulk_delete", "description": "", "parameters": [], "responses": { @@ -38907,16 +39971,16 @@ }, "parameters": [] }, - "/extras/custom-links/{id}/": { + "/extras/custom-fields/{id}/": { "get": { - "operationId": "extras_custom-links_read", + "operationId": "extras_custom-fields_read", "description": "", "parameters": [], "responses": { "200": { "description": "", "schema": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/CustomField" } }, "default": { @@ -38932,7 +39996,7 @@ ] }, "put": { - "operationId": "extras_custom-links_update", + "operationId": "extras_custom-fields_update", "description": "", "parameters": [ { @@ -38940,7 +40004,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/WritableCustomField" } } ], @@ -38948,7 +40012,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/CustomField" } }, "default": { @@ -38964,7 +40028,7 @@ ] }, "patch": { - "operationId": "extras_custom-links_partial_update", + "operationId": "extras_custom-fields_partial_update", "description": "", "parameters": [ { @@ -38972,7 +40036,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/WritableCustomField" } } ], @@ -38980,7 +40044,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/CustomLink" + "$ref": "#/definitions/CustomField" } }, "default": { @@ -38996,7 +40060,7 @@ ] }, "delete": { - "operationId": "extras_custom-links_delete", + "operationId": "extras_custom-fields_delete", "description": "", "parameters": [], "responses": { @@ -39019,16 +40083,16 @@ { "name": "id", "in": "path", - "description": "A unique integer value identifying this custom link.", + "description": "A unique integer value identifying this custom field.", "required": true, "type": "integer" } ] }, - "/extras/export-templates/": { + "/extras/custom-links/": { "get": { - "operationId": "extras_export-templates_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "operationId": "extras_custom-links_list", + "description": "", "parameters": [ { "name": "id", @@ -39038,7 +40102,7 @@ "type": "string" }, { - "name": "content_type", + "name": "content_types", "in": "query", "description": "", "required": false, @@ -39052,7 +40116,42 @@ "type": "string" }, { - "name": "description", + "name": "enabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "new_window", "in": "query", "description": "", "required": false, @@ -39065,6 +40164,13 @@ "required": false, "type": "string" }, + { + "name": "content_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "id__n", "in": "query", @@ -39101,7 +40207,63 @@ "type": "string" }, { - "name": "content_type__n", + "name": "content_types__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nie", "in": "query", "description": "", "required": false, @@ -39171,63 +40333,273 @@ "type": "string" }, { - "name": "description__n", + "name": "name__empty", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__ic", + "name": "link_text__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__nic", + "name": "link_text__ic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__iew", + "name": "link_text__nic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__niew", + "name": "link_text__iew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__isw", + "name": "link_text__niew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__nisw", + "name": "link_text__isw", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__ie", + "name": "link_text__nisw", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "description__nie", + "name": "link_text__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gt", "in": "query", "description": "", "required": false, @@ -39281,7 +40653,7 @@ "results": { "type": "array", "items": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } } } @@ -39300,7 +40672,7 @@ ] }, "post": { - "operationId": "extras_export-templates_create", + "operationId": "extras_custom-links_create", "description": "", "parameters": [ { @@ -39308,7 +40680,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } } ], @@ -39316,7 +40688,7 @@ "201": { "description": "", "schema": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } }, "default": { @@ -39332,7 +40704,7 @@ ] }, "put": { - "operationId": "extras_export-templates_bulk_update", + "operationId": "extras_custom-links_bulk_update", "description": "", "parameters": [ { @@ -39340,7 +40712,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } } ], @@ -39348,7 +40720,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } }, "default": { @@ -39364,7 +40736,7 @@ ] }, "patch": { - "operationId": "extras_export-templates_bulk_partial_update", + "operationId": "extras_custom-links_bulk_partial_update", "description": "", "parameters": [ { @@ -39372,7 +40744,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } } ], @@ -39380,7 +40752,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } }, "default": { @@ -39396,7 +40768,7 @@ ] }, "delete": { - "operationId": "extras_export-templates_bulk_delete", + "operationId": "extras_custom-links_bulk_delete", "description": "", "parameters": [], "responses": { @@ -39417,16 +40789,16 @@ }, "parameters": [] }, - "/extras/export-templates/{id}/": { + "/extras/custom-links/{id}/": { "get": { - "operationId": "extras_export-templates_read", + "operationId": "extras_custom-links_read", "description": "", "parameters": [], "responses": { "200": { "description": "", "schema": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } }, "default": { @@ -39442,7 +40814,7 @@ ] }, "put": { - "operationId": "extras_export-templates_update", + "operationId": "extras_custom-links_update", "description": "", "parameters": [ { @@ -39450,7 +40822,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } } ], @@ -39458,7 +40830,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } }, "default": { @@ -39474,7 +40846,7 @@ ] }, "patch": { - "operationId": "extras_export-templates_partial_update", + "operationId": "extras_custom-links_partial_update", "description": "", "parameters": [ { @@ -39482,7 +40854,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } } ], @@ -39490,7 +40862,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ExportTemplate" + "$ref": "#/definitions/CustomLink" } }, "default": { @@ -39506,7 +40878,7 @@ ] }, "delete": { - "operationId": "extras_export-templates_delete", + "operationId": "extras_custom-links_delete", "description": "", "parameters": [], "responses": { @@ -39529,16 +40901,16 @@ { "name": "id", "in": "path", - "description": "A unique integer value identifying this export template.", + "description": "A unique integer value identifying this custom link.", "required": true, "type": "integer" } ] }, - "/extras/image-attachments/": { + "/extras/export-templates/": { "get": { - "operationId": "extras_image-attachments_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "operationId": "extras_export-templates_list", + "description": "", "parameters": [ { "name": "id", @@ -39548,21 +40920,21 @@ "type": "string" }, { - "name": "content_type_id", + "name": "content_types", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "object_id", + "name": "name", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "name", + "name": "description", "in": "query", "description": "", "required": false, @@ -39576,91 +40948,105 @@ "type": "string" }, { - "name": "created", + "name": "content_type_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_type", + "name": "id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__n", + "name": "id__lte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__lte", + "name": "id__lt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__lt", + "name": "id__gte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__gte", + "name": "id__gt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__gt", + "name": "content_types__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "content_type_id__n", + "name": "content_types__ic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "object_id__n", + "name": "content_types__nic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "object_id__lte", + "name": "content_types__iew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "object_id__lt", + "name": "content_types__niew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "object_id__gte", + "name": "content_types__isw", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "object_id__gt", + "name": "content_types__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nie", "in": "query", "description": "", "required": false, @@ -39730,7 +41116,112 @@ "type": "string" }, { - "name": "content_type__n", + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gt", "in": "query", "description": "", "required": false, @@ -39784,7 +41275,7 @@ "results": { "type": "array", "items": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } } } @@ -39803,7 +41294,7 @@ ] }, "post": { - "operationId": "extras_image-attachments_create", + "operationId": "extras_export-templates_create", "description": "", "parameters": [ { @@ -39811,7 +41302,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } } ], @@ -39819,7 +41310,7 @@ "201": { "description": "", "schema": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } }, "default": { @@ -39835,7 +41326,7 @@ ] }, "put": { - "operationId": "extras_image-attachments_bulk_update", + "operationId": "extras_export-templates_bulk_update", "description": "", "parameters": [ { @@ -39843,7 +41334,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } } ], @@ -39851,7 +41342,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } }, "default": { @@ -39867,7 +41358,7 @@ ] }, "patch": { - "operationId": "extras_image-attachments_bulk_partial_update", + "operationId": "extras_export-templates_bulk_partial_update", "description": "", "parameters": [ { @@ -39875,7 +41366,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } } ], @@ -39883,7 +41374,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } }, "default": { @@ -39899,7 +41390,7 @@ ] }, "delete": { - "operationId": "extras_image-attachments_bulk_delete", + "operationId": "extras_export-templates_bulk_delete", "description": "", "parameters": [], "responses": { @@ -39920,16 +41411,16 @@ }, "parameters": [] }, - "/extras/image-attachments/{id}/": { + "/extras/export-templates/{id}/": { "get": { - "operationId": "extras_image-attachments_read", + "operationId": "extras_export-templates_read", "description": "", "parameters": [], "responses": { "200": { "description": "", "schema": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } }, "default": { @@ -39945,7 +41436,7 @@ ] }, "put": { - "operationId": "extras_image-attachments_update", + "operationId": "extras_export-templates_update", "description": "", "parameters": [ { @@ -39953,7 +41444,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } } ], @@ -39961,7 +41452,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } }, "default": { @@ -39977,7 +41468,7 @@ ] }, "patch": { - "operationId": "extras_image-attachments_partial_update", + "operationId": "extras_export-templates_partial_update", "description": "", "parameters": [ { @@ -39985,7 +41476,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } } ], @@ -39993,7 +41484,7 @@ "200": { "description": "", "schema": { - "$ref": "#/definitions/ImageAttachment" + "$ref": "#/definitions/ExportTemplate" } }, "default": { @@ -40009,7 +41500,7 @@ ] }, "delete": { - "operationId": "extras_image-attachments_delete", + "operationId": "extras_export-templates_delete", "description": "", "parameters": [], "responses": { @@ -40032,16 +41523,16 @@ { "name": "id", "in": "path", - "description": "A unique integer value identifying this image attachment.", + "description": "A unique integer value identifying this export template.", "required": true, "type": "integer" } ] }, - "/extras/job-results/": { + "/extras/image-attachments/": { "get": { - "operationId": "extras_job-results_list", - "description": "Retrieve a list of job results", + "operationId": "extras_image-attachments_list", + "description": "", "parameters": [ { "name": "id", @@ -40051,49 +41542,42 @@ "type": "string" }, { - "name": "created", - "in": "query", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "completed", + "name": "content_type_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "status", + "name": "object_id", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "user", + "name": "name", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "obj_type", + "name": "q", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "name", + "name": "created", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "q", + "name": "content_type", "in": "query", "description": "", "required": false, @@ -40135,49 +41619,70 @@ "type": "string" }, { - "name": "status__n", + "name": "content_type_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "user__n", + "name": "object_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "obj_type__n", + "name": "object_id__lte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "name__n", + "name": "object_id__lt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "name__ic", + "name": "object_id__gte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "name__nic", + "name": "object_id__gt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "name__iew", + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", "in": "query", "description": "", "required": false, @@ -40218,6 +41723,20 @@ "required": false, "type": "string" }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, { "name": "ordering", "in": "query", @@ -40266,7 +41785,7 @@ "results": { "type": "array", "items": { - "$ref": "#/definitions/JobResult" + "$ref": "#/definitions/ImageAttachment" } } } @@ -40284,19 +41803,219 @@ "extras" ] }, + "post": { + "operationId": "extras_image-attachments_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_image-attachments_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_image-attachments_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_image-attachments_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, "parameters": [] }, - "/extras/job-results/{id}/": { + "/extras/image-attachments/{id}/": { "get": { - "operationId": "extras_job-results_read", - "description": "Retrieve a list of job results", + "operationId": "extras_image-attachments_read", + "description": "", "parameters": [], "responses": { "200": { "description": "", "schema": { - "$ref": "#/definitions/JobResult" + "$ref": "#/definitions/ImageAttachment" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_image-attachments_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_image-attachments_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_image-attachments_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" }, "default": { "description": "", @@ -40314,236 +42033,1273 @@ { "name": "id", "in": "path", - "description": "A unique integer value identifying this job result.", + "description": "A unique integer value identifying this image attachment.", "required": true, "type": "integer" } ] }, - "/extras/journal-entries/": { + "/extras/job-results/": { "get": { - "operationId": "extras_journal-entries_list", - "description": "Overrides ListModelMixin to allow processing ExportTemplates.", + "operationId": "extras_job-results_list", + "description": "Retrieve a list of job results", "parameters": [ { - "name": "id", + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "obj_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__before", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__after", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "scheduled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "scheduled__before", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "scheduled__after", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "started", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "started__before", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "started__after", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "completed", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "completed__before", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "completed__after", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "obj_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/JobResult" + } + } + } + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/job-results/{id}/": { + "get": { + "operationId": "extras_job-results_read", + "description": "Retrieve a list of job results", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JobResult" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this job result.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/journal-entries/": { + "get": { + "operationId": "extras_journal-entries_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "kind", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "kind__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/JournalEntry" + } + } + } + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "post": { + "operationId": "extras_journal-entries_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableJournalEntry" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_journal-entries_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableJournalEntry" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_journal-entries_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableJournalEntry" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_journal-entries_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/journal-entries/{id}/": { + "get": { + "operationId": "extras_journal-entries_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_journal-entries_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableJournalEntry" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_journal-entries_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableJournalEntry" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_journal-entries_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + }, + "default": { + "description": "", + "schema": { + "additionalProperties": true, + "type": "object" + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this journal entry.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/object-changes/": { + "get": { + "operationId": "extras_object-changes_list", + "description": "Retrieve a list of recent changes.", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "request_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "action", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "time", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "assigned_object_type_id", + "name": "id__gt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "assigned_object_id", + "name": "user__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "created", + "name": "user_name__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "kind", + "name": "user_name__ic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "last_updated", + "name": "user_name__nic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "q", + "name": "user_name__iew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "tag", + "name": "user_name__niew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "assigned_object_type", + "name": "user_name__isw", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "created_by_id", + "name": "user_name__nisw", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "created_by", + "name": "user_name__ie", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__n", + "name": "user_name__nie", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__lte", + "name": "user_name__empty", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__lt", + "name": "action__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__gte", + "name": "changed_object_type_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "id__gt", + "name": "changed_object_id__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "assigned_object_type_id__n", + "name": "changed_object_id__lte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "assigned_object_id__n", + "name": "changed_object_id__lt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "assigned_object_id__lte", + "name": "changed_object_id__gte", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "assigned_object_id__lt", + "name": "changed_object_id__gt", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "assigned_object_id__gte", + "name": "object_repr__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "assigned_object_id__gt", + "name": "object_repr__ic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "kind__n", + "name": "object_repr__nic", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "last_updated__n", + "name": "object_repr__iew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "last_updated__lte", + "name": "object_repr__niew", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "last_updated__lt", + "name": "object_repr__isw", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "last_updated__gte", + "name": "object_repr__nisw", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "last_updated__gt", + "name": "object_repr__ie", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "tag__n", + "name": "object_repr__nie", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "assigned_object_type__n", + "name": "object_repr__empty", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "created_by_id__n", + "name": "changed_object_type__n", "in": "query", "description": "", "required": false, "type": "string" }, { - "name": "created_by__n", + "name": "user_id__n", "in": "query", "description": "", "required": false, @@ -40597,7 +43353,7 @@ "results": { "type": "array", "items": { - "$ref": "#/definitions/JournalEntry" + "$ref": "#/definitions/ObjectChange" } } } @@ -40615,88 +43371,18 @@ "extras" ] }, - "post": { - "operationId": "extras_journal-entries_create", - "description": "", - "parameters": [ - { - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/WritableJournalEntry" - } - } - ], - "responses": { - "201": { - "description": "", - "schema": { - "$ref": "#/definitions/JournalEntry" - } - }, - "default": { - "description": "", - "schema": { - "additionalProperties": true, - "type": "object" - } - } - }, - "tags": [ - "extras" - ] - }, - "put": { - "operationId": "extras_journal-entries_bulk_update", - "description": "", - "parameters": [ - { - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/WritableJournalEntry" - } - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/JournalEntry" - } - }, - "default": { - "description": "", - "schema": { - "additionalProperties": true, - "type": "object" - } - } - }, - "tags": [ - "extras" - ] - }, - "patch": { - "operationId": "extras_journal-entries_bulk_partial_update", - "description": "", - "parameters": [ - { - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/WritableJournalEntry" - } - } - ], + "parameters": [] + }, + "/extras/object-changes/{id}/": { + "get": { + "operationId": "extras_object-changes_read", + "description": "Retrieve a list of recent changes.", + "parameters": [], "responses": { "200": { "description": "", "schema": { - "$ref": "#/definitions/JournalEntry" + "$ref": "#/definitions/ObjectChange" } }, "default": { @@ -40711,12 +43397,23 @@ "extras" ] }, - "delete": { - "operationId": "extras_journal-entries_bulk_delete", - "description": "", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this object change.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/reports/": { + "get": { + "operationId": "extras_reports_list", + "description": "Compile all reports and their related results (if any). Result data is deferred in the list view.", "parameters": [], "responses": { - "204": { + "200": { "description": "" }, "default": { @@ -40733,81 +43430,14 @@ }, "parameters": [] }, - "/extras/journal-entries/{id}/": { + "/extras/reports/{id}/": { "get": { - "operationId": "extras_journal-entries_read", - "description": "", + "operationId": "extras_reports_read", + "description": "Retrieve a single Report identified as \".\".", "parameters": [], "responses": { "200": { - "description": "", - "schema": { - "$ref": "#/definitions/JournalEntry" - } - }, - "default": { - "description": "", - "schema": { - "additionalProperties": true, - "type": "object" - } - } - }, - "tags": [ - "extras" - ] - }, - "put": { - "operationId": "extras_journal-entries_update", - "description": "", - "parameters": [ - { - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/WritableJournalEntry" - } - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/JournalEntry" - } - }, - "default": { - "description": "", - "schema": { - "additionalProperties": true, - "type": "object" - } - } - }, - "tags": [ - "extras" - ] - }, - "patch": { - "operationId": "extras_journal-entries_partial_update", - "description": "", - "parameters": [ - { - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/WritableJournalEntry" - } - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/JournalEntry" - } + "description": "" }, "default": { "description": "", @@ -40821,12 +43451,22 @@ "extras" ] }, - "delete": { - "operationId": "extras_journal-entries_delete", - "description": "", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ] + }, + "/extras/reports/{id}/run/": { + "post": { + "operationId": "extras_reports_run", + "description": "Run a Report identified as \".