From ffb20a278ea9ec2c2d1664d42dddf07bca7dba12 Mon Sep 17 00:00:00 2001 From: "devopsarr[bot]" <127950054+devopsarr[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 06:22:22 +0000 Subject: [PATCH] chore(deps): update openapitools/openapi-generator-cli docker tag to v7.4.0 --- README.md | 1 + docs/ApiInfoResource.md | 2 +- docs/AppProfileResource.md | 2 +- docs/ApplicationBulkResource.md | 2 +- docs/ApplicationResource.md | 2 +- docs/BackupResource.md | 2 +- docs/Command.md | 2 +- docs/CommandResource.md | 2 +- docs/ContractField.md | 2 +- docs/CustomFilterResource.md | 2 +- docs/DevelopmentConfigResource.md | 2 +- docs/DownloadClientBulkResource.md | 2 +- docs/DownloadClientCategory.md | 2 +- docs/DownloadClientConfigResource.md | 2 +- docs/DownloadClientResource.md | 2 +- docs/HealthResource.md | 2 +- docs/HistoryResource.md | 2 +- docs/HistoryResourcePagingResource.md | 2 +- docs/HostConfigResource.md | 2 +- docs/HostStatistics.md | 2 +- docs/IndexerBulkResource.md | 2 +- docs/IndexerCapabilityResource.md | 2 +- docs/IndexerCategory.md | 2 +- docs/IndexerProxyResource.md | 2 +- docs/IndexerResource.md | 2 +- docs/IndexerStatistics.md | 2 +- docs/IndexerStatsResource.md | 2 +- docs/IndexerStatusResource.md | 2 +- docs/LocalizationOption.md | 2 +- docs/LogFileResource.md | 2 +- docs/LogResource.md | 2 +- docs/LogResourcePagingResource.md | 2 +- docs/NotificationResource.md | 2 +- docs/PingResource.md | 2 +- docs/ProviderMessage.md | 2 +- docs/ReleaseResource.md | 2 +- docs/SelectOption.md | 2 +- docs/SystemResource.md | 2 +- docs/TagDetailsResource.md | 2 +- docs/TagResource.md | 2 +- docs/TaskResource.md | 2 +- docs/UiConfigResource.md | 2 +- docs/UpdateChanges.md | 2 +- docs/UpdateResource.md | 2 +- docs/UserAgentStatistics.md | 2 +- prowlarr/models/api_info_resource.py | 12 ++++++------ prowlarr/models/app_profile_resource.py | 12 ++++++------ prowlarr/models/application_bulk_resource.py | 12 ++++++------ prowlarr/models/application_resource.py | 12 ++++++------ prowlarr/models/backup_resource.py | 12 ++++++------ prowlarr/models/command.py | 12 ++++++------ prowlarr/models/command_resource.py | 12 ++++++------ prowlarr/models/contract_field.py | 12 ++++++------ prowlarr/models/custom_filter_resource.py | 12 ++++++------ prowlarr/models/development_config_resource.py | 12 ++++++------ prowlarr/models/download_client_bulk_resource.py | 12 ++++++------ prowlarr/models/download_client_category.py | 12 ++++++------ prowlarr/models/download_client_config_resource.py | 12 ++++++------ prowlarr/models/download_client_resource.py | 12 ++++++------ prowlarr/models/health_resource.py | 12 ++++++------ prowlarr/models/history_resource.py | 12 ++++++------ prowlarr/models/history_resource_paging_resource.py | 12 ++++++------ prowlarr/models/host_config_resource.py | 12 ++++++------ prowlarr/models/host_statistics.py | 12 ++++++------ prowlarr/models/indexer_bulk_resource.py | 12 ++++++------ prowlarr/models/indexer_capability_resource.py | 12 ++++++------ prowlarr/models/indexer_category.py | 12 ++++++------ prowlarr/models/indexer_proxy_resource.py | 12 ++++++------ prowlarr/models/indexer_resource.py | 12 ++++++------ prowlarr/models/indexer_statistics.py | 12 ++++++------ prowlarr/models/indexer_stats_resource.py | 12 ++++++------ prowlarr/models/indexer_status_resource.py | 12 ++++++------ prowlarr/models/localization_option.py | 12 ++++++------ prowlarr/models/log_file_resource.py | 12 ++++++------ prowlarr/models/log_resource.py | 12 ++++++------ prowlarr/models/log_resource_paging_resource.py | 12 ++++++------ prowlarr/models/notification_resource.py | 12 ++++++------ prowlarr/models/ping_resource.py | 12 ++++++------ prowlarr/models/provider_message.py | 12 ++++++------ prowlarr/models/release_resource.py | 12 ++++++------ prowlarr/models/select_option.py | 12 ++++++------ prowlarr/models/system_resource.py | 12 ++++++------ prowlarr/models/tag_details_resource.py | 12 ++++++------ prowlarr/models/tag_resource.py | 12 ++++++------ prowlarr/models/task_resource.py | 12 ++++++------ prowlarr/models/ui_config_resource.py | 12 ++++++------ prowlarr/models/update_changes.py | 12 ++++++------ prowlarr/models/update_resource.py | 12 ++++++------ prowlarr/models/user_agent_statistics.py | 12 ++++++------ 89 files changed, 309 insertions(+), 308 deletions(-) diff --git a/README.md b/README.md index c5413d7..c0c10ad 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: - API version: v1.13.3.4273 - Package version: 1.0.1 +- Generator version: 7.4.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/docs/ApiInfoResource.md b/docs/ApiInfoResource.md index 63f697f..62a6c5c 100644 --- a/docs/ApiInfoResource.md +++ b/docs/ApiInfoResource.md @@ -18,7 +18,7 @@ json = "{}" # create an instance of ApiInfoResource from a JSON string api_info_resource_instance = ApiInfoResource.from_json(json) # print the JSON string representation of the object -print ApiInfoResource.to_json() +print(ApiInfoResource.to_json()) # convert the object into a dict api_info_resource_dict = api_info_resource_instance.to_dict() diff --git a/docs/AppProfileResource.md b/docs/AppProfileResource.md index 6ec0060..232f0b2 100644 --- a/docs/AppProfileResource.md +++ b/docs/AppProfileResource.md @@ -22,7 +22,7 @@ json = "{}" # create an instance of AppProfileResource from a JSON string app_profile_resource_instance = AppProfileResource.from_json(json) # print the JSON string representation of the object -print AppProfileResource.to_json() +print(AppProfileResource.to_json()) # convert the object into a dict app_profile_resource_dict = app_profile_resource_instance.to_dict() diff --git a/docs/ApplicationBulkResource.md b/docs/ApplicationBulkResource.md index bae56d7..90aa981 100644 --- a/docs/ApplicationBulkResource.md +++ b/docs/ApplicationBulkResource.md @@ -20,7 +20,7 @@ json = "{}" # create an instance of ApplicationBulkResource from a JSON string application_bulk_resource_instance = ApplicationBulkResource.from_json(json) # print the JSON string representation of the object -print ApplicationBulkResource.to_json() +print(ApplicationBulkResource.to_json()) # convert the object into a dict application_bulk_resource_dict = application_bulk_resource_instance.to_dict() diff --git a/docs/ApplicationResource.md b/docs/ApplicationResource.md index b7300ad..8aa0fcb 100644 --- a/docs/ApplicationResource.md +++ b/docs/ApplicationResource.md @@ -28,7 +28,7 @@ json = "{}" # create an instance of ApplicationResource from a JSON string application_resource_instance = ApplicationResource.from_json(json) # print the JSON string representation of the object -print ApplicationResource.to_json() +print(ApplicationResource.to_json()) # convert the object into a dict application_resource_dict = application_resource_instance.to_dict() diff --git a/docs/BackupResource.md b/docs/BackupResource.md index 4421f40..b22126b 100644 --- a/docs/BackupResource.md +++ b/docs/BackupResource.md @@ -22,7 +22,7 @@ json = "{}" # create an instance of BackupResource from a JSON string backup_resource_instance = BackupResource.from_json(json) # print the JSON string representation of the object -print BackupResource.to_json() +print(BackupResource.to_json()) # convert the object into a dict backup_resource_dict = backup_resource_instance.to_dict() diff --git a/docs/Command.md b/docs/Command.md index 380c844..ae98889 100644 --- a/docs/Command.md +++ b/docs/Command.md @@ -28,7 +28,7 @@ json = "{}" # create an instance of Command from a JSON string command_instance = Command.from_json(json) # print the JSON string representation of the object -print Command.to_json() +print(Command.to_json()) # convert the object into a dict command_dict = command_instance.to_dict() diff --git a/docs/CommandResource.md b/docs/CommandResource.md index 28d26ae..2de9830 100644 --- a/docs/CommandResource.md +++ b/docs/CommandResource.md @@ -34,7 +34,7 @@ json = "{}" # create an instance of CommandResource from a JSON string command_resource_instance = CommandResource.from_json(json) # print the JSON string representation of the object -print CommandResource.to_json() +print(CommandResource.to_json()) # convert the object into a dict command_resource_dict = command_resource_instance.to_dict() diff --git a/docs/ContractField.md b/docs/ContractField.md index 39465bd..5aa9346 100644 --- a/docs/ContractField.md +++ b/docs/ContractField.md @@ -33,7 +33,7 @@ json = "{}" # create an instance of ContractField from a JSON string contract_field_instance = ContractField.from_json(json) # print the JSON string representation of the object -print ContractField.to_json() +print(ContractField.to_json()) # convert the object into a dict contract_field_dict = contract_field_instance.to_dict() diff --git a/docs/CustomFilterResource.md b/docs/CustomFilterResource.md index 7b4c5a1..3fc4960 100644 --- a/docs/CustomFilterResource.md +++ b/docs/CustomFilterResource.md @@ -20,7 +20,7 @@ json = "{}" # create an instance of CustomFilterResource from a JSON string custom_filter_resource_instance = CustomFilterResource.from_json(json) # print the JSON string representation of the object -print CustomFilterResource.to_json() +print(CustomFilterResource.to_json()) # convert the object into a dict custom_filter_resource_dict = custom_filter_resource_instance.to_dict() diff --git a/docs/DevelopmentConfigResource.md b/docs/DevelopmentConfigResource.md index 8719e46..f7ad8e4 100644 --- a/docs/DevelopmentConfigResource.md +++ b/docs/DevelopmentConfigResource.md @@ -22,7 +22,7 @@ json = "{}" # create an instance of DevelopmentConfigResource from a JSON string development_config_resource_instance = DevelopmentConfigResource.from_json(json) # print the JSON string representation of the object -print DevelopmentConfigResource.to_json() +print(DevelopmentConfigResource.to_json()) # convert the object into a dict development_config_resource_dict = development_config_resource_instance.to_dict() diff --git a/docs/DownloadClientBulkResource.md b/docs/DownloadClientBulkResource.md index 077b464..4f55da0 100644 --- a/docs/DownloadClientBulkResource.md +++ b/docs/DownloadClientBulkResource.md @@ -21,7 +21,7 @@ json = "{}" # create an instance of DownloadClientBulkResource from a JSON string download_client_bulk_resource_instance = DownloadClientBulkResource.from_json(json) # print the JSON string representation of the object -print DownloadClientBulkResource.to_json() +print(DownloadClientBulkResource.to_json()) # convert the object into a dict download_client_bulk_resource_dict = download_client_bulk_resource_instance.to_dict() diff --git a/docs/DownloadClientCategory.md b/docs/DownloadClientCategory.md index beefec3..71c416f 100644 --- a/docs/DownloadClientCategory.md +++ b/docs/DownloadClientCategory.md @@ -18,7 +18,7 @@ json = "{}" # create an instance of DownloadClientCategory from a JSON string download_client_category_instance = DownloadClientCategory.from_json(json) # print the JSON string representation of the object -print DownloadClientCategory.to_json() +print(DownloadClientCategory.to_json()) # convert the object into a dict download_client_category_dict = download_client_category_instance.to_dict() diff --git a/docs/DownloadClientConfigResource.md b/docs/DownloadClientConfigResource.md index 34d8ee1..7aff802 100644 --- a/docs/DownloadClientConfigResource.md +++ b/docs/DownloadClientConfigResource.md @@ -17,7 +17,7 @@ json = "{}" # create an instance of DownloadClientConfigResource from a JSON string download_client_config_resource_instance = DownloadClientConfigResource.from_json(json) # print the JSON string representation of the object -print DownloadClientConfigResource.to_json() +print(DownloadClientConfigResource.to_json()) # convert the object into a dict download_client_config_resource_dict = download_client_config_resource_instance.to_dict() diff --git a/docs/DownloadClientResource.md b/docs/DownloadClientResource.md index 4268286..774cd57 100644 --- a/docs/DownloadClientResource.md +++ b/docs/DownloadClientResource.md @@ -31,7 +31,7 @@ json = "{}" # create an instance of DownloadClientResource from a JSON string download_client_resource_instance = DownloadClientResource.from_json(json) # print the JSON string representation of the object -print DownloadClientResource.to_json() +print(DownloadClientResource.to_json()) # convert the object into a dict download_client_resource_dict = download_client_resource_instance.to_dict() diff --git a/docs/HealthResource.md b/docs/HealthResource.md index 5419073..212d2e6 100644 --- a/docs/HealthResource.md +++ b/docs/HealthResource.md @@ -21,7 +21,7 @@ json = "{}" # create an instance of HealthResource from a JSON string health_resource_instance = HealthResource.from_json(json) # print the JSON string representation of the object -print HealthResource.to_json() +print(HealthResource.to_json()) # convert the object into a dict health_resource_dict = health_resource_instance.to_dict() diff --git a/docs/HistoryResource.md b/docs/HistoryResource.md index f7ba651..9ac7659 100644 --- a/docs/HistoryResource.md +++ b/docs/HistoryResource.md @@ -23,7 +23,7 @@ json = "{}" # create an instance of HistoryResource from a JSON string history_resource_instance = HistoryResource.from_json(json) # print the JSON string representation of the object -print HistoryResource.to_json() +print(HistoryResource.to_json()) # convert the object into a dict history_resource_dict = history_resource_instance.to_dict() diff --git a/docs/HistoryResourcePagingResource.md b/docs/HistoryResourcePagingResource.md index 57d1672..01d103c 100644 --- a/docs/HistoryResourcePagingResource.md +++ b/docs/HistoryResourcePagingResource.md @@ -22,7 +22,7 @@ json = "{}" # create an instance of HistoryResourcePagingResource from a JSON string history_resource_paging_resource_instance = HistoryResourcePagingResource.from_json(json) # print the JSON string representation of the object -print HistoryResourcePagingResource.to_json() +print(HistoryResourcePagingResource.to_json()) # convert the object into a dict history_resource_paging_resource_dict = history_resource_paging_resource_instance.to_dict() diff --git a/docs/HostConfigResource.md b/docs/HostConfigResource.md index 16cee7b..d6d049c 100644 --- a/docs/HostConfigResource.md +++ b/docs/HostConfigResource.md @@ -53,7 +53,7 @@ json = "{}" # create an instance of HostConfigResource from a JSON string host_config_resource_instance = HostConfigResource.from_json(json) # print the JSON string representation of the object -print HostConfigResource.to_json() +print(HostConfigResource.to_json()) # convert the object into a dict host_config_resource_dict = host_config_resource_instance.to_dict() diff --git a/docs/HostStatistics.md b/docs/HostStatistics.md index 1151703..2d129fd 100644 --- a/docs/HostStatistics.md +++ b/docs/HostStatistics.md @@ -19,7 +19,7 @@ json = "{}" # create an instance of HostStatistics from a JSON string host_statistics_instance = HostStatistics.from_json(json) # print the JSON string representation of the object -print HostStatistics.to_json() +print(HostStatistics.to_json()) # convert the object into a dict host_statistics_dict = host_statistics_instance.to_dict() diff --git a/docs/IndexerBulkResource.md b/docs/IndexerBulkResource.md index e265eac..9fd3517 100644 --- a/docs/IndexerBulkResource.md +++ b/docs/IndexerBulkResource.md @@ -26,7 +26,7 @@ json = "{}" # create an instance of IndexerBulkResource from a JSON string indexer_bulk_resource_instance = IndexerBulkResource.from_json(json) # print the JSON string representation of the object -print IndexerBulkResource.to_json() +print(IndexerBulkResource.to_json()) # convert the object into a dict indexer_bulk_resource_dict = indexer_bulk_resource_instance.to_dict() diff --git a/docs/IndexerCapabilityResource.md b/docs/IndexerCapabilityResource.md index a8d8eed..ef04d83 100644 --- a/docs/IndexerCapabilityResource.md +++ b/docs/IndexerCapabilityResource.md @@ -26,7 +26,7 @@ json = "{}" # create an instance of IndexerCapabilityResource from a JSON string indexer_capability_resource_instance = IndexerCapabilityResource.from_json(json) # print the JSON string representation of the object -print IndexerCapabilityResource.to_json() +print(IndexerCapabilityResource.to_json()) # convert the object into a dict indexer_capability_resource_dict = indexer_capability_resource_instance.to_dict() diff --git a/docs/IndexerCategory.md b/docs/IndexerCategory.md index 6b82d43..5f38c56 100644 --- a/docs/IndexerCategory.md +++ b/docs/IndexerCategory.md @@ -20,7 +20,7 @@ json = "{}" # create an instance of IndexerCategory from a JSON string indexer_category_instance = IndexerCategory.from_json(json) # print the JSON string representation of the object -print IndexerCategory.to_json() +print(IndexerCategory.to_json()) # convert the object into a dict indexer_category_dict = indexer_category_instance.to_dict() diff --git a/docs/IndexerProxyResource.md b/docs/IndexerProxyResource.md index 06583e6..ff5047a 100644 --- a/docs/IndexerProxyResource.md +++ b/docs/IndexerProxyResource.md @@ -31,7 +31,7 @@ json = "{}" # create an instance of IndexerProxyResource from a JSON string indexer_proxy_resource_instance = IndexerProxyResource.from_json(json) # print the JSON string representation of the object -print IndexerProxyResource.to_json() +print(IndexerProxyResource.to_json()) # convert the object into a dict indexer_proxy_resource_dict = indexer_proxy_resource_instance.to_dict() diff --git a/docs/IndexerResource.md b/docs/IndexerResource.md index 922374a..cf957f7 100644 --- a/docs/IndexerResource.md +++ b/docs/IndexerResource.md @@ -47,7 +47,7 @@ json = "{}" # create an instance of IndexerResource from a JSON string indexer_resource_instance = IndexerResource.from_json(json) # print the JSON string representation of the object -print IndexerResource.to_json() +print(IndexerResource.to_json()) # convert the object into a dict indexer_resource_dict = indexer_resource_instance.to_dict() diff --git a/docs/IndexerStatistics.md b/docs/IndexerStatistics.md index 4b0b349..43fc1ff 100644 --- a/docs/IndexerStatistics.md +++ b/docs/IndexerStatistics.md @@ -27,7 +27,7 @@ json = "{}" # create an instance of IndexerStatistics from a JSON string indexer_statistics_instance = IndexerStatistics.from_json(json) # print the JSON string representation of the object -print IndexerStatistics.to_json() +print(IndexerStatistics.to_json()) # convert the object into a dict indexer_statistics_dict = indexer_statistics_instance.to_dict() diff --git a/docs/IndexerStatsResource.md b/docs/IndexerStatsResource.md index 0f99c06..ed16761 100644 --- a/docs/IndexerStatsResource.md +++ b/docs/IndexerStatsResource.md @@ -20,7 +20,7 @@ json = "{}" # create an instance of IndexerStatsResource from a JSON string indexer_stats_resource_instance = IndexerStatsResource.from_json(json) # print the JSON string representation of the object -print IndexerStatsResource.to_json() +print(IndexerStatsResource.to_json()) # convert the object into a dict indexer_stats_resource_dict = indexer_stats_resource_instance.to_dict() diff --git a/docs/IndexerStatusResource.md b/docs/IndexerStatusResource.md index 9b9a95e..1b27c98 100644 --- a/docs/IndexerStatusResource.md +++ b/docs/IndexerStatusResource.md @@ -21,7 +21,7 @@ json = "{}" # create an instance of IndexerStatusResource from a JSON string indexer_status_resource_instance = IndexerStatusResource.from_json(json) # print the JSON string representation of the object -print IndexerStatusResource.to_json() +print(IndexerStatusResource.to_json()) # convert the object into a dict indexer_status_resource_dict = indexer_status_resource_instance.to_dict() diff --git a/docs/LocalizationOption.md b/docs/LocalizationOption.md index 7360e03..7dfba04 100644 --- a/docs/LocalizationOption.md +++ b/docs/LocalizationOption.md @@ -18,7 +18,7 @@ json = "{}" # create an instance of LocalizationOption from a JSON string localization_option_instance = LocalizationOption.from_json(json) # print the JSON string representation of the object -print LocalizationOption.to_json() +print(LocalizationOption.to_json()) # convert the object into a dict localization_option_dict = localization_option_instance.to_dict() diff --git a/docs/LogFileResource.md b/docs/LogFileResource.md index f39d6c0..d790c58 100644 --- a/docs/LogFileResource.md +++ b/docs/LogFileResource.md @@ -21,7 +21,7 @@ json = "{}" # create an instance of LogFileResource from a JSON string log_file_resource_instance = LogFileResource.from_json(json) # print the JSON string representation of the object -print LogFileResource.to_json() +print(LogFileResource.to_json()) # convert the object into a dict log_file_resource_dict = log_file_resource_instance.to_dict() diff --git a/docs/LogResource.md b/docs/LogResource.md index 6ffb9d2..2f1c5cc 100644 --- a/docs/LogResource.md +++ b/docs/LogResource.md @@ -24,7 +24,7 @@ json = "{}" # create an instance of LogResource from a JSON string log_resource_instance = LogResource.from_json(json) # print the JSON string representation of the object -print LogResource.to_json() +print(LogResource.to_json()) # convert the object into a dict log_resource_dict = log_resource_instance.to_dict() diff --git a/docs/LogResourcePagingResource.md b/docs/LogResourcePagingResource.md index 0621394..dc49bb3 100644 --- a/docs/LogResourcePagingResource.md +++ b/docs/LogResourcePagingResource.md @@ -22,7 +22,7 @@ json = "{}" # create an instance of LogResourcePagingResource from a JSON string log_resource_paging_resource_instance = LogResourcePagingResource.from_json(json) # print the JSON string representation of the object -print LogResourcePagingResource.to_json() +print(LogResourcePagingResource.to_json()) # convert the object into a dict log_resource_paging_resource_dict = log_resource_paging_resource_instance.to_dict() diff --git a/docs/NotificationResource.md b/docs/NotificationResource.md index a8fd525..c46a230 100644 --- a/docs/NotificationResource.md +++ b/docs/NotificationResource.md @@ -38,7 +38,7 @@ json = "{}" # create an instance of NotificationResource from a JSON string notification_resource_instance = NotificationResource.from_json(json) # print the JSON string representation of the object -print NotificationResource.to_json() +print(NotificationResource.to_json()) # convert the object into a dict notification_resource_dict = notification_resource_instance.to_dict() diff --git a/docs/PingResource.md b/docs/PingResource.md index 02f711a..a0591aa 100644 --- a/docs/PingResource.md +++ b/docs/PingResource.md @@ -17,7 +17,7 @@ json = "{}" # create an instance of PingResource from a JSON string ping_resource_instance = PingResource.from_json(json) # print the JSON string representation of the object -print PingResource.to_json() +print(PingResource.to_json()) # convert the object into a dict ping_resource_dict = ping_resource_instance.to_dict() diff --git a/docs/ProviderMessage.md b/docs/ProviderMessage.md index 61ae188..1965f84 100644 --- a/docs/ProviderMessage.md +++ b/docs/ProviderMessage.md @@ -18,7 +18,7 @@ json = "{}" # create an instance of ProviderMessage from a JSON string provider_message_instance = ProviderMessage.from_json(json) # print the JSON string representation of the object -print ProviderMessage.to_json() +print(ProviderMessage.to_json()) # convert the object into a dict provider_message_dict = provider_message_instance.to_dict() diff --git a/docs/ReleaseResource.md b/docs/ReleaseResource.md index 2f3bcd5..539b34f 100644 --- a/docs/ReleaseResource.md +++ b/docs/ReleaseResource.md @@ -47,7 +47,7 @@ json = "{}" # create an instance of ReleaseResource from a JSON string release_resource_instance = ReleaseResource.from_json(json) # print the JSON string representation of the object -print ReleaseResource.to_json() +print(ReleaseResource.to_json()) # convert the object into a dict release_resource_dict = release_resource_instance.to_dict() diff --git a/docs/SelectOption.md b/docs/SelectOption.md index 8363791..a1e377b 100644 --- a/docs/SelectOption.md +++ b/docs/SelectOption.md @@ -21,7 +21,7 @@ json = "{}" # create an instance of SelectOption from a JSON string select_option_instance = SelectOption.from_json(json) # print the JSON string representation of the object -print SelectOption.to_json() +print(SelectOption.to_json()) # convert the object into a dict select_option_dict = select_option_instance.to_dict() diff --git a/docs/SystemResource.md b/docs/SystemResource.md index 731e235..a6ff093 100644 --- a/docs/SystemResource.md +++ b/docs/SystemResource.md @@ -47,7 +47,7 @@ json = "{}" # create an instance of SystemResource from a JSON string system_resource_instance = SystemResource.from_json(json) # print the JSON string representation of the object -print SystemResource.to_json() +print(SystemResource.to_json()) # convert the object into a dict system_resource_dict = system_resource_instance.to_dict() diff --git a/docs/TagDetailsResource.md b/docs/TagDetailsResource.md index 015b265..d7dedf7 100644 --- a/docs/TagDetailsResource.md +++ b/docs/TagDetailsResource.md @@ -22,7 +22,7 @@ json = "{}" # create an instance of TagDetailsResource from a JSON string tag_details_resource_instance = TagDetailsResource.from_json(json) # print the JSON string representation of the object -print TagDetailsResource.to_json() +print(TagDetailsResource.to_json()) # convert the object into a dict tag_details_resource_dict = tag_details_resource_instance.to_dict() diff --git a/docs/TagResource.md b/docs/TagResource.md index 7312b9a..8428bb7 100644 --- a/docs/TagResource.md +++ b/docs/TagResource.md @@ -18,7 +18,7 @@ json = "{}" # create an instance of TagResource from a JSON string tag_resource_instance = TagResource.from_json(json) # print the JSON string representation of the object -print TagResource.to_json() +print(TagResource.to_json()) # convert the object into a dict tag_resource_dict = tag_resource_instance.to_dict() diff --git a/docs/TaskResource.md b/docs/TaskResource.md index beeeca8..b2b9524 100644 --- a/docs/TaskResource.md +++ b/docs/TaskResource.md @@ -24,7 +24,7 @@ json = "{}" # create an instance of TaskResource from a JSON string task_resource_instance = TaskResource.from_json(json) # print the JSON string representation of the object -print TaskResource.to_json() +print(TaskResource.to_json()) # convert the object into a dict task_resource_dict = task_resource_instance.to_dict() diff --git a/docs/UiConfigResource.md b/docs/UiConfigResource.md index 0083fe4..4dd2a63 100644 --- a/docs/UiConfigResource.md +++ b/docs/UiConfigResource.md @@ -26,7 +26,7 @@ json = "{}" # create an instance of UiConfigResource from a JSON string ui_config_resource_instance = UiConfigResource.from_json(json) # print the JSON string representation of the object -print UiConfigResource.to_json() +print(UiConfigResource.to_json()) # convert the object into a dict ui_config_resource_dict = ui_config_resource_instance.to_dict() diff --git a/docs/UpdateChanges.md b/docs/UpdateChanges.md index 21810cc..d7fae47 100644 --- a/docs/UpdateChanges.md +++ b/docs/UpdateChanges.md @@ -18,7 +18,7 @@ json = "{}" # create an instance of UpdateChanges from a JSON string update_changes_instance = UpdateChanges.from_json(json) # print the JSON string representation of the object -print UpdateChanges.to_json() +print(UpdateChanges.to_json()) # convert the object into a dict update_changes_dict = update_changes_instance.to_dict() diff --git a/docs/UpdateResource.md b/docs/UpdateResource.md index c64dc10..5836158 100644 --- a/docs/UpdateResource.md +++ b/docs/UpdateResource.md @@ -28,7 +28,7 @@ json = "{}" # create an instance of UpdateResource from a JSON string update_resource_instance = UpdateResource.from_json(json) # print the JSON string representation of the object -print UpdateResource.to_json() +print(UpdateResource.to_json()) # convert the object into a dict update_resource_dict = update_resource_instance.to_dict() diff --git a/docs/UserAgentStatistics.md b/docs/UserAgentStatistics.md index f928edb..fa4fe9e 100644 --- a/docs/UserAgentStatistics.md +++ b/docs/UserAgentStatistics.md @@ -19,7 +19,7 @@ json = "{}" # create an instance of UserAgentStatistics from a JSON string user_agent_statistics_instance = UserAgentStatistics.from_json(json) # print the JSON string representation of the object -print UserAgentStatistics.to_json() +print(UserAgentStatistics.to_json()) # convert the object into a dict user_agent_statistics_dict = user_agent_statistics_instance.to_dict() diff --git a/prowlarr/models/api_info_resource.py b/prowlarr/models/api_info_resource.py index 6a0307a..541296c 100644 --- a/prowlarr/models/api_info_resource.py +++ b/prowlarr/models/api_info_resource.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -30,11 +30,11 @@ class ApiInfoResource(BaseModel): deprecated: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["current", "deprecated"] - 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/prowlarr/models/app_profile_resource.py b/prowlarr/models/app_profile_resource.py index ca3a747..1d117f8 100644 --- a/prowlarr/models/app_profile_resource.py +++ b/prowlarr/models/app_profile_resource.py @@ -17,7 +17,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, Optional from typing import Optional, Set from typing_extensions import Self @@ -34,11 +34,11 @@ class AppProfileResource(BaseModel): minimum_seeders: Optional[StrictInt] = Field(default=None, alias="minimumSeeders") __properties: ClassVar[List[str]] = ["id", "name", "enableRss", "enableAutomaticSearch", "enableInteractiveSearch", "minimumSeeders"] - 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/prowlarr/models/application_bulk_resource.py b/prowlarr/models/application_bulk_resource.py index 2790656..670d8b1 100644 --- a/prowlarr/models/application_bulk_resource.py +++ b/prowlarr/models/application_bulk_resource.py @@ -17,7 +17,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 prowlarr.models.application_sync_level import ApplicationSyncLevel from prowlarr.models.apply_tags import ApplyTags @@ -34,11 +34,11 @@ class ApplicationBulkResource(BaseModel): sync_level: Optional[ApplicationSyncLevel] = Field(default=None, alias="syncLevel") __properties: ClassVar[List[str]] = ["ids", "tags", "applyTags", "syncLevel"] - 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/prowlarr/models/application_resource.py b/prowlarr/models/application_resource.py index bb87ef8..4c29fc9 100644 --- a/prowlarr/models/application_resource.py +++ b/prowlarr/models/application_resource.py @@ -17,7 +17,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 prowlarr.models.application_sync_level import ApplicationSyncLevel from prowlarr.models.contract_field import ContractField @@ -43,11 +43,11 @@ class ApplicationResource(BaseModel): test_command: Optional[StrictStr] = Field(default=None, alias="testCommand") __properties: ClassVar[List[str]] = ["id", "name", "fields", "implementationName", "implementation", "configContract", "infoLink", "message", "tags", "presets", "syncLevel", "testCommand"] - 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/prowlarr/models/backup_resource.py b/prowlarr/models/backup_resource.py index 9196929..664db24 100644 --- a/prowlarr/models/backup_resource.py +++ b/prowlarr/models/backup_resource.py @@ -18,7 +18,7 @@ import json from datetime import datetime -from pydantic import BaseModel, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, Optional from prowlarr.models.backup_type import BackupType from typing import Optional, Set @@ -36,11 +36,11 @@ class BackupResource(BaseModel): time: Optional[datetime] = None __properties: ClassVar[List[str]] = ["id", "name", "path", "type", "size", "time"] - 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/prowlarr/models/command.py b/prowlarr/models/command.py index fbe7c8e..4b72ecf 100644 --- a/prowlarr/models/command.py +++ b/prowlarr/models/command.py @@ -18,7 +18,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, Optional from prowlarr.models.command_trigger import CommandTrigger from typing import Optional, Set @@ -42,11 +42,11 @@ class Command(BaseModel): client_user_agent: Optional[StrictStr] = Field(default=None, alias="clientUserAgent") __properties: ClassVar[List[str]] = ["sendUpdatesToClient", "updateScheduledTask", "completionMessage", "requiresDiskAccess", "isExclusive", "isTypeExclusive", "name", "lastExecutionTime", "lastStartTime", "trigger", "suppressMessages", "clientUserAgent"] - 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/prowlarr/models/command_resource.py b/prowlarr/models/command_resource.py index 5742c34..3b207b3 100644 --- a/prowlarr/models/command_resource.py +++ b/prowlarr/models/command_resource.py @@ -18,7 +18,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, Optional from prowlarr.models.command import Command from prowlarr.models.command_priority import CommandPriority @@ -51,11 +51,11 @@ class CommandResource(BaseModel): last_execution_time: Optional[datetime] = Field(default=None, alias="lastExecutionTime") __properties: ClassVar[List[str]] = ["id", "name", "commandName", "message", "body", "priority", "status", "queued", "started", "ended", "duration", "exception", "trigger", "clientUserAgent", "stateChangeTime", "sendUpdatesToClient", "updateScheduledTask", "lastExecutionTime"] - 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/prowlarr/models/contract_field.py b/prowlarr/models/contract_field.py index 2ea5d17..ecb66cb 100644 --- a/prowlarr/models/contract_field.py +++ b/prowlarr/models/contract_field.py @@ -17,7 +17,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 prowlarr.models.privacy_level import PrivacyLevel from prowlarr.models.select_option import SelectOption @@ -47,11 +47,11 @@ class ContractField(BaseModel): is_float: Optional[StrictBool] = Field(default=None, alias="isFloat") __properties: ClassVar[List[str]] = ["order", "name", "label", "unit", "helpText", "helpTextWarning", "helpLink", "value", "type", "advanced", "selectOptions", "selectOptionsProviderAction", "section", "hidden", "privacy", "placeholder", "isFloat"] - 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/prowlarr/models/custom_filter_resource.py b/prowlarr/models/custom_filter_resource.py index 56ad664..663dfbb 100644 --- a/prowlarr/models/custom_filter_resource.py +++ b/prowlarr/models/custom_filter_resource.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 CustomFilterResource(BaseModel): filters: Optional[List[Dict[str, Any]]] = None __properties: ClassVar[List[str]] = ["id", "type", "label", "filters"] - 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/prowlarr/models/development_config_resource.py b/prowlarr/models/development_config_resource.py index 0dfe01d..80f855c 100644 --- a/prowlarr/models/development_config_resource.py +++ b/prowlarr/models/development_config_resource.py @@ -17,7 +17,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, Optional from typing import Optional, Set from typing_extensions import Self @@ -34,11 +34,11 @@ class DevelopmentConfigResource(BaseModel): filter_sentry_events: Optional[StrictBool] = Field(default=None, alias="filterSentryEvents") __properties: ClassVar[List[str]] = ["id", "consoleLogLevel", "logSql", "logIndexerResponse", "logRotate", "filterSentryEvents"] - 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/prowlarr/models/download_client_bulk_resource.py b/prowlarr/models/download_client_bulk_resource.py index d02a556..f23b29b 100644 --- a/prowlarr/models/download_client_bulk_resource.py +++ b/prowlarr/models/download_client_bulk_resource.py @@ -17,7 +17,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 prowlarr.models.apply_tags import ApplyTags from typing import Optional, Set @@ -34,11 +34,11 @@ class DownloadClientBulkResource(BaseModel): priority: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["ids", "tags", "applyTags", "enable", "priority"] - 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/prowlarr/models/download_client_category.py b/prowlarr/models/download_client_category.py index 1d26043..a76514d 100644 --- a/prowlarr/models/download_client_category.py +++ b/prowlarr/models/download_client_category.py @@ -17,7 +17,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 @@ -30,11 +30,11 @@ class DownloadClientCategory(BaseModel): categories: Optional[List[StrictInt]] = None __properties: ClassVar[List[str]] = ["clientCategory", "categories"] - 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/prowlarr/models/download_client_config_resource.py b/prowlarr/models/download_client_config_resource.py index b003709..6ef5348 100644 --- a/prowlarr/models/download_client_config_resource.py +++ b/prowlarr/models/download_client_config_resource.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, StrictInt +from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -29,11 +29,11 @@ class DownloadClientConfigResource(BaseModel): id: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["id"] - 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/prowlarr/models/download_client_resource.py b/prowlarr/models/download_client_resource.py index 7f8dcca..a68e971 100644 --- a/prowlarr/models/download_client_resource.py +++ b/prowlarr/models/download_client_resource.py @@ -17,7 +17,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 prowlarr.models.contract_field import ContractField from prowlarr.models.download_client_category import DownloadClientCategory @@ -47,11 +47,11 @@ class DownloadClientResource(BaseModel): supports_categories: Optional[StrictBool] = Field(default=None, alias="supportsCategories") __properties: ClassVar[List[str]] = ["id", "name", "fields", "implementationName", "implementation", "configContract", "infoLink", "message", "tags", "presets", "enable", "protocol", "priority", "categories", "supportsCategories"] - 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/prowlarr/models/health_resource.py b/prowlarr/models/health_resource.py index bdbff83..6ae758b 100644 --- a/prowlarr/models/health_resource.py +++ b/prowlarr/models/health_resource.py @@ -17,7 +17,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, Optional from prowlarr.models.health_check_result import HealthCheckResult from typing import Optional, Set @@ -34,11 +34,11 @@ class HealthResource(BaseModel): wiki_url: Optional[StrictStr] = Field(default=None, alias="wikiUrl") __properties: ClassVar[List[str]] = ["id", "source", "type", "message", "wikiUrl"] - 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/prowlarr/models/history_resource.py b/prowlarr/models/history_resource.py index 57bcc4a..04cf35a 100644 --- a/prowlarr/models/history_resource.py +++ b/prowlarr/models/history_resource.py @@ -18,7 +18,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, Optional from prowlarr.models.history_event_type import HistoryEventType from typing import Optional, Set @@ -37,11 +37,11 @@ class HistoryResource(BaseModel): data: Optional[Dict[str, Optional[StrictStr]]] = None __properties: ClassVar[List[str]] = ["id", "indexerId", "date", "downloadId", "successful", "eventType", "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/prowlarr/models/history_resource_paging_resource.py b/prowlarr/models/history_resource_paging_resource.py index 4ae2ac9..b9acdbe 100644 --- a/prowlarr/models/history_resource_paging_resource.py +++ b/prowlarr/models/history_resource_paging_resource.py @@ -17,7 +17,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 prowlarr.models.history_resource import HistoryResource from prowlarr.models.sort_direction import SortDirection @@ -36,11 +36,11 @@ class HistoryResourcePagingResource(BaseModel): records: Optional[List[HistoryResource]] = None __properties: ClassVar[List[str]] = ["page", "pageSize", "sortKey", "sortDirection", "totalRecords", "records"] - 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/prowlarr/models/host_config_resource.py b/prowlarr/models/host_config_resource.py index e649aaf..777357e 100644 --- a/prowlarr/models/host_config_resource.py +++ b/prowlarr/models/host_config_resource.py @@ -17,7 +17,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, Optional from prowlarr.models.authentication_required_type import AuthenticationRequiredType from prowlarr.models.authentication_type import AuthenticationType @@ -70,11 +70,11 @@ class HostConfigResource(BaseModel): history_cleanup_days: Optional[StrictInt] = Field(default=None, alias="historyCleanupDays") __properties: ClassVar[List[str]] = ["id", "bindAddress", "port", "sslPort", "enableSsl", "launchBrowser", "authenticationMethod", "authenticationRequired", "analyticsEnabled", "username", "password", "passwordConfirmation", "logLevel", "consoleLogLevel", "branch", "apiKey", "sslCertPath", "sslCertPassword", "urlBase", "instanceName", "applicationUrl", "updateAutomatically", "updateMechanism", "updateScriptPath", "proxyEnabled", "proxyType", "proxyHostname", "proxyPort", "proxyUsername", "proxyPassword", "proxyBypassFilter", "proxyBypassLocalAddresses", "certificateValidation", "backupFolder", "backupInterval", "backupRetention", "historyCleanupDays"] - 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/prowlarr/models/host_statistics.py b/prowlarr/models/host_statistics.py index a7fbe11..9a89de3 100644 --- a/prowlarr/models/host_statistics.py +++ b/prowlarr/models/host_statistics.py @@ -17,7 +17,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, Optional from typing import Optional, Set from typing_extensions import Self @@ -31,11 +31,11 @@ class HostStatistics(BaseModel): number_of_grabs: Optional[StrictInt] = Field(default=None, alias="numberOfGrabs") __properties: ClassVar[List[str]] = ["host", "numberOfQueries", "numberOfGrabs"] - 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/prowlarr/models/indexer_bulk_resource.py b/prowlarr/models/indexer_bulk_resource.py index 1464a05..ef5519a 100644 --- a/prowlarr/models/indexer_bulk_resource.py +++ b/prowlarr/models/indexer_bulk_resource.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union from prowlarr.models.apply_tags import ApplyTags from typing import Optional, Set @@ -39,11 +39,11 @@ class IndexerBulkResource(BaseModel): pack_seed_time: Optional[StrictInt] = Field(default=None, alias="packSeedTime") __properties: ClassVar[List[str]] = ["ids", "tags", "applyTags", "enable", "appProfileId", "priority", "minimumSeeders", "seedRatio", "seedTime", "packSeedTime"] - 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/prowlarr/models/indexer_capability_resource.py b/prowlarr/models/indexer_capability_resource.py index 1b9a119..aa39e80 100644 --- a/prowlarr/models/indexer_capability_resource.py +++ b/prowlarr/models/indexer_capability_resource.py @@ -17,7 +17,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 prowlarr.models.book_search_param import BookSearchParam from prowlarr.models.indexer_category import IndexerCategory @@ -44,11 +44,11 @@ class IndexerCapabilityResource(BaseModel): book_search_params: Optional[List[BookSearchParam]] = Field(default=None, alias="bookSearchParams") __properties: ClassVar[List[str]] = ["id", "limitsMax", "limitsDefault", "categories", "supportsRawSearch", "searchParams", "tvSearchParams", "movieSearchParams", "musicSearchParams", "bookSearchParams"] - 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/prowlarr/models/indexer_category.py b/prowlarr/models/indexer_category.py index 33aa746..55f083b 100644 --- a/prowlarr/models/indexer_category.py +++ b/prowlarr/models/indexer_category.py @@ -17,7 +17,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 IndexerCategory(BaseModel): sub_categories: Optional[List[IndexerCategory]] = Field(default=None, alias="subCategories") __properties: ClassVar[List[str]] = ["id", "name", "description", "subCategories"] - 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/prowlarr/models/indexer_proxy_resource.py b/prowlarr/models/indexer_proxy_resource.py index f95e698..b32f36f 100644 --- a/prowlarr/models/indexer_proxy_resource.py +++ b/prowlarr/models/indexer_proxy_resource.py @@ -17,7 +17,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 prowlarr.models.contract_field import ContractField from prowlarr.models.provider_message import ProviderMessage @@ -45,11 +45,11 @@ class IndexerProxyResource(BaseModel): test_command: Optional[StrictStr] = Field(default=None, alias="testCommand") __properties: ClassVar[List[str]] = ["id", "name", "fields", "implementationName", "implementation", "configContract", "infoLink", "message", "tags", "presets", "link", "onHealthIssue", "supportsOnHealthIssue", "includeHealthWarnings", "testCommand"] - 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/prowlarr/models/indexer_resource.py b/prowlarr/models/indexer_resource.py index 0344825..87f5211 100644 --- a/prowlarr/models/indexer_resource.py +++ b/prowlarr/models/indexer_resource.py @@ -18,7 +18,7 @@ import json from datetime import datetime -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 prowlarr.models.contract_field import ContractField from prowlarr.models.download_protocol import DownloadProtocol @@ -66,11 +66,11 @@ class IndexerResource(BaseModel): sort_name: Optional[StrictStr] = Field(default=None, alias="sortName") __properties: ClassVar[List[str]] = ["id", "name", "fields", "implementationName", "implementation", "configContract", "infoLink", "message", "tags", "presets", "indexerUrls", "legacyUrls", "definitionName", "description", "language", "encoding", "enable", "redirect", "supportsRss", "supportsSearch", "supportsRedirect", "supportsPagination", "appProfileId", "protocol", "privacy", "capabilities", "priority", "downloadClientId", "added", "status", "sortName"] - 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/prowlarr/models/indexer_statistics.py b/prowlarr/models/indexer_statistics.py index b19d724..18a10a7 100644 --- a/prowlarr/models/indexer_statistics.py +++ b/prowlarr/models/indexer_statistics.py @@ -17,7 +17,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, Optional from typing import Optional, Set from typing_extensions import Self @@ -39,11 +39,11 @@ class IndexerStatistics(BaseModel): number_of_failed_auth_queries: Optional[StrictInt] = Field(default=None, alias="numberOfFailedAuthQueries") __properties: ClassVar[List[str]] = ["indexerId", "indexerName", "averageResponseTime", "numberOfQueries", "numberOfGrabs", "numberOfRssQueries", "numberOfAuthQueries", "numberOfFailedQueries", "numberOfFailedGrabs", "numberOfFailedRssQueries", "numberOfFailedAuthQueries"] - 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/prowlarr/models/indexer_stats_resource.py b/prowlarr/models/indexer_stats_resource.py index 84116b7..0ab73be 100644 --- a/prowlarr/models/indexer_stats_resource.py +++ b/prowlarr/models/indexer_stats_resource.py @@ -17,7 +17,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 prowlarr.models.host_statistics import HostStatistics from prowlarr.models.indexer_statistics import IndexerStatistics @@ -35,11 +35,11 @@ class IndexerStatsResource(BaseModel): hosts: Optional[List[HostStatistics]] = None __properties: ClassVar[List[str]] = ["id", "indexers", "userAgents", "hosts"] - 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/prowlarr/models/indexer_status_resource.py b/prowlarr/models/indexer_status_resource.py index 9b3b0b3..0378808 100644 --- a/prowlarr/models/indexer_status_resource.py +++ b/prowlarr/models/indexer_status_resource.py @@ -18,7 +18,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -34,11 +34,11 @@ class IndexerStatusResource(BaseModel): initial_failure: Optional[datetime] = Field(default=None, alias="initialFailure") __properties: ClassVar[List[str]] = ["id", "indexerId", "disabledTill", "mostRecentFailure", "initialFailure"] - 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/prowlarr/models/localization_option.py b/prowlarr/models/localization_option.py index 62eb0b5..c7097dd 100644 --- a/prowlarr/models/localization_option.py +++ b/prowlarr/models/localization_option.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -30,11 +30,11 @@ class LocalizationOption(BaseModel): value: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["name", "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/prowlarr/models/log_file_resource.py b/prowlarr/models/log_file_resource.py index 1a08cc4..21d4705 100644 --- a/prowlarr/models/log_file_resource.py +++ b/prowlarr/models/log_file_resource.py @@ -18,7 +18,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, Optional from typing import Optional, Set from typing_extensions import Self @@ -34,11 +34,11 @@ class LogFileResource(BaseModel): download_url: Optional[StrictStr] = Field(default=None, alias="downloadUrl") __properties: ClassVar[List[str]] = ["id", "filename", "lastWriteTime", "contentsUrl", "downloadUrl"] - 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/prowlarr/models/log_resource.py b/prowlarr/models/log_resource.py index 450230f..f62eb6a 100644 --- a/prowlarr/models/log_resource.py +++ b/prowlarr/models/log_resource.py @@ -18,7 +18,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, Optional from typing import Optional, Set from typing_extensions import Self @@ -37,11 +37,11 @@ class LogResource(BaseModel): method: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "time", "exception", "exceptionType", "level", "logger", "message", "method"] - 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/prowlarr/models/log_resource_paging_resource.py b/prowlarr/models/log_resource_paging_resource.py index 5617c67..3b4ac18 100644 --- a/prowlarr/models/log_resource_paging_resource.py +++ b/prowlarr/models/log_resource_paging_resource.py @@ -17,7 +17,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 prowlarr.models.log_resource import LogResource from prowlarr.models.sort_direction import SortDirection @@ -36,11 +36,11 @@ class LogResourcePagingResource(BaseModel): records: Optional[List[LogResource]] = None __properties: ClassVar[List[str]] = ["page", "pageSize", "sortKey", "sortDirection", "totalRecords", "records"] - 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/prowlarr/models/notification_resource.py b/prowlarr/models/notification_resource.py index c450bd7..27b4d7e 100644 --- a/prowlarr/models/notification_resource.py +++ b/prowlarr/models/notification_resource.py @@ -17,7 +17,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 prowlarr.models.contract_field import ContractField from prowlarr.models.provider_message import ProviderMessage @@ -52,11 +52,11 @@ class NotificationResource(BaseModel): test_command: Optional[StrictStr] = Field(default=None, alias="testCommand") __properties: ClassVar[List[str]] = ["id", "name", "fields", "implementationName", "implementation", "configContract", "infoLink", "message", "tags", "presets", "link", "onGrab", "onHealthIssue", "onHealthRestored", "onApplicationUpdate", "supportsOnGrab", "includeManualGrabs", "supportsOnHealthIssue", "supportsOnHealthRestored", "includeHealthWarnings", "supportsOnApplicationUpdate", "testCommand"] - 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/prowlarr/models/ping_resource.py b/prowlarr/models/ping_resource.py index 2bf44cf..61f2474 100644 --- a/prowlarr/models/ping_resource.py +++ b/prowlarr/models/ping_resource.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -29,11 +29,11 @@ class PingResource(BaseModel): status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["status"] - 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/prowlarr/models/provider_message.py b/prowlarr/models/provider_message.py index ecb906a..ef2a338 100644 --- a/prowlarr/models/provider_message.py +++ b/prowlarr/models/provider_message.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, Optional from prowlarr.models.provider_message_type import ProviderMessageType from typing import Optional, Set @@ -31,11 +31,11 @@ class ProviderMessage(BaseModel): type: Optional[ProviderMessageType] = None __properties: ClassVar[List[str]] = ["message", "type"] - 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/prowlarr/models/release_resource.py b/prowlarr/models/release_resource.py index c55c523..29f1b86 100644 --- a/prowlarr/models/release_resource.py +++ b/prowlarr/models/release_resource.py @@ -18,7 +18,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from prowlarr.models.download_protocol import DownloadProtocol from prowlarr.models.indexer_category import IndexerCategory @@ -62,11 +62,11 @@ class ReleaseResource(BaseModel): file_name: Optional[StrictStr] = Field(default=None, alias="fileName") __properties: ClassVar[List[str]] = ["id", "guid", "age", "ageHours", "ageMinutes", "size", "files", "grabs", "indexerId", "indexer", "subGroup", "releaseHash", "title", "sortTitle", "imdbId", "tmdbId", "tvdbId", "tvMazeId", "publishDate", "commentUrl", "downloadUrl", "infoUrl", "posterUrl", "indexerFlags", "categories", "magnetUrl", "infoHash", "seeders", "leechers", "protocol", "fileName"] - 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/prowlarr/models/select_option.py b/prowlarr/models/select_option.py index a9b4b13..502505c 100644 --- a/prowlarr/models/select_option.py +++ b/prowlarr/models/select_option.py @@ -17,7 +17,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, Optional from typing import Optional, Set from typing_extensions import Self @@ -33,11 +33,11 @@ class SelectOption(BaseModel): parent_value: Optional[StrictInt] = Field(default=None, alias="parentValue") __properties: ClassVar[List[str]] = ["value", "name", "order", "hint", "parentValue"] - 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/prowlarr/models/system_resource.py b/prowlarr/models/system_resource.py index 692b838..18770f3 100644 --- a/prowlarr/models/system_resource.py +++ b/prowlarr/models/system_resource.py @@ -18,7 +18,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, Optional from prowlarr.models.authentication_type import AuthenticationType from prowlarr.models.database_type import DatabaseType @@ -64,11 +64,11 @@ class SystemResource(BaseModel): package_update_mechanism_message: Optional[StrictStr] = Field(default=None, alias="packageUpdateMechanismMessage") __properties: ClassVar[List[str]] = ["appName", "instanceName", "version", "buildTime", "isDebug", "isProduction", "isAdmin", "isUserInteractive", "startupPath", "appData", "osName", "osVersion", "isNetCore", "isLinux", "isOsx", "isWindows", "isDocker", "mode", "branch", "databaseType", "databaseVersion", "authentication", "migrationVersion", "urlBase", "runtimeVersion", "runtimeName", "startTime", "packageVersion", "packageAuthor", "packageUpdateMechanism", "packageUpdateMechanismMessage"] - 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/prowlarr/models/tag_details_resource.py b/prowlarr/models/tag_details_resource.py index a19c714..95fbe87 100644 --- a/prowlarr/models/tag_details_resource.py +++ b/prowlarr/models/tag_details_resource.py @@ -17,7 +17,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 @@ -34,11 +34,11 @@ class TagDetailsResource(BaseModel): application_ids: Optional[List[StrictInt]] = Field(default=None, alias="applicationIds") __properties: ClassVar[List[str]] = ["id", "label", "notificationIds", "indexerIds", "indexerProxyIds", "applicationIds"] - 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/prowlarr/models/tag_resource.py b/prowlarr/models/tag_resource.py index b559c88..a27a030 100644 --- a/prowlarr/models/tag_resource.py +++ b/prowlarr/models/tag_resource.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -30,11 +30,11 @@ class TagResource(BaseModel): label: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "label"] - 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/prowlarr/models/task_resource.py b/prowlarr/models/task_resource.py index 89e8b1a..ef94c71 100644 --- a/prowlarr/models/task_resource.py +++ b/prowlarr/models/task_resource.py @@ -18,7 +18,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, Optional from typing import Optional, Set from typing_extensions import Self @@ -37,11 +37,11 @@ class TaskResource(BaseModel): last_duration: Optional[StrictStr] = Field(default=None, alias="lastDuration") __properties: ClassVar[List[str]] = ["id", "name", "taskName", "interval", "lastExecution", "lastStartTime", "nextExecution", "lastDuration"] - 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/prowlarr/models/ui_config_resource.py b/prowlarr/models/ui_config_resource.py index a2e71f4..cb376de 100644 --- a/prowlarr/models/ui_config_resource.py +++ b/prowlarr/models/ui_config_resource.py @@ -17,7 +17,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, Optional from typing import Optional, Set from typing_extensions import Self @@ -38,11 +38,11 @@ class UiConfigResource(BaseModel): theme: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "firstDayOfWeek", "calendarWeekColumnHeader", "shortDateFormat", "longDateFormat", "timeFormat", "showRelativeDates", "enableColorImpairedMode", "uiLanguage", "theme"] - 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/prowlarr/models/update_changes.py b/prowlarr/models/update_changes.py index 49f723f..18bf573 100644 --- a/prowlarr/models/update_changes.py +++ b/prowlarr/models/update_changes.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -30,11 +30,11 @@ class UpdateChanges(BaseModel): fixed: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["new", "fixed"] - 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/prowlarr/models/update_resource.py b/prowlarr/models/update_resource.py index d194524..790cfc8 100644 --- a/prowlarr/models/update_resource.py +++ b/prowlarr/models/update_resource.py @@ -18,7 +18,7 @@ import json from datetime import datetime -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, Optional from prowlarr.models.update_changes import UpdateChanges from typing import Optional, Set @@ -42,11 +42,11 @@ class UpdateResource(BaseModel): hash: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "version", "branch", "releaseDate", "fileName", "url", "installed", "installedOn", "installable", "latest", "changes", "hash"] - 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/prowlarr/models/user_agent_statistics.py b/prowlarr/models/user_agent_statistics.py index ce412f0..e70d3ac 100644 --- a/prowlarr/models/user_agent_statistics.py +++ b/prowlarr/models/user_agent_statistics.py @@ -17,7 +17,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, Optional from typing import Optional, Set from typing_extensions import Self @@ -31,11 +31,11 @@ class UserAgentStatistics(BaseModel): number_of_grabs: Optional[StrictInt] = Field(default=None, alias="numberOfGrabs") __properties: ClassVar[List[str]] = ["userAgent", "numberOfQueries", "numberOfGrabs"] - 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: