diff --git a/doc/source/openapi-v1.json b/doc/source/openapi-v1.json index 67e04e79..288560b5 100644 --- a/doc/source/openapi-v1.json +++ b/doc/source/openapi-v1.json @@ -1 +1 @@ -{"openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": {"/iamc/datapoints/": {"get": {"tags": ["iamc", "datapoints"], "summary": "Enumerate", "operationId": "enumerate_iamc_datapoints__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "join_parameters", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Join Parameters"}}, {"name": "join_runs", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Join Runs"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "year", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year"}}, {"name": "time_series_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Time Series Id"}}, {"name": "year__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Year In"}}, {"name": "year__gt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Gt"}}, {"name": "year__lt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Lt"}}, {"name": "year__gte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Gte"}}, {"name": "year__lte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Lte"}}, {"name": "time_series_id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Time Series Id In"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/Body_enumerate_iamc_datapoints__get"}], "title": "Body"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__datapoint__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "datapoints"], "summary": "Query", "description": "This endpoint is used to retrieve and optionally filter data.add()\n\nFilter parameters are provided as keyword arguments.\n\nThe available filters can be found here:\n:class:`ixmp4.data.db.iamc.datapoint.filter.DataPointFilter`.\n\nExamples\n--------\n\nFilter data points for a given model, scenario combination, and a number of years:\n\n.. code-block:: json\n\n {\n \"model\" : {\"name\": \"model 1\"},\n \"scenario\" : {\"name\": \"scenario 1\"},\n \"year__in\" : [2020, 2025]\n }\n\nReturn all data for a given variable:\n\n.. code-block:: json\n\n {\n \"variable\": {\"name\": \"Final Energy\"}\n }", "operationId": "query_iamc_datapoints__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "join_parameters", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Join Parameters"}}, {"name": "join_runs", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Join Runs"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/DataPointFilter"}], "default": {}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__datapoint__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/datapoints/bulk/": {"post": {"tags": ["iamc", "datapoints"], "summary": "Bulk Upsert", "description": ":func:`ixmp4.server.rest.iamc.datapoint.bulk_upsert`", "operationId": "bulk_upsert_iamc_datapoints_bulk__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"index": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Data"}}, "required": ["columns", "dtypes", "data"], "title": "Df"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "datapoints"], "summary": "Bulk Delete", "description": ":func:`ixmp4.server.rest.iamc.datapoint.bulk_delete`", "operationId": "bulk_delete_iamc_datapoints_bulk__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"index": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Data"}}, "required": ["columns", "dtypes", "data"], "title": "Df"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/models/": {"get": {"tags": ["docs"], "summary": "List Models", "operationId": "list_models_docs_models__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Models Docs Models Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Models", "operationId": "set_models_docs_models__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/models/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Models", "operationId": "delete_models_docs_models__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/regions/": {"get": {"tags": ["docs"], "summary": "List Regions", "operationId": "list_regions_docs_regions__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Regions Docs Regions Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Regions", "operationId": "set_regions_docs_regions__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/regions/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Regions", "operationId": "delete_regions_docs_regions__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/scenarios/": {"get": {"tags": ["docs"], "summary": "List Scenarios", "operationId": "list_scenarios_docs_scenarios__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Scenarios Docs Scenarios Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Scenarios", "operationId": "set_scenarios_docs_scenarios__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/scenarios/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Scenarios", "operationId": "delete_scenarios_docs_scenarios__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/units/": {"get": {"tags": ["docs"], "summary": "List Units", "operationId": "list_units_docs_units__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Units Docs Units Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Units", "operationId": "set_units_docs_units__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/units/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Units", "operationId": "delete_units_docs_units__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/iamc/variables/": {"get": {"tags": ["docs"], "summary": "List Variables", "operationId": "list_variables_docs_iamc_variables__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Variables Docs Iamc Variables Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Variables", "operationId": "set_variables_docs_iamc_variables__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/iamc/variables/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Variables", "operationId": "delete_variables_docs_iamc_variables__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/optimization/indexsets/": {"get": {"tags": ["docs"], "summary": "List Indexsets", "operationId": "list_indexsets_docs_optimization_indexsets__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Indexsets Docs Optimization Indexsets Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Indexsets", "operationId": "set_indexsets_docs_optimization_indexsets__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/optimization/indexsets/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Indexsets", "operationId": "delete_indexsets_docs_optimization_indexsets__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/models/": {"get": {"tags": ["iamc", "models"], "summary": "Enumerate", "operationId": "enumerate_iamc_models__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/Body_enumerate_iamc_models__get"}], "title": "Body"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__model__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "models"], "summary": "Query", "operationId": "query_iamc_models__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/IamcModelFilter"}], "default": {"run": {"default_only": true, "is_default": true}}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__model__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/scenarios/": {"get": {"tags": ["iamc", "scenarios"], "summary": "Enumerate", "operationId": "enumerate_iamc_scenarios__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/Body_enumerate_iamc_scenarios__get"}], "title": "Body"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__scenario__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "scenarios"], "summary": "Query", "operationId": "query_iamc_scenarios__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/IamcScenarioFilter"}], "default": {"run": {"default_only": true, "is_default": true}}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__scenario__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/regions/": {"get": {"tags": ["iamc", "regions"], "summary": "Enumerate", "operationId": "enumerate_iamc_regions__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "hierarchy", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "hierarchy__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Hierarchy In"}}, {"name": "hierarchy__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like"}}, {"name": "hierarchy__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike"}}, {"name": "hierarchy__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike"}}, {"name": "hierarchy__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__region__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "regions"], "summary": "Query", "operationId": "query_iamc_regions__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/IamcRegionFilter"}], "default": {"run": {"default_only": true, "is_default": true}}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__region__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/units/": {"get": {"tags": ["iamc", "units"], "summary": "Enumerate", "operationId": "enumerate_iamc_units__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__unit__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "units"], "summary": "Query", "operationId": "query_iamc_units__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/IamcUnitFilter"}], "default": {"run": {"default_only": true, "is_default": true}}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__unit__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/variables/": {"get": {"tags": ["iamc", "variables"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.iamc.variable.enumerate`", "operationId": "enumerate_iamc_variables__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/Body_enumerate_iamc_variables__get"}], "title": "Body"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__variable__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "variables"], "summary": "Query", "description": ":func:`ixmp4.server.rest.iamc.variable.query`", "operationId": "query_iamc_variables__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__variable__filter__VariableFilter"}], "default": {"run": {"default_only": true, "is_default": true}}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__variable__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["iamc", "variables"], "summary": "Create", "description": ":func:`ixmp4.server.rest.iamc.variable.create`", "operationId": "create_iamc_variables__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VariableInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Variable"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/optimization/indexsets/": {"get": {"tags": ["optimization", "indexsets"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.optimization.indexset.enumerate`", "operationId": "enumerate_optimization_indexsets__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "run_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "run_id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Run Id In"}}, {"name": "run_id__gt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gt"}}, {"name": "run_id__lt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lt"}}, {"name": "run_id__gte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gte"}}, {"name": "run_id__lte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lte"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__optimization__indexset__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["optimization", "indexsets"], "summary": "Query", "description": ":func:`ixmp4.server.rest.optimization.indexset.query`", "operationId": "query_optimization_indexsets__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/OptimizationIndexSetFilter"}], "default": {}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__optimization__indexset__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["optimization", "indexsets"], "summary": "Create", "description": ":func:`ixmp4.server.rest.optimization.indexset.create`", "operationId": "create_optimization_indexsets__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/IndexSetInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/IndexSet"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/optimization/indexsets/{indexset_id}/": {"patch": {"tags": ["optimization", "indexsets"], "summary": "Add Elements", "description": ":func:`ixmp4.server.rest.optimization.indexset.add_elements`", "operationId": "add_elements_optimization_indexsets__indexset_id___patch", "parameters": [{"name": "indexset_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Indexset Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ElementsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/meta/": {"get": {"tags": ["meta"], "summary": "Enumerate", "operationId": "enumerate_meta__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "run_ids", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Run Ids"}}, {"name": "keys", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Keys"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__meta__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["meta"], "summary": "Create", "operationId": "create_meta__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RunMetaEntryInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RunMetaEntry"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/meta/{id}/": {"delete": {"tags": ["meta"], "summary": "Delete", "operationId": "delete_meta__id___delete", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/meta/bulk/": {"post": {"tags": ["meta"], "summary": "Bulk Upsert", "operationId": "bulk_upsert_meta_bulk__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"index": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Data"}}, "required": ["columns", "dtypes", "data"], "title": "Df"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["meta"], "summary": "Bulk Delete", "operationId": "bulk_delete_meta_bulk__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"index": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Data"}}, "required": ["columns", "dtypes", "data"], "title": "Df"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/models/": {"get": {"tags": ["models"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.model.enumerate`", "operationId": "enumerate_models__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/IamcModelFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__model__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["models"], "summary": "Query", "description": ":func:`ixmp4.server.rest.model.query`", "operationId": "query_models__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__model__filter__ModelFilter"}], "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__model__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["models"], "summary": "Create", "description": ":func:`ixmp4.server.rest.model.create`", "operationId": "create_models__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ModelInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Model"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/regions/": {"get": {"tags": ["regions"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.region.enumerate`", "operationId": "enumerate_regions__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "hierarchy", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "hierarchy__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Hierarchy In"}}, {"name": "hierarchy__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like"}}, {"name": "hierarchy__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike"}}, {"name": "hierarchy__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike"}}, {"name": "hierarchy__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/IamcRegionFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__region__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["regions"], "summary": "Query", "description": ":func:`ixmp4.server.rest.region.query`", "operationId": "query_regions__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__region__filter__RegionFilter"}], "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__region__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["regions"], "summary": "Create", "description": ":func:`ixmp4.server.rest.region.create`", "operationId": "create_regions__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RegionInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Region"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/regions/{id}/": {"delete": {"tags": ["regions"], "summary": "Delete", "operationId": "delete_regions__id___delete", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/runs/": {"get": {"tags": ["runs"], "summary": "Enumerate", "operationId": "enumerate_runs__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "version", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version"}}, {"name": "default_only", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": true, "title": "Default Only"}}, {"name": "is_default", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Default"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "version__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Version In"}}, {"name": "version__gt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gt"}}, {"name": "version__lt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lt"}}, {"name": "version__gte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gte"}}, {"name": "version__lte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lte"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/Body_enumerate_runs__get"}], "title": "Body"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__run__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["runs"], "summary": "Query", "operationId": "query_runs__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__run__filter__RunFilter"}], "default": {"default_only": true, "is_default": false}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__run__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["runs"], "summary": "Create", "operationId": "create_runs__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RunInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Run"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/runs/{id}/set-as-default-version/": {"post": {"tags": ["runs"], "summary": "Set As Default Version", "operationId": "set_as_default_version_runs__id__set_as_default_version__post", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/runs/{id}/unset-as-default-version/": {"post": {"tags": ["runs"], "summary": "Unset As Default Version", "operationId": "unset_as_default_version_runs__id__unset_as_default_version__post", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/scenarios/": {"get": {"tags": ["scenarios"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.scenario.enumerate`", "operationId": "enumerate_scenarios__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/IamcScenarioFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__scenario__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["scenarios"], "summary": "Query", "description": ":func:`ixmp4.server.rest.scenario.query`", "operationId": "query_scenarios__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__scenario__filter__ScenarioFilter"}], "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__scenario__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["scenarios"], "summary": "Create", "description": ":func:`ixmp4.server.rest.scenario.create`", "operationId": "create_scenarios__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ScenarioInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Scenario"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/timeseries/": {"get": {"tags": ["iamc", "timeseries"], "summary": "Enumerate", "operationId": "enumerate_iamc_timeseries__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "join_parameters", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Join Parameters"}}, {"name": "run_ids", "in": "query", "required": false, "schema": {"type": "array", "items": {"type": "integer"}, "title": "Run Ids"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__timeseries__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["iamc", "timeseries"], "summary": "Create", "operationId": "create_iamc_timeseries__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/TimeSeriesInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Run"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/timeseries/{id}/": {"get": {"tags": ["iamc", "timeseries"], "summary": "Get By Id", "operationId": "get_by_id_iamc_timeseries__id___get", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/TimeSeries"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/timeseries/bulk/": {"post": {"tags": ["iamc", "timeseries"], "summary": "Bulk Upsert", "operationId": "bulk_upsert_iamc_timeseries_bulk__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "create_related", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Create Related"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"index": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Data"}}, "required": ["columns", "dtypes", "data"], "title": "Df"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/units/": {"get": {"tags": ["units"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.unit.enumerate`", "operationId": "enumerate_units__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/IamcUnitFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__unit__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["units"], "summary": "Query", "description": ":func:`ixmp4.server.rest.unit.query`", "operationId": "query_units__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__unit__filter__UnitFilter"}], "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__unit__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["units"], "summary": "Create", "operationId": "create_units__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UnitInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Unit"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/units/{id}/": {"delete": {"tags": ["units"], "summary": "Delete", "operationId": "delete_units__id___delete", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/": {"get": {"summary": "Root", "operationId": "root__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/APIInfo"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}}, "components": {"schemas": {"APIInfo": {"properties": {"name": {"type": "string", "title": "Name"}, "version": {"type": "string", "title": "Version"}, "is_managed": {"type": "boolean", "title": "Is Managed"}, "manager_url": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Manager Url"}, "utcnow": {"type": "string", "format": "date-time", "title": "Utcnow"}}, "type": "object", "required": ["name", "version", "is_managed", "manager_url", "utcnow"], "title": "APIInfo"}, "Body_enumerate_iamc_datapoints__get": {"properties": {"region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__RegionFilter"}, {"type": "null"}]}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__UnitFilter"}, {"type": "null"}]}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__VariableFilter"}, {"type": "null"}]}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__ModelFilter"}, {"type": "null"}]}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__ScenarioFilter"}, {"type": "null"}]}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__RunFilter"}, {"type": "null"}]}}, "type": "object", "title": "Body_enumerate_iamc_datapoints__get"}, "Body_enumerate_iamc_models__get": {"properties": {"region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}]}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}]}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}]}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__model__filter__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}}}, "type": "object", "title": "Body_enumerate_iamc_models__get"}, "Body_enumerate_iamc_scenarios__get": {"properties": {"region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}]}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}]}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}]}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__scenario__filter__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}}}, "type": "object", "title": "Body_enumerate_iamc_scenarios__get"}, "Body_enumerate_iamc_variables__get": {"properties": {"region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}]}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}]}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}]}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__run__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}}}, "type": "object", "title": "Body_enumerate_iamc_variables__get"}, "Body_enumerate_runs__get": {"properties": {"model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__model__ModelFilter"}, {"type": "null"}]}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__scenario__ScenarioFilter"}, {"type": "null"}]}}, "type": "object", "title": "Body_enumerate_runs__get"}, "DataFrame": {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}, "DataPoint": {"properties": {"id": {"type": "integer", "title": "Id"}, "time_series__id": {"type": "integer", "title": "Time Series Id"}, "value": {"type": "number", "title": "Value"}, "type": {"type": "string", "title": "Type"}, "step_category": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Step Category"}, "step_year": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Step Year"}, "step_datetime": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Step Datetime"}}, "type": "object", "required": ["id", "time_series__id", "value", "type", "step_category", "step_year", "step_datetime"], "title": "DataPoint"}, "DataPointFilter": {"properties": {"year": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year", "sqla_column": "step_year"}, "time_series_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Time Series Id", "sqla_column": "time_series__id"}, "region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__RegionFilter"}, {"type": "null"}], "sqla_column": "region"}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__UnitFilter"}, {"type": "null"}], "sqla_column": "unit"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__ModelFilter"}, {"type": "null"}], "sqla_column": "model"}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__ScenarioFilter"}, {"type": "null"}], "sqla_column": "scenario"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__RunFilter"}, {"type": "null"}], "sqla_column": "run"}, "year__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Year In", "sqla_column": "step_year"}, "year__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Gt", "sqla_column": "step_year"}, "year__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Lt", "sqla_column": "step_year"}, "year__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Gte", "sqla_column": "step_year"}, "year__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Lte", "sqla_column": "step_year"}, "time_series_id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Time Series Id In", "sqla_column": "time_series__id"}}, "additionalProperties": false, "type": "object", "title": "run", "description": "This class is used for filtering data points\n\nAll parameters are optional. Use the field name (or the field alias)\ndirectly for equality comparisons. For performing an SQL IN operation\nuse the field name followed by a double underscore and *in*.\n\nParameters\n----------\nstep_year : filters.Integer, Optional\n Filter for data point year, can also be called with \"year\"\ntime_series__id : filters.Id, Optional\n Filter for the id of the time series, can also be called with \"time_series_id\"\nregion : RegionFilter, Optional\n Filter for either region name or hierarchy\nunit : UnitFilter, Optional\n Filter for unit name\nvariable : VariableFilter, Optional\n Filter for variable name\nmodel : ModelFilter, Optional\n Filter for model name\nscenario : ScenarioFilter, Optional\n Filter for the scenario name\nrun : RunFilter, Optional\n Filter for the run, options are id or default_only\n\nExamples\n--------\n\nReturn all data points for a given year.\n\n>>> DataPointFilter(year = 2020)\n\nReturn all data points a number of years\n\n>>> DataPointFilter(year__in = [2020, 2025])\n\nReturn all data point that map to a given variable\n\n>>> DataPointFilter(variable = VariableFilter(name = \"variable 1\"))\n\nNote that for actual use providing the filter parameters as key word arguments is\nsufficient. Calling an endpoint could look like this:\n\n>>> filter = {\"variable\": {\"name\": \"variable 1\"}, \"year\": 2020}\n>>> iamc.tabulate(**filter)"}, "Docs": {"properties": {"id": {"type": "integer", "title": "Id"}, "description": {"type": "string", "title": "Description"}, "dimension__id": {"type": "integer", "title": "Dimension Id"}}, "type": "object", "required": ["id", "description", "dimension__id"], "title": "Docs"}, "DocsInput": {"properties": {"dimension_id": {"type": "integer", "title": "Dimension Id"}, "description": {"type": "string", "title": "Description"}}, "type": "object", "required": ["dimension_id", "description"], "title": "DocsInput"}, "ElementsInput": {"properties": {"elements": {"anyOf": [{"type": "integer"}, {"items": {"anyOf": [{"type": "integer"}, {"type": "string"}]}, "type": "array"}, {"type": "string"}], "title": "Elements"}}, "type": "object", "required": ["elements"], "title": "ElementsInput"}, "HTTPValidationError": {"properties": {"detail": {"items": {"$ref": "#/components/schemas/ValidationError"}, "type": "array", "title": "Detail"}}, "type": "object", "title": "HTTPValidationError"}, "IamcModelFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}], "sqla_column": "region"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}], "sqla_column": "unit"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__model__filter__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "sqla_column": "run"}}, "additionalProperties": false, "type": "object", "title": "run"}, "IamcRegionFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "hierarchy": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy", "sqla_column": "hierarchy"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "hierarchy__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Hierarchy In", "sqla_column": "hierarchy"}, "hierarchy__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like", "sqla_column": "hierarchy"}, "hierarchy__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike", "sqla_column": "hierarchy"}, "hierarchy__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike", "sqla_column": "hierarchy"}, "hierarchy__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike", "sqla_column": "hierarchy"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}], "sqla_column": "unit"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__run__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "sqla_column": "run"}}, "additionalProperties": false, "type": "object", "title": "run"}, "IamcScenarioFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}], "sqla_column": "region"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}], "sqla_column": "unit"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__scenario__filter__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "sqla_column": "run"}}, "additionalProperties": false, "type": "object", "title": "run"}, "IamcUnitFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}], "sqla_column": "region"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__run__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "sqla_column": "run"}}, "additionalProperties": false, "type": "object", "title": "run"}, "IndexSet": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "elements": {"anyOf": [{"type": "integer"}, {"items": {"anyOf": [{"type": "integer"}, {"type": "string"}]}, "type": "array"}, {"type": "string"}, {"type": "null"}], "title": "Elements"}, "run__id": {"type": "integer", "title": "Run Id"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name", "elements", "run__id", "created_at", "created_by"], "title": "IndexSet"}, "IndexSetInput": {"properties": {"run_id": {"type": "integer", "title": "Run Id"}, "name": {"type": "string", "title": "Name"}}, "type": "object", "required": ["run_id", "name"], "title": "IndexSetInput"}, "Model": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name"], "title": "Model"}, "ModelInput": {"properties": {"name": {"type": "string", "title": "Name"}}, "type": "object", "required": ["name"], "title": "ModelInput"}, "OptimizationIndexSetFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "run_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id", "sqla_column": "run__id"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "run_id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Run Id In", "sqla_column": "run__id"}, "run_id__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gt", "sqla_column": "run__id"}, "run_id__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lt", "sqla_column": "run__id"}, "run_id__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gte", "sqla_column": "run__id"}, "run_id__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lte", "sqla_column": "run__id"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "Region": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "hierarchy": {"type": "string", "title": "Hierarchy"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name", "hierarchy"], "title": "Region"}, "RegionInput": {"properties": {"name": {"type": "string", "title": "Name"}, "hierarchy": {"type": "string", "title": "Hierarchy"}}, "type": "object", "required": ["name", "hierarchy"], "title": "RegionInput"}, "Run": {"properties": {"id": {"type": "integer", "title": "Id"}, "model": {"$ref": "#/components/schemas/Model"}, "model__id": {"type": "integer", "title": "Model Id"}, "scenario": {"$ref": "#/components/schemas/Scenario"}, "scenario__id": {"type": "integer", "title": "Scenario Id"}, "version": {"type": "integer", "title": "Version"}, "is_default": {"type": "boolean", "title": "Is Default"}}, "type": "object", "required": ["id", "model", "model__id", "scenario", "scenario__id", "version", "is_default"], "title": "Run"}, "RunInput": {"properties": {"model_name": {"type": "string", "title": "Model Name"}, "scenario_name": {"type": "string", "title": "Scenario Name"}}, "type": "object", "required": ["model_name", "scenario_name"], "title": "RunInput"}, "RunMetaEntry": {"properties": {"id": {"type": "integer", "title": "Id"}, "run__id": {"type": "integer", "title": "Run Id"}, "key": {"type": "string", "title": "Key"}, "type": {"type": "string", "title": "Type"}, "value": {"anyOf": [{"type": "boolean"}, {"type": "integer"}, {"type": "number"}, {"type": "string"}], "title": "Value"}}, "type": "object", "required": ["id", "run__id", "key", "type", "value"], "title": "RunMetaEntry"}, "RunMetaEntryInput": {"properties": {"run__id": {"type": "integer", "title": "Run Id"}, "key": {"type": "string", "title": "Key"}, "value": {"anyOf": [{"type": "boolean"}, {"type": "integer"}, {"type": "number"}, {"type": "string"}], "title": "Value"}}, "type": "object", "required": ["run__id", "key", "value"], "title": "RunMetaEntryInput"}, "Scenario": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name"], "title": "Scenario"}, "ScenarioInput": {"properties": {"name": {"type": "string", "title": "Name"}}, "type": "object", "required": ["name"], "title": "ScenarioInput"}, "TimeSeries": {"properties": {"id": {"type": "integer", "title": "Id"}, "run__id": {"type": "integer", "title": "Run Id"}, "parameters": {"type": "object", "title": "Parameters"}}, "type": "object", "required": ["id", "run__id", "parameters"], "title": "TimeSeries"}, "TimeSeriesInput": {"properties": {"run__id": {"type": "integer", "title": "Run Id"}, "parameters": {"type": "object", "title": "Parameters"}}, "type": "object", "required": ["run__id", "parameters"], "title": "TimeSeriesInput"}, "Unit": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name"], "title": "Unit"}, "UnitInput": {"properties": {"name": {"type": "string", "title": "Name"}}, "type": "object", "required": ["name"], "title": "UnitInput"}, "ValidationError": {"properties": {"loc": {"items": {"anyOf": [{"type": "string"}, {"type": "integer"}]}, "type": "array", "title": "Location"}, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}}, "type": "object", "required": ["loc", "msg", "type"], "title": "ValidationError"}, "Variable": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name"], "title": "Variable"}, "VariableInput": {"properties": {"name": {"type": "string", "title": "Name"}}, "type": "object", "required": ["name"], "title": "VariableInput"}, "ixmp4__data__db__filters__model__ModelFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__filters__region__RegionFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "hierarchy": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy", "sqla_column": "hierarchy"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "hierarchy__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Hierarchy In", "sqla_column": "hierarchy"}, "hierarchy__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like", "sqla_column": "hierarchy"}, "hierarchy__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike", "sqla_column": "hierarchy"}, "hierarchy__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike", "sqla_column": "hierarchy"}, "hierarchy__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike", "sqla_column": "hierarchy"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__filters__run__RunFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "version": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version", "sqla_column": "version"}, "default_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Default Only", "default": true, "sqla_column": "default_only"}, "is_default": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Default", "sqla_column": "is_default"}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__model__ModelFilter"}, {"type": "null"}], "sqla_column": "model"}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__scenario__ScenarioFilter"}, {"type": "null"}], "sqla_column": "scenario"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "version__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Version In", "sqla_column": "version"}, "version__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gt", "sqla_column": "version"}, "version__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lt", "sqla_column": "version"}, "version__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gte", "sqla_column": "version"}, "version__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lte", "sqla_column": "version"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__filters__scenario__ScenarioFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__filters__unit__UnitFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__filters__variable__VariableFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__ModelFilter": {"properties": {"name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__RegionFilter": {"properties": {"name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "hierarchy": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy", "sqla_column": "hierarchy"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "hierarchy__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Hierarchy In", "sqla_column": "hierarchy"}, "hierarchy__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like", "sqla_column": "hierarchy"}, "hierarchy__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike", "sqla_column": "hierarchy"}, "hierarchy__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike", "sqla_column": "hierarchy"}, "hierarchy__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike", "sqla_column": "hierarchy"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__RunFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "default_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Default Only", "default": false, "sqla_column": "default_only"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__ScenarioFilter": {"properties": {"name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__UnitFilter": {"properties": {"name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__VariableFilter": {"properties": {"name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__variable__filter__VariableFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}], "sqla_column": "region"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}], "sqla_column": "unit"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__run__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "sqla_column": "run"}}, "additionalProperties": false, "type": "object", "title": "run"}, "ixmp4__data__db__model__filter__ModelFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "iamc": {"anyOf": [{"$ref": "#/components/schemas/IamcModelFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc", "sqla_column": "iamc"}}, "additionalProperties": false, "type": "object", "title": "iamc"}, "ixmp4__data__db__model__filter__RunFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "version": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version", "sqla_column": "version"}, "default_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Default Only", "default": true, "sqla_column": "default_only"}, "is_default": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Default", "sqla_column": "is_default"}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__model__ModelFilter"}, {"type": "null"}], "sqla_column": "model"}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__scenario__ScenarioFilter"}, {"type": "null"}], "sqla_column": "scenario"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "version__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Version In", "sqla_column": "version"}, "version__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gt", "sqla_column": "version"}, "version__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lt", "sqla_column": "version"}, "version__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gte", "sqla_column": "version"}, "version__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lte", "sqla_column": "version"}}, "additionalProperties": false, "type": "object", "title": "model"}, "ixmp4__data__db__region__filter__RegionFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "hierarchy": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy", "sqla_column": "hierarchy"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "hierarchy__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Hierarchy In", "sqla_column": "hierarchy"}, "hierarchy__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like", "sqla_column": "hierarchy"}, "hierarchy__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike", "sqla_column": "hierarchy"}, "hierarchy__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike", "sqla_column": "hierarchy"}, "hierarchy__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike", "sqla_column": "hierarchy"}, "iamc": {"anyOf": [{"$ref": "#/components/schemas/IamcRegionFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc", "sqla_column": "iamc"}}, "additionalProperties": false, "type": "object", "title": "iamc"}, "ixmp4__data__db__run__filter__RunFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "version": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version", "sqla_column": "version"}, "default_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Default Only", "default": true, "sqla_column": "default_only"}, "is_default": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Default", "sqla_column": "is_default"}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__model__ModelFilter"}, {"type": "null"}], "sqla_column": "model"}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__scenario__ScenarioFilter"}, {"type": "null"}], "sqla_column": "scenario"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "version__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Version In", "sqla_column": "version"}, "version__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gt", "sqla_column": "version"}, "version__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lt", "sqla_column": "version"}, "version__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gte", "sqla_column": "version"}, "version__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lte", "sqla_column": "version"}}, "additionalProperties": false, "type": "object", "title": "RunFilter"}, "ixmp4__data__db__scenario__filter__RunFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "version": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version", "sqla_column": "version"}, "default_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Default Only", "default": true, "sqla_column": "default_only"}, "is_default": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Default", "sqla_column": "is_default"}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__model__ModelFilter"}, {"type": "null"}], "sqla_column": "model"}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__scenario__ScenarioFilter"}, {"type": "null"}], "sqla_column": "scenario"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "version__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Version In", "sqla_column": "version"}, "version__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gt", "sqla_column": "version"}, "version__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lt", "sqla_column": "version"}, "version__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gte", "sqla_column": "version"}, "version__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lte", "sqla_column": "version"}}, "additionalProperties": false, "type": "object", "title": "scenario"}, "ixmp4__data__db__scenario__filter__ScenarioFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "iamc": {"anyOf": [{"$ref": "#/components/schemas/IamcScenarioFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc", "sqla_column": "iamc"}}, "additionalProperties": false, "type": "object", "title": "iamc"}, "ixmp4__data__db__unit__filter__UnitFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "iamc": {"anyOf": [{"$ref": "#/components/schemas/IamcUnitFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc", "sqla_column": "iamc"}}, "additionalProperties": false, "type": "object", "title": "iamc"}, "ixmp4__server__rest__iamc__datapoint__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/DataPoint"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__model__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Model"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__region__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Region"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__scenario__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Scenario"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__timeseries__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/TimeSeries"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__unit__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Unit"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__variable__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Variable"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__meta__EnumerationOutput": {"anyOf": [{"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}, {"items": {"$ref": "#/components/schemas/RunMetaEntry"}, "type": "array"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__model__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Model"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__optimization__indexset__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/IndexSet"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__region__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Region"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__run__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Run"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__scenario__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Scenario"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__unit__EnumerationOutput": {"anyOf": [{"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}, {"items": {"$ref": "#/components/schemas/Unit"}, "type": "array"}], "title": "EnumerationOutput"}}}} \ No newline at end of file +{"openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": {"/iamc/datapoints/": {"get": {"tags": ["iamc", "datapoints"], "summary": "Enumerate", "operationId": "enumerate_iamc_datapoints__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "join_parameters", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Join Parameters"}}, {"name": "join_runs", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Join Runs"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "year", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year"}}, {"name": "time_series_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Time Series Id"}}, {"name": "year__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Year In"}}, {"name": "year__gt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Gt"}}, {"name": "year__lt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Lt"}}, {"name": "year__gte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Gte"}}, {"name": "year__lte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Lte"}}, {"name": "time_series_id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Time Series Id In"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/Body_enumerate_iamc_datapoints__get"}], "title": "Body"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__datapoint__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "datapoints"], "summary": "Query", "description": "This endpoint is used to retrieve and optionally filter data.add()\n\nFilter parameters are provided as keyword arguments.\n\nThe available filters can be found here:\n:class:`ixmp4.data.db.iamc.datapoint.filter.DataPointFilter`.\n\nExamples\n--------\n\nFilter data points for a given model, scenario combination, and a number of years:\n\n.. code-block:: json\n\n {\n \"model\" : {\"name\": \"model 1\"},\n \"scenario\" : {\"name\": \"scenario 1\"},\n \"year__in\" : [2020, 2025]\n }\n\nReturn all data for a given variable:\n\n.. code-block:: json\n\n {\n \"variable\": {\"name\": \"Final Energy\"}\n }", "operationId": "query_iamc_datapoints__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "join_parameters", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Join Parameters"}}, {"name": "join_runs", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Join Runs"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/DataPointFilter"}], "default": {}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__datapoint__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/datapoints/bulk/": {"post": {"tags": ["iamc", "datapoints"], "summary": "Bulk Upsert", "description": ":func:`ixmp4.server.rest.iamc.datapoint.bulk_upsert`", "operationId": "bulk_upsert_iamc_datapoints_bulk__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"index": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Data"}}, "required": ["columns", "dtypes", "data"], "title": "Df"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "datapoints"], "summary": "Bulk Delete", "description": ":func:`ixmp4.server.rest.iamc.datapoint.bulk_delete`", "operationId": "bulk_delete_iamc_datapoints_bulk__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"index": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Data"}}, "required": ["columns", "dtypes", "data"], "title": "Df"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/models/": {"get": {"tags": ["docs"], "summary": "List Models", "operationId": "list_models_docs_models__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Models Docs Models Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Models", "operationId": "set_models_docs_models__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/models/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Models", "operationId": "delete_models_docs_models__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/regions/": {"get": {"tags": ["docs"], "summary": "List Regions", "operationId": "list_regions_docs_regions__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Regions Docs Regions Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Regions", "operationId": "set_regions_docs_regions__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/regions/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Regions", "operationId": "delete_regions_docs_regions__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/scenarios/": {"get": {"tags": ["docs"], "summary": "List Scenarios", "operationId": "list_scenarios_docs_scenarios__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Scenarios Docs Scenarios Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Scenarios", "operationId": "set_scenarios_docs_scenarios__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/scenarios/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Scenarios", "operationId": "delete_scenarios_docs_scenarios__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/units/": {"get": {"tags": ["docs"], "summary": "List Units", "operationId": "list_units_docs_units__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Units Docs Units Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Units", "operationId": "set_units_docs_units__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/units/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Units", "operationId": "delete_units_docs_units__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/iamc/variables/": {"get": {"tags": ["docs"], "summary": "List Variables", "operationId": "list_variables_docs_iamc_variables__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Variables Docs Iamc Variables Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Variables", "operationId": "set_variables_docs_iamc_variables__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/iamc/variables/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Variables", "operationId": "delete_variables_docs_iamc_variables__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/optimization/indexsets/": {"get": {"tags": ["docs"], "summary": "List Indexsets", "operationId": "list_indexsets_docs_optimization_indexsets__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "dimension_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Dimension Id"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Docs"}, "title": "Response List Indexsets Docs Optimization Indexsets Get"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["docs"], "summary": "Set Indexsets", "operationId": "set_indexsets_docs_optimization_indexsets__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DocsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Docs"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/docs/optimization/indexsets/{dimension_id}/": {"delete": {"tags": ["docs"], "summary": "Delete Indexsets", "operationId": "delete_indexsets_docs_optimization_indexsets__dimension_id___delete", "parameters": [{"name": "dimension_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Dimension Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/models/": {"get": {"tags": ["iamc", "models"], "summary": "Enumerate", "operationId": "enumerate_iamc_models__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/Body_enumerate_iamc_models__get"}], "title": "Body"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__model__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "models"], "summary": "Query", "operationId": "query_iamc_models__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/IamcModelFilter"}], "default": {"run": {"default_only": true, "is_default": true}}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__model__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/scenarios/": {"get": {"tags": ["iamc", "scenarios"], "summary": "Enumerate", "operationId": "enumerate_iamc_scenarios__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/Body_enumerate_iamc_scenarios__get"}], "title": "Body"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__scenario__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "scenarios"], "summary": "Query", "operationId": "query_iamc_scenarios__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/IamcScenarioFilter"}], "default": {"run": {"default_only": true, "is_default": true}}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__scenario__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/regions/": {"get": {"tags": ["iamc", "regions"], "summary": "Enumerate", "operationId": "enumerate_iamc_regions__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "hierarchy", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "hierarchy__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Hierarchy In"}}, {"name": "hierarchy__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like"}}, {"name": "hierarchy__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike"}}, {"name": "hierarchy__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike"}}, {"name": "hierarchy__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__region__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "regions"], "summary": "Query", "operationId": "query_iamc_regions__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/IamcRegionFilter"}], "default": {"run": {"default_only": true, "is_default": true}}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__region__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/units/": {"get": {"tags": ["iamc", "units"], "summary": "Enumerate", "operationId": "enumerate_iamc_units__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__unit__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "units"], "summary": "Query", "operationId": "query_iamc_units__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/IamcUnitFilter"}], "default": {"run": {"default_only": true, "is_default": true}}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__unit__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/variables/": {"get": {"tags": ["iamc", "variables"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.iamc.variable.enumerate`", "operationId": "enumerate_iamc_variables__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/Body_enumerate_iamc_variables__get"}], "title": "Body"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__variable__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["iamc", "variables"], "summary": "Query", "description": ":func:`ixmp4.server.rest.iamc.variable.query`", "operationId": "query_iamc_variables__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__variable__filter__VariableFilter"}], "default": {"run": {"default_only": true, "is_default": true}}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__variable__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["iamc", "variables"], "summary": "Create", "description": ":func:`ixmp4.server.rest.iamc.variable.create`", "operationId": "create_iamc_variables__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VariableInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Variable"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/optimization/indexsets/": {"get": {"tags": ["optimization", "indexsets"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.optimization.indexset.enumerate`", "operationId": "enumerate_optimization_indexsets__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "run_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "run_id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Run Id In"}}, {"name": "run_id__gt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gt"}}, {"name": "run_id__lt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lt"}}, {"name": "run_id__gte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gte"}}, {"name": "run_id__lte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lte"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__optimization__indexset__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["optimization", "indexsets"], "summary": "Query", "description": ":func:`ixmp4.server.rest.optimization.indexset.query`", "operationId": "query_optimization_indexsets__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/OptimizationIndexSetFilter"}], "default": {}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__optimization__indexset__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["optimization", "indexsets"], "summary": "Create", "description": ":func:`ixmp4.server.rest.optimization.indexset.create`", "operationId": "create_optimization_indexsets__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/IndexSetInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/IndexSet"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/optimization/indexsets/{indexset_id}/": {"patch": {"tags": ["optimization", "indexsets"], "summary": "Add Elements", "description": ":func:`ixmp4.server.rest.optimization.indexset.add_elements`", "operationId": "add_elements_optimization_indexsets__indexset_id___patch", "parameters": [{"name": "indexset_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Indexset Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ElementsInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/meta/": {"get": {"tags": ["meta"], "summary": "Enumerate", "operationId": "enumerate_meta__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "type", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Type"}}, {"name": "run_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id"}}, {"name": "key", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Key"}}, {"name": "value_int", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Int"}}, {"name": "value_str", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Value Str"}}, {"name": "value_float", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Float"}}, {"name": "value_bool", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Value Bool"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "type__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Type In"}}, {"name": "type__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Type Like"}}, {"name": "type__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Type Ilike"}}, {"name": "type__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Type Notlike"}}, {"name": "type__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Type Notilike"}}, {"name": "run_id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Run Id In"}}, {"name": "run_id__gt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gt"}}, {"name": "run_id__lt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lt"}}, {"name": "run_id__gte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gte"}}, {"name": "run_id__lte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lte"}}, {"name": "key__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Key In"}}, {"name": "key__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Key Like"}}, {"name": "key__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Key Ilike"}}, {"name": "key__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Key Notlike"}}, {"name": "key__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Key Notilike"}}, {"name": "value_int__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Value Int In"}}, {"name": "value_int__gt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Int Gt"}}, {"name": "value_int__lt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Int Lt"}}, {"name": "value_int__gte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Int Gte"}}, {"name": "value_int__lte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Int Lte"}}, {"name": "value_str__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Value Str In"}}, {"name": "value_str__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Value Str Like"}}, {"name": "value_str__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Value Str Ilike"}}, {"name": "value_str__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Value Str Notlike"}}, {"name": "value_str__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Value Str Notilike"}}, {"name": "value_float__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Value Float In"}}, {"name": "value_float__gt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Float Gt"}}, {"name": "value_float__lt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Float Lt"}}, {"name": "value_float__gte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Float Gte"}}, {"name": "value_float__lte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Float Lte"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__meta__filter__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "title": "Run"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__meta__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["meta"], "summary": "Query", "operationId": "query_meta__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/RunMetaEntryFilter"}], "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__meta__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["meta"], "summary": "Create", "operationId": "create_meta__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RunMetaEntryInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RunMetaEntry"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/meta/{id}/": {"delete": {"tags": ["meta"], "summary": "Delete", "operationId": "delete_meta__id___delete", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/meta/bulk/": {"post": {"tags": ["meta"], "summary": "Bulk Upsert", "operationId": "bulk_upsert_meta_bulk__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"index": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Data"}}, "required": ["columns", "dtypes", "data"], "title": "Df"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["meta"], "summary": "Bulk Delete", "operationId": "bulk_delete_meta_bulk__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"index": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Data"}}, "required": ["columns", "dtypes", "data"], "title": "Df"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/models/": {"get": {"tags": ["models"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.model.enumerate`", "operationId": "enumerate_models__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/IamcModelFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__model__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["models"], "summary": "Query", "description": ":func:`ixmp4.server.rest.model.query`", "operationId": "query_models__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__model__filter__ModelFilter"}], "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__model__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["models"], "summary": "Create", "description": ":func:`ixmp4.server.rest.model.create`", "operationId": "create_models__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ModelInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Model"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/regions/": {"get": {"tags": ["regions"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.region.enumerate`", "operationId": "enumerate_regions__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "hierarchy", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "hierarchy__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Hierarchy In"}}, {"name": "hierarchy__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like"}}, {"name": "hierarchy__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike"}}, {"name": "hierarchy__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike"}}, {"name": "hierarchy__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/IamcRegionFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__region__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["regions"], "summary": "Query", "description": ":func:`ixmp4.server.rest.region.query`", "operationId": "query_regions__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__region__filter__RegionFilter"}], "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__region__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["regions"], "summary": "Create", "description": ":func:`ixmp4.server.rest.region.create`", "operationId": "create_regions__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RegionInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Region"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/regions/{id}/": {"delete": {"tags": ["regions"], "summary": "Delete", "operationId": "delete_regions__id___delete", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/runs/": {"get": {"tags": ["runs"], "summary": "Enumerate", "operationId": "enumerate_runs__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "version", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version"}}, {"name": "default_only", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": true, "title": "Default Only"}}, {"name": "is_default", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Default"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "version__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Version In"}}, {"name": "version__gt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gt"}}, {"name": "version__lt", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lt"}}, {"name": "version__gte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gte"}}, {"name": "version__lte", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lte"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/Body_enumerate_runs__get"}], "title": "Body"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__run__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["runs"], "summary": "Query", "operationId": "query_runs__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__run__filter__RunFilter"}], "default": {"default_only": true, "is_default": false}, "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__run__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["runs"], "summary": "Create", "operationId": "create_runs__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RunInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Run"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/runs/{id}/set-as-default-version/": {"post": {"tags": ["runs"], "summary": "Set As Default Version", "operationId": "set_as_default_version_runs__id__set_as_default_version__post", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/runs/{id}/unset-as-default-version/": {"post": {"tags": ["runs"], "summary": "Unset As Default Version", "operationId": "unset_as_default_version_runs__id__unset_as_default_version__post", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/scenarios/": {"get": {"tags": ["scenarios"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.scenario.enumerate`", "operationId": "enumerate_scenarios__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/IamcScenarioFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__scenario__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["scenarios"], "summary": "Query", "description": ":func:`ixmp4.server.rest.scenario.query`", "operationId": "query_scenarios__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__scenario__filter__ScenarioFilter"}], "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__scenario__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["scenarios"], "summary": "Create", "description": ":func:`ixmp4.server.rest.scenario.create`", "operationId": "create_scenarios__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ScenarioInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Scenario"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/timeseries/": {"get": {"tags": ["iamc", "timeseries"], "summary": "Enumerate", "operationId": "enumerate_iamc_timeseries__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "join_parameters", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Join Parameters"}}, {"name": "run_ids", "in": "query", "required": false, "schema": {"type": "array", "items": {"type": "integer"}, "title": "Run Ids"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__iamc__timeseries__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["iamc", "timeseries"], "summary": "Create", "operationId": "create_iamc_timeseries__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/TimeSeriesInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Run"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/timeseries/{id}/": {"get": {"tags": ["iamc", "timeseries"], "summary": "Get By Id", "operationId": "get_by_id_iamc_timeseries__id___get", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/TimeSeries"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/iamc/timeseries/bulk/": {"post": {"tags": ["iamc", "timeseries"], "summary": "Bulk Upsert", "operationId": "bulk_upsert_iamc_timeseries_bulk__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "create_related", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Create Related"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"index": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"type": "array", "items": {}}, {"type": "null"}], "title": "Data"}}, "required": ["columns", "dtypes", "data"], "title": "Df"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/units/": {"get": {"tags": ["units"], "summary": "Enumerate", "description": ":func:`ixmp4.server.rest.unit.enumerate`", "operationId": "enumerate_units__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "default": false, "title": "Table"}}, {"name": "id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id"}}, {"name": "name", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name"}}, {"name": "id__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "integer"}}, {"type": "null"}], "title": "Id In"}}, {"name": "name__in", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "title": "Name In"}}, {"name": "name__like", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like"}}, {"name": "name__ilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike"}}, {"name": "name__notlike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike"}}, {"name": "name__notilike", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/IamcUnitFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__unit__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "patch": {"tags": ["units"], "summary": "Query", "description": ":func:`ixmp4.server.rest.unit.query`", "operationId": "query_units__patch", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "table", "in": "query", "required": false, "schema": {"type": "boolean", "default": false, "title": "Table"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"content": {"application/json": {"schema": {"allOf": [{"$ref": "#/components/schemas/ixmp4__data__db__unit__filter__UnitFilter"}], "title": "Filter"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ixmp4__server__rest__unit__EnumerationOutput"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["units"], "summary": "Create", "operationId": "create_units__post", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UnitInput"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Unit"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/units/{id}/": {"delete": {"tags": ["units"], "summary": "Delete", "operationId": "delete_units__id___delete", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Id"}}, {"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}, {"name": "authorization", "in": "header", "required": false, "schema": {"type": "string", "title": "Authorization"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/": {"get": {"summary": "Root", "operationId": "root__get", "parameters": [{"name": "platform", "in": "path", "required": true, "schema": {"type": "string", "title": "Platform"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/APIInfo"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}}, "components": {"schemas": {"APIInfo": {"properties": {"name": {"type": "string", "title": "Name"}, "version": {"type": "string", "title": "Version"}, "is_managed": {"type": "boolean", "title": "Is Managed"}, "manager_url": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Manager Url"}, "utcnow": {"type": "string", "format": "date-time", "title": "Utcnow"}}, "type": "object", "required": ["name", "version", "is_managed", "manager_url", "utcnow"], "title": "APIInfo"}, "Body_enumerate_iamc_datapoints__get": {"properties": {"region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__RegionFilter"}, {"type": "null"}]}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__UnitFilter"}, {"type": "null"}]}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__VariableFilter"}, {"type": "null"}]}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__ModelFilter"}, {"type": "null"}]}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__ScenarioFilter"}, {"type": "null"}]}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__RunFilter"}, {"type": "null"}]}}, "type": "object", "title": "Body_enumerate_iamc_datapoints__get"}, "Body_enumerate_iamc_models__get": {"properties": {"region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}]}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}]}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}]}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__model__filter__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}}}, "type": "object", "title": "Body_enumerate_iamc_models__get"}, "Body_enumerate_iamc_scenarios__get": {"properties": {"region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}]}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}]}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}]}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__scenario__filter__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}}}, "type": "object", "title": "Body_enumerate_iamc_scenarios__get"}, "Body_enumerate_iamc_variables__get": {"properties": {"region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}]}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}]}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}]}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__run__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}}}, "type": "object", "title": "Body_enumerate_iamc_variables__get"}, "Body_enumerate_runs__get": {"properties": {"model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__model__ModelFilter"}, {"type": "null"}]}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__scenario__ScenarioFilter"}, {"type": "null"}]}}, "type": "object", "title": "Body_enumerate_runs__get"}, "DataFrame": {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}, "DataPoint": {"properties": {"id": {"type": "integer", "title": "Id"}, "time_series__id": {"type": "integer", "title": "Time Series Id"}, "value": {"type": "number", "title": "Value"}, "type": {"type": "string", "title": "Type"}, "step_category": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Step Category"}, "step_year": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Step Year"}, "step_datetime": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Step Datetime"}}, "type": "object", "required": ["id", "time_series__id", "value", "type", "step_category", "step_year", "step_datetime"], "title": "DataPoint"}, "DataPointFilter": {"properties": {"year": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year", "sqla_column": "step_year"}, "time_series_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Time Series Id", "sqla_column": "time_series__id"}, "region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__RegionFilter"}, {"type": "null"}], "sqla_column": "region"}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__UnitFilter"}, {"type": "null"}], "sqla_column": "unit"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__ModelFilter"}, {"type": "null"}], "sqla_column": "model"}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__ScenarioFilter"}, {"type": "null"}], "sqla_column": "scenario"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__iamc__datapoint__filter__RunFilter"}, {"type": "null"}], "sqla_column": "run"}, "year__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Year In", "sqla_column": "step_year"}, "year__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Gt", "sqla_column": "step_year"}, "year__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Lt", "sqla_column": "step_year"}, "year__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Gte", "sqla_column": "step_year"}, "year__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Year Lte", "sqla_column": "step_year"}, "time_series_id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Time Series Id In", "sqla_column": "time_series__id"}}, "additionalProperties": false, "type": "object", "title": "run", "description": "This class is used for filtering data points\n\nAll parameters are optional. Use the field name (or the field alias)\ndirectly for equality comparisons. For performing an SQL IN operation\nuse the field name followed by a double underscore and *in*.\n\nParameters\n----------\nstep_year : filters.Integer, Optional\n Filter for data point year, can also be called with \"year\"\ntime_series__id : filters.Id, Optional\n Filter for the id of the time series, can also be called with \"time_series_id\"\nregion : RegionFilter, Optional\n Filter for either region name or hierarchy\nunit : UnitFilter, Optional\n Filter for unit name\nvariable : VariableFilter, Optional\n Filter for variable name\nmodel : ModelFilter, Optional\n Filter for model name\nscenario : ScenarioFilter, Optional\n Filter for the scenario name\nrun : RunFilter, Optional\n Filter for the run, options are id or default_only\n\nExamples\n--------\n\nReturn all data points for a given year.\n\n>>> DataPointFilter(year = 2020)\n\nReturn all data points a number of years\n\n>>> DataPointFilter(year__in = [2020, 2025])\n\nReturn all data point that map to a given variable\n\n>>> DataPointFilter(variable = VariableFilter(name = \"variable 1\"))\n\nNote that for actual use providing the filter parameters as key word arguments is\nsufficient. Calling an endpoint could look like this:\n\n>>> filter = {\"variable\": {\"name\": \"variable 1\"}, \"year\": 2020}\n>>> iamc.tabulate(**filter)"}, "Docs": {"properties": {"id": {"type": "integer", "title": "Id"}, "description": {"type": "string", "title": "Description"}, "dimension__id": {"type": "integer", "title": "Dimension Id"}}, "type": "object", "required": ["id", "description", "dimension__id"], "title": "Docs"}, "DocsInput": {"properties": {"dimension_id": {"type": "integer", "title": "Dimension Id"}, "description": {"type": "string", "title": "Description"}}, "type": "object", "required": ["dimension_id", "description"], "title": "DocsInput"}, "ElementsInput": {"properties": {"elements": {"anyOf": [{"type": "integer"}, {"items": {"anyOf": [{"type": "integer"}, {"type": "string"}]}, "type": "array"}, {"type": "string"}], "title": "Elements"}}, "type": "object", "required": ["elements"], "title": "ElementsInput"}, "HTTPValidationError": {"properties": {"detail": {"items": {"$ref": "#/components/schemas/ValidationError"}, "type": "array", "title": "Detail"}}, "type": "object", "title": "HTTPValidationError"}, "IamcModelFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}], "sqla_column": "region"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}], "sqla_column": "unit"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__model__filter__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "sqla_column": "run"}}, "additionalProperties": false, "type": "object", "title": "run"}, "IamcRegionFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "hierarchy": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy", "sqla_column": "hierarchy"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "hierarchy__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Hierarchy In", "sqla_column": "hierarchy"}, "hierarchy__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like", "sqla_column": "hierarchy"}, "hierarchy__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike", "sqla_column": "hierarchy"}, "hierarchy__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike", "sqla_column": "hierarchy"}, "hierarchy__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike", "sqla_column": "hierarchy"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}], "sqla_column": "unit"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__run__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "sqla_column": "run"}}, "additionalProperties": false, "type": "object", "title": "run"}, "IamcScenarioFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}], "sqla_column": "region"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}], "sqla_column": "unit"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__scenario__filter__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "sqla_column": "run"}}, "additionalProperties": false, "type": "object", "title": "run"}, "IamcUnitFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}], "sqla_column": "region"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__run__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "sqla_column": "run"}}, "additionalProperties": false, "type": "object", "title": "run"}, "IndexSet": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "elements": {"anyOf": [{"type": "integer"}, {"items": {"anyOf": [{"type": "integer"}, {"type": "string"}]}, "type": "array"}, {"type": "string"}, {"type": "null"}], "title": "Elements"}, "run__id": {"type": "integer", "title": "Run Id"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name", "elements", "run__id", "created_at", "created_by"], "title": "IndexSet"}, "IndexSetInput": {"properties": {"run_id": {"type": "integer", "title": "Run Id"}, "name": {"type": "string", "title": "Name"}}, "type": "object", "required": ["run_id", "name"], "title": "IndexSetInput"}, "Model": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name"], "title": "Model"}, "ModelInput": {"properties": {"name": {"type": "string", "title": "Name"}}, "type": "object", "required": ["name"], "title": "ModelInput"}, "OptimizationIndexSetFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "run_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id", "sqla_column": "run__id"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "run_id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Run Id In", "sqla_column": "run__id"}, "run_id__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gt", "sqla_column": "run__id"}, "run_id__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lt", "sqla_column": "run__id"}, "run_id__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gte", "sqla_column": "run__id"}, "run_id__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lte", "sqla_column": "run__id"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "Region": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "hierarchy": {"type": "string", "title": "Hierarchy"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name", "hierarchy"], "title": "Region"}, "RegionInput": {"properties": {"name": {"type": "string", "title": "Name"}, "hierarchy": {"type": "string", "title": "Hierarchy"}}, "type": "object", "required": ["name", "hierarchy"], "title": "RegionInput"}, "Run": {"properties": {"id": {"type": "integer", "title": "Id"}, "model": {"$ref": "#/components/schemas/Model"}, "model__id": {"type": "integer", "title": "Model Id"}, "scenario": {"$ref": "#/components/schemas/Scenario"}, "scenario__id": {"type": "integer", "title": "Scenario Id"}, "version": {"type": "integer", "title": "Version"}, "is_default": {"type": "boolean", "title": "Is Default"}}, "type": "object", "required": ["id", "model", "model__id", "scenario", "scenario__id", "version", "is_default"], "title": "Run"}, "RunInput": {"properties": {"model_name": {"type": "string", "title": "Model Name"}, "scenario_name": {"type": "string", "title": "Scenario Name"}}, "type": "object", "required": ["model_name", "scenario_name"], "title": "RunInput"}, "RunMetaEntry": {"properties": {"id": {"type": "integer", "title": "Id"}, "run__id": {"type": "integer", "title": "Run Id"}, "key": {"type": "string", "title": "Key"}, "type": {"type": "string", "title": "Type"}, "value": {"anyOf": [{"type": "boolean"}, {"type": "integer"}, {"type": "number"}, {"type": "string"}], "title": "Value"}}, "type": "object", "required": ["id", "run__id", "key", "type", "value"], "title": "RunMetaEntry"}, "RunMetaEntryFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "type": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Type", "sqla_column": "type"}, "run_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id", "sqla_column": "run__id"}, "key": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Key", "sqla_column": "key"}, "value_int": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Int", "sqla_column": "value_int"}, "value_str": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Value Str", "sqla_column": "value_str"}, "value_float": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Float", "sqla_column": "value_float"}, "value_bool": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Value Bool", "sqla_column": "value_bool"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "type__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Type In", "sqla_column": "type"}, "type__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Type Like", "sqla_column": "type"}, "type__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Type Ilike", "sqla_column": "type"}, "type__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Type Notlike", "sqla_column": "type"}, "type__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Type Notilike", "sqla_column": "type"}, "run_id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Run Id In", "sqla_column": "run__id"}, "run_id__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gt", "sqla_column": "run__id"}, "run_id__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lt", "sqla_column": "run__id"}, "run_id__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Gte", "sqla_column": "run__id"}, "run_id__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Run Id Lte", "sqla_column": "run__id"}, "key__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Key In", "sqla_column": "key"}, "key__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Key Like", "sqla_column": "key"}, "key__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Key Ilike", "sqla_column": "key"}, "key__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Key Notlike", "sqla_column": "key"}, "key__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Key Notilike", "sqla_column": "key"}, "value_int__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Value Int In", "sqla_column": "value_int"}, "value_int__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Int Gt", "sqla_column": "value_int"}, "value_int__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Int Lt", "sqla_column": "value_int"}, "value_int__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Int Gte", "sqla_column": "value_int"}, "value_int__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Int Lte", "sqla_column": "value_int"}, "value_str__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Value Str In", "sqla_column": "value_str"}, "value_str__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Value Str Like", "sqla_column": "value_str"}, "value_str__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Value Str Ilike", "sqla_column": "value_str"}, "value_str__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Value Str Notlike", "sqla_column": "value_str"}, "value_str__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Value Str Notilike", "sqla_column": "value_str"}, "value_float__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Value Float In", "sqla_column": "value_float"}, "value_float__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Float Gt", "sqla_column": "value_float"}, "value_float__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Float Lt", "sqla_column": "value_float"}, "value_float__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Float Gte", "sqla_column": "value_float"}, "value_float__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Value Float Lte", "sqla_column": "value_float"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__meta__filter__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "sqla_column": "run"}}, "additionalProperties": false, "type": "object", "title": "run"}, "RunMetaEntryInput": {"properties": {"run__id": {"type": "integer", "title": "Run Id"}, "key": {"type": "string", "title": "Key"}, "value": {"anyOf": [{"type": "boolean"}, {"type": "integer"}, {"type": "number"}, {"type": "string"}], "title": "Value"}}, "type": "object", "required": ["run__id", "key", "value"], "title": "RunMetaEntryInput"}, "Scenario": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name"], "title": "Scenario"}, "ScenarioInput": {"properties": {"name": {"type": "string", "title": "Name"}}, "type": "object", "required": ["name"], "title": "ScenarioInput"}, "TimeSeries": {"properties": {"id": {"type": "integer", "title": "Id"}, "run__id": {"type": "integer", "title": "Run Id"}, "parameters": {"type": "object", "title": "Parameters"}}, "type": "object", "required": ["id", "run__id", "parameters"], "title": "TimeSeries"}, "TimeSeriesInput": {"properties": {"run__id": {"type": "integer", "title": "Run Id"}, "parameters": {"type": "object", "title": "Parameters"}}, "type": "object", "required": ["run__id", "parameters"], "title": "TimeSeriesInput"}, "Unit": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name"], "title": "Unit"}, "UnitInput": {"properties": {"name": {"type": "string", "title": "Name"}}, "type": "object", "required": ["name"], "title": "UnitInput"}, "ValidationError": {"properties": {"loc": {"items": {"anyOf": [{"type": "string"}, {"type": "integer"}]}, "type": "array", "title": "Location"}, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}}, "type": "object", "required": ["loc", "msg", "type"], "title": "ValidationError"}, "Variable": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "created_at": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Created At"}, "created_by": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created By"}}, "type": "object", "required": ["id", "name"], "title": "Variable"}, "VariableInput": {"properties": {"name": {"type": "string", "title": "Name"}}, "type": "object", "required": ["name"], "title": "VariableInput"}, "ixmp4__data__db__filters__model__ModelFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__filters__region__RegionFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "hierarchy": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy", "sqla_column": "hierarchy"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "hierarchy__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Hierarchy In", "sqla_column": "hierarchy"}, "hierarchy__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like", "sqla_column": "hierarchy"}, "hierarchy__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike", "sqla_column": "hierarchy"}, "hierarchy__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike", "sqla_column": "hierarchy"}, "hierarchy__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike", "sqla_column": "hierarchy"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__filters__run__RunFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "version": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version", "sqla_column": "version"}, "default_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Default Only", "default": true, "sqla_column": "default_only"}, "is_default": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Default", "sqla_column": "is_default"}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__model__ModelFilter"}, {"type": "null"}], "sqla_column": "model"}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__scenario__ScenarioFilter"}, {"type": "null"}], "sqla_column": "scenario"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "version__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Version In", "sqla_column": "version"}, "version__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gt", "sqla_column": "version"}, "version__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lt", "sqla_column": "version"}, "version__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gte", "sqla_column": "version"}, "version__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lte", "sqla_column": "version"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__filters__scenario__ScenarioFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__filters__unit__UnitFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__filters__variable__VariableFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__ModelFilter": {"properties": {"name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__RegionFilter": {"properties": {"name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "hierarchy": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy", "sqla_column": "hierarchy"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "hierarchy__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Hierarchy In", "sqla_column": "hierarchy"}, "hierarchy__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like", "sqla_column": "hierarchy"}, "hierarchy__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike", "sqla_column": "hierarchy"}, "hierarchy__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike", "sqla_column": "hierarchy"}, "hierarchy__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike", "sqla_column": "hierarchy"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__RunFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "default_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Default Only", "default": false, "sqla_column": "default_only"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__ScenarioFilter": {"properties": {"name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__UnitFilter": {"properties": {"name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__datapoint__filter__VariableFilter": {"properties": {"name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}}, "additionalProperties": false, "type": "object", "title": "sqla_model"}, "ixmp4__data__db__iamc__variable__filter__VariableFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "region": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__region__RegionFilter"}, {"type": "null"}], "sqla_column": "region"}, "variable": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__variable__VariableFilter"}, {"type": "null"}], "sqla_column": "variable"}, "unit": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__unit__UnitFilter"}, {"type": "null"}], "sqla_column": "unit"}, "run": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__run__RunFilter"}, {"type": "null"}], "default": {"default_only": true, "is_default": true}, "sqla_column": "run"}}, "additionalProperties": false, "type": "object", "title": "run"}, "ixmp4__data__db__meta__filter__RunFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "version": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version", "sqla_column": "version"}, "default_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Default Only", "default": true, "sqla_column": "default_only"}, "is_default": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Default", "sqla_column": "is_default"}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__model__ModelFilter"}, {"type": "null"}], "sqla_column": "model"}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__scenario__ScenarioFilter"}, {"type": "null"}], "sqla_column": "scenario"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "version__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Version In", "sqla_column": "version"}, "version__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gt", "sqla_column": "version"}, "version__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lt", "sqla_column": "version"}, "version__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gte", "sqla_column": "version"}, "version__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lte", "sqla_column": "version"}}, "additionalProperties": false, "type": "object", "title": "RunFilter"}, "ixmp4__data__db__model__filter__ModelFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "iamc": {"anyOf": [{"$ref": "#/components/schemas/IamcModelFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc", "sqla_column": "iamc"}}, "additionalProperties": false, "type": "object", "title": "iamc"}, "ixmp4__data__db__model__filter__RunFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "version": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version", "sqla_column": "version"}, "default_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Default Only", "default": true, "sqla_column": "default_only"}, "is_default": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Default", "sqla_column": "is_default"}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__model__ModelFilter"}, {"type": "null"}], "sqla_column": "model"}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__scenario__ScenarioFilter"}, {"type": "null"}], "sqla_column": "scenario"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "version__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Version In", "sqla_column": "version"}, "version__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gt", "sqla_column": "version"}, "version__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lt", "sqla_column": "version"}, "version__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gte", "sqla_column": "version"}, "version__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lte", "sqla_column": "version"}}, "additionalProperties": false, "type": "object", "title": "model"}, "ixmp4__data__db__region__filter__RegionFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "hierarchy": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy", "sqla_column": "hierarchy"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "hierarchy__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Hierarchy In", "sqla_column": "hierarchy"}, "hierarchy__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Like", "sqla_column": "hierarchy"}, "hierarchy__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Ilike", "sqla_column": "hierarchy"}, "hierarchy__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notlike", "sqla_column": "hierarchy"}, "hierarchy__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Hierarchy Notilike", "sqla_column": "hierarchy"}, "iamc": {"anyOf": [{"$ref": "#/components/schemas/IamcRegionFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc", "sqla_column": "iamc"}}, "additionalProperties": false, "type": "object", "title": "iamc"}, "ixmp4__data__db__run__filter__RunFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "version": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version", "sqla_column": "version"}, "default_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Default Only", "default": true, "sqla_column": "default_only"}, "is_default": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Default", "sqla_column": "is_default"}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__model__ModelFilter"}, {"type": "null"}], "sqla_column": "model"}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__scenario__ScenarioFilter"}, {"type": "null"}], "sqla_column": "scenario"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "version__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Version In", "sqla_column": "version"}, "version__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gt", "sqla_column": "version"}, "version__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lt", "sqla_column": "version"}, "version__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gte", "sqla_column": "version"}, "version__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lte", "sqla_column": "version"}}, "additionalProperties": false, "type": "object", "title": "RunFilter"}, "ixmp4__data__db__scenario__filter__RunFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "version": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version", "sqla_column": "version"}, "default_only": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Default Only", "default": true, "sqla_column": "default_only"}, "is_default": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Default", "sqla_column": "is_default"}, "model": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__model__ModelFilter"}, {"type": "null"}], "sqla_column": "model"}, "scenario": {"anyOf": [{"$ref": "#/components/schemas/ixmp4__data__db__filters__scenario__ScenarioFilter"}, {"type": "null"}], "sqla_column": "scenario"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "version__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Version In", "sqla_column": "version"}, "version__gt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gt", "sqla_column": "version"}, "version__lt": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lt", "sqla_column": "version"}, "version__gte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Gte", "sqla_column": "version"}, "version__lte": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Version Lte", "sqla_column": "version"}}, "additionalProperties": false, "type": "object", "title": "scenario"}, "ixmp4__data__db__scenario__filter__ScenarioFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "iamc": {"anyOf": [{"$ref": "#/components/schemas/IamcScenarioFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc", "sqla_column": "iamc"}}, "additionalProperties": false, "type": "object", "title": "iamc"}, "ixmp4__data__db__unit__filter__UnitFilter": {"properties": {"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Id", "sqla_column": "id"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name", "sqla_column": "name"}, "id__in": {"anyOf": [{"items": {"type": "integer"}, "type": "array"}, {"type": "null"}], "title": "Id In", "sqla_column": "id"}, "name__in": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Name In", "sqla_column": "name"}, "name__like": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Like", "sqla_column": "name"}, "name__ilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Ilike", "sqla_column": "name"}, "name__notlike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notlike", "sqla_column": "name"}, "name__notilike": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Name Notilike", "sqla_column": "name"}, "iamc": {"anyOf": [{"$ref": "#/components/schemas/IamcUnitFilter"}, {"type": "boolean"}, {"type": "null"}], "title": "Iamc", "sqla_column": "iamc"}}, "additionalProperties": false, "type": "object", "title": "iamc"}, "ixmp4__server__rest__iamc__datapoint__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/DataPoint"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__model__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Model"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__region__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Region"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__scenario__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Scenario"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__timeseries__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/TimeSeries"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__unit__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Unit"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__iamc__variable__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Variable"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__meta__EnumerationOutput": {"anyOf": [{"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}, {"items": {"$ref": "#/components/schemas/RunMetaEntry"}, "type": "array"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__model__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Model"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__optimization__indexset__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/IndexSet"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__region__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Region"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__run__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Run"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__scenario__EnumerationOutput": {"anyOf": [{"items": {"$ref": "#/components/schemas/Scenario"}, "type": "array"}, {"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}], "title": "EnumerationOutput"}, "ixmp4__server__rest__unit__EnumerationOutput": {"anyOf": [{"properties": {"index": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Index"}, "columns": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Columns"}, "dtypes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "title": "Dtypes"}, "data": {"anyOf": [{"items": {}, "type": "array"}, {"type": "null"}], "title": "Data"}}, "type": "object", "required": ["columns", "dtypes", "data"], "title": "DataFrame"}, {"items": {"$ref": "#/components/schemas/Unit"}, "type": "array"}], "title": "EnumerationOutput"}}}} \ No newline at end of file diff --git a/ixmp4/core/meta.py b/ixmp4/core/meta.py index c50ef324..e556135f 100644 --- a/ixmp4/core/meta.py +++ b/ixmp4/core/meta.py @@ -1,16 +1,14 @@ -from typing import List - import pandas as pd from .base import BaseFacade class MetaRepository(BaseFacade): - def tabulate(self, run_ids: List[int]) -> pd.DataFrame: + def tabulate(self, **kwargs) -> pd.DataFrame: # TODO: accept list of `Run` instances as arg # TODO: expand run-id to model-scenario-version-id columns return ( - self.backend.meta.tabulate(run_ids=run_ids) + self.backend.meta.tabulate(**kwargs) .drop(columns=["id", "type"]) .rename(columns={"run__id": "run_id"}) ) diff --git a/ixmp4/core/run.py b/ixmp4/core/run.py index be664921..e5272629 100644 --- a/ixmp4/core/run.py +++ b/ixmp4/core/run.py @@ -105,7 +105,7 @@ def __init__(self, run: RunModel, *args, **kwargs) -> None: self.df, self.data = self._get() def _get(self) -> tuple[pd.DataFrame, dict]: - df = self.backend.meta.tabulate(run_ids=[self.run.id]) + df = self.backend.meta.tabulate(run_id=self.run.id, run={"default_only": False}) if df.empty: return df, {} return df, dict(zip(df["key"], df["value"])) diff --git a/ixmp4/data/abstract/meta.py b/ixmp4/data/abstract/meta.py index d2fb973c..3920d030 100644 --- a/ixmp4/data/abstract/meta.py +++ b/ixmp4/data/abstract/meta.py @@ -126,18 +126,14 @@ def delete(self, id: int) -> None: def list( self, - *, - run_ids: Iterable[int] | None = None, - keys: Iterable[str] | None = None, + **kwargs, ) -> Iterable[RunMetaEntry]: - """Lists run's meta indicator entries by specified criteria. + r"""Lists run's meta indicator entries by specified criteria. Parameters ---------- - run_ids : list of int - A list of run ids. - keys : list of str - A list of string keys. + \*\*kwargs: any + Filter parameters as specified in `ixmp4.data.db.meta.filter.RunMetaEntryFilter`. Returns ------- @@ -148,19 +144,14 @@ def list( def tabulate( self, - *, - run_ids: Iterable[int] | None = None, - keys: Iterable[str] | None = None, + **kwargs, ) -> pd.DataFrame: - """Tabulates run's meta indicator entries by specified criteria. - + r"""Tabulates run's meta indicator entries by specified criteria. Parameters ---------- - run_ids : list of int - A list of run ids. - keys : list of str - A list of string keys. + \*\*kwargs: any + Filter parameters as specified in `ixmp4.data.db.meta.filter.RunMetaEntryFilter`. Returns ------- diff --git a/ixmp4/data/abstract/optimization/indexset.py b/ixmp4/data/abstract/optimization/indexset.py index fb754e7d..7eb5d547 100644 --- a/ixmp4/data/abstract/optimization/indexset.py +++ b/ixmp4/data/abstract/optimization/indexset.py @@ -79,14 +79,14 @@ def get(self, run_id: int, name: str) -> IndexSet: ... def list(self, *, name: str | None = None, **kwargs) -> Iterable[IndexSet]: - """Lists IndexSets by specified criteria. + r"""Lists IndexSets by specified criteria. Parameters ---------- name : str The name of an IndexSet. If supplied only one result will be returned. # TODO: Update kwargs - **kwargs: any + \*\*kwargs: any More filter parameters as specified in `ixmp4.data.db.iamc.variable.filters.VariableFilter`. @@ -98,14 +98,14 @@ def list(self, *, name: str | None = None, **kwargs) -> Iterable[IndexSet]: ... def tabulate(self, *, name: str | None = None, **kwargs) -> pd.DataFrame: - """Tabulate IndexSets by specified criteria. + r"""Tabulate IndexSets by specified criteria. Parameters ---------- name : str The name of an IndexSet. If supplied only one result will be returned. # TODO: Update kwargs - **kwargs: any + \*\*kwargs: any More filter parameters as specified in `ixmp4.data.db.iamc.variable.filters.VariableFilter`. diff --git a/ixmp4/data/api/meta.py b/ixmp4/data/api/meta.py index de4c63b8..ac68dc9c 100644 --- a/ixmp4/data/api/meta.py +++ b/ixmp4/data/api/meta.py @@ -30,6 +30,7 @@ class RunMetaEntryRepository( ): model_class = RunMetaEntry prefix = "meta/" + enumeration_method = "PATCH" def create( self, @@ -40,7 +41,7 @@ def create( return super().create(run__id=run__id, key=key, value=value) def get(self, run__id: int, key: str) -> RunMetaEntry: - return super().get(run__ids=[run__id], keys=[key]) + return super().get(run_id=run__id, key=key) def delete(self, id: int) -> None: super().delete(id) diff --git a/ixmp4/data/db/filters/__init__.py b/ixmp4/data/db/filters/__init__.py index 5470a174..78c115a6 100644 --- a/ixmp4/data/db/filters/__init__.py +++ b/ixmp4/data/db/filters/__init__.py @@ -1,3 +1,4 @@ +from .meta import RunMetaEntryFilter from .model import ModelFilter from .optimizationindexset import OptimizationIndexSetFilter from .region import RegionFilter diff --git a/ixmp4/data/db/filters/meta.py b/ixmp4/data/db/filters/meta.py new file mode 100644 index 00000000..9fb28256 --- /dev/null +++ b/ixmp4/data/db/filters/meta.py @@ -0,0 +1,23 @@ +from typing import ClassVar + +from ixmp4.db import filters + +from .. import RunMetaEntry + + +class RunMetaEntryFilter(filters.BaseFilter, metaclass=filters.FilterMeta): + sqla_model: ClassVar[type] = RunMetaEntry + + id: filters.Id + type: filters.String + run__id: filters.Integer = filters.Field(None, alias="run_id") + + key: filters.String + + value_int: filters.Integer + value_str: filters.String + value_float: filters.Float + value_bool: filters.Boolean + + def join(self, exc, **kwargs): + return exc diff --git a/ixmp4/data/db/meta/__init__.py b/ixmp4/data/db/meta/__init__.py new file mode 100644 index 00000000..efe910d7 --- /dev/null +++ b/ixmp4/data/db/meta/__init__.py @@ -0,0 +1,2 @@ +from .model import RunMetaEntry +from .repository import RunMetaEntryRepository diff --git a/ixmp4/data/db/meta/filter.py b/ixmp4/data/db/meta/filter.py new file mode 100644 index 00000000..b84d9754 --- /dev/null +++ b/ixmp4/data/db/meta/filter.py @@ -0,0 +1,19 @@ +from ixmp4.data.db import filters as base +from ixmp4.data.db.run import Run +from ixmp4.db import filters, utils + +from .model import RunMetaEntry + + +class RunFilter(base.RunFilter, metaclass=filters.FilterMeta): + def join(self, exc, **kwargs): + if not utils.is_joined(exc, Run): + return exc.join(Run, onclause=RunMetaEntry.run__id == Run.id) + else: + return exc + + +class RunMetaEntryFilter(base.RunMetaEntryFilter, metaclass=filters.FilterMeta): + run: RunFilter = filters.Field( + default=RunFilter(id=None, version=None, is_default=True) + ) diff --git a/ixmp4/data/db/meta/model.py b/ixmp4/data/db/meta/model.py new file mode 100644 index 00000000..28d2bb1a --- /dev/null +++ b/ixmp4/data/db/meta/model.py @@ -0,0 +1,76 @@ +from typing import ClassVar + +from ixmp4 import db +from ixmp4.core.exceptions import InvalidRunMeta +from ixmp4.data import abstract, types + +from .. import base + + +class RunMetaEntry(base.BaseModel): + NotFound: ClassVar = abstract.RunMetaEntry.NotFound + NotUnique: ClassVar = abstract.RunMetaEntry.NotUnique + DeletionPrevented: ClassVar = abstract.RunMetaEntry.DeletionPrevented + + Type: ClassVar = abstract.RunMetaEntry.Type + + _column_map = { + abstract.RunMetaEntry.Type.INT: "value_int", + abstract.RunMetaEntry.Type.STR: "value_str", + abstract.RunMetaEntry.Type.FLOAT: "value_float", + abstract.RunMetaEntry.Type.BOOL: "value_bool", + } + + __table_args__ = ( + db.UniqueConstraint( + "run__id", + "key", + ), + ) + updateable_columns = [ + "type", + "value_int", + "value_str", + "value_float", + "value_bool", + ] + + run__id: types.Integer = db.Column( + db.Integer, + db.ForeignKey("run.id"), + nullable=False, + index=True, + ) + run = db.relationship( + "Run", + backref="meta", + foreign_keys=[run__id], + ) + + key: types.String = db.Column(db.String(1023), nullable=False) + type: types.String = db.Column(db.String(20), nullable=False) + + value_int: types.Integer = db.Column(db.Integer, nullable=True) + value_str: types.String = db.Column(db.String(1023), nullable=True) + value_float: types.Float = db.Column(db.Float, nullable=True) + value_bool: types.Boolean = db.Column(db.Boolean, nullable=True) + + @property + def value(self) -> abstract.MetaValue: + type_ = RunMetaEntry.Type(self.type) + col = self._column_map[type_] + return getattr(self, col) + + def __init__(self, *args, **kwargs) -> None: + value = kwargs.pop("value") + value_type = type(value) + try: + type_ = RunMetaEntry.Type.from_pytype(value_type) + col = self._column_map[type_] + except KeyError: + raise InvalidRunMeta( + f"Invalid type `{value_type}` for value of `RunMetaEntry`." + ) + kwargs["type"] = type_ + kwargs[col] = value + super().__init__(*args, **kwargs) diff --git a/ixmp4/data/db/meta.py b/ixmp4/data/db/meta/repository.py similarity index 66% rename from ixmp4/data/db/meta.py rename to ixmp4/data/db/meta/repository.py index 12a87b82..0bdcb724 100644 --- a/ixmp4/data/db/meta.py +++ b/ixmp4/data/db/meta/repository.py @@ -1,4 +1,4 @@ -from typing import ClassVar, Iterable, Optional, Union +from typing import Iterable, Union import pandas as pd import pandera as pa @@ -7,13 +7,13 @@ from ixmp4 import db from ixmp4.core.decorators import check_types -from ixmp4.core.exceptions import InvalidRunMeta -from ixmp4.data import abstract, types +from ixmp4.data import abstract +from ixmp4.data.auth.decorators import guard from ixmp4.data.db.model import Model from ixmp4.data.db.run import Run -from ..auth.decorators import guard -from . import base +from .. import base +from .model import RunMetaEntry class RemoveRunMetaEntryFrameSchema(pa.DataFrameModel): @@ -33,75 +33,6 @@ class UpdateRunMetaEntryFrameSchema(AddRunMetaEntryFrameSchema): id: Series[pa.Int] = pa.Field(coerce=True) -class RunMetaEntry(base.BaseModel): - NotFound: ClassVar = abstract.RunMetaEntry.NotFound - NotUnique: ClassVar = abstract.RunMetaEntry.NotUnique - DeletionPrevented: ClassVar = abstract.RunMetaEntry.DeletionPrevented - - Type: ClassVar = abstract.RunMetaEntry.Type - - _column_map = { - abstract.RunMetaEntry.Type.INT: "value_int", - abstract.RunMetaEntry.Type.STR: "value_str", - abstract.RunMetaEntry.Type.FLOAT: "value_float", - abstract.RunMetaEntry.Type.BOOL: "value_bool", - } - - __table_args__ = ( - db.UniqueConstraint( - "run__id", - "key", - ), - ) - updateable_columns = [ - "type", - "value_int", - "value_str", - "value_float", - "value_bool", - ] - - run__id: types.Integer = db.Column( - db.Integer, - db.ForeignKey("run.id"), - nullable=False, - index=True, - ) - run = db.relationship( - "Run", - backref="meta", - foreign_keys=[run__id], - ) - - key: types.String = db.Column(db.String(1023), nullable=False) - type: types.String = db.Column(db.String(20), nullable=False) - - value_int: types.Integer = db.Column(db.Integer, nullable=True) - value_str: types.String = db.Column(db.String(1023), nullable=True) - value_float: types.Float = db.Column(db.Float, nullable=True) - value_bool: types.Boolean = db.Column(db.Boolean, nullable=True) - - @property - def value(self) -> abstract.MetaValue: - type_ = RunMetaEntry.Type(self.type) - col = self._column_map[type_] - return getattr(self, col) - - def __init__(self, *args, **kwargs) -> None: - value = kwargs.pop("value") - value_type = type(value) - try: - type_ = RunMetaEntry.Type.from_pytype(value_type) - col = self._column_map[type_] - except KeyError: - raise InvalidRunMeta( - f"Invalid type `{value_type}` for value of `RunMetaEntry`." - ) - kwargs["type"] = type_ - kwargs[col] = value - super().__init__(*args, **kwargs) - - class RunMetaEntryRepository( base.Creator[RunMetaEntry], base.Enumerator[RunMetaEntry], @@ -111,6 +42,12 @@ class RunMetaEntryRepository( ): model_class = RunMetaEntry + def __init__(self, *args, **kwargs) -> None: + super().__init__(*args, **kwargs) + from .filter import RunMetaEntryFilter + + self.filter_class = RunMetaEntryFilter + def add( self, run__id: int, key: str, value: Union[str, int, bool, float] ) -> RunMetaEntry: @@ -151,8 +88,8 @@ def get(self, run__id: int, key: str) -> RunMetaEntry: ) exc = self.select( - run_ids=[run__id], - keys=[key], + run_id=run__id, + key=key, ) try: @@ -198,24 +135,6 @@ def join_auth(self, exc: db.sql.Select) -> db.sql.Select: return super().join_auth(exc) - def select( - self, - *, - run_ids: Optional[Iterable[int]] = None, - keys: Optional[Iterable[str]] = None, - _access_type: str = "view", - ) -> db.sql.Select: - exc: db.sql.Select = db.select(RunMetaEntry) - exc = self.apply_auth(exc, _access_type) - - if run_ids is not None: - exc = exc.where(RunMetaEntry.run__id.in_(run_ids)) - - if keys is not None: - exc = exc.where(RunMetaEntry.key.in_(keys)) - - return exc - @guard("view") def list(self, *args, **kwargs) -> Iterable[RunMetaEntry]: return super().list(*args, **kwargs) diff --git a/ixmp4/server/rest/meta.py b/ixmp4/server/rest/meta.py index 4c9317bb..7816de60 100644 --- a/ixmp4/server/rest/meta.py +++ b/ixmp4/server/rest/meta.py @@ -1,8 +1,9 @@ -from fastapi import APIRouter, Depends, Path, Query +from fastapi import APIRouter, Body, Depends, Path, Query from pydantic import RootModel from ixmp4.data import abstract, api from ixmp4.data.backend.base import Backend +from ixmp4.data.db.meta.filter import RunMetaEntryFilter from . import deps from .base import BaseModel @@ -25,18 +26,25 @@ class EnumerationOutput(BaseModel, RootModel): @router.get("/", response_model=EnumerationOutput) def enumerate( - run_ids: list[int] | None = Query(None), - keys: list[str] | None = Query(None), - table: bool | None = Query(False), + filter: RunMetaEntryFilter = Depends(), + table: bool = Query(False), backend: Backend = Depends(deps.get_backend), ): return backend.meta.enumerate( + _filter=filter, table=bool(table), - run_ids=run_ids, - keys=keys, ) +@router.patch("/", response_model=EnumerationOutput) +def query( + filter: RunMetaEntryFilter = Body(None), + table: bool = Query(False), + backend: Backend = Depends(deps.get_backend), +): + return backend.meta.enumerate(_filter=filter, table=bool(table)) + + @router.post("/", response_model=api.RunMetaEntry) def create( runmeta: RunMetaEntryInput, diff --git a/tests/core/test_meta.py b/tests/core/test_meta.py index e109c17e..face2b6c 100644 --- a/tests/core/test_meta.py +++ b/tests/core/test_meta.py @@ -28,7 +28,7 @@ def test_run_meta(test_mp): [[1, "mint", 13], [1, "mstr", "foo"], [1, "mfloat", -1.9]], columns=["run_id", "key", "value"], ) - pdt.assert_frame_equal(test_mp.meta.tabulate(run_ids=[1]), exp) + pdt.assert_frame_equal(test_mp.meta.tabulate(run_id=1), exp) # remove all meta indicators and set a new indicator run1.meta = {"mnew": "bar"} @@ -41,7 +41,7 @@ def test_run_meta(test_mp): # assert meta via platform exp = pd.DataFrame([[1, "mnew", "bar"]], columns=["run_id", "key", "value"]) - pdt.assert_frame_equal(test_mp.meta.tabulate(run_ids=[1]), exp) + pdt.assert_frame_equal(test_mp.meta.tabulate(run_id=1), exp) del run1.meta["mnew"] run2 = test_mp.Run("Model", "Scenario") @@ -52,4 +52,35 @@ def test_run_meta(test_mp): # assert meta via platform exp = pd.DataFrame([], columns=["run_id", "key", "value"]) - pdt.assert_frame_equal(test_mp.meta.tabulate(run_ids=[1]), exp) + pdt.assert_frame_equal(test_mp.meta.tabulate(run_id=1), exp) + + run2 = test_mp.Run("Model 2", "Scenario 2", version="new") + run1.meta = {"mstr": "baz"} + run2.meta = {"mfloat": 3.1415926535897} + + # test default_only run filter + exp = pd.DataFrame([[1, "mstr", "baz"]], columns=["run_id", "key", "value"]) + # run={"default_only": True} is default + pdt.assert_frame_equal(test_mp.meta.tabulate(), exp) + + exp = pd.DataFrame( + [[1, "mstr", "baz"], [2, "mfloat", 3.1415926535897]], + columns=["run_id", "key", "value"], + ) + pdt.assert_frame_equal(test_mp.meta.tabulate(run={"default_only": False}), exp) + + # test is_default run filter + exp = pd.DataFrame([[1, "mstr", "baz"]], columns=["run_id", "key", "value"]) + pdt.assert_frame_equal(test_mp.meta.tabulate(run={"is_default": True}), exp) + + exp = pd.DataFrame( + [[2, "mfloat", 3.1415926535897]], columns=["run_id", "key", "value"] + ) + pdt.assert_frame_equal( + test_mp.meta.tabulate(run={"default_only": False, "is_default": False}), exp + ) + + # test filter by key + run1.meta = {"mstr": "baz", "mfloat": 3.1415926535897} + exp = pd.DataFrame([[1, "mstr", "baz"]], columns=["run_id", "key", "value"]) + pdt.assert_frame_equal(test_mp.meta.tabulate(key="mstr"), exp) diff --git a/tests/data/test_meta.py b/tests/data/test_meta.py index bac00c03..ff1ea6c7 100644 --- a/tests/data/test_meta.py +++ b/tests/data/test_meta.py @@ -23,6 +23,7 @@ class TestDataMeta: def test_create_get_entry(self, test_mp): run = test_mp.Run("Model", "Scenario", "new") + run.set_as_default() for key, value, type in TEST_ENTRIES: entry = test_mp.backend.meta.create(run.id, key, value) @@ -65,11 +66,12 @@ def test_delete_entry(self, test_mp): def test_list_entry(self, test_mp): run = test_mp.Run("Model", "Scenario", "new") + run.set_as_default() for key, value, _ in TEST_ENTRIES: entry = test_mp.backend.meta.create(run.id, key, value) - entries = test_mp.backend.regions.list() + entries = test_mp.backend.meta.list() for (key, value, type), entry in zip(TEST_ENTRIES, entries): assert entry.key == key @@ -78,6 +80,7 @@ def test_list_entry(self, test_mp): def test_tabulate_entry(self, test_mp): run = test_mp.Run("Model", "Scenario", "new") + run.set_as_default() for key, value, _ in TEST_ENTRIES: test_mp.backend.meta.create(run.id, key, value) @@ -88,8 +91,62 @@ def test_tabulate_entry(self, test_mp): entries = test_mp.backend.meta.tabulate() assert_unordered_equality(entries, true_entries) + def test_tabulate_entries_with_run_filters(self, test_mp): + run1 = test_mp.Run("Model", "Scenario", "new") + run1.set_as_default() + run2 = test_mp.Run("Model 2", "Scenario 2", "new") + + # Splitting the loop to more easily correct the id column below + for key, value, _ in TEST_ENTRIES: + test_mp.backend.meta.create(run1.id, key, value) + for key, value, _ in TEST_ENTRIES: + test_mp.backend.meta.create(run2.id, key, value) + + true_entries1 = TEST_ENTRIES_DF.copy() + true_entries1["run__id"] = run1.id + true_entries2 = TEST_ENTRIES_DF.copy() + true_entries2["run__id"] = run2.id + # Each entry enters the DB this much after those from run1 + true_entries2["id"] += len(TEST_ENTRIES) + + expected = pd.concat([true_entries1, true_entries2], ignore_index=True) + + assert_unordered_equality( + test_mp.backend.meta.tabulate(run={"default_only": False}), expected + ) + + assert_unordered_equality( + test_mp.backend.meta.tabulate(run={"is_default": True}), true_entries1 + ) + + assert_unordered_equality( + test_mp.backend.meta.tabulate( + run={"is_default": False, "default_only": False} + ), + true_entries2, + ) + + def test_tabulate_entries_with_key_filters(self, test_mp): + run = test_mp.Run("Model", "Scenario", "new") + run.set_as_default() + + for key, value, _ in TEST_ENTRIES: + test_mp.backend.meta.create(run.id, key, value) + + # Select just some key from TEST_ENTRIES + key = TEST_ENTRIES[1][0] + + true_entry = TEST_ENTRIES_DF.loc[TEST_ENTRIES_DF["key"] == key].copy() + true_entry["run__id"] = run.id + + entry = test_mp.backend.meta.tabulate(key=key) + + assert_unordered_equality(entry, true_entry, check_dtype=False) + def test_entry_bulk_operations(self, test_mp): run = test_mp.Run("Model", "Scenario", version="new") + run.set_as_default() + entries = TEST_ENTRIES_DF.copy() entries["run__id"] = run.id