From f72bc689b3d487f82ca4a383ec75718bbf3b153b Mon Sep 17 00:00:00 2001 From: Zdenek Devaty Date: Thu, 16 May 2024 12:06:48 +0200 Subject: [PATCH] Generator v7.5 experiment --- README.md | 1 + docs/Agent.md | 4 +- docs/AgentDevice.md | 4 +- docs/AgentDeviceGeneral.md | 4 +- docs/AgentDeviceMapping.md | 6 +- docs/AgentDeviceMappingGeneral.md | 4 +- docs/Aggregation.md | 4 +- docs/Alarm.md | 4 +- docs/AlarmListen.md | 4 +- docs/AlarmRule.md | 4 +- docs/App.md | 4 +- docs/Asset.md | 4 +- docs/AssetDryRun.md | 4 +- docs/AssetListen.md | 4 +- docs/AssetType.md | 4 +- docs/AssetTypeAttribute.md | 4 +- docs/Attachment.md | 4 +- docs/AttributeDisplay.md | 4 +- docs/CalculationRule.md | 4 +- docs/Dashboard.md | 4 +- docs/Data.md | 4 +- docs/DataAggregated.md | 4 +- docs/DataListen.md | 4 +- docs/DryRunGeneral.md | 4 +- docs/IosysAgentDevice.md | 4 +- docs/IosysAgentDeviceMapping.md | 4 +- docs/MbusAgentDevice.md | 4 +- docs/MbusAgentDeviceMapping.md | 6 +- docs/Message.md | 4 +- docs/MessageReceipt.md | 4 +- docs/Node.md | 4 +- docs/Notification.md | 4 +- docs/Patch.md | 4 +- docs/Project.md | 4 +- docs/Tag.md | 4 +- docs/Translation.md | 4 +- docs/User.md | 4 +- docs/Widget.md | 4 +- docs/WidgetData.md | 4 +- docs/WidgetType.md | 4 +- docs/WidgetTypeElement.md | 4 +- eliona/api_client2/api/agents_api.py | 34 +++++------ eliona/api_client2/api/aggregations_api.py | 13 +++-- eliona/api_client2/api/alarm_rules_api.py | 12 ++-- eliona/api_client2/api/alarms_api.py | 14 ++--- eliona/api_client2/api/apps_api.py | 8 +-- eliona/api_client2/api/asset_types_api.py | 16 ++--- eliona/api_client2/api/assets_api.py | 30 +++++----- .../api_client2/api/calculation_rules_api.py | 10 ++-- eliona/api_client2/api/communication_api.py | 6 +- eliona/api_client2/api/dashboards_api.py | 6 +- eliona/api_client2/api/data_api.py | 12 ++-- eliona/api_client2/api/nodes_api.py | 12 ++-- eliona/api_client2/api/projects_api.py | 8 +-- eliona/api_client2/api/qr_codes_api.py | 5 +- eliona/api_client2/api/tags_api.py | 8 +-- eliona/api_client2/api/users_api.py | 8 +-- eliona/api_client2/api/version_api.py | 5 +- eliona/api_client2/api/widgets_api.py | 4 +- eliona/api_client2/api/widgets_types_api.py | 12 ++-- eliona/api_client2/api_client.py | 58 +++++++++++-------- eliona/api_client2/models/agent.py | 12 ++-- eliona/api_client2/models/agent_device.py | 6 +- .../models/agent_device_general.py | 12 ++-- .../models/agent_device_mapping.py | 6 +- .../models/agent_device_mapping_general.py | 12 ++-- eliona/api_client2/models/aggregation.py | 12 ++-- eliona/api_client2/models/alarm.py | 12 ++-- eliona/api_client2/models/alarm_listen.py | 12 ++-- eliona/api_client2/models/alarm_rule.py | 12 ++-- eliona/api_client2/models/app.py | 12 ++-- eliona/api_client2/models/asset.py | 12 ++-- eliona/api_client2/models/asset_dry_run.py | 12 ++-- eliona/api_client2/models/asset_listen.py | 12 ++-- eliona/api_client2/models/asset_type.py | 12 ++-- .../models/asset_type_attribute.py | 12 ++-- eliona/api_client2/models/attachment.py | 12 ++-- .../api_client2/models/attribute_display.py | 12 ++-- eliona/api_client2/models/calculation_rule.py | 12 ++-- eliona/api_client2/models/dashboard.py | 12 ++-- eliona/api_client2/models/data.py | 12 ++-- eliona/api_client2/models/data_aggregated.py | 12 ++-- eliona/api_client2/models/data_listen.py | 12 ++-- eliona/api_client2/models/dry_run_general.py | 12 ++-- .../api_client2/models/iosys_agent_device.py | 12 ++-- .../models/iosys_agent_device_mapping.py | 12 ++-- .../api_client2/models/mbus_agent_device.py | 12 ++-- .../models/mbus_agent_device_mapping.py | 18 +++--- eliona/api_client2/models/message.py | 12 ++-- eliona/api_client2/models/message_receipt.py | 12 ++-- eliona/api_client2/models/node.py | 12 ++-- eliona/api_client2/models/notification.py | 12 ++-- eliona/api_client2/models/patch.py | 12 ++-- eliona/api_client2/models/project.py | 12 ++-- eliona/api_client2/models/tag.py | 12 ++-- eliona/api_client2/models/translation.py | 12 ++-- eliona/api_client2/models/user.py | 12 ++-- eliona/api_client2/models/widget.py | 12 ++-- eliona/api_client2/models/widget_data.py | 12 ++-- eliona/api_client2/models/widget_type.py | 12 ++-- .../api_client2/models/widget_type_element.py | 12 ++-- eliona/api_client2/rest.py | 2 + generate.cmd | 2 +- generate.sh | 2 +- 104 files changed, 472 insertions(+), 454 deletions(-) diff --git a/README.md b/README.md index b16330a..cedb33e 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: - API version: 2.6.12 - Package version: 2.6.12 +- Generator version: 7.5.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://eliona.io](https://eliona.io) diff --git a/docs/Agent.md b/docs/Agent.md index 9bdf84d..c4c026d 100644 --- a/docs/Agent.md +++ b/docs/Agent.md @@ -24,12 +24,12 @@ json = "{}" # create an instance of Agent from a JSON string agent_instance = Agent.from_json(json) # print the JSON string representation of the object -print Agent.to_json() +print(Agent.to_json()) # convert the object into a dict agent_dict = agent_instance.to_dict() # create an instance of Agent from a dict -agent_form_dict = agent.from_dict(agent_dict) +agent_from_dict = Agent.from_dict(agent_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AgentDevice.md b/docs/AgentDevice.md index 3d8bf9b..d1ed3e3 100644 --- a/docs/AgentDevice.md +++ b/docs/AgentDevice.md @@ -35,12 +35,12 @@ json = "{}" # create an instance of AgentDevice from a JSON string agent_device_instance = AgentDevice.from_json(json) # print the JSON string representation of the object -print AgentDevice.to_json() +print(AgentDevice.to_json()) # convert the object into a dict agent_device_dict = agent_device_instance.to_dict() # create an instance of AgentDevice from a dict -agent_device_form_dict = agent_device.from_dict(agent_device_dict) +agent_device_from_dict = AgentDevice.from_dict(agent_device_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AgentDeviceGeneral.md b/docs/AgentDeviceGeneral.md index 0f948ad..933f72b 100644 --- a/docs/AgentDeviceGeneral.md +++ b/docs/AgentDeviceGeneral.md @@ -21,12 +21,12 @@ json = "{}" # create an instance of AgentDeviceGeneral from a JSON string agent_device_general_instance = AgentDeviceGeneral.from_json(json) # print the JSON string representation of the object -print AgentDeviceGeneral.to_json() +print(AgentDeviceGeneral.to_json()) # convert the object into a dict agent_device_general_dict = agent_device_general_instance.to_dict() # create an instance of AgentDeviceGeneral from a dict -agent_device_general_form_dict = agent_device_general.from_dict(agent_device_general_dict) +agent_device_general_from_dict = AgentDeviceGeneral.from_dict(agent_device_general_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AgentDeviceMapping.md b/docs/AgentDeviceMapping.md index a2f29ab..af2ea12 100644 --- a/docs/AgentDeviceMapping.md +++ b/docs/AgentDeviceMapping.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes **dead_band** | **float** | | [optional] **filter** | **str** | | [optional] **tau** | **float** | | [optional] -**field** | **int** | | [optional] +**var_field** | **int** | | [optional] ## Example @@ -35,12 +35,12 @@ json = "{}" # create an instance of AgentDeviceMapping from a JSON string agent_device_mapping_instance = AgentDeviceMapping.from_json(json) # print the JSON string representation of the object -print AgentDeviceMapping.to_json() +print(AgentDeviceMapping.to_json()) # convert the object into a dict agent_device_mapping_dict = agent_device_mapping_instance.to_dict() # create an instance of AgentDeviceMapping from a dict -agent_device_mapping_form_dict = agent_device_mapping.from_dict(agent_device_mapping_dict) +agent_device_mapping_from_dict = AgentDeviceMapping.from_dict(agent_device_mapping_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AgentDeviceMappingGeneral.md b/docs/AgentDeviceMappingGeneral.md index 98c3eb1..643afec 100644 --- a/docs/AgentDeviceMappingGeneral.md +++ b/docs/AgentDeviceMappingGeneral.md @@ -24,12 +24,12 @@ json = "{}" # create an instance of AgentDeviceMappingGeneral from a JSON string agent_device_mapping_general_instance = AgentDeviceMappingGeneral.from_json(json) # print the JSON string representation of the object -print AgentDeviceMappingGeneral.to_json() +print(AgentDeviceMappingGeneral.to_json()) # convert the object into a dict agent_device_mapping_general_dict = agent_device_mapping_general_instance.to_dict() # create an instance of AgentDeviceMappingGeneral from a dict -agent_device_mapping_general_form_dict = agent_device_mapping_general.from_dict(agent_device_mapping_general_dict) +agent_device_mapping_general_from_dict = AgentDeviceMappingGeneral.from_dict(agent_device_mapping_general_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Aggregation.md b/docs/Aggregation.md index c30757f..a57c4fd 100644 --- a/docs/Aggregation.md +++ b/docs/Aggregation.md @@ -23,12 +23,12 @@ json = "{}" # create an instance of Aggregation from a JSON string aggregation_instance = Aggregation.from_json(json) # print the JSON string representation of the object -print Aggregation.to_json() +print(Aggregation.to_json()) # convert the object into a dict aggregation_dict = aggregation_instance.to_dict() # create an instance of Aggregation from a dict -aggregation_form_dict = aggregation.from_dict(aggregation_dict) +aggregation_from_dict = Aggregation.from_dict(aggregation_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Alarm.md b/docs/Alarm.md index 6c07ba3..eac23ce 100644 --- a/docs/Alarm.md +++ b/docs/Alarm.md @@ -33,12 +33,12 @@ json = "{}" # create an instance of Alarm from a JSON string alarm_instance = Alarm.from_json(json) # print the JSON string representation of the object -print Alarm.to_json() +print(Alarm.to_json()) # convert the object into a dict alarm_dict = alarm_instance.to_dict() # create an instance of Alarm from a dict -alarm_form_dict = alarm.from_dict(alarm_dict) +alarm_from_dict = Alarm.from_dict(alarm_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AlarmListen.md b/docs/AlarmListen.md index 6782f85..7256a37 100644 --- a/docs/AlarmListen.md +++ b/docs/AlarmListen.md @@ -33,12 +33,12 @@ json = "{}" # create an instance of AlarmListen from a JSON string alarm_listen_instance = AlarmListen.from_json(json) # print the JSON string representation of the object -print AlarmListen.to_json() +print(AlarmListen.to_json()) # convert the object into a dict alarm_listen_dict = alarm_listen_instance.to_dict() # create an instance of AlarmListen from a dict -alarm_listen_form_dict = alarm_listen.from_dict(alarm_listen_dict) +alarm_listen_from_dict = AlarmListen.from_dict(alarm_listen_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AlarmRule.md b/docs/AlarmRule.md index 1645a07..918763d 100644 --- a/docs/AlarmRule.md +++ b/docs/AlarmRule.md @@ -35,12 +35,12 @@ json = "{}" # create an instance of AlarmRule from a JSON string alarm_rule_instance = AlarmRule.from_json(json) # print the JSON string representation of the object -print AlarmRule.to_json() +print(AlarmRule.to_json()) # convert the object into a dict alarm_rule_dict = alarm_rule_instance.to_dict() # create an instance of AlarmRule from a dict -alarm_rule_form_dict = alarm_rule.from_dict(alarm_rule_dict) +alarm_rule_from_dict = AlarmRule.from_dict(alarm_rule_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/App.md b/docs/App.md index cb5da35..0d55c85 100644 --- a/docs/App.md +++ b/docs/App.md @@ -22,12 +22,12 @@ json = "{}" # create an instance of App from a JSON string app_instance = App.from_json(json) # print the JSON string representation of the object -print App.to_json() +print(App.to_json()) # convert the object into a dict app_dict = app_instance.to_dict() # create an instance of App from a dict -app_form_dict = app.from_dict(app_dict) +app_from_dict = App.from_dict(app_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Asset.md b/docs/Asset.md index 87b897d..20da900 100644 --- a/docs/Asset.md +++ b/docs/Asset.md @@ -36,12 +36,12 @@ json = "{}" # create an instance of Asset from a JSON string asset_instance = Asset.from_json(json) # print the JSON string representation of the object -print Asset.to_json() +print(Asset.to_json()) # convert the object into a dict asset_dict = asset_instance.to_dict() # create an instance of Asset from a dict -asset_form_dict = asset.from_dict(asset_dict) +asset_from_dict = Asset.from_dict(asset_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AssetDryRun.md b/docs/AssetDryRun.md index be0e026..2dacbb9 100644 --- a/docs/AssetDryRun.md +++ b/docs/AssetDryRun.md @@ -22,12 +22,12 @@ json = "{}" # create an instance of AssetDryRun from a JSON string asset_dry_run_instance = AssetDryRun.from_json(json) # print the JSON string representation of the object -print AssetDryRun.to_json() +print(AssetDryRun.to_json()) # convert the object into a dict asset_dry_run_dict = asset_dry_run_instance.to_dict() # create an instance of AssetDryRun from a dict -asset_dry_run_form_dict = asset_dry_run.from_dict(asset_dry_run_dict) +asset_dry_run_from_dict = AssetDryRun.from_dict(asset_dry_run_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AssetListen.md b/docs/AssetListen.md index f364fdb..e9e4ede 100644 --- a/docs/AssetListen.md +++ b/docs/AssetListen.md @@ -36,12 +36,12 @@ json = "{}" # create an instance of AssetListen from a JSON string asset_listen_instance = AssetListen.from_json(json) # print the JSON string representation of the object -print AssetListen.to_json() +print(AssetListen.to_json()) # convert the object into a dict asset_listen_dict = asset_listen_instance.to_dict() # create an instance of AssetListen from a dict -asset_listen_form_dict = asset_listen.from_dict(asset_listen_dict) +asset_listen_from_dict = AssetListen.from_dict(asset_listen_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AssetType.md b/docs/AssetType.md index ed64f86..45ef1ee 100644 --- a/docs/AssetType.md +++ b/docs/AssetType.md @@ -28,12 +28,12 @@ json = "{}" # create an instance of AssetType from a JSON string asset_type_instance = AssetType.from_json(json) # print the JSON string representation of the object -print AssetType.to_json() +print(AssetType.to_json()) # convert the object into a dict asset_type_dict = asset_type_instance.to_dict() # create an instance of AssetType from a dict -asset_type_form_dict = asset_type.from_dict(asset_type_dict) +asset_type_from_dict = AssetType.from_dict(asset_type_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AssetTypeAttribute.md b/docs/AssetTypeAttribute.md index 2d41e82..2588c1e 100644 --- a/docs/AssetTypeAttribute.md +++ b/docs/AssetTypeAttribute.md @@ -39,12 +39,12 @@ json = "{}" # create an instance of AssetTypeAttribute from a JSON string asset_type_attribute_instance = AssetTypeAttribute.from_json(json) # print the JSON string representation of the object -print AssetTypeAttribute.to_json() +print(AssetTypeAttribute.to_json()) # convert the object into a dict asset_type_attribute_dict = asset_type_attribute_instance.to_dict() # create an instance of AssetTypeAttribute from a dict -asset_type_attribute_form_dict = asset_type_attribute.from_dict(asset_type_attribute_dict) +asset_type_attribute_from_dict = AssetTypeAttribute.from_dict(asset_type_attribute_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Attachment.md b/docs/Attachment.md index db1bddf..cb1353e 100644 --- a/docs/Attachment.md +++ b/docs/Attachment.md @@ -21,12 +21,12 @@ json = "{}" # create an instance of Attachment from a JSON string attachment_instance = Attachment.from_json(json) # print the JSON string representation of the object -print Attachment.to_json() +print(Attachment.to_json()) # convert the object into a dict attachment_dict = attachment_instance.to_dict() # create an instance of Attachment from a dict -attachment_form_dict = attachment.from_dict(attachment_dict) +attachment_from_dict = Attachment.from_dict(attachment_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AttributeDisplay.md b/docs/AttributeDisplay.md index 0eeb386..65aa9e4 100644 --- a/docs/AttributeDisplay.md +++ b/docs/AttributeDisplay.md @@ -28,12 +28,12 @@ json = "{}" # create an instance of AttributeDisplay from a JSON string attribute_display_instance = AttributeDisplay.from_json(json) # print the JSON string representation of the object -print AttributeDisplay.to_json() +print(AttributeDisplay.to_json()) # convert the object into a dict attribute_display_dict = attribute_display_instance.to_dict() # create an instance of AttributeDisplay from a dict -attribute_display_form_dict = attribute_display.from_dict(attribute_display_dict) +attribute_display_from_dict = AttributeDisplay.from_dict(attribute_display_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CalculationRule.md b/docs/CalculationRule.md index ce77791..165ae6b 100644 --- a/docs/CalculationRule.md +++ b/docs/CalculationRule.md @@ -25,12 +25,12 @@ json = "{}" # create an instance of CalculationRule from a JSON string calculation_rule_instance = CalculationRule.from_json(json) # print the JSON string representation of the object -print CalculationRule.to_json() +print(CalculationRule.to_json()) # convert the object into a dict calculation_rule_dict = calculation_rule_instance.to_dict() # create an instance of CalculationRule from a dict -calculation_rule_form_dict = calculation_rule.from_dict(calculation_rule_dict) +calculation_rule_from_dict = CalculationRule.from_dict(calculation_rule_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Dashboard.md b/docs/Dashboard.md index a744016..0afa1f0 100644 --- a/docs/Dashboard.md +++ b/docs/Dashboard.md @@ -24,12 +24,12 @@ json = "{}" # create an instance of Dashboard from a JSON string dashboard_instance = Dashboard.from_json(json) # print the JSON string representation of the object -print Dashboard.to_json() +print(Dashboard.to_json()) # convert the object into a dict dashboard_dict = dashboard_instance.to_dict() # create an instance of Dashboard from a dict -dashboard_form_dict = dashboard.from_dict(dashboard_dict) +dashboard_from_dict = Dashboard.from_dict(dashboard_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Data.md b/docs/Data.md index fba019f..472a8eb 100644 --- a/docs/Data.md +++ b/docs/Data.md @@ -23,12 +23,12 @@ json = "{}" # create an instance of Data from a JSON string data_instance = Data.from_json(json) # print the JSON string representation of the object -print Data.to_json() +print(Data.to_json()) # convert the object into a dict data_dict = data_instance.to_dict() # create an instance of Data from a dict -data_form_dict = data.from_dict(data_dict) +data_from_dict = Data.from_dict(data_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DataAggregated.md b/docs/DataAggregated.md index 6e1066e..cbdd4e6 100644 --- a/docs/DataAggregated.md +++ b/docs/DataAggregated.md @@ -32,12 +32,12 @@ json = "{}" # create an instance of DataAggregated from a JSON string data_aggregated_instance = DataAggregated.from_json(json) # print the JSON string representation of the object -print DataAggregated.to_json() +print(DataAggregated.to_json()) # convert the object into a dict data_aggregated_dict = data_aggregated_instance.to_dict() # create an instance of DataAggregated from a dict -data_aggregated_form_dict = data_aggregated.from_dict(data_aggregated_dict) +data_aggregated_from_dict = DataAggregated.from_dict(data_aggregated_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DataListen.md b/docs/DataListen.md index 1a0d272..5f0dd14 100644 --- a/docs/DataListen.md +++ b/docs/DataListen.md @@ -23,12 +23,12 @@ json = "{}" # create an instance of DataListen from a JSON string data_listen_instance = DataListen.from_json(json) # print the JSON string representation of the object -print DataListen.to_json() +print(DataListen.to_json()) # convert the object into a dict data_listen_dict = data_listen_instance.to_dict() # create an instance of DataListen from a dict -data_listen_form_dict = data_listen.from_dict(data_listen_dict) +data_listen_from_dict = DataListen.from_dict(data_listen_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DryRunGeneral.md b/docs/DryRunGeneral.md index 4e1033d..e50913d 100644 --- a/docs/DryRunGeneral.md +++ b/docs/DryRunGeneral.md @@ -20,12 +20,12 @@ json = "{}" # create an instance of DryRunGeneral from a JSON string dry_run_general_instance = DryRunGeneral.from_json(json) # print the JSON string representation of the object -print DryRunGeneral.to_json() +print(DryRunGeneral.to_json()) # convert the object into a dict dry_run_general_dict = dry_run_general_instance.to_dict() # create an instance of DryRunGeneral from a dict -dry_run_general_form_dict = dry_run_general.from_dict(dry_run_general_dict) +dry_run_general_from_dict = DryRunGeneral.from_dict(dry_run_general_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IosysAgentDevice.md b/docs/IosysAgentDevice.md index 2d4e090..9b8e8b2 100644 --- a/docs/IosysAgentDevice.md +++ b/docs/IosysAgentDevice.md @@ -25,12 +25,12 @@ json = "{}" # create an instance of IosysAgentDevice from a JSON string iosys_agent_device_instance = IosysAgentDevice.from_json(json) # print the JSON string representation of the object -print IosysAgentDevice.to_json() +print(IosysAgentDevice.to_json()) # convert the object into a dict iosys_agent_device_dict = iosys_agent_device_instance.to_dict() # create an instance of IosysAgentDevice from a dict -iosys_agent_device_form_dict = iosys_agent_device.from_dict(iosys_agent_device_dict) +iosys_agent_device_from_dict = IosysAgentDevice.from_dict(iosys_agent_device_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IosysAgentDeviceMapping.md b/docs/IosysAgentDeviceMapping.md index 6c3f8d2..abc03bc 100644 --- a/docs/IosysAgentDeviceMapping.md +++ b/docs/IosysAgentDeviceMapping.md @@ -34,12 +34,12 @@ json = "{}" # create an instance of IosysAgentDeviceMapping from a JSON string iosys_agent_device_mapping_instance = IosysAgentDeviceMapping.from_json(json) # print the JSON string representation of the object -print IosysAgentDeviceMapping.to_json() +print(IosysAgentDeviceMapping.to_json()) # convert the object into a dict iosys_agent_device_mapping_dict = iosys_agent_device_mapping_instance.to_dict() # create an instance of IosysAgentDeviceMapping from a dict -iosys_agent_device_mapping_form_dict = iosys_agent_device_mapping.from_dict(iosys_agent_device_mapping_dict) +iosys_agent_device_mapping_from_dict = IosysAgentDeviceMapping.from_dict(iosys_agent_device_mapping_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MbusAgentDevice.md b/docs/MbusAgentDevice.md index 9543afd..23e0402 100644 --- a/docs/MbusAgentDevice.md +++ b/docs/MbusAgentDevice.md @@ -30,12 +30,12 @@ json = "{}" # create an instance of MbusAgentDevice from a JSON string mbus_agent_device_instance = MbusAgentDevice.from_json(json) # print the JSON string representation of the object -print MbusAgentDevice.to_json() +print(MbusAgentDevice.to_json()) # convert the object into a dict mbus_agent_device_dict = mbus_agent_device_instance.to_dict() # create an instance of MbusAgentDevice from a dict -mbus_agent_device_form_dict = mbus_agent_device.from_dict(mbus_agent_device_dict) +mbus_agent_device_from_dict = MbusAgentDevice.from_dict(mbus_agent_device_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MbusAgentDeviceMapping.md b/docs/MbusAgentDeviceMapping.md index 7b2f03b..24dc584 100644 --- a/docs/MbusAgentDeviceMapping.md +++ b/docs/MbusAgentDeviceMapping.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **asset_id** | **int** | ID of the corresponding asset | [optional] **subtype** | [**DataSubtype**](DataSubtype.md) | | **attribute** | **str** | Name of the attribute to map | -**field** | **int** | | [optional] +**var_field** | **int** | | [optional] **scale** | **float** | | [optional] **zero** | **float** | | [optional] @@ -26,12 +26,12 @@ json = "{}" # create an instance of MbusAgentDeviceMapping from a JSON string mbus_agent_device_mapping_instance = MbusAgentDeviceMapping.from_json(json) # print the JSON string representation of the object -print MbusAgentDeviceMapping.to_json() +print(MbusAgentDeviceMapping.to_json()) # convert the object into a dict mbus_agent_device_mapping_dict = mbus_agent_device_mapping_instance.to_dict() # create an instance of MbusAgentDeviceMapping from a dict -mbus_agent_device_mapping_form_dict = mbus_agent_device_mapping.from_dict(mbus_agent_device_mapping_dict) +mbus_agent_device_mapping_from_dict = MbusAgentDeviceMapping.from_dict(mbus_agent_device_mapping_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Message.md b/docs/Message.md index 9dba716..4d21cda 100644 --- a/docs/Message.md +++ b/docs/Message.md @@ -24,12 +24,12 @@ json = "{}" # create an instance of Message from a JSON string message_instance = Message.from_json(json) # print the JSON string representation of the object -print Message.to_json() +print(Message.to_json()) # convert the object into a dict message_dict = message_instance.to_dict() # create an instance of Message from a dict -message_form_dict = message.from_dict(message_dict) +message_from_dict = Message.from_dict(message_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MessageReceipt.md b/docs/MessageReceipt.md index 7b82b8a..31b5f0a 100644 --- a/docs/MessageReceipt.md +++ b/docs/MessageReceipt.md @@ -20,12 +20,12 @@ json = "{}" # create an instance of MessageReceipt from a JSON string message_receipt_instance = MessageReceipt.from_json(json) # print the JSON string representation of the object -print MessageReceipt.to_json() +print(MessageReceipt.to_json()) # convert the object into a dict message_receipt_dict = message_receipt_instance.to_dict() # create an instance of MessageReceipt from a dict -message_receipt_form_dict = message_receipt.from_dict(message_receipt_dict) +message_receipt_from_dict = MessageReceipt.from_dict(message_receipt_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Node.md b/docs/Node.md index aa69fed..31ea42f 100644 --- a/docs/Node.md +++ b/docs/Node.md @@ -25,12 +25,12 @@ json = "{}" # create an instance of Node from a JSON string node_instance = Node.from_json(json) # print the JSON string representation of the object -print Node.to_json() +print(Node.to_json()) # convert the object into a dict node_dict = node_instance.to_dict() # create an instance of Node from a dict -node_form_dict = node.from_dict(node_dict) +node_from_dict = Node.from_dict(node_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Notification.md b/docs/Notification.md index f12ae10..c735ebe 100644 --- a/docs/Notification.md +++ b/docs/Notification.md @@ -20,12 +20,12 @@ json = "{}" # create an instance of Notification from a JSON string notification_instance = Notification.from_json(json) # print the JSON string representation of the object -print Notification.to_json() +print(Notification.to_json()) # convert the object into a dict notification_dict = notification_instance.to_dict() # create an instance of Notification from a dict -notification_form_dict = notification.from_dict(notification_dict) +notification_from_dict = Notification.from_dict(notification_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Patch.md b/docs/Patch.md index 88340db..2a3c13f 100644 --- a/docs/Patch.md +++ b/docs/Patch.md @@ -21,12 +21,12 @@ json = "{}" # create an instance of Patch from a JSON string patch_instance = Patch.from_json(json) # print the JSON string representation of the object -print Patch.to_json() +print(Patch.to_json()) # convert the object into a dict patch_dict = patch_instance.to_dict() # create an instance of Patch from a dict -patch_form_dict = patch.from_dict(patch_dict) +patch_from_dict = Patch.from_dict(patch_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Project.md b/docs/Project.md index 152c0f1..f0315bf 100644 --- a/docs/Project.md +++ b/docs/Project.md @@ -19,12 +19,12 @@ json = "{}" # create an instance of Project from a JSON string project_instance = Project.from_json(json) # print the JSON string representation of the object -print Project.to_json() +print(Project.to_json()) # convert the object into a dict project_dict = project_instance.to_dict() # create an instance of Project from a dict -project_form_dict = project.from_dict(project_dict) +project_from_dict = Project.from_dict(project_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Tag.md b/docs/Tag.md index 81c6bc8..f7600a8 100644 --- a/docs/Tag.md +++ b/docs/Tag.md @@ -20,12 +20,12 @@ json = "{}" # create an instance of Tag from a JSON string tag_instance = Tag.from_json(json) # print the JSON string representation of the object -print Tag.to_json() +print(Tag.to_json()) # convert the object into a dict tag_dict = tag_instance.to_dict() # create an instance of Tag from a dict -tag_form_dict = tag.from_dict(tag_dict) +tag_from_dict = Tag.from_dict(tag_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Translation.md b/docs/Translation.md index 5ceb453..e383909 100644 --- a/docs/Translation.md +++ b/docs/Translation.md @@ -21,12 +21,12 @@ json = "{}" # create an instance of Translation from a JSON string translation_instance = Translation.from_json(json) # print the JSON string representation of the object -print Translation.to_json() +print(Translation.to_json()) # convert the object into a dict translation_dict = translation_instance.to_dict() # create an instance of Translation from a dict -translation_form_dict = translation.from_dict(translation_dict) +translation_from_dict = Translation.from_dict(translation_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/User.md b/docs/User.md index a777a23..83ac008 100644 --- a/docs/User.md +++ b/docs/User.md @@ -21,12 +21,12 @@ json = "{}" # create an instance of User from a JSON string user_instance = User.from_json(json) # print the JSON string representation of the object -print User.to_json() +print(User.to_json()) # convert the object into a dict user_dict = user_instance.to_dict() # create an instance of User from a dict -user_form_dict = user.from_dict(user_dict) +user_from_dict = User.from_dict(user_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Widget.md b/docs/Widget.md index 0030a6b..8a60a32 100644 --- a/docs/Widget.md +++ b/docs/Widget.md @@ -23,12 +23,12 @@ json = "{}" # create an instance of Widget from a JSON string widget_instance = Widget.from_json(json) # print the JSON string representation of the object -print Widget.to_json() +print(Widget.to_json()) # convert the object into a dict widget_dict = widget_instance.to_dict() # create an instance of Widget from a dict -widget_form_dict = widget.from_dict(widget_dict) +widget_from_dict = Widget.from_dict(widget_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WidgetData.md b/docs/WidgetData.md index 0951247..a382c9c 100644 --- a/docs/WidgetData.md +++ b/docs/WidgetData.md @@ -21,12 +21,12 @@ json = "{}" # create an instance of WidgetData from a JSON string widget_data_instance = WidgetData.from_json(json) # print the JSON string representation of the object -print WidgetData.to_json() +print(WidgetData.to_json()) # convert the object into a dict widget_data_dict = widget_data_instance.to_dict() # create an instance of WidgetData from a dict -widget_data_form_dict = widget_data.from_dict(widget_data_dict) +widget_data_from_dict = WidgetData.from_dict(widget_data_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WidgetType.md b/docs/WidgetType.md index 14cc769..4e32c9c 100644 --- a/docs/WidgetType.md +++ b/docs/WidgetType.md @@ -25,12 +25,12 @@ json = "{}" # create an instance of WidgetType from a JSON string widget_type_instance = WidgetType.from_json(json) # print the JSON string representation of the object -print WidgetType.to_json() +print(WidgetType.to_json()) # convert the object into a dict widget_type_dict = widget_type_instance.to_dict() # create an instance of WidgetType from a dict -widget_type_form_dict = widget_type.from_dict(widget_type_dict) +widget_type_from_dict = WidgetType.from_dict(widget_type_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WidgetTypeElement.md b/docs/WidgetTypeElement.md index 908b369..b6ef1e4 100644 --- a/docs/WidgetTypeElement.md +++ b/docs/WidgetTypeElement.md @@ -21,12 +21,12 @@ json = "{}" # create an instance of WidgetTypeElement from a JSON string widget_type_element_instance = WidgetTypeElement.from_json(json) # print the JSON string representation of the object -print WidgetTypeElement.to_json() +print(WidgetTypeElement.to_json()) # convert the object into a dict widget_type_element_dict = widget_type_element_instance.to_dict() # create an instance of WidgetTypeElement from a dict -widget_type_element_form_dict = widget_type_element.from_dict(widget_type_element_dict) +widget_type_element_from_dict = WidgetTypeElement.from_dict(widget_type_element_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/eliona/api_client2/api/agents_api.py b/eliona/api_client2/api/agents_api.py index 0c9d2d3..1188a2b 100644 --- a/eliona/api_client2/api/agents_api.py +++ b/eliona/api_client2/api/agents_api.py @@ -18,7 +18,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictInt, StrictStr, field_validator -from typing import Optional +from typing import List, Optional from typing_extensions import Annotated from eliona.api_client2.models.agent import Agent from eliona.api_client2.models.agent_device import AgentDevice @@ -273,7 +273,7 @@ def _get_agent_by_class_and_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -547,7 +547,7 @@ def _get_agent_device_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -821,7 +821,7 @@ def _get_agent_device_mapping_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1095,7 +1095,7 @@ def _get_agent_device_mappings_by_device_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1369,7 +1369,7 @@ def _get_agent_devices_by_agent_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1617,7 +1617,7 @@ def _get_agents_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1874,7 +1874,7 @@ def _get_agents_by_class_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2146,7 +2146,7 @@ def _post_agent_by_class_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2446,7 +2446,7 @@ def _post_agent_device_by_agent_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2748,7 +2748,7 @@ def _post_agent_device_mapping_by_device_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3040,7 +3040,7 @@ def _put_agent_by_class_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3343,7 +3343,7 @@ def _put_agent_by_class_and_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3648,7 +3648,7 @@ def _put_agent_device_by_agent_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3950,7 +3950,7 @@ def _put_agent_device_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4255,7 +4255,7 @@ def _put_agent_device_mapping_by_device_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4557,7 +4557,7 @@ def _put_agent_device_mapping_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/aggregations_api.py b/eliona/api_client2/api/aggregations_api.py index d978c50..a797a37 100644 --- a/eliona/api_client2/api/aggregations_api.py +++ b/eliona/api_client2/api/aggregations_api.py @@ -18,6 +18,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictInt +from typing import List from typing_extensions import Annotated from eliona.api_client2.models.aggregation import Aggregation @@ -257,7 +258,7 @@ def _delete_aggregation_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -513,7 +514,7 @@ def _get_aggregation_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -759,7 +760,7 @@ def _get_aggregations_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1019,7 +1020,7 @@ def _post_aggregation_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1291,7 +1292,7 @@ def _put_aggregation_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1579,7 +1580,7 @@ def _put_aggregation_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/alarm_rules_api.py b/eliona/api_client2/api/alarm_rules_api.py index 23693b5..85d5c6a 100644 --- a/eliona/api_client2/api/alarm_rules_api.py +++ b/eliona/api_client2/api/alarm_rules_api.py @@ -258,7 +258,7 @@ def _delete_alarm_rule_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -528,7 +528,7 @@ def _get_alarm_rule_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -806,7 +806,7 @@ def _get_alarm_rules_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1071,7 +1071,7 @@ def _post_alarm_rule_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1346,7 +1346,7 @@ def _put_alarm_rule_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1634,7 +1634,7 @@ def _put_alarm_rule_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/alarms_api.py b/eliona/api_client2/api/alarms_api.py index 379927f..bd5bb68 100644 --- a/eliona/api_client2/api/alarms_api.py +++ b/eliona/api_client2/api/alarms_api.py @@ -273,7 +273,7 @@ def _get_alarm_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -550,7 +550,7 @@ def _get_alarm_history_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -827,7 +827,7 @@ def _get_alarms_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1106,7 +1106,7 @@ def _get_alarms_history_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1385,7 +1385,7 @@ def _get_highest_alarms_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1637,7 +1637,7 @@ def _listen_alarm_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1920,7 +1920,7 @@ def _patch_alarm_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/apps_api.py b/eliona/api_client2/api/apps_api.py index 66b57ac..62eace3 100644 --- a/eliona/api_client2/api/apps_api.py +++ b/eliona/api_client2/api/apps_api.py @@ -256,7 +256,7 @@ def _get_app_by_name_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -528,7 +528,7 @@ def _get_patch_by_name_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -802,7 +802,7 @@ def _patch_app_by_name_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1085,7 +1085,7 @@ def _patch_patch_by_name_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/asset_types_api.py b/eliona/api_client2/api/asset_types_api.py index 5e5a70e..a4d69b4 100644 --- a/eliona/api_client2/api/asset_types_api.py +++ b/eliona/api_client2/api/asset_types_api.py @@ -259,7 +259,7 @@ def _delete_asset_type_by_name_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -529,7 +529,7 @@ def _get_asset_type_by_name_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -793,7 +793,7 @@ def _get_asset_types_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1071,7 +1071,7 @@ def _post_asset_type_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1363,7 +1363,7 @@ def _post_asset_type_attribute_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1651,7 +1651,7 @@ def _put_asset_type_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1940,7 +1940,7 @@ def _put_asset_type_attribute_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2244,7 +2244,7 @@ def _put_asset_type_by_name_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/assets_api.py b/eliona/api_client2/api/assets_api.py index ef54704..3cc9ade 100644 --- a/eliona/api_client2/api/assets_api.py +++ b/eliona/api_client2/api/assets_api.py @@ -261,7 +261,7 @@ def _delete_asset_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -545,7 +545,7 @@ def _delete_bulk_assets_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -853,7 +853,7 @@ def _dry_run_delete_bulk_assets_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1161,7 +1161,7 @@ def _dry_run_post_bulk_assets_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1469,7 +1469,7 @@ def _dry_run_put_bulk_assets_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1766,7 +1766,7 @@ def _get_asset_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2056,7 +2056,7 @@ def _get_assets_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2312,7 +2312,7 @@ def _get_attribute_display_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2570,7 +2570,7 @@ def _listen_asset_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2861,7 +2861,7 @@ def _post_asset_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3172,7 +3172,7 @@ def _post_bulk_assets_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3482,7 +3482,7 @@ def _put_asset_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3795,7 +3795,7 @@ def _put_asset_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4073,7 +4073,7 @@ def _put_attribute_display_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4376,7 +4376,7 @@ def _put_bulk_assets_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/calculation_rules_api.py b/eliona/api_client2/api/calculation_rules_api.py index 82f4f10..bebe4f8 100644 --- a/eliona/api_client2/api/calculation_rules_api.py +++ b/eliona/api_client2/api/calculation_rules_api.py @@ -258,7 +258,7 @@ def _delete_calculation_rule_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -514,7 +514,7 @@ def _get_calculation_rule_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -774,7 +774,7 @@ def _get_calculation_rules_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1035,7 +1035,7 @@ def _put_calculation_rule_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1323,7 +1323,7 @@ def _put_calculation_rule_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/communication_api.py b/eliona/api_client2/api/communication_api.py index b885b60..94c8121 100644 --- a/eliona/api_client2/api/communication_api.py +++ b/eliona/api_client2/api/communication_api.py @@ -259,7 +259,7 @@ def _get_message_receipt_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -518,7 +518,7 @@ def _post_mail_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -790,7 +790,7 @@ def _post_notification_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/dashboards_api.py b/eliona/api_client2/api/dashboards_api.py index 4523437..13e9f4e 100644 --- a/eliona/api_client2/api/dashboards_api.py +++ b/eliona/api_client2/api/dashboards_api.py @@ -272,7 +272,7 @@ def _get_dashboard_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -536,7 +536,7 @@ def _get_dashboards_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -811,7 +811,7 @@ def _post_dashboard_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/data_api.py b/eliona/api_client2/api/data_api.py index a659d22..5fd6f75 100644 --- a/eliona/api_client2/api/data_api.py +++ b/eliona/api_client2/api/data_api.py @@ -296,7 +296,7 @@ def _get_data_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -647,7 +647,7 @@ def _get_data_aggregated_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -984,7 +984,7 @@ def _get_data_trends_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1274,7 +1274,7 @@ def _listen_data_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1553,7 +1553,7 @@ def _put_bulk_data_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1836,7 +1836,7 @@ def _put_data_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/nodes_api.py b/eliona/api_client2/api/nodes_api.py index 3f38f16..905ca91 100644 --- a/eliona/api_client2/api/nodes_api.py +++ b/eliona/api_client2/api/nodes_api.py @@ -18,7 +18,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictStr -from typing import Optional +from typing import List, Optional from typing_extensions import Annotated from eliona.api_client2.models.node import Node @@ -258,7 +258,7 @@ def _get_node_by_ident_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -504,7 +504,7 @@ def _get_nodes_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -761,7 +761,7 @@ def _post_node_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1036,7 +1036,7 @@ def _put_node_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1324,7 +1324,7 @@ def _put_node_by_ident_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/projects_api.py b/eliona/api_client2/api/projects_api.py index b84844a..c2c204c 100644 --- a/eliona/api_client2/api/projects_api.py +++ b/eliona/api_client2/api/projects_api.py @@ -18,7 +18,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictStr -from typing import Optional +from typing import List, Optional from typing_extensions import Annotated from eliona.api_client2.models.project import Project @@ -258,7 +258,7 @@ def _get_project_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -504,7 +504,7 @@ def _get_projects_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -761,7 +761,7 @@ def _put_project_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/qr_codes_api.py b/eliona/api_client2/api/qr_codes_api.py index 91d5e03..3975a02 100644 --- a/eliona/api_client2/api/qr_codes_api.py +++ b/eliona/api_client2/api/qr_codes_api.py @@ -17,7 +17,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictInt +from pydantic import Field, StrictBytes, StrictInt, StrictStr +from typing import Union from typing_extensions import Annotated from eliona.api_client2.api_client import ApiClient, RequestSerialized @@ -256,7 +257,7 @@ def _get_qr_code_by_asset_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/tags_api.py b/eliona/api_client2/api/tags_api.py index 316a246..94d4d5e 100644 --- a/eliona/api_client2/api/tags_api.py +++ b/eliona/api_client2/api/tags_api.py @@ -18,7 +18,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictStr -from typing import Optional +from typing import List, Optional from typing_extensions import Annotated from eliona.api_client2.models.tag import Tag @@ -258,7 +258,7 @@ def _get_tag_by_name_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -504,7 +504,7 @@ def _get_tags_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -761,7 +761,7 @@ def _put_tag_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/users_api.py b/eliona/api_client2/api/users_api.py index 5ea3e38..99ebae3 100644 --- a/eliona/api_client2/api/users_api.py +++ b/eliona/api_client2/api/users_api.py @@ -18,7 +18,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictStr -from typing import Optional +from typing import List, Optional from typing_extensions import Annotated from eliona.api_client2.models.user import User @@ -258,7 +258,7 @@ def _get_user_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -504,7 +504,7 @@ def _get_users_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -761,7 +761,7 @@ def _put_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/version_api.py b/eliona/api_client2/api/version_api.py index af4e578..847cad3 100644 --- a/eliona/api_client2/api/version_api.py +++ b/eliona/api_client2/api/version_api.py @@ -17,6 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated +from typing import Any, Dict from eliona.api_client2.api_client import ApiClient, RequestSerialized from eliona.api_client2.api_response import ApiResponse @@ -238,7 +239,7 @@ def _get_open_api_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -480,7 +481,7 @@ def _get_version_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/widgets_api.py b/eliona/api_client2/api/widgets_api.py index 52fb134..b88859c 100644 --- a/eliona/api_client2/api/widgets_api.py +++ b/eliona/api_client2/api/widgets_api.py @@ -272,7 +272,7 @@ def _get_dashboard_widgets_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -565,7 +565,7 @@ def _post_dashboard_widget_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api/widgets_types_api.py b/eliona/api_client2/api/widgets_types_api.py index 3f23f51..ad123ee 100644 --- a/eliona/api_client2/api/widgets_types_api.py +++ b/eliona/api_client2/api/widgets_types_api.py @@ -258,7 +258,7 @@ def _delete_widget_type_by_name_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -528,7 +528,7 @@ def _get_widget_type_by_name_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -792,7 +792,7 @@ def _get_widget_types_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1070,7 +1070,7 @@ def _post_widget_type_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1360,7 +1360,7 @@ def _put_widget_type_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1666,7 +1666,7 @@ def _put_widget_type_by_name_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[str, Union[str, bytes]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/eliona/api_client2/api_client.py b/eliona/api_client2/api_client.py index 2400970..bf22783 100644 --- a/eliona/api_client2/api_client.py +++ b/eliona/api_client2/api_client.py @@ -23,7 +23,8 @@ import tempfile from urllib.parse import quote -from typing import Tuple, Optional, List, Dict +from typing import Tuple, Optional, List, Dict, Union +from pydantic import SecretStr from eliona.api_client2.configuration import Configuration from eliona.api_client2.api_response import ApiResponse, T as ApiResponseT @@ -208,7 +209,8 @@ def param_serialize( post_params, collection_formats ) - post_params.extend(self.files_parameters(files)) + if files: + post_params.extend(self.files_parameters(files)) # auth setting self.update_params_for_auth( @@ -313,7 +315,10 @@ def response_deserialize( match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) encoding = match.group(1) if match else "utf-8" response_text = response_data.data.decode(encoding) - return_data = self.deserialize(response_text, response_type) + if response_type in ["bytearray", "str"]: + return_data = self.__deserialize_primitive(response_text, response_type) + else: + return_data = self.deserialize(response_text, response_type) finally: if not 200 <= response_data.status <= 299: raise ApiException.from_response( @@ -333,6 +338,7 @@ def sanitize_for_serialization(self, obj): """Builds a JSON POST object. If obj is None, return None. + If obj is SecretStr, return obj.get_secret_value() If obj is str, int, long, float, bool, return directly. If obj is datetime.datetime, datetime.date convert to string in iso8601 format. @@ -345,6 +351,10 @@ def sanitize_for_serialization(self, obj): """ if obj is None: return None + elif isinstance(obj, Enum): + return obj.value + elif isinstance(obj, SecretStr): + return obj.get_secret_value() elif isinstance(obj, self.PRIMITIVE_TYPES): return obj elif isinstance(obj, list): @@ -366,7 +376,10 @@ def sanitize_for_serialization(self, obj): # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. - obj_dict = obj.to_dict() + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): + obj_dict = obj.to_dict() + else: + obj_dict = obj.__dict__ return { key: self.sanitize_for_serialization(val) @@ -505,31 +518,30 @@ def parameters_to_url_query(self, params, collection_formats): return "&".join(["=".join(map(str, item)) for item in new_params]) - def files_parameters(self, files=None): + def files_parameters(self, files: Dict[str, Union[str, bytes]]): """Builds form parameters. :param files: File parameters. :return: Form parameters with files. """ params = [] - - if files: - for k, v in files.items(): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = ( - mimetypes.guess_type(filename)[0] - or 'application/octet-stream' - ) - params.append( - tuple([k, tuple([filename, filedata, mimetype])]) - ) - + for k, v in files.items(): + if isinstance(v, str): + with open(v, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + elif isinstance(v, bytes): + filename = k + filedata = v + else: + raise ValueError("Unsupported file value") + mimetype = ( + mimetypes.guess_type(filename)[0] + or 'application/octet-stream' + ) + params.append( + tuple([k, tuple([filename, filedata, mimetype])]) + ) return params def select_header_accept(self, accepts: List[str]) -> Optional[str]: diff --git a/eliona/api_client2/models/agent.py b/eliona/api_client2/models/agent.py index 48be22f..696725c 100644 --- a/eliona/api_client2/models/agent.py +++ b/eliona/api_client2/models/agent.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.agent_class import AgentClass from typing import Optional, Set @@ -37,11 +37,11 @@ class Agent(BaseModel): config: Optional[Dict[str, Any]] = Field(default=None, description="Individual configuration depending on agent class") __properties: ClassVar[List[str]] = ["id", "nodeId", "assetId", "class", "description", "enable", "config"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/agent_device.py b/eliona/api_client2/models/agent_device.py index b11daeb..0083c4f 100644 --- a/eliona/api_client2/models/agent_device.py +++ b/eliona/api_client2/models/agent_device.py @@ -18,11 +18,11 @@ import json import pprint import re # noqa: F401 -from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional from eliona.api_client2.models.iosys_agent_device import IosysAgentDevice from eliona.api_client2.models.mbus_agent_device import MbusAgentDevice -from typing import Union, Any, List, TYPE_CHECKING, Optional, Dict +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field @@ -41,7 +41,7 @@ class AgentDevice(BaseModel): actual_instance: Optional[Union[IosysAgentDevice, MbusAgentDevice]] = None else: actual_instance: Any = None - any_of_schemas: List[str] = Field(default=Literal["IosysAgentDevice", "MbusAgentDevice"]) + any_of_schemas: Set[str] = { "IosysAgentDevice", "MbusAgentDevice" } model_config = { "validate_assignment": True, diff --git a/eliona/api_client2/models/agent_device_general.py b/eliona/api_client2/models/agent_device_general.py index dbbf5ca..de90d0e 100644 --- a/eliona/api_client2/models/agent_device_general.py +++ b/eliona/api_client2/models/agent_device_general.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.agent_class import AgentClass from typing import Optional, Set @@ -34,11 +34,11 @@ class AgentDeviceGeneral(BaseModel): enable: Optional[StrictBool] = Field(default=False, description="Is the device enabled or not") __properties: ClassVar[List[str]] = ["class", "id", "agentId", "enable"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/agent_device_mapping.py b/eliona/api_client2/models/agent_device_mapping.py index 55f7d08..9aded70 100644 --- a/eliona/api_client2/models/agent_device_mapping.py +++ b/eliona/api_client2/models/agent_device_mapping.py @@ -18,11 +18,11 @@ import json import pprint import re # noqa: F401 -from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional from eliona.api_client2.models.iosys_agent_device_mapping import IosysAgentDeviceMapping from eliona.api_client2.models.mbus_agent_device_mapping import MbusAgentDeviceMapping -from typing import Union, Any, List, TYPE_CHECKING, Optional, Dict +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field @@ -41,7 +41,7 @@ class AgentDeviceMapping(BaseModel): actual_instance: Optional[Union[IosysAgentDeviceMapping, MbusAgentDeviceMapping]] = None else: actual_instance: Any = None - any_of_schemas: List[str] = Field(default=Literal["IosysAgentDeviceMapping", "MbusAgentDeviceMapping"]) + any_of_schemas: Set[str] = { "IosysAgentDeviceMapping", "MbusAgentDeviceMapping" } model_config = { "validate_assignment": True, diff --git a/eliona/api_client2/models/agent_device_mapping_general.py b/eliona/api_client2/models/agent_device_mapping_general.py index 5c92553..025e4fe 100644 --- a/eliona/api_client2/models/agent_device_mapping_general.py +++ b/eliona/api_client2/models/agent_device_mapping_general.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.agent_class import AgentClass from eliona.api_client2.models.data_subtype import DataSubtype @@ -38,11 +38,11 @@ class AgentDeviceMappingGeneral(BaseModel): attribute: StrictStr = Field(description="Name of the attribute to map") __properties: ClassVar[List[str]] = ["class", "id", "deviceId", "enable", "assetId", "subtype", "attribute"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/aggregation.py b/eliona/api_client2/models/aggregation.py index b213082..5f308f9 100644 --- a/eliona/api_client2/models/aggregation.py +++ b/eliona/api_client2/models/aggregation.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.data_subtype import DataSubtype from typing import Optional, Set @@ -53,11 +53,11 @@ def raster_validate_enum(cls, value): raise ValueError("must be one of enum values ('S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S10', 'S12', 'S15', 'S20', 'S30', 'M1', 'M2', 'M3', 'M4', 'M5', 'M6', 'M10', 'M12', 'M15', 'M20', 'M30', 'H1', 'H2', 'H3', 'H4', 'H6', 'H8', 'H12', 'DAY', 'WEEK', 'MONTH', 'QUARTER', 'YEAR', 'DECADE', 'CENTURY')") return value - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/alarm.py b/eliona/api_client2/models/alarm.py index aa1ce8a..3f6ac17 100644 --- a/eliona/api_client2/models/alarm.py +++ b/eliona/api_client2/models/alarm.py @@ -19,7 +19,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from eliona.api_client2.models.alarm_priority import AlarmPriority from eliona.api_client2.models.alarm_rule import AlarmRule @@ -50,11 +50,11 @@ class Alarm(BaseModel): rule_info: Optional[AlarmRule] = Field(default=None, alias="ruleInfo") __properties: ClassVar[List[str]] = ["ruleId", "assetId", "subtype", "attribute", "priority", "requiresAcknowledge", "value", "timestamp", "goneTimestamp", "acknowledgeTimestamp", "occurrences", "acknowledgeText", "acknowledgeUserId", "message", "assetInfo", "ruleInfo"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/alarm_listen.py b/eliona/api_client2/models/alarm_listen.py index e131936..3908c65 100644 --- a/eliona/api_client2/models/alarm_listen.py +++ b/eliona/api_client2/models/alarm_listen.py @@ -19,7 +19,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from eliona.api_client2.models.alarm_priority import AlarmPriority from eliona.api_client2.models.alarm_rule import AlarmRule @@ -51,11 +51,11 @@ class AlarmListen(BaseModel): status_code: Optional[StrictInt] = Field(default=None, description="The status code expecting when actually perform the operation. Some values are - 200: updated (ok) - 201: created - 204: deleted (no content) - 304: unchanged (not modified) - 400: problem (bad request) - 404: not found - 409: duplicated (conflict) - 422: unprocessable ", alias="statusCode") __properties: ClassVar[List[str]] = ["ruleId", "assetId", "subtype", "attribute", "priority", "requiresAcknowledge", "value", "timestamp", "goneTimestamp", "acknowledgeTimestamp", "occurrences", "acknowledgeText", "acknowledgeUserId", "message", "assetInfo", "ruleInfo", "statusCode"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/alarm_rule.py b/eliona/api_client2/models/alarm_rule.py index 3229271..1c30625 100644 --- a/eliona/api_client2/models/alarm_rule.py +++ b/eliona/api_client2/models/alarm_rule.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from eliona.api_client2.models.alarm_priority import AlarmPriority from eliona.api_client2.models.asset import Asset @@ -60,11 +60,11 @@ def check_type_validate_enum(cls, value): raise ValueError("must be one of enum values ('limits', 'validity', 'custom')") return value - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/app.py b/eliona/api_client2/models/app.py index 9066f08..7ce2cfd 100644 --- a/eliona/api_client2/models/app.py +++ b/eliona/api_client2/models/app.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -34,11 +34,11 @@ class App(BaseModel): version: Optional[StrictStr] = Field(default=None, description="the apps version") __properties: ClassVar[List[str]] = ["name", "active", "registered", "metadata", "version"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/asset.py b/eliona/api_client2/models/asset.py index f1129a8..202f427 100644 --- a/eliona/api_client2/models/asset.py +++ b/eliona/api_client2/models/asset.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from eliona.api_client2.models.attachment import Attachment from typing import Optional, Set @@ -49,11 +49,11 @@ class Asset(BaseModel): attachments: Optional[List[Attachment]] = Field(default=None, description="A list of files attached to the asset") __properties: ClassVar[List[str]] = ["resourceId", "id", "deviceIds", "projectId", "globalAssetIdentifier", "name", "assetType", "latitude", "longitude", "isTracker", "trackerId", "description", "parentFunctionalAssetId", "functionalAssetIdPath", "parentLocationalAssetId", "locationalAssetIdPath", "tags", "childrenInfo", "attachments"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/asset_dry_run.py b/eliona/api_client2/models/asset_dry_run.py index 00f4a00..c1f3dde 100644 --- a/eliona/api_client2/models/asset_dry_run.py +++ b/eliona/api_client2/models/asset_dry_run.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.asset import Asset from eliona.api_client2.models.asset_identify_by import AssetIdentifyBy @@ -37,11 +37,11 @@ class AssetDryRun(BaseModel): after: Optional[Asset] = None __properties: ClassVar[List[str]] = ["identifier", "statusCode", "errorMessage", "identifiedBy", "before", "after"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/asset_listen.py b/eliona/api_client2/models/asset_listen.py index 8bed1b5..c98b375 100644 --- a/eliona/api_client2/models/asset_listen.py +++ b/eliona/api_client2/models/asset_listen.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from eliona.api_client2.models.asset import Asset from eliona.api_client2.models.attachment import Attachment @@ -51,11 +51,11 @@ class AssetListen(BaseModel): status_code: Optional[StrictInt] = Field(default=None, description="The status code expecting when actually perform the operation. Some values are - 200: updated (ok) - 201: created - 204: deleted (no content) - 304: unchanged (not modified) - 400: problem (bad request) - 404: not found - 409: duplicated (conflict) - 422: unprocessable ", alias="statusCode") __properties: ClassVar[List[str]] = ["resourceId", "id", "deviceIds", "projectId", "globalAssetIdentifier", "name", "assetType", "latitude", "longitude", "isTracker", "trackerId", "description", "parentFunctionalAssetId", "functionalAssetIdPath", "parentLocationalAssetId", "locationalAssetIdPath", "tags", "childrenInfo", "attachments", "statusCode"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/asset_type.py b/eliona/api_client2/models/asset_type.py index a0e09de..cbb19c0 100644 --- a/eliona/api_client2/models/asset_type.py +++ b/eliona/api_client2/models/asset_type.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.asset_type_attribute import AssetTypeAttribute from eliona.api_client2.models.translation import Translation @@ -42,11 +42,11 @@ class AssetType(BaseModel): attributes: Optional[List[AssetTypeAttribute]] = Field(default=None, description="List of named attributes") __properties: ClassVar[List[str]] = ["name", "custom", "vendor", "model", "translation", "urldoc", "icon", "payloadFunction", "allowedInactivity", "isTracker", "attributes"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/asset_type_attribute.py b/eliona/api_client2/models/asset_type_attribute.py index fca434e..d29403d 100644 --- a/eliona/api_client2/models/asset_type_attribute.py +++ b/eliona/api_client2/models/asset_type_attribute.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from eliona.api_client2.models.data_subtype import DataSubtype @@ -75,11 +75,11 @@ def aggregation_rasters_validate_enum(cls, value): raise ValueError("each list item must be one of ('S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S10', 'S12', 'S15', 'S20', 'S30', 'M1', 'M2', 'M3', 'M4', 'M5', 'M6', 'M10', 'M12', 'M15', 'M20', 'M30', 'H1', 'H2', 'H3', 'H4', 'H6', 'H8', 'H12', 'DAY', 'WEEK', 'MONTH', 'QUARTER', 'YEAR', 'DECADE', 'CENTURY')") return value - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/attachment.py b/eliona/api_client2/models/attachment.py index 3180515..a03f8c1 100644 --- a/eliona/api_client2/models/attachment.py +++ b/eliona/api_client2/models/attachment.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -33,11 +33,11 @@ class Attachment(BaseModel): content: Optional[StrictStr] = Field(default=None, description="The binary data as encoded string") __properties: ClassVar[List[str]] = ["name", "contentType", "encoding", "content"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/attribute_display.py b/eliona/api_client2/models/attribute_display.py index 2b72ef5..6c14a5f 100644 --- a/eliona/api_client2/models/attribute_display.py +++ b/eliona/api_client2/models/attribute_display.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from eliona.api_client2.models.data_subtype import DataSubtype @@ -42,11 +42,11 @@ class AttributeDisplay(BaseModel): map: Optional[List[Dict[str, Any]]] = Field(default=None, description="list of mapping between value and custom text") __properties: ClassVar[List[str]] = ["assetId", "subtype", "attribute", "unit", "precision", "min", "max", "viewer", "ar", "sequence", "map"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/calculation_rule.py b/eliona/api_client2/models/calculation_rule.py index 79f6066..7ef4cbf 100644 --- a/eliona/api_client2/models/calculation_rule.py +++ b/eliona/api_client2/models/calculation_rule.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.data_subtype import DataSubtype from typing import Optional, Set @@ -38,11 +38,11 @@ class CalculationRule(BaseModel): filter: Optional[Dict[str, Any]] = Field(default=None, description="Filter definition for calculation rule") __properties: ClassVar[List[str]] = ["id", "assetId", "subtype", "attribute", "virtual", "formula", "unit", "filter"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/dashboard.py b/eliona/api_client2/models/dashboard.py index 15113a0..b4cf5d8 100644 --- a/eliona/api_client2/models/dashboard.py +++ b/eliona/api_client2/models/dashboard.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.widget import Widget from typing import Optional, Set @@ -37,11 +37,11 @@ class Dashboard(BaseModel): public: Optional[StrictBool] = Field(default=False, description="Is the dashboard public and not bound to a dedicated user") __properties: ClassVar[List[str]] = ["id", "name", "projectId", "userId", "sequence", "widgets", "public"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/data.py b/eliona/api_client2/models/data.py index 275c8a4..8dbbfe6 100644 --- a/eliona/api_client2/models/data.py +++ b/eliona/api_client2/models/data.py @@ -19,7 +19,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.data_subtype import DataSubtype from typing import Optional, Set @@ -37,11 +37,11 @@ class Data(BaseModel): client_reference: Optional[StrictStr] = Field(default=None, description="freely assignable by the client to identify self-created data", alias="clientReference") __properties: ClassVar[List[str]] = ["assetId", "subtype", "timestamp", "data", "assetTypeName", "clientReference"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/data_aggregated.py b/eliona/api_client2/models/data_aggregated.py index 2cf59ea..520c9db 100644 --- a/eliona/api_client2/models/data_aggregated.py +++ b/eliona/api_client2/models/data_aggregated.py @@ -19,7 +19,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from eliona.api_client2.models.data_subtype import DataSubtype from typing import Optional, Set @@ -53,11 +53,11 @@ def raster_validate_enum(cls, value): raise ValueError("must be one of enum values ('S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S10', 'S12', 'S15', 'S20', 'S30', 'M1', 'M2', 'M3', 'M4', 'M5', 'M6', 'M10', 'M12', 'M15', 'M20', 'M30', 'H1', 'H2', 'H3', 'H4', 'H6', 'H8', 'H12', 'DAY', 'WEEK', 'MONTH', 'QUARTER', 'YEAR', 'DECADE', 'CENTURY')") return value - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/data_listen.py b/eliona/api_client2/models/data_listen.py index d02a75c..bee004a 100644 --- a/eliona/api_client2/models/data_listen.py +++ b/eliona/api_client2/models/data_listen.py @@ -19,7 +19,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.data_subtype import DataSubtype from typing import Optional, Set @@ -38,11 +38,11 @@ class DataListen(BaseModel): status_code: Optional[StrictInt] = Field(default=None, description="The status code expecting when actually perform the operation. Some values are - 200: updated (ok) - 201: created - 204: deleted (no content) - 304: unchanged (not modified) - 400: problem (bad request) - 404: not found - 409: duplicated (conflict) - 422: unprocessable ", alias="statusCode") __properties: ClassVar[List[str]] = ["assetId", "subtype", "timestamp", "data", "assetTypeName", "clientReference", "statusCode"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/dry_run_general.py b/eliona/api_client2/models/dry_run_general.py index a5e250a..12ef8fa 100644 --- a/eliona/api_client2/models/dry_run_general.py +++ b/eliona/api_client2/models/dry_run_general.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -32,11 +32,11 @@ class DryRunGeneral(BaseModel): error_message: Optional[StrictStr] = Field(default=None, description="The error message expecting when actually perform the operation. ", alias="errorMessage") __properties: ClassVar[List[str]] = ["identifier", "statusCode", "errorMessage"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/iosys_agent_device.py b/eliona/api_client2/models/iosys_agent_device.py index 36d4e4d..d6aa78d 100644 --- a/eliona/api_client2/models/iosys_agent_device.py +++ b/eliona/api_client2/models/iosys_agent_device.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.agent_class import AgentClass from typing import Optional, Set @@ -39,11 +39,11 @@ class IosysAgentDevice(BaseModel): reconnect: Optional[StrictInt] = Field(default=None, description="Reconnect") __properties: ClassVar[List[str]] = ["class", "id", "agentId", "enable", "port", "certificate", "key", "timeout", "reconnect"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/iosys_agent_device_mapping.py b/eliona/api_client2/models/iosys_agent_device_mapping.py index 03017cf..003a4eb 100644 --- a/eliona/api_client2/models/iosys_agent_device_mapping.py +++ b/eliona/api_client2/models/iosys_agent_device_mapping.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from eliona.api_client2.models.agent_class import AgentClass from eliona.api_client2.models.data_subtype import DataSubtype @@ -69,11 +69,11 @@ def filter_validate_enum(cls, value): raise ValueError("must be one of enum values ('LPF1', 'LPF2', 'MOVA')") return value - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/mbus_agent_device.py b/eliona/api_client2/models/mbus_agent_device.py index 58cad34..0eede77 100644 --- a/eliona/api_client2/models/mbus_agent_device.py +++ b/eliona/api_client2/models/mbus_agent_device.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.agent_class import AgentClass from typing import Optional, Set @@ -44,11 +44,11 @@ class MbusAgentDevice(BaseModel): multi_frames: Optional[StrictInt] = Field(default=0, alias="multiFrames") __properties: ClassVar[List[str]] = ["class", "id", "agentId", "enable", "manufacturer", "model", "address", "secAddress", "raster", "maxFail", "maxRetry", "sendNke", "appResetSubcode", "multiFrames"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/mbus_agent_device_mapping.py b/eliona/api_client2/models/mbus_agent_device_mapping.py index a4e210e..63fee75 100644 --- a/eliona/api_client2/models/mbus_agent_device_mapping.py +++ b/eliona/api_client2/models/mbus_agent_device_mapping.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from eliona.api_client2.models.agent_class import AgentClass from eliona.api_client2.models.data_subtype import DataSubtype @@ -36,16 +36,16 @@ class MbusAgentDeviceMapping(BaseModel): asset_id: Optional[StrictInt] = Field(default=None, description="ID of the corresponding asset", alias="assetId") subtype: DataSubtype attribute: StrictStr = Field(description="Name of the attribute to map") - field: Optional[StrictInt] = None + var_field: Optional[StrictInt] = Field(default=None, alias="field") scale: Optional[Union[StrictFloat, StrictInt]] = None zero: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["class", "id", "deviceId", "enable", "assetId", "subtype", "attribute", "field", "scale", "zero"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: @@ -104,9 +104,9 @@ def to_dict(self) -> Dict[str, Any]: if self.asset_id is None and "asset_id" in self.model_fields_set: _dict['assetId'] = None - # set to None if field (nullable) is None + # set to None if var_field (nullable) is None # and model_fields_set contains the field - if self.field is None and "field" in self.model_fields_set: + if self.var_field is None and "var_field" in self.model_fields_set: _dict['field'] = None # set to None if scale (nullable) is None diff --git a/eliona/api_client2/models/message.py b/eliona/api_client2/models/message.py index 3cb828b..96e0f67 100644 --- a/eliona/api_client2/models/message.py +++ b/eliona/api_client2/models/message.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from eliona.api_client2.models.attachment import Attachment @@ -38,11 +38,11 @@ class Message(BaseModel): attachments: Optional[List[Attachment]] = Field(default=None, description="A list of files attached to the message") __properties: ClassVar[List[str]] = ["sender", "recipients", "copyRecipients", "blindCopyRecipients", "subject", "content", "attachments"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/message_receipt.py b/eliona/api_client2/models/message_receipt.py index 2ead34e..2bdcc9b 100644 --- a/eliona/api_client2/models/message_receipt.py +++ b/eliona/api_client2/models/message_receipt.py @@ -19,7 +19,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -43,11 +43,11 @@ def status_validate_enum(cls, value): raise ValueError("must be one of enum values ('scheduled', 'sent', 'seen', 'read', 'deleted', 'failed')") return value - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/node.py b/eliona/api_client2/models/node.py index 1711e6f..b84bf6a 100644 --- a/eliona/api_client2/models/node.py +++ b/eliona/api_client2/models/node.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -37,11 +37,11 @@ class Node(BaseModel): enable: Optional[StrictBool] = Field(default=False, description="Is the node enabled or not") __properties: ClassVar[List[str]] = ["id", "ident", "password", "assetId", "vendor", "model", "description", "enable"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/notification.py b/eliona/api_client2/models/notification.py index a5ab2df..d8dad94 100644 --- a/eliona/api_client2/models/notification.py +++ b/eliona/api_client2/models/notification.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.translation import Translation from typing import Optional, Set @@ -33,11 +33,11 @@ class Notification(BaseModel): message: Optional[Translation] __properties: ClassVar[List[str]] = ["user", "projectId", "message"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/patch.py b/eliona/api_client2/models/patch.py index b68d61c..7a60377 100644 --- a/eliona/api_client2/models/patch.py +++ b/eliona/api_client2/models/patch.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -33,11 +33,11 @@ class Patch(BaseModel): applied: Optional[StrictBool] = Field(default=None, description="Is the app already applied or not") __properties: ClassVar[List[str]] = ["appName", "name", "active", "applied"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/project.py b/eliona/api_client2/models/project.py index ce9b8bf..9e01712 100644 --- a/eliona/api_client2/models/project.py +++ b/eliona/api_client2/models/project.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -31,11 +31,11 @@ class Project(BaseModel): title: Optional[StrictStr] = Field(default=None, description="The title of the project") __properties: ClassVar[List[str]] = ["id", "title"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/tag.py b/eliona/api_client2/models/tag.py index 5592445..5ee30bd 100644 --- a/eliona/api_client2/models/tag.py +++ b/eliona/api_client2/models/tag.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -32,11 +32,11 @@ class Tag(BaseModel): custom: Optional[StrictBool] = Field(default=True, description="Is this a tag custom or not") __properties: ClassVar[List[str]] = ["name", "colorId", "custom"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/translation.py b/eliona/api_client2/models/translation.py index d18e3c4..8936c65 100644 --- a/eliona/api_client2/models/translation.py +++ b/eliona/api_client2/models/translation.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -33,11 +33,11 @@ class Translation(BaseModel): it: Optional[StrictStr] = Field(default=None, description="Italian text") __properties: ClassVar[List[str]] = ["de", "en", "fr", "it"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/user.py b/eliona/api_client2/models/user.py index 25a7c76..0d5126d 100644 --- a/eliona/api_client2/models/user.py +++ b/eliona/api_client2/models/user.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -33,11 +33,11 @@ class User(BaseModel): email: StrictStr = Field(description="Address of the user") __properties: ClassVar[List[str]] = ["id", "firstname", "lastname", "email"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/widget.py b/eliona/api_client2/models/widget.py index e260e5a..534a95e 100644 --- a/eliona/api_client2/models/widget.py +++ b/eliona/api_client2/models/widget.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.widget_data import WidgetData from typing import Optional, Set @@ -36,11 +36,11 @@ class Widget(BaseModel): data: Optional[List[WidgetData]] = Field(default=None, description="List of data for the elements of widget") __properties: ClassVar[List[str]] = ["id", "widgetTypeName", "details", "assetId", "sequence", "data"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/widget_data.py b/eliona/api_client2/models/widget_data.py index 2da183a..0ee7fc5 100644 --- a/eliona/api_client2/models/widget_data.py +++ b/eliona/api_client2/models/widget_data.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -33,11 +33,11 @@ class WidgetData(BaseModel): data: Optional[Dict[str, Any]] = Field(default=None, description="individual config parameters depending on category") __properties: ClassVar[List[str]] = ["id", "elementSequence", "assetId", "data"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/widget_type.py b/eliona/api_client2/models/widget_type.py index 1b730da..3829331 100644 --- a/eliona/api_client2/models/widget_type.py +++ b/eliona/api_client2/models/widget_type.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from eliona.api_client2.models.translation import Translation from eliona.api_client2.models.widget_type_element import WidgetTypeElement @@ -39,11 +39,11 @@ class WidgetType(BaseModel): elements: List[WidgetTypeElement] = Field(description="A list of elements for this widget (order matches the order of elements for this type)") __properties: ClassVar[List[str]] = ["id", "name", "custom", "translation", "icon", "withAlarm", "withTimespan", "elements"] - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/models/widget_type_element.py b/eliona/api_client2/models/widget_type_element.py index a3fb352..7e6dd8c 100644 --- a/eliona/api_client2/models/widget_type_element.py +++ b/eliona/api_client2/models/widget_type_element.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -40,11 +40,11 @@ def category_validate_enum(cls, value): raise ValueError("must be one of enum values ('input', 'table', 'image', 'tickets', 'map', 'icon', 'range', 'donut', 'comfort', 'sankey', 'progress', 'tracking', 'heatmap', 'radar', 'value', 'calendar', 'trend', 'alarms', 'weather', 'storey')") return value - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) def to_str(self) -> str: diff --git a/eliona/api_client2/rest.py b/eliona/api_client2/rest.py index 636989b..42f1e58 100644 --- a/eliona/api_client2/rest.py +++ b/eliona/api_client2/rest.py @@ -203,6 +203,8 @@ def request( # Content-Type which generated by urllib3 will be # overwritten. del headers['Content-Type'] + # Ensures that dict objects are serialized + post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] r = self.pool_manager.request( method, url, diff --git a/generate.cmd b/generate.cmd index 43a0a95..3dfe3a5 100644 --- a/generate.cmd +++ b/generate.cmd @@ -1,6 +1,6 @@ docker run --rm ^ -v "%cd%":/local ^ - openapitools/openapi-generator-cli:v7.3.0 ^ + openapitools/openapi-generator-cli:v7.5.0 ^ generate ^ -g python ^ --git-user-id eliona-smart-building-assistant ^ diff --git a/generate.sh b/generate.sh index 06af8d7..fcacc86 100755 --- a/generate.sh +++ b/generate.sh @@ -1,6 +1,6 @@ docker run --rm \ -v "${PWD}:/local" \ - openapitools/openapi-generator-cli:v7.3.0 \ + openapitools/openapi-generator-cli:v7.5.0 \ generate \ -g python \ --git-user-id eliona-smart-building-assistant \