From 70a29baf226724beadbf4171306d636be9ddc296 Mon Sep 17 00:00:00 2001 From: "devopsarr[bot]" <127950054+devopsarr[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 17:58:04 +0000 Subject: [PATCH] fix(deps): update dependency sonarr/sonarr to v4.0.11.2680 --- README.md | 8 +- docs/CustomFormatApi.md | 167 ++++++ docs/CustomFormatBulkResource.md | 30 + docs/DownloadClientApi.md | 4 +- docs/EpisodeApi.md | 8 +- docs/EpisodeResource.md | 1 + docs/ImportListApi.md | 4 +- docs/IndexerApi.md | 4 +- docs/MetadataApi.md | 4 +- docs/NotificationApi.md | 4 +- docs/QualityDefinitionApi.md | 80 +++ docs/QualityDefinitionLimitsResource.md | 30 + docs/QualityProfileResource.md | 1 + docs/QueueApi.md | 11 +- docs/QueueResource.md | 2 +- docs/QueueStatus.md | 28 + docs/SeriesApi.md | 4 +- setup.py | 2 +- sonarr/__init__.py | 5 +- sonarr/api/api_info_api.py | 2 +- sonarr/api/authentication_api.py | 2 +- sonarr/api/auto_tagging_api.py | 2 +- sonarr/api/backup_api.py | 2 +- sonarr/api/blocklist_api.py | 2 +- sonarr/api/calendar_api.py | 2 +- sonarr/api/calendar_feed_api.py | 2 +- sonarr/api/command_api.py | 2 +- sonarr/api/custom_filter_api.py | 2 +- sonarr/api/custom_format_api.py | 540 +++++++++++++++++- sonarr/api/cutoff_api.py | 2 +- sonarr/api/delay_profile_api.py | 2 +- sonarr/api/disk_space_api.py | 2 +- sonarr/api/download_client_api.py | 14 +- sonarr/api/download_client_config_api.py | 2 +- sonarr/api/episode_api.py | 36 +- sonarr/api/episode_file_api.py | 2 +- sonarr/api/file_system_api.py | 2 +- sonarr/api/health_api.py | 2 +- sonarr/api/history_api.py | 2 +- sonarr/api/host_config_api.py | 2 +- sonarr/api/import_list_api.py | 14 +- sonarr/api/import_list_config_api.py | 2 +- sonarr/api/import_list_exclusion_api.py | 2 +- sonarr/api/indexer_api.py | 14 +- sonarr/api/indexer_config_api.py | 2 +- sonarr/api/indexer_flag_api.py | 2 +- sonarr/api/language_api.py | 2 +- sonarr/api/language_profile_api.py | 2 +- sonarr/api/language_profile_schema_api.py | 2 +- sonarr/api/localization_api.py | 2 +- sonarr/api/log_api.py | 2 +- sonarr/api/log_file_api.py | 2 +- sonarr/api/manual_import_api.py | 2 +- sonarr/api/media_cover_api.py | 2 +- sonarr/api/media_management_config_api.py | 2 +- sonarr/api/metadata_api.py | 14 +- sonarr/api/missing_api.py | 2 +- sonarr/api/naming_config_api.py | 2 +- sonarr/api/notification_api.py | 14 +- sonarr/api/parse_api.py | 2 +- sonarr/api/ping_api.py | 2 +- sonarr/api/quality_definition_api.py | 249 +++++++- sonarr/api/quality_profile_api.py | 2 +- sonarr/api/quality_profile_schema_api.py | 2 +- sonarr/api/queue_action_api.py | 2 +- sonarr/api/queue_api.py | 34 +- sonarr/api/queue_details_api.py | 2 +- sonarr/api/queue_status_api.py | 2 +- sonarr/api/release_api.py | 2 +- sonarr/api/release_profile_api.py | 2 +- sonarr/api/release_push_api.py | 2 +- sonarr/api/remote_path_mapping_api.py | 2 +- sonarr/api/rename_episode_api.py | 2 +- sonarr/api/root_folder_api.py | 2 +- sonarr/api/season_pass_api.py | 2 +- sonarr/api/series_api.py | 10 +- sonarr/api/series_editor_api.py | 2 +- sonarr/api/series_import_api.py | 2 +- sonarr/api/series_lookup_api.py | 2 +- sonarr/api/static_resource_api.py | 2 +- sonarr/api/system_api.py | 2 +- sonarr/api/tag_api.py | 2 +- sonarr/api/tag_details_api.py | 2 +- sonarr/api/task_api.py | 2 +- sonarr/api/ui_config_api.py | 2 +- sonarr/api/update_api.py | 2 +- sonarr/api/update_log_file_api.py | 2 +- sonarr/api_client.py | 2 +- sonarr/configuration.py | 4 +- sonarr/exceptions.py | 2 +- sonarr/models/__init__.py | 5 +- sonarr/models/add_series_options.py | 2 +- sonarr/models/alternate_title_resource.py | 2 +- sonarr/models/apply_tags.py | 2 +- sonarr/models/authentication_required_type.py | 2 +- sonarr/models/authentication_type.py | 2 +- sonarr/models/auto_tagging_resource.py | 2 +- .../auto_tagging_specification_schema.py | 2 +- sonarr/models/backup_resource.py | 2 +- sonarr/models/backup_type.py | 2 +- sonarr/models/blocklist_bulk_resource.py | 2 +- sonarr/models/blocklist_resource.py | 2 +- .../blocklist_resource_paging_resource.py | 2 +- sonarr/models/certificate_validation_type.py | 2 +- sonarr/models/command.py | 2 +- sonarr/models/command_priority.py | 2 +- sonarr/models/command_resource.py | 2 +- sonarr/models/command_result.py | 2 +- sonarr/models/command_status.py | 2 +- sonarr/models/command_trigger.py | 2 +- sonarr/models/contract_field.py | 2 +- sonarr/models/custom_filter_resource.py | 2 +- sonarr/models/custom_format_bulk_resource.py | 99 ++++ sonarr/models/custom_format_resource.py | 2 +- .../custom_format_specification_schema.py | 2 +- sonarr/models/database_type.py | 2 +- sonarr/models/delay_profile_resource.py | 2 +- sonarr/models/disk_space_resource.py | 2 +- .../models/download_client_bulk_resource.py | 2 +- .../models/download_client_config_resource.py | 2 +- sonarr/models/download_client_resource.py | 2 +- sonarr/models/download_protocol.py | 2 +- sonarr/models/episode_file_list_resource.py | 2 +- sonarr/models/episode_file_resource.py | 2 +- sonarr/models/episode_history_event_type.py | 2 +- sonarr/models/episode_resource.py | 11 +- .../episode_resource_paging_resource.py | 2 +- sonarr/models/episode_title_required_type.py | 2 +- sonarr/models/episodes_monitored_resource.py | 2 +- sonarr/models/file_date_type.py | 2 +- sonarr/models/health_check_result.py | 2 +- sonarr/models/health_resource.py | 2 +- sonarr/models/history_resource.py | 2 +- .../history_resource_paging_resource.py | 2 +- sonarr/models/host_config_resource.py | 2 +- sonarr/models/import_list_bulk_resource.py | 2 +- sonarr/models/import_list_config_resource.py | 2 +- .../import_list_exclusion_bulk_resource.py | 2 +- .../models/import_list_exclusion_resource.py | 2 +- ...list_exclusion_resource_paging_resource.py | 2 +- sonarr/models/import_list_resource.py | 2 +- sonarr/models/import_list_type.py | 2 +- sonarr/models/indexer_bulk_resource.py | 2 +- sonarr/models/indexer_config_resource.py | 2 +- sonarr/models/indexer_flag_resource.py | 2 +- sonarr/models/indexer_resource.py | 2 +- sonarr/models/language.py | 2 +- .../models/language_profile_item_resource.py | 2 +- sonarr/models/language_profile_resource.py | 2 +- sonarr/models/language_resource.py | 2 +- sonarr/models/list_sync_level_type.py | 2 +- .../models/localization_language_resource.py | 2 +- sonarr/models/localization_resource.py | 2 +- sonarr/models/log_file_resource.py | 2 +- sonarr/models/log_resource.py | 2 +- sonarr/models/log_resource_paging_resource.py | 2 +- .../manual_import_reprocess_resource.py | 2 +- sonarr/models/manual_import_resource.py | 2 +- sonarr/models/media_cover.py | 2 +- sonarr/models/media_cover_types.py | 2 +- sonarr/models/media_info_resource.py | 2 +- .../media_management_config_resource.py | 2 +- sonarr/models/metadata_resource.py | 2 +- sonarr/models/monitor_types.py | 2 +- sonarr/models/monitoring_options.py | 2 +- sonarr/models/naming_config_resource.py | 2 +- sonarr/models/new_item_monitor_types.py | 2 +- sonarr/models/notification_resource.py | 2 +- sonarr/models/parse_resource.py | 2 +- sonarr/models/parsed_episode_info.py | 2 +- sonarr/models/ping_resource.py | 2 +- sonarr/models/privacy_level.py | 2 +- sonarr/models/profile_format_item_resource.py | 2 +- sonarr/models/proper_download_types.py | 2 +- sonarr/models/provider_message.py | 2 +- sonarr/models/provider_message_type.py | 2 +- sonarr/models/proxy_type.py | 2 +- sonarr/models/quality.py | 2 +- .../quality_definition_limits_resource.py | 89 +++ sonarr/models/quality_definition_resource.py | 2 +- sonarr/models/quality_model.py | 2 +- .../quality_profile_quality_item_resource.py | 2 +- sonarr/models/quality_profile_resource.py | 6 +- sonarr/models/quality_source.py | 2 +- sonarr/models/queue_bulk_resource.py | 2 +- sonarr/models/queue_resource.py | 10 +- .../models/queue_resource_paging_resource.py | 2 +- sonarr/models/queue_status.py | 45 ++ sonarr/models/queue_status_resource.py | 2 +- sonarr/models/ratings.py | 2 +- sonarr/models/rejection.py | 2 +- sonarr/models/rejection_type.py | 2 +- sonarr/models/release_episode_resource.py | 2 +- sonarr/models/release_profile_resource.py | 2 +- sonarr/models/release_resource.py | 2 +- sonarr/models/release_type.py | 2 +- sonarr/models/remote_path_mapping_resource.py | 2 +- sonarr/models/rename_episode_resource.py | 2 +- sonarr/models/rescan_after_refresh_type.py | 2 +- sonarr/models/revision.py | 2 +- sonarr/models/root_folder_resource.py | 2 +- sonarr/models/runtime_mode.py | 2 +- sonarr/models/season_pass_resource.py | 2 +- sonarr/models/season_pass_series_resource.py | 2 +- sonarr/models/season_resource.py | 2 +- sonarr/models/season_statistics_resource.py | 2 +- sonarr/models/select_option.py | 2 +- sonarr/models/series_editor_resource.py | 2 +- sonarr/models/series_resource.py | 2 +- sonarr/models/series_statistics_resource.py | 2 +- sonarr/models/series_status_type.py | 2 +- sonarr/models/series_title_info.py | 2 +- sonarr/models/series_types.py | 2 +- sonarr/models/sort_direction.py | 2 +- sonarr/models/system_resource.py | 2 +- sonarr/models/tag_details_resource.py | 2 +- sonarr/models/tag_resource.py | 2 +- sonarr/models/task_resource.py | 2 +- sonarr/models/tracked_download_state.py | 2 +- sonarr/models/tracked_download_status.py | 2 +- .../models/tracked_download_status_message.py | 2 +- sonarr/models/ui_config_resource.py | 2 +- sonarr/models/unmapped_folder.py | 2 +- sonarr/models/update_changes.py | 2 +- sonarr/models/update_mechanism.py | 2 +- sonarr/models/update_resource.py | 2 +- sonarr/rest.py | 2 +- 227 files changed, 1707 insertions(+), 278 deletions(-) create mode 100644 docs/CustomFormatBulkResource.md create mode 100644 docs/QualityDefinitionLimitsResource.md create mode 100644 docs/QueueStatus.md create mode 100644 sonarr/models/custom_format_bulk_resource.py create mode 100644 sonarr/models/quality_definition_limits_resource.py create mode 100644 sonarr/models/queue_status.py diff --git a/README.md b/README.md index c291a13..a3a6268 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. So This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v4.0.9.2244 +- API version: v4.0.11.2680 - Package version: 1.0.2 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -127,9 +127,11 @@ Class | Method | HTTP request | Description *CustomFilterApi* | [**update_custom_filter**](docs/CustomFilterApi.md#update_custom_filter) | **PUT** /api/v3/customfilter/{id} | *CustomFormatApi* | [**create_custom_format**](docs/CustomFormatApi.md#create_custom_format) | **POST** /api/v3/customformat | *CustomFormatApi* | [**delete_custom_format**](docs/CustomFormatApi.md#delete_custom_format) | **DELETE** /api/v3/customformat/{id} | +*CustomFormatApi* | [**delete_custom_format_bulk**](docs/CustomFormatApi.md#delete_custom_format_bulk) | **DELETE** /api/v3/customformat/bulk | *CustomFormatApi* | [**get_custom_format_by_id**](docs/CustomFormatApi.md#get_custom_format_by_id) | **GET** /api/v3/customformat/{id} | *CustomFormatApi* | [**list_custom_format**](docs/CustomFormatApi.md#list_custom_format) | **GET** /api/v3/customformat | *CustomFormatApi* | [**list_custom_format_schema**](docs/CustomFormatApi.md#list_custom_format_schema) | **GET** /api/v3/customformat/schema | +*CustomFormatApi* | [**put_custom_format_bulk**](docs/CustomFormatApi.md#put_custom_format_bulk) | **PUT** /api/v3/customformat/bulk | *CustomFormatApi* | [**update_custom_format**](docs/CustomFormatApi.md#update_custom_format) | **PUT** /api/v3/customformat/{id} | *CutoffApi* | [**get_wanted_cutoff**](docs/CutoffApi.md#get_wanted_cutoff) | **GET** /api/v3/wanted/cutoff | *CutoffApi* | [**get_wanted_cutoff_by_id**](docs/CutoffApi.md#get_wanted_cutoff_by_id) | **GET** /api/v3/wanted/cutoff/{id} | @@ -260,6 +262,7 @@ Class | Method | HTTP request | Description *PingApi* | [**get_ping**](docs/PingApi.md#get_ping) | **GET** /ping | *PingApi* | [**head_ping**](docs/PingApi.md#head_ping) | **HEAD** /ping | *QualityDefinitionApi* | [**get_quality_definition_by_id**](docs/QualityDefinitionApi.md#get_quality_definition_by_id) | **GET** /api/v3/qualitydefinition/{id} | +*QualityDefinitionApi* | [**get_quality_definition_limits**](docs/QualityDefinitionApi.md#get_quality_definition_limits) | **GET** /api/v3/qualitydefinition/limits | *QualityDefinitionApi* | [**list_quality_definition**](docs/QualityDefinitionApi.md#list_quality_definition) | **GET** /api/v3/qualitydefinition | *QualityDefinitionApi* | [**put_quality_definition_update**](docs/QualityDefinitionApi.md#put_quality_definition_update) | **PUT** /api/v3/qualitydefinition/update | *QualityDefinitionApi* | [**update_quality_definition**](docs/QualityDefinitionApi.md#update_quality_definition) | **PUT** /api/v3/qualitydefinition/{id} | @@ -353,6 +356,7 @@ Class | Method | HTTP request | Description - [CommandTrigger](docs/CommandTrigger.md) - [ContractField](docs/ContractField.md) - [CustomFilterResource](docs/CustomFilterResource.md) + - [CustomFormatBulkResource](docs/CustomFormatBulkResource.md) - [CustomFormatResource](docs/CustomFormatResource.md) - [CustomFormatSpecificationSchema](docs/CustomFormatSpecificationSchema.md) - [DatabaseType](docs/DatabaseType.md) @@ -418,6 +422,7 @@ Class | Method | HTTP request | Description - [ProviderMessageType](docs/ProviderMessageType.md) - [ProxyType](docs/ProxyType.md) - [Quality](docs/Quality.md) + - [QualityDefinitionLimitsResource](docs/QualityDefinitionLimitsResource.md) - [QualityDefinitionResource](docs/QualityDefinitionResource.md) - [QualityModel](docs/QualityModel.md) - [QualityProfileQualityItemResource](docs/QualityProfileQualityItemResource.md) @@ -426,6 +431,7 @@ Class | Method | HTTP request | Description - [QueueBulkResource](docs/QueueBulkResource.md) - [QueueResource](docs/QueueResource.md) - [QueueResourcePagingResource](docs/QueueResourcePagingResource.md) + - [QueueStatus](docs/QueueStatus.md) - [QueueStatusResource](docs/QueueStatusResource.md) - [Ratings](docs/Ratings.md) - [Rejection](docs/Rejection.md) diff --git a/docs/CustomFormatApi.md b/docs/CustomFormatApi.md index 5b21afe..02f0720 100644 --- a/docs/CustomFormatApi.md +++ b/docs/CustomFormatApi.md @@ -6,9 +6,11 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**create_custom_format**](CustomFormatApi.md#create_custom_format) | **POST** /api/v3/customformat | [**delete_custom_format**](CustomFormatApi.md#delete_custom_format) | **DELETE** /api/v3/customformat/{id} | +[**delete_custom_format_bulk**](CustomFormatApi.md#delete_custom_format_bulk) | **DELETE** /api/v3/customformat/bulk | [**get_custom_format_by_id**](CustomFormatApi.md#get_custom_format_by_id) | **GET** /api/v3/customformat/{id} | [**list_custom_format**](CustomFormatApi.md#list_custom_format) | **GET** /api/v3/customformat | [**list_custom_format_schema**](CustomFormatApi.md#list_custom_format_schema) | **GET** /api/v3/customformat/schema | +[**put_custom_format_bulk**](CustomFormatApi.md#put_custom_format_bulk) | **PUT** /api/v3/customformat/bulk | [**update_custom_format**](CustomFormatApi.md#update_custom_format) | **PUT** /api/v3/customformat/{id} | @@ -175,6 +177,87 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_custom_format_bulk** +> delete_custom_format_bulk(custom_format_bulk_resource=custom_format_bulk_resource) + + + +### Example + +* Api Key Authentication (apikey): +* Api Key Authentication (X-Api-Key): + +```python +import sonarr +from sonarr.models.custom_format_bulk_resource import CustomFormatBulkResource +from sonarr.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost:8989 +# See configuration.py for a list of all supported configuration parameters. +configuration = sonarr.Configuration( + host = "http://localhost:8989" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apikey +configuration.api_key['apikey'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apikey'] = 'Bearer' + +# Configure API key authorization: X-Api-Key +configuration.api_key['X-Api-Key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' + +# Enter a context with an instance of the API client +with sonarr.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = sonarr.CustomFormatApi(api_client) + custom_format_bulk_resource = sonarr.CustomFormatBulkResource() # CustomFormatBulkResource | (optional) + + try: + api_instance.delete_custom_format_bulk(custom_format_bulk_resource=custom_format_bulk_resource) + except Exception as e: + print("Exception when calling CustomFormatApi->delete_custom_format_bulk: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **custom_format_bulk_resource** | [**CustomFormatBulkResource**](CustomFormatBulkResource.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**2XX** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_custom_format_by_id** > CustomFormatResource get_custom_format_by_id(id) @@ -416,6 +499,90 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **put_custom_format_bulk** +> CustomFormatResource put_custom_format_bulk(custom_format_bulk_resource=custom_format_bulk_resource) + + + +### Example + +* Api Key Authentication (apikey): +* Api Key Authentication (X-Api-Key): + +```python +import sonarr +from sonarr.models.custom_format_bulk_resource import CustomFormatBulkResource +from sonarr.models.custom_format_resource import CustomFormatResource +from sonarr.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost:8989 +# See configuration.py for a list of all supported configuration parameters. +configuration = sonarr.Configuration( + host = "http://localhost:8989" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apikey +configuration.api_key['apikey'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apikey'] = 'Bearer' + +# Configure API key authorization: X-Api-Key +configuration.api_key['X-Api-Key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' + +# Enter a context with an instance of the API client +with sonarr.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = sonarr.CustomFormatApi(api_client) + custom_format_bulk_resource = sonarr.CustomFormatBulkResource() # CustomFormatBulkResource | (optional) + + try: + api_response = api_instance.put_custom_format_bulk(custom_format_bulk_resource=custom_format_bulk_resource) + print("The response of CustomFormatApi->put_custom_format_bulk:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CustomFormatApi->put_custom_format_bulk: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **custom_format_bulk_resource** | [**CustomFormatBulkResource**](CustomFormatBulkResource.md)| | [optional] + +### Return type + +[**CustomFormatResource**](CustomFormatResource.md) + +### Authorization + +[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**2XX** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **update_custom_format** > CustomFormatResource update_custom_format(id, custom_format_resource=custom_format_resource) diff --git a/docs/CustomFormatBulkResource.md b/docs/CustomFormatBulkResource.md new file mode 100644 index 0000000..2067676 --- /dev/null +++ b/docs/CustomFormatBulkResource.md @@ -0,0 +1,30 @@ +# CustomFormatBulkResource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **List[int]** | | [optional] +**include_custom_format_when_renaming** | **bool** | | [optional] + +## Example + +```python +from sonarr.models.custom_format_bulk_resource import CustomFormatBulkResource + +# TODO update the JSON string below +json = "{}" +# create an instance of CustomFormatBulkResource from a JSON string +custom_format_bulk_resource_instance = CustomFormatBulkResource.from_json(json) +# print the JSON string representation of the object +print(CustomFormatBulkResource.to_json()) + +# convert the object into a dict +custom_format_bulk_resource_dict = custom_format_bulk_resource_instance.to_dict() +# create an instance of CustomFormatBulkResource from a dict +custom_format_bulk_resource_from_dict = CustomFormatBulkResource.from_dict(custom_format_bulk_resource_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/DownloadClientApi.md b/docs/DownloadClientApi.md index b17f9cf..028ba75 100644 --- a/docs/DownloadClientApi.md +++ b/docs/DownloadClientApi.md @@ -873,7 +873,7 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"] with sonarr.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = sonarr.DownloadClientApi(api_client) - id = 'id_example' # str | + id = 56 # int | force_save = False # bool | (optional) (default to False) download_client_resource = sonarr.DownloadClientResource() # DownloadClientResource | (optional) @@ -892,7 +892,7 @@ with sonarr.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **int**| | **force_save** | **bool**| | [optional] [default to False] **download_client_resource** | [**DownloadClientResource**](DownloadClientResource.md)| | [optional] diff --git a/docs/EpisodeApi.md b/docs/EpisodeApi.md index 2b84a01..cf31472 100644 --- a/docs/EpisodeApi.md +++ b/docs/EpisodeApi.md @@ -94,7 +94,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_episode** -> List[EpisodeResource] list_episode(series_id=series_id, season_number=season_number, episode_ids=episode_ids, episode_file_id=episode_file_id, include_images=include_images) +> List[EpisodeResource] list_episode(series_id=series_id, season_number=season_number, episode_ids=episode_ids, episode_file_id=episode_file_id, include_series=include_series, include_episode_file=include_episode_file, include_images=include_images) @@ -140,10 +140,12 @@ with sonarr.ApiClient(configuration) as api_client: season_number = 56 # int | (optional) episode_ids = [56] # List[int] | (optional) episode_file_id = 56 # int | (optional) + include_series = False # bool | (optional) (default to False) + include_episode_file = False # bool | (optional) (default to False) include_images = False # bool | (optional) (default to False) try: - api_response = api_instance.list_episode(series_id=series_id, season_number=season_number, episode_ids=episode_ids, episode_file_id=episode_file_id, include_images=include_images) + api_response = api_instance.list_episode(series_id=series_id, season_number=season_number, episode_ids=episode_ids, episode_file_id=episode_file_id, include_series=include_series, include_episode_file=include_episode_file, include_images=include_images) print("The response of EpisodeApi->list_episode:\n") pprint(api_response) except Exception as e: @@ -161,6 +163,8 @@ Name | Type | Description | Notes **season_number** | **int**| | [optional] **episode_ids** | [**List[int]**](int.md)| | [optional] **episode_file_id** | **int**| | [optional] + **include_series** | **bool**| | [optional] [default to False] + **include_episode_file** | **bool**| | [optional] [default to False] **include_images** | **bool**| | [optional] [default to False] ### Return type diff --git a/docs/EpisodeResource.md b/docs/EpisodeResource.md index 0037504..ecc36c4 100644 --- a/docs/EpisodeResource.md +++ b/docs/EpisodeResource.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **title** | **str** | | [optional] **air_date** | **str** | | [optional] **air_date_utc** | **datetime** | | [optional] +**last_search_time** | **datetime** | | [optional] **runtime** | **int** | | [optional] **finale_type** | **str** | | [optional] **overview** | **str** | | [optional] diff --git a/docs/ImportListApi.md b/docs/ImportListApi.md index 154abda..e94f9d3 100644 --- a/docs/ImportListApi.md +++ b/docs/ImportListApi.md @@ -873,7 +873,7 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"] with sonarr.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = sonarr.ImportListApi(api_client) - id = 'id_example' # str | + id = 56 # int | force_save = False # bool | (optional) (default to False) import_list_resource = sonarr.ImportListResource() # ImportListResource | (optional) @@ -892,7 +892,7 @@ with sonarr.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **int**| | **force_save** | **bool**| | [optional] [default to False] **import_list_resource** | [**ImportListResource**](ImportListResource.md)| | [optional] diff --git a/docs/IndexerApi.md b/docs/IndexerApi.md index ab182a8..6140527 100644 --- a/docs/IndexerApi.md +++ b/docs/IndexerApi.md @@ -873,7 +873,7 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"] with sonarr.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = sonarr.IndexerApi(api_client) - id = 'id_example' # str | + id = 56 # int | force_save = False # bool | (optional) (default to False) indexer_resource = sonarr.IndexerResource() # IndexerResource | (optional) @@ -892,7 +892,7 @@ with sonarr.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **int**| | **force_save** | **bool**| | [optional] [default to False] **indexer_resource** | [**IndexerResource**](IndexerResource.md)| | [optional] diff --git a/docs/MetadataApi.md b/docs/MetadataApi.md index 72c782c..c24ff92 100644 --- a/docs/MetadataApi.md +++ b/docs/MetadataApi.md @@ -706,7 +706,7 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"] with sonarr.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = sonarr.MetadataApi(api_client) - id = 'id_example' # str | + id = 56 # int | force_save = False # bool | (optional) (default to False) metadata_resource = sonarr.MetadataResource() # MetadataResource | (optional) @@ -725,7 +725,7 @@ with sonarr.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **int**| | **force_save** | **bool**| | [optional] [default to False] **metadata_resource** | [**MetadataResource**](MetadataResource.md)| | [optional] diff --git a/docs/NotificationApi.md b/docs/NotificationApi.md index 987e90b..f32875b 100644 --- a/docs/NotificationApi.md +++ b/docs/NotificationApi.md @@ -706,7 +706,7 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"] with sonarr.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = sonarr.NotificationApi(api_client) - id = 'id_example' # str | + id = 56 # int | force_save = False # bool | (optional) (default to False) notification_resource = sonarr.NotificationResource() # NotificationResource | (optional) @@ -725,7 +725,7 @@ with sonarr.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| | + **id** | **int**| | **force_save** | **bool**| | [optional] [default to False] **notification_resource** | [**NotificationResource**](NotificationResource.md)| | [optional] diff --git a/docs/QualityDefinitionApi.md b/docs/QualityDefinitionApi.md index b1af17a..5fd03ce 100644 --- a/docs/QualityDefinitionApi.md +++ b/docs/QualityDefinitionApi.md @@ -5,6 +5,7 @@ All URIs are relative to *http://localhost:8989* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_quality_definition_by_id**](QualityDefinitionApi.md#get_quality_definition_by_id) | **GET** /api/v3/qualitydefinition/{id} | +[**get_quality_definition_limits**](QualityDefinitionApi.md#get_quality_definition_limits) | **GET** /api/v3/qualitydefinition/limits | [**list_quality_definition**](QualityDefinitionApi.md#list_quality_definition) | **GET** /api/v3/qualitydefinition | [**put_quality_definition_update**](QualityDefinitionApi.md#put_quality_definition_update) | **PUT** /api/v3/qualitydefinition/update | [**update_quality_definition**](QualityDefinitionApi.md#update_quality_definition) | **PUT** /api/v3/qualitydefinition/{id} | @@ -93,6 +94,85 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_quality_definition_limits** +> QualityDefinitionLimitsResource get_quality_definition_limits() + + + +### Example + +* Api Key Authentication (apikey): +* Api Key Authentication (X-Api-Key): + +```python +import sonarr +from sonarr.models.quality_definition_limits_resource import QualityDefinitionLimitsResource +from sonarr.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost:8989 +# See configuration.py for a list of all supported configuration parameters. +configuration = sonarr.Configuration( + host = "http://localhost:8989" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apikey +configuration.api_key['apikey'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apikey'] = 'Bearer' + +# Configure API key authorization: X-Api-Key +configuration.api_key['X-Api-Key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' + +# Enter a context with an instance of the API client +with sonarr.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = sonarr.QualityDefinitionApi(api_client) + + try: + api_response = api_instance.get_quality_definition_limits() + print("The response of QualityDefinitionApi->get_quality_definition_limits:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling QualityDefinitionApi->get_quality_definition_limits: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**QualityDefinitionLimitsResource**](QualityDefinitionLimitsResource.md) + +### Authorization + +[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**2XX** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_quality_definition** > List[QualityDefinitionResource] list_quality_definition() diff --git a/docs/QualityDefinitionLimitsResource.md b/docs/QualityDefinitionLimitsResource.md new file mode 100644 index 0000000..5e939c3 --- /dev/null +++ b/docs/QualityDefinitionLimitsResource.md @@ -0,0 +1,30 @@ +# QualityDefinitionLimitsResource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min** | **int** | | [optional] +**max** | **int** | | [optional] + +## Example + +```python +from sonarr.models.quality_definition_limits_resource import QualityDefinitionLimitsResource + +# TODO update the JSON string below +json = "{}" +# create an instance of QualityDefinitionLimitsResource from a JSON string +quality_definition_limits_resource_instance = QualityDefinitionLimitsResource.from_json(json) +# print the JSON string representation of the object +print(QualityDefinitionLimitsResource.to_json()) + +# convert the object into a dict +quality_definition_limits_resource_dict = quality_definition_limits_resource_instance.to_dict() +# create an instance of QualityDefinitionLimitsResource from a dict +quality_definition_limits_resource_from_dict = QualityDefinitionLimitsResource.from_dict(quality_definition_limits_resource_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/QualityProfileResource.md b/docs/QualityProfileResource.md index 2f8efba..5d90488 100644 --- a/docs/QualityProfileResource.md +++ b/docs/QualityProfileResource.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **items** | [**List[QualityProfileQualityItemResource]**](QualityProfileQualityItemResource.md) | | [optional] **min_format_score** | **int** | | [optional] **cutoff_format_score** | **int** | | [optional] +**min_upgrade_format_score** | **int** | | [optional] **format_items** | [**List[ProfileFormatItemResource]**](ProfileFormatItemResource.md) | | [optional] ## Example diff --git a/docs/QueueApi.md b/docs/QueueApi.md index 8fa3787..6bd88ad 100644 --- a/docs/QueueApi.md +++ b/docs/QueueApi.md @@ -187,7 +187,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_queue** -> QueueResourcePagingResource get_queue(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, include_unknown_series_items=include_unknown_series_items, include_series=include_series, include_episode=include_episode, series_ids=series_ids, protocol=protocol, languages=languages, quality=quality) +> QueueResourcePagingResource get_queue(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, include_unknown_series_items=include_unknown_series_items, include_series=include_series, include_episode=include_episode, series_ids=series_ids, protocol=protocol, languages=languages, quality=quality, status=status) @@ -200,6 +200,7 @@ void (empty response body) import sonarr from sonarr.models.download_protocol import DownloadProtocol from sonarr.models.queue_resource_paging_resource import QueueResourcePagingResource +from sonarr.models.queue_status import QueueStatus from sonarr.models.sort_direction import SortDirection from sonarr.rest import ApiException from pprint import pprint @@ -241,10 +242,11 @@ with sonarr.ApiClient(configuration) as api_client: series_ids = [56] # List[int] | (optional) protocol = sonarr.DownloadProtocol() # DownloadProtocol | (optional) languages = [56] # List[int] | (optional) - quality = 56 # int | (optional) + quality = [56] # List[int] | (optional) + status = [sonarr.QueueStatus()] # List[QueueStatus] | (optional) try: - api_response = api_instance.get_queue(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, include_unknown_series_items=include_unknown_series_items, include_series=include_series, include_episode=include_episode, series_ids=series_ids, protocol=protocol, languages=languages, quality=quality) + api_response = api_instance.get_queue(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, include_unknown_series_items=include_unknown_series_items, include_series=include_series, include_episode=include_episode, series_ids=series_ids, protocol=protocol, languages=languages, quality=quality, status=status) print("The response of QueueApi->get_queue:\n") pprint(api_response) except Exception as e: @@ -268,7 +270,8 @@ Name | Type | Description | Notes **series_ids** | [**List[int]**](int.md)| | [optional] **protocol** | [**DownloadProtocol**](.md)| | [optional] **languages** | [**List[int]**](int.md)| | [optional] - **quality** | **int**| | [optional] + **quality** | [**List[int]**](int.md)| | [optional] + **status** | [**List[QueueStatus]**](QueueStatus.md)| | [optional] ### Return type diff --git a/docs/QueueResource.md b/docs/QueueResource.md index 67824e0..f96be94 100644 --- a/docs/QueueResource.md +++ b/docs/QueueResource.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **timeleft** | **str** | | [optional] **estimated_completion_time** | **datetime** | | [optional] **added** | **datetime** | | [optional] -**status** | **str** | | [optional] +**status** | [**QueueStatus**](QueueStatus.md) | | [optional] **tracked_download_status** | [**TrackedDownloadStatus**](TrackedDownloadStatus.md) | | [optional] **tracked_download_state** | [**TrackedDownloadState**](TrackedDownloadState.md) | | [optional] **status_messages** | [**List[TrackedDownloadStatusMessage]**](TrackedDownloadStatusMessage.md) | | [optional] diff --git a/docs/QueueStatus.md b/docs/QueueStatus.md new file mode 100644 index 0000000..b22aea3 --- /dev/null +++ b/docs/QueueStatus.md @@ -0,0 +1,28 @@ +# QueueStatus + + +## Enum + +* `UNKNOWN` (value: `'unknown'`) + +* `QUEUED` (value: `'queued'`) + +* `PAUSED` (value: `'paused'`) + +* `DOWNLOADING` (value: `'downloading'`) + +* `COMPLETED` (value: `'completed'`) + +* `FAILED` (value: `'failed'`) + +* `WARNING` (value: `'warning'`) + +* `DELAY` (value: `'delay'`) + +* `DOWNLOADCLIENTUNAVAILABLE` (value: `'downloadClientUnavailable'`) + +* `FALLBACK` (value: `'fallback'`) + +[[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/SeriesApi.md b/docs/SeriesApi.md index 1df01a6..ab17f41 100644 --- a/docs/SeriesApi.md +++ b/docs/SeriesApi.md @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: text/plain, application/json, text/json + - **Accept**: application/json ### HTTP response details @@ -425,7 +425,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: text/plain, application/json, text/json + - **Accept**: application/json ### HTTP response details diff --git a/setup.py b/setup.py index cecf32e..93ff0e2 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/__init__.py b/sonarr/__init__.py index bc95e5d..f55fc57 100644 --- a/sonarr/__init__.py +++ b/sonarr/__init__.py @@ -7,7 +7,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -119,6 +119,7 @@ from sonarr.models.command_trigger import CommandTrigger from sonarr.models.contract_field import ContractField from sonarr.models.custom_filter_resource import CustomFilterResource +from sonarr.models.custom_format_bulk_resource import CustomFormatBulkResource from sonarr.models.custom_format_resource import CustomFormatResource from sonarr.models.custom_format_specification_schema import CustomFormatSpecificationSchema from sonarr.models.database_type import DatabaseType @@ -184,6 +185,7 @@ from sonarr.models.provider_message_type import ProviderMessageType from sonarr.models.proxy_type import ProxyType from sonarr.models.quality import Quality +from sonarr.models.quality_definition_limits_resource import QualityDefinitionLimitsResource from sonarr.models.quality_definition_resource import QualityDefinitionResource from sonarr.models.quality_model import QualityModel from sonarr.models.quality_profile_quality_item_resource import QualityProfileQualityItemResource @@ -192,6 +194,7 @@ from sonarr.models.queue_bulk_resource import QueueBulkResource from sonarr.models.queue_resource import QueueResource from sonarr.models.queue_resource_paging_resource import QueueResourcePagingResource +from sonarr.models.queue_status import QueueStatus from sonarr.models.queue_status_resource import QueueStatusResource from sonarr.models.ratings import Ratings from sonarr.models.rejection import Rejection diff --git a/sonarr/api/api_info_api.py b/sonarr/api/api_info_api.py index 5f80454..da52005 100644 --- a/sonarr/api/api_info_api.py +++ b/sonarr/api/api_info_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/authentication_api.py b/sonarr/api/authentication_api.py index 7e98025..efb45bb 100644 --- a/sonarr/api/authentication_api.py +++ b/sonarr/api/authentication_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/auto_tagging_api.py b/sonarr/api/auto_tagging_api.py index a9584f2..3afc1b0 100644 --- a/sonarr/api/auto_tagging_api.py +++ b/sonarr/api/auto_tagging_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/backup_api.py b/sonarr/api/backup_api.py index f4d2903..a2544fe 100644 --- a/sonarr/api/backup_api.py +++ b/sonarr/api/backup_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/blocklist_api.py b/sonarr/api/blocklist_api.py index d3a7b5f..002863a 100644 --- a/sonarr/api/blocklist_api.py +++ b/sonarr/api/blocklist_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/calendar_api.py b/sonarr/api/calendar_api.py index 12fcaf0..091bcad 100644 --- a/sonarr/api/calendar_api.py +++ b/sonarr/api/calendar_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/calendar_feed_api.py b/sonarr/api/calendar_feed_api.py index 6e913a5..c313ad6 100644 --- a/sonarr/api/calendar_feed_api.py +++ b/sonarr/api/calendar_feed_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/command_api.py b/sonarr/api/command_api.py index 87709e6..d55a0ea 100644 --- a/sonarr/api/command_api.py +++ b/sonarr/api/command_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/custom_filter_api.py b/sonarr/api/custom_filter_api.py index d2554d3..49d2fa0 100644 --- a/sonarr/api/custom_filter_api.py +++ b/sonarr/api/custom_filter_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/custom_format_api.py b/sonarr/api/custom_format_api.py index ee2fa74..7411902 100644 --- a/sonarr/api/custom_format_api.py +++ b/sonarr/api/custom_format_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,6 +18,7 @@ from pydantic import StrictInt, StrictStr from typing import List, Optional +from sonarr.models.custom_format_bulk_resource import CustomFormatBulkResource from sonarr.models.custom_format_resource import CustomFormatResource from sonarr.models.custom_format_specification_schema import CustomFormatSpecificationSchema @@ -565,6 +566,271 @@ def _delete_custom_format_serialize( + @validate_call + def delete_custom_format_bulk( + self, + custom_format_bulk_resource: Optional[CustomFormatBulkResource] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """delete_custom_format_bulk + + + :param custom_format_bulk_resource: + :type custom_format_bulk_resource: CustomFormatBulkResource + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_custom_format_bulk_serialize( + custom_format_bulk_resource=custom_format_bulk_resource, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '2XX': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_custom_format_bulk_with_http_info( + self, + custom_format_bulk_resource: Optional[CustomFormatBulkResource] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """delete_custom_format_bulk + + + :param custom_format_bulk_resource: + :type custom_format_bulk_resource: CustomFormatBulkResource + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_custom_format_bulk_serialize( + custom_format_bulk_resource=custom_format_bulk_resource, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '2XX': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_custom_format_bulk_without_preload_content( + self, + custom_format_bulk_resource: Optional[CustomFormatBulkResource] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_custom_format_bulk + + + :param custom_format_bulk_resource: + :type custom_format_bulk_resource: CustomFormatBulkResource + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_custom_format_bulk_serialize( + custom_format_bulk_resource=custom_format_bulk_resource, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '2XX': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_custom_format_bulk_serialize( + self, + custom_format_bulk_resource, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if custom_format_bulk_resource is not None: + _body_params = custom_format_bulk_resource + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'apikey', + 'X-Api-Key' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/v3/customformat/bulk', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def get_custom_format_by_id( self, @@ -1312,6 +1578,278 @@ def _list_custom_format_schema_serialize( + @validate_call + def put_custom_format_bulk( + self, + custom_format_bulk_resource: Optional[CustomFormatBulkResource] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> CustomFormatResource: + """put_custom_format_bulk + + + :param custom_format_bulk_resource: + :type custom_format_bulk_resource: CustomFormatBulkResource + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_custom_format_bulk_serialize( + custom_format_bulk_resource=custom_format_bulk_resource, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '2XX': "CustomFormatResource", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_custom_format_bulk_with_http_info( + self, + custom_format_bulk_resource: Optional[CustomFormatBulkResource] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[CustomFormatResource]: + """put_custom_format_bulk + + + :param custom_format_bulk_resource: + :type custom_format_bulk_resource: CustomFormatBulkResource + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_custom_format_bulk_serialize( + custom_format_bulk_resource=custom_format_bulk_resource, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '2XX': "CustomFormatResource", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_custom_format_bulk_without_preload_content( + self, + custom_format_bulk_resource: Optional[CustomFormatBulkResource] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """put_custom_format_bulk + + + :param custom_format_bulk_resource: + :type custom_format_bulk_resource: CustomFormatBulkResource + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_custom_format_bulk_serialize( + custom_format_bulk_resource=custom_format_bulk_resource, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '2XX': "CustomFormatResource", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_custom_format_bulk_serialize( + self, + custom_format_bulk_resource, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if custom_format_bulk_resource is not None: + _body_params = custom_format_bulk_resource + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'apikey', + 'X-Api-Key' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/v3/customformat/bulk', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def update_custom_format( self, diff --git a/sonarr/api/cutoff_api.py b/sonarr/api/cutoff_api.py index 28c1470..6f2a50b 100644 --- a/sonarr/api/cutoff_api.py +++ b/sonarr/api/cutoff_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/delay_profile_api.py b/sonarr/api/delay_profile_api.py index ddd9ba8..21fd2f5 100644 --- a/sonarr/api/delay_profile_api.py +++ b/sonarr/api/delay_profile_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/disk_space_api.py b/sonarr/api/disk_space_api.py index aa32c4d..61e16a6 100644 --- a/sonarr/api/disk_space_api.py +++ b/sonarr/api/disk_space_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/download_client_api.py b/sonarr/api/download_client_api.py index 5fd1cdc..35324eb 100644 --- a/sonarr/api/download_client_api.py +++ b/sonarr/api/download_client_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -2666,7 +2666,7 @@ def _testall_download_client_serialize( @validate_call def update_download_client( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, download_client_resource: Optional[DownloadClientResource] = None, _request_timeout: Union[ @@ -2686,7 +2686,7 @@ def update_download_client( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param download_client_resource: @@ -2740,7 +2740,7 @@ def update_download_client( @validate_call def update_download_client_with_http_info( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, download_client_resource: Optional[DownloadClientResource] = None, _request_timeout: Union[ @@ -2760,7 +2760,7 @@ def update_download_client_with_http_info( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param download_client_resource: @@ -2814,7 +2814,7 @@ def update_download_client_with_http_info( @validate_call def update_download_client_without_preload_content( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, download_client_resource: Optional[DownloadClientResource] = None, _request_timeout: Union[ @@ -2834,7 +2834,7 @@ def update_download_client_without_preload_content( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param download_client_resource: diff --git a/sonarr/api/download_client_config_api.py b/sonarr/api/download_client_config_api.py index 5ce9132..fab6381 100644 --- a/sonarr/api/download_client_config_api.py +++ b/sonarr/api/download_client_config_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/episode_api.py b/sonarr/api/episode_api.py index 175ac15..bb4a7df 100644 --- a/sonarr/api/episode_api.py +++ b/sonarr/api/episode_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -305,6 +305,8 @@ def list_episode( season_number: Optional[StrictInt] = None, episode_ids: Optional[List[StrictInt]] = None, episode_file_id: Optional[StrictInt] = None, + include_series: Optional[StrictBool] = None, + include_episode_file: Optional[StrictBool] = None, include_images: Optional[StrictBool] = None, _request_timeout: Union[ None, @@ -330,6 +332,10 @@ def list_episode( :type episode_ids: List[int] :param episode_file_id: :type episode_file_id: int + :param include_series: + :type include_series: bool + :param include_episode_file: + :type include_episode_file: bool :param include_images: :type include_images: bool :param _request_timeout: timeout setting for this request. If one @@ -359,6 +365,8 @@ def list_episode( season_number=season_number, episode_ids=episode_ids, episode_file_id=episode_file_id, + include_series=include_series, + include_episode_file=include_episode_file, include_images=include_images, _request_auth=_request_auth, _content_type=_content_type, @@ -387,6 +395,8 @@ def list_episode_with_http_info( season_number: Optional[StrictInt] = None, episode_ids: Optional[List[StrictInt]] = None, episode_file_id: Optional[StrictInt] = None, + include_series: Optional[StrictBool] = None, + include_episode_file: Optional[StrictBool] = None, include_images: Optional[StrictBool] = None, _request_timeout: Union[ None, @@ -412,6 +422,10 @@ def list_episode_with_http_info( :type episode_ids: List[int] :param episode_file_id: :type episode_file_id: int + :param include_series: + :type include_series: bool + :param include_episode_file: + :type include_episode_file: bool :param include_images: :type include_images: bool :param _request_timeout: timeout setting for this request. If one @@ -441,6 +455,8 @@ def list_episode_with_http_info( season_number=season_number, episode_ids=episode_ids, episode_file_id=episode_file_id, + include_series=include_series, + include_episode_file=include_episode_file, include_images=include_images, _request_auth=_request_auth, _content_type=_content_type, @@ -469,6 +485,8 @@ def list_episode_without_preload_content( season_number: Optional[StrictInt] = None, episode_ids: Optional[List[StrictInt]] = None, episode_file_id: Optional[StrictInt] = None, + include_series: Optional[StrictBool] = None, + include_episode_file: Optional[StrictBool] = None, include_images: Optional[StrictBool] = None, _request_timeout: Union[ None, @@ -494,6 +512,10 @@ def list_episode_without_preload_content( :type episode_ids: List[int] :param episode_file_id: :type episode_file_id: int + :param include_series: + :type include_series: bool + :param include_episode_file: + :type include_episode_file: bool :param include_images: :type include_images: bool :param _request_timeout: timeout setting for this request. If one @@ -523,6 +545,8 @@ def list_episode_without_preload_content( season_number=season_number, episode_ids=episode_ids, episode_file_id=episode_file_id, + include_series=include_series, + include_episode_file=include_episode_file, include_images=include_images, _request_auth=_request_auth, _content_type=_content_type, @@ -546,6 +570,8 @@ def _list_episode_serialize( season_number, episode_ids, episode_file_id, + include_series, + include_episode_file, include_images, _request_auth, _content_type, @@ -586,6 +612,14 @@ def _list_episode_serialize( _query_params.append(('episodeFileId', episode_file_id)) + if include_series is not None: + + _query_params.append(('includeSeries', include_series)) + + if include_episode_file is not None: + + _query_params.append(('includeEpisodeFile', include_episode_file)) + if include_images is not None: _query_params.append(('includeImages', include_images)) diff --git a/sonarr/api/episode_file_api.py b/sonarr/api/episode_file_api.py index 011b58a..e8b3d24 100644 --- a/sonarr/api/episode_file_api.py +++ b/sonarr/api/episode_file_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/file_system_api.py b/sonarr/api/file_system_api.py index c153a09..2612aa0 100644 --- a/sonarr/api/file_system_api.py +++ b/sonarr/api/file_system_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/health_api.py b/sonarr/api/health_api.py index 8923d13..ec6e259 100644 --- a/sonarr/api/health_api.py +++ b/sonarr/api/health_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/history_api.py b/sonarr/api/history_api.py index dad7fb3..049f1dd 100644 --- a/sonarr/api/history_api.py +++ b/sonarr/api/history_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/host_config_api.py b/sonarr/api/host_config_api.py index f7be2e6..98a4d18 100644 --- a/sonarr/api/host_config_api.py +++ b/sonarr/api/host_config_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/import_list_api.py b/sonarr/api/import_list_api.py index bcb5230..519f459 100644 --- a/sonarr/api/import_list_api.py +++ b/sonarr/api/import_list_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -2666,7 +2666,7 @@ def _testall_import_list_serialize( @validate_call def update_import_list( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, import_list_resource: Optional[ImportListResource] = None, _request_timeout: Union[ @@ -2686,7 +2686,7 @@ def update_import_list( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param import_list_resource: @@ -2740,7 +2740,7 @@ def update_import_list( @validate_call def update_import_list_with_http_info( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, import_list_resource: Optional[ImportListResource] = None, _request_timeout: Union[ @@ -2760,7 +2760,7 @@ def update_import_list_with_http_info( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param import_list_resource: @@ -2814,7 +2814,7 @@ def update_import_list_with_http_info( @validate_call def update_import_list_without_preload_content( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, import_list_resource: Optional[ImportListResource] = None, _request_timeout: Union[ @@ -2834,7 +2834,7 @@ def update_import_list_without_preload_content( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param import_list_resource: diff --git a/sonarr/api/import_list_config_api.py b/sonarr/api/import_list_config_api.py index 1c0bc18..74f806b 100644 --- a/sonarr/api/import_list_config_api.py +++ b/sonarr/api/import_list_config_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/import_list_exclusion_api.py b/sonarr/api/import_list_exclusion_api.py index 39f4aec..202da05 100644 --- a/sonarr/api/import_list_exclusion_api.py +++ b/sonarr/api/import_list_exclusion_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/indexer_api.py b/sonarr/api/indexer_api.py index 12eb7d1..10ff147 100644 --- a/sonarr/api/indexer_api.py +++ b/sonarr/api/indexer_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -2666,7 +2666,7 @@ def _testall_indexer_serialize( @validate_call def update_indexer( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, indexer_resource: Optional[IndexerResource] = None, _request_timeout: Union[ @@ -2686,7 +2686,7 @@ def update_indexer( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param indexer_resource: @@ -2740,7 +2740,7 @@ def update_indexer( @validate_call def update_indexer_with_http_info( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, indexer_resource: Optional[IndexerResource] = None, _request_timeout: Union[ @@ -2760,7 +2760,7 @@ def update_indexer_with_http_info( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param indexer_resource: @@ -2814,7 +2814,7 @@ def update_indexer_with_http_info( @validate_call def update_indexer_without_preload_content( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, indexer_resource: Optional[IndexerResource] = None, _request_timeout: Union[ @@ -2834,7 +2834,7 @@ def update_indexer_without_preload_content( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param indexer_resource: diff --git a/sonarr/api/indexer_config_api.py b/sonarr/api/indexer_config_api.py index 16ddb99..6592b5d 100644 --- a/sonarr/api/indexer_config_api.py +++ b/sonarr/api/indexer_config_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/indexer_flag_api.py b/sonarr/api/indexer_flag_api.py index 5ef88ca..629504d 100644 --- a/sonarr/api/indexer_flag_api.py +++ b/sonarr/api/indexer_flag_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/language_api.py b/sonarr/api/language_api.py index 973c57b..4ea6809 100644 --- a/sonarr/api/language_api.py +++ b/sonarr/api/language_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/language_profile_api.py b/sonarr/api/language_profile_api.py index 43876ad..78e1f3a 100644 --- a/sonarr/api/language_profile_api.py +++ b/sonarr/api/language_profile_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/language_profile_schema_api.py b/sonarr/api/language_profile_schema_api.py index c7ecc78..ff6ec5f 100644 --- a/sonarr/api/language_profile_schema_api.py +++ b/sonarr/api/language_profile_schema_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/localization_api.py b/sonarr/api/localization_api.py index 2364de7..21646a1 100644 --- a/sonarr/api/localization_api.py +++ b/sonarr/api/localization_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/log_api.py b/sonarr/api/log_api.py index 3d2eaf2..e7392c7 100644 --- a/sonarr/api/log_api.py +++ b/sonarr/api/log_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/log_file_api.py b/sonarr/api/log_file_api.py index 1105f3b..0a75b5c 100644 --- a/sonarr/api/log_file_api.py +++ b/sonarr/api/log_file_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/manual_import_api.py b/sonarr/api/manual_import_api.py index e68fcf0..17fe873 100644 --- a/sonarr/api/manual_import_api.py +++ b/sonarr/api/manual_import_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/media_cover_api.py b/sonarr/api/media_cover_api.py index 29a6c93..1b52563 100644 --- a/sonarr/api/media_cover_api.py +++ b/sonarr/api/media_cover_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/media_management_config_api.py b/sonarr/api/media_management_config_api.py index 7b1d862..8f4d2d2 100644 --- a/sonarr/api/media_management_config_api.py +++ b/sonarr/api/media_management_config_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/metadata_api.py b/sonarr/api/metadata_api.py index 992e791..de3a1db 100644 --- a/sonarr/api/metadata_api.py +++ b/sonarr/api/metadata_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -2128,7 +2128,7 @@ def _testall_metadata_serialize( @validate_call def update_metadata( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, metadata_resource: Optional[MetadataResource] = None, _request_timeout: Union[ @@ -2148,7 +2148,7 @@ def update_metadata( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param metadata_resource: @@ -2202,7 +2202,7 @@ def update_metadata( @validate_call def update_metadata_with_http_info( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, metadata_resource: Optional[MetadataResource] = None, _request_timeout: Union[ @@ -2222,7 +2222,7 @@ def update_metadata_with_http_info( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param metadata_resource: @@ -2276,7 +2276,7 @@ def update_metadata_with_http_info( @validate_call def update_metadata_without_preload_content( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, metadata_resource: Optional[MetadataResource] = None, _request_timeout: Union[ @@ -2296,7 +2296,7 @@ def update_metadata_without_preload_content( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param metadata_resource: diff --git a/sonarr/api/missing_api.py b/sonarr/api/missing_api.py index ed5d56a..4d91040 100644 --- a/sonarr/api/missing_api.py +++ b/sonarr/api/missing_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/naming_config_api.py b/sonarr/api/naming_config_api.py index 2cdfa57..1891c01 100644 --- a/sonarr/api/naming_config_api.py +++ b/sonarr/api/naming_config_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/notification_api.py b/sonarr/api/notification_api.py index abce4ba..7379308 100644 --- a/sonarr/api/notification_api.py +++ b/sonarr/api/notification_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -2128,7 +2128,7 @@ def _testall_notification_serialize( @validate_call def update_notification( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, notification_resource: Optional[NotificationResource] = None, _request_timeout: Union[ @@ -2148,7 +2148,7 @@ def update_notification( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param notification_resource: @@ -2202,7 +2202,7 @@ def update_notification( @validate_call def update_notification_with_http_info( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, notification_resource: Optional[NotificationResource] = None, _request_timeout: Union[ @@ -2222,7 +2222,7 @@ def update_notification_with_http_info( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param notification_resource: @@ -2276,7 +2276,7 @@ def update_notification_with_http_info( @validate_call def update_notification_without_preload_content( self, - id: StrictStr, + id: StrictInt, force_save: Optional[StrictBool] = None, notification_resource: Optional[NotificationResource] = None, _request_timeout: Union[ @@ -2296,7 +2296,7 @@ def update_notification_without_preload_content( :param id: (required) - :type id: str + :type id: int :param force_save: :type force_save: bool :param notification_resource: diff --git a/sonarr/api/parse_api.py b/sonarr/api/parse_api.py index faf37a7..a6ba28c 100644 --- a/sonarr/api/parse_api.py +++ b/sonarr/api/parse_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/ping_api.py b/sonarr/api/ping_api.py index db9fd48..792f61a 100644 --- a/sonarr/api/ping_api.py +++ b/sonarr/api/ping_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/quality_definition_api.py b/sonarr/api/quality_definition_api.py index 06de1f1..4ac34d5 100644 --- a/sonarr/api/quality_definition_api.py +++ b/sonarr/api/quality_definition_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,6 +18,7 @@ from pydantic import StrictInt, StrictStr from typing import List, Optional +from sonarr.models.quality_definition_limits_resource import QualityDefinitionLimitsResource from sonarr.models.quality_definition_resource import QualityDefinitionResource from sonarr.api_client import ApiClient, RequestSerialized @@ -297,6 +298,252 @@ def _get_quality_definition_by_id_serialize( + @validate_call + def get_quality_definition_limits( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> QualityDefinitionLimitsResource: + """get_quality_definition_limits + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_quality_definition_limits_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '2XX': "QualityDefinitionLimitsResource", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_quality_definition_limits_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[QualityDefinitionLimitsResource]: + """get_quality_definition_limits + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_quality_definition_limits_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '2XX': "QualityDefinitionLimitsResource", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_quality_definition_limits_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_quality_definition_limits + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_quality_definition_limits_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '2XX': "QualityDefinitionLimitsResource", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_quality_definition_limits_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'apikey', + 'X-Api-Key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v3/qualitydefinition/limits', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def list_quality_definition( self, diff --git a/sonarr/api/quality_profile_api.py b/sonarr/api/quality_profile_api.py index 17f05f8..c3e24d1 100644 --- a/sonarr/api/quality_profile_api.py +++ b/sonarr/api/quality_profile_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/quality_profile_schema_api.py b/sonarr/api/quality_profile_schema_api.py index 02219fc..93b18c2 100644 --- a/sonarr/api/quality_profile_schema_api.py +++ b/sonarr/api/quality_profile_schema_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/queue_action_api.py b/sonarr/api/queue_action_api.py index 934f9c2..862e26b 100644 --- a/sonarr/api/queue_action_api.py +++ b/sonarr/api/queue_action_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/queue_api.py b/sonarr/api/queue_api.py index 7a2c201..299a4b4 100644 --- a/sonarr/api/queue_api.py +++ b/sonarr/api/queue_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,6 +21,7 @@ from sonarr.models.download_protocol import DownloadProtocol from sonarr.models.queue_bulk_resource import QueueBulkResource from sonarr.models.queue_resource_paging_resource import QueueResourcePagingResource +from sonarr.models.queue_status import QueueStatus from sonarr.models.sort_direction import SortDirection from sonarr.api_client import ApiClient, RequestSerialized @@ -709,7 +710,8 @@ def get_queue( series_ids: Optional[List[StrictInt]] = None, protocol: Optional[DownloadProtocol] = None, languages: Optional[List[StrictInt]] = None, - quality: Optional[StrictInt] = None, + quality: Optional[List[StrictInt]] = None, + status: Optional[List[QueueStatus]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -747,7 +749,9 @@ def get_queue( :param languages: :type languages: List[int] :param quality: - :type quality: int + :type quality: List[int] + :param status: + :type status: List[QueueStatus] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -782,6 +786,7 @@ def get_queue( protocol=protocol, languages=languages, quality=quality, + status=status, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -815,7 +820,8 @@ def get_queue_with_http_info( series_ids: Optional[List[StrictInt]] = None, protocol: Optional[DownloadProtocol] = None, languages: Optional[List[StrictInt]] = None, - quality: Optional[StrictInt] = None, + quality: Optional[List[StrictInt]] = None, + status: Optional[List[QueueStatus]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -853,7 +859,9 @@ def get_queue_with_http_info( :param languages: :type languages: List[int] :param quality: - :type quality: int + :type quality: List[int] + :param status: + :type status: List[QueueStatus] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -888,6 +896,7 @@ def get_queue_with_http_info( protocol=protocol, languages=languages, quality=quality, + status=status, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -921,7 +930,8 @@ def get_queue_without_preload_content( series_ids: Optional[List[StrictInt]] = None, protocol: Optional[DownloadProtocol] = None, languages: Optional[List[StrictInt]] = None, - quality: Optional[StrictInt] = None, + quality: Optional[List[StrictInt]] = None, + status: Optional[List[QueueStatus]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -959,7 +969,9 @@ def get_queue_without_preload_content( :param languages: :type languages: List[int] :param quality: - :type quality: int + :type quality: List[int] + :param status: + :type status: List[QueueStatus] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -994,6 +1006,7 @@ def get_queue_without_preload_content( protocol=protocol, languages=languages, quality=quality, + status=status, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1023,6 +1036,7 @@ def _get_queue_serialize( protocol, languages, quality, + status, _request_auth, _content_type, _headers, @@ -1034,6 +1048,8 @@ def _get_queue_serialize( _collection_formats: Dict[str, str] = { 'seriesIds': 'multi', 'languages': 'multi', + 'quality': 'multi', + 'status': 'multi', } _path_params: Dict[str, str] = {} @@ -1091,6 +1107,10 @@ def _get_queue_serialize( _query_params.append(('quality', quality)) + if status is not None: + + _query_params.append(('status', status)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/sonarr/api/queue_details_api.py b/sonarr/api/queue_details_api.py index e5ced1d..1301949 100644 --- a/sonarr/api/queue_details_api.py +++ b/sonarr/api/queue_details_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/queue_status_api.py b/sonarr/api/queue_status_api.py index dca47d6..b003cea 100644 --- a/sonarr/api/queue_status_api.py +++ b/sonarr/api/queue_status_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/release_api.py b/sonarr/api/release_api.py index 8315e8b..9e59f55 100644 --- a/sonarr/api/release_api.py +++ b/sonarr/api/release_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/release_profile_api.py b/sonarr/api/release_profile_api.py index 05eacfc..9224091 100644 --- a/sonarr/api/release_profile_api.py +++ b/sonarr/api/release_profile_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/release_push_api.py b/sonarr/api/release_push_api.py index 6c40d76..616d100 100644 --- a/sonarr/api/release_push_api.py +++ b/sonarr/api/release_push_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/remote_path_mapping_api.py b/sonarr/api/remote_path_mapping_api.py index a8a79ab..23f9258 100644 --- a/sonarr/api/remote_path_mapping_api.py +++ b/sonarr/api/remote_path_mapping_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/rename_episode_api.py b/sonarr/api/rename_episode_api.py index 795b232..c82ba9b 100644 --- a/sonarr/api/rename_episode_api.py +++ b/sonarr/api/rename_episode_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/root_folder_api.py b/sonarr/api/root_folder_api.py index 43d1903..0b5e4d2 100644 --- a/sonarr/api/root_folder_api.py +++ b/sonarr/api/root_folder_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/season_pass_api.py b/sonarr/api/season_pass_api.py index 10930a0..8af0c7a 100644 --- a/sonarr/api/season_pass_api.py +++ b/sonarr/api/season_pass_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/series_api.py b/sonarr/api/series_api.py index 577db7e..084a66a 100644 --- a/sonarr/api/series_api.py +++ b/sonarr/api/series_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -268,9 +268,7 @@ def _create_series_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'text/plain', - 'application/json', - 'text/json' + 'application/json' ] ) @@ -1414,9 +1412,7 @@ def _update_series_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'text/plain', - 'application/json', - 'text/json' + 'application/json' ] ) diff --git a/sonarr/api/series_editor_api.py b/sonarr/api/series_editor_api.py index 7dbb32b..c9c098f 100644 --- a/sonarr/api/series_editor_api.py +++ b/sonarr/api/series_editor_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/series_import_api.py b/sonarr/api/series_import_api.py index 05b8b69..666bb0f 100644 --- a/sonarr/api/series_import_api.py +++ b/sonarr/api/series_import_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/series_lookup_api.py b/sonarr/api/series_lookup_api.py index 9eea9e6..e12146b 100644 --- a/sonarr/api/series_lookup_api.py +++ b/sonarr/api/series_lookup_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/static_resource_api.py b/sonarr/api/static_resource_api.py index f66fcf4..b97a9ef 100644 --- a/sonarr/api/static_resource_api.py +++ b/sonarr/api/static_resource_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/system_api.py b/sonarr/api/system_api.py index 069a093..47140ba 100644 --- a/sonarr/api/system_api.py +++ b/sonarr/api/system_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/tag_api.py b/sonarr/api/tag_api.py index eba1c0d..0a34a07 100644 --- a/sonarr/api/tag_api.py +++ b/sonarr/api/tag_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/tag_details_api.py b/sonarr/api/tag_details_api.py index c199bbb..eff9137 100644 --- a/sonarr/api/tag_details_api.py +++ b/sonarr/api/tag_details_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/task_api.py b/sonarr/api/task_api.py index 13e60f1..6ab535f 100644 --- a/sonarr/api/task_api.py +++ b/sonarr/api/task_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/ui_config_api.py b/sonarr/api/ui_config_api.py index 2adf9d2..6b7a817 100644 --- a/sonarr/api/ui_config_api.py +++ b/sonarr/api/ui_config_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/update_api.py b/sonarr/api/update_api.py index e8e830a..c7b1bd8 100644 --- a/sonarr/api/update_api.py +++ b/sonarr/api/update_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api/update_log_file_api.py b/sonarr/api/update_log_file_api.py index 9e8d2da..b95a89c 100644 --- a/sonarr/api/update_log_file_api.py +++ b/sonarr/api/update_log_file_api.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/api_client.py b/sonarr/api_client.py index c031f97..67c7b58 100644 --- a/sonarr/api_client.py +++ b/sonarr/api_client.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/configuration.py b/sonarr/configuration.py index e65db93..209741d 100644 --- a/sonarr/configuration.py +++ b/sonarr/configuration.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -421,7 +421,7 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v4.0.9.2244\n"\ + "Version of the API: v4.0.11.2680\n"\ "SDK Package Version: {v}".\ format(env=sys.platform, pyversion=sys.version, v="1.0.2") # x-release-please-version diff --git a/sonarr/exceptions.py b/sonarr/exceptions.py index 598f959..84ea841 100644 --- a/sonarr/exceptions.py +++ b/sonarr/exceptions.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/__init__.py b/sonarr/models/__init__.py index c85c62c..ff3d240 100644 --- a/sonarr/models/__init__.py +++ b/sonarr/models/__init__.py @@ -6,7 +6,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,6 +35,7 @@ from sonarr.models.command_trigger import CommandTrigger from sonarr.models.contract_field import ContractField from sonarr.models.custom_filter_resource import CustomFilterResource +from sonarr.models.custom_format_bulk_resource import CustomFormatBulkResource from sonarr.models.custom_format_resource import CustomFormatResource from sonarr.models.custom_format_specification_schema import CustomFormatSpecificationSchema from sonarr.models.database_type import DatabaseType @@ -100,6 +101,7 @@ from sonarr.models.provider_message_type import ProviderMessageType from sonarr.models.proxy_type import ProxyType from sonarr.models.quality import Quality +from sonarr.models.quality_definition_limits_resource import QualityDefinitionLimitsResource from sonarr.models.quality_definition_resource import QualityDefinitionResource from sonarr.models.quality_model import QualityModel from sonarr.models.quality_profile_quality_item_resource import QualityProfileQualityItemResource @@ -108,6 +110,7 @@ from sonarr.models.queue_bulk_resource import QueueBulkResource from sonarr.models.queue_resource import QueueResource from sonarr.models.queue_resource_paging_resource import QueueResourcePagingResource +from sonarr.models.queue_status import QueueStatus from sonarr.models.queue_status_resource import QueueStatusResource from sonarr.models.ratings import Ratings from sonarr.models.rejection import Rejection diff --git a/sonarr/models/add_series_options.py b/sonarr/models/add_series_options.py index 934a43d..b87ca20 100644 --- a/sonarr/models/add_series_options.py +++ b/sonarr/models/add_series_options.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/alternate_title_resource.py b/sonarr/models/alternate_title_resource.py index e5db90c..dc21601 100644 --- a/sonarr/models/alternate_title_resource.py +++ b/sonarr/models/alternate_title_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/apply_tags.py b/sonarr/models/apply_tags.py index 6223197..4db817d 100644 --- a/sonarr/models/apply_tags.py +++ b/sonarr/models/apply_tags.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/authentication_required_type.py b/sonarr/models/authentication_required_type.py index 7c41ed2..832ac56 100644 --- a/sonarr/models/authentication_required_type.py +++ b/sonarr/models/authentication_required_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/authentication_type.py b/sonarr/models/authentication_type.py index 805e2c5..facaefe 100644 --- a/sonarr/models/authentication_type.py +++ b/sonarr/models/authentication_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/auto_tagging_resource.py b/sonarr/models/auto_tagging_resource.py index 73c8499..34bcd56 100644 --- a/sonarr/models/auto_tagging_resource.py +++ b/sonarr/models/auto_tagging_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/auto_tagging_specification_schema.py b/sonarr/models/auto_tagging_specification_schema.py index 50a1a21..8bd10f1 100644 --- a/sonarr/models/auto_tagging_specification_schema.py +++ b/sonarr/models/auto_tagging_specification_schema.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/backup_resource.py b/sonarr/models/backup_resource.py index ebb4c9a..379318c 100644 --- a/sonarr/models/backup_resource.py +++ b/sonarr/models/backup_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/backup_type.py b/sonarr/models/backup_type.py index 955f210..a90a8bd 100644 --- a/sonarr/models/backup_type.py +++ b/sonarr/models/backup_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/blocklist_bulk_resource.py b/sonarr/models/blocklist_bulk_resource.py index f82b093..75dbed2 100644 --- a/sonarr/models/blocklist_bulk_resource.py +++ b/sonarr/models/blocklist_bulk_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/blocklist_resource.py b/sonarr/models/blocklist_resource.py index 3268b75..397a292 100644 --- a/sonarr/models/blocklist_resource.py +++ b/sonarr/models/blocklist_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/blocklist_resource_paging_resource.py b/sonarr/models/blocklist_resource_paging_resource.py index 772290d..3e7d535 100644 --- a/sonarr/models/blocklist_resource_paging_resource.py +++ b/sonarr/models/blocklist_resource_paging_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/certificate_validation_type.py b/sonarr/models/certificate_validation_type.py index 4abac3a..c34aa7a 100644 --- a/sonarr/models/certificate_validation_type.py +++ b/sonarr/models/certificate_validation_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/command.py b/sonarr/models/command.py index 9cd637c..80a2d53 100644 --- a/sonarr/models/command.py +++ b/sonarr/models/command.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/command_priority.py b/sonarr/models/command_priority.py index ed7584c..a2e34d2 100644 --- a/sonarr/models/command_priority.py +++ b/sonarr/models/command_priority.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/command_resource.py b/sonarr/models/command_resource.py index 6911d40..9b4a720 100644 --- a/sonarr/models/command_resource.py +++ b/sonarr/models/command_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/command_result.py b/sonarr/models/command_result.py index 5363296..3aa5d86 100644 --- a/sonarr/models/command_result.py +++ b/sonarr/models/command_result.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/command_status.py b/sonarr/models/command_status.py index 1bc0779..4464dc4 100644 --- a/sonarr/models/command_status.py +++ b/sonarr/models/command_status.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/command_trigger.py b/sonarr/models/command_trigger.py index f827b75..7f0696c 100644 --- a/sonarr/models/command_trigger.py +++ b/sonarr/models/command_trigger.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/contract_field.py b/sonarr/models/contract_field.py index 17b6d1c..b5ca554 100644 --- a/sonarr/models/contract_field.py +++ b/sonarr/models/contract_field.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/custom_filter_resource.py b/sonarr/models/custom_filter_resource.py index 6214621..8bbd8d9 100644 --- a/sonarr/models/custom_filter_resource.py +++ b/sonarr/models/custom_filter_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/custom_format_bulk_resource.py b/sonarr/models/custom_format_bulk_resource.py new file mode 100644 index 0000000..2b242b1 --- /dev/null +++ b/sonarr/models/custom_format_bulk_resource.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Sonarr + + Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. + + The version of the OpenAPI document: v4.0.11.2680 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CustomFormatBulkResource(BaseModel): + """ + CustomFormatBulkResource + """ # noqa: E501 + ids: Optional[List[StrictInt]] = None + include_custom_format_when_renaming: Optional[StrictBool] = Field(default=None, alias="includeCustomFormatWhenRenaming") + __properties: ClassVar[List[str]] = ["ids", "includeCustomFormatWhenRenaming"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CustomFormatBulkResource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if ids (nullable) is None + # and model_fields_set contains the field + if self.ids is None and "ids" in self.model_fields_set: + _dict['ids'] = None + + # set to None if include_custom_format_when_renaming (nullable) is None + # and model_fields_set contains the field + if self.include_custom_format_when_renaming is None and "include_custom_format_when_renaming" in self.model_fields_set: + _dict['includeCustomFormatWhenRenaming'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CustomFormatBulkResource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ids": obj.get("ids"), + "includeCustomFormatWhenRenaming": obj.get("includeCustomFormatWhenRenaming") + }) + return _obj + + diff --git a/sonarr/models/custom_format_resource.py b/sonarr/models/custom_format_resource.py index d56271b..37e7d2c 100644 --- a/sonarr/models/custom_format_resource.py +++ b/sonarr/models/custom_format_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/custom_format_specification_schema.py b/sonarr/models/custom_format_specification_schema.py index dc2a857..7d39b2b 100644 --- a/sonarr/models/custom_format_specification_schema.py +++ b/sonarr/models/custom_format_specification_schema.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/database_type.py b/sonarr/models/database_type.py index 9f8bb3c..26fe1ba 100644 --- a/sonarr/models/database_type.py +++ b/sonarr/models/database_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/delay_profile_resource.py b/sonarr/models/delay_profile_resource.py index d131857..66ce386 100644 --- a/sonarr/models/delay_profile_resource.py +++ b/sonarr/models/delay_profile_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/disk_space_resource.py b/sonarr/models/disk_space_resource.py index 8010f12..74668e4 100644 --- a/sonarr/models/disk_space_resource.py +++ b/sonarr/models/disk_space_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/download_client_bulk_resource.py b/sonarr/models/download_client_bulk_resource.py index 739ed58..e0804b6 100644 --- a/sonarr/models/download_client_bulk_resource.py +++ b/sonarr/models/download_client_bulk_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/download_client_config_resource.py b/sonarr/models/download_client_config_resource.py index bc48341..5b1ac83 100644 --- a/sonarr/models/download_client_config_resource.py +++ b/sonarr/models/download_client_config_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/download_client_resource.py b/sonarr/models/download_client_resource.py index 546d5c8..df52df1 100644 --- a/sonarr/models/download_client_resource.py +++ b/sonarr/models/download_client_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/download_protocol.py b/sonarr/models/download_protocol.py index f5936a8..3b9da6f 100644 --- a/sonarr/models/download_protocol.py +++ b/sonarr/models/download_protocol.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/episode_file_list_resource.py b/sonarr/models/episode_file_list_resource.py index 92c82d7..0d5bb19 100644 --- a/sonarr/models/episode_file_list_resource.py +++ b/sonarr/models/episode_file_list_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/episode_file_resource.py b/sonarr/models/episode_file_resource.py index 408b840..de9ff13 100644 --- a/sonarr/models/episode_file_resource.py +++ b/sonarr/models/episode_file_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/episode_history_event_type.py b/sonarr/models/episode_history_event_type.py index a4df7b5..4b68c97 100644 --- a/sonarr/models/episode_history_event_type.py +++ b/sonarr/models/episode_history_event_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/episode_resource.py b/sonarr/models/episode_resource.py index 5ce81db..f5d4e3a 100644 --- a/sonarr/models/episode_resource.py +++ b/sonarr/models/episode_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,6 +39,7 @@ class EpisodeResource(BaseModel): title: Optional[StrictStr] = None air_date: Optional[StrictStr] = Field(default=None, alias="airDate") air_date_utc: Optional[datetime] = Field(default=None, alias="airDateUtc") + last_search_time: Optional[datetime] = Field(default=None, alias="lastSearchTime") runtime: Optional[StrictInt] = None finale_type: Optional[StrictStr] = Field(default=None, alias="finaleType") overview: Optional[StrictStr] = None @@ -54,7 +55,7 @@ class EpisodeResource(BaseModel): grab_date: Optional[datetime] = Field(default=None, alias="grabDate") series: Optional[SeriesResource] = None images: Optional[List[MediaCover]] = None - __properties: ClassVar[List[str]] = ["id", "seriesId", "tvdbId", "episodeFileId", "seasonNumber", "episodeNumber", "title", "airDate", "airDateUtc", "runtime", "finaleType", "overview", "episodeFile", "hasFile", "monitored", "absoluteEpisodeNumber", "sceneAbsoluteEpisodeNumber", "sceneEpisodeNumber", "sceneSeasonNumber", "unverifiedSceneNumbering", "endTime", "grabDate", "series", "images"] + __properties: ClassVar[List[str]] = ["id", "seriesId", "tvdbId", "episodeFileId", "seasonNumber", "episodeNumber", "title", "airDate", "airDateUtc", "lastSearchTime", "runtime", "finaleType", "overview", "episodeFile", "hasFile", "monitored", "absoluteEpisodeNumber", "sceneAbsoluteEpisodeNumber", "sceneEpisodeNumber", "sceneSeasonNumber", "unverifiedSceneNumbering", "endTime", "grabDate", "series", "images"] model_config = ConfigDict( populate_by_name=True, @@ -123,6 +124,11 @@ def to_dict(self) -> Dict[str, Any]: if self.air_date_utc is None and "air_date_utc" in self.model_fields_set: _dict['airDateUtc'] = None + # set to None if last_search_time (nullable) is None + # and model_fields_set contains the field + if self.last_search_time is None and "last_search_time" in self.model_fields_set: + _dict['lastSearchTime'] = None + # set to None if finale_type (nullable) is None # and model_fields_set contains the field if self.finale_type is None and "finale_type" in self.model_fields_set: @@ -189,6 +195,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "title": obj.get("title"), "airDate": obj.get("airDate"), "airDateUtc": obj.get("airDateUtc"), + "lastSearchTime": obj.get("lastSearchTime"), "runtime": obj.get("runtime"), "finaleType": obj.get("finaleType"), "overview": obj.get("overview"), diff --git a/sonarr/models/episode_resource_paging_resource.py b/sonarr/models/episode_resource_paging_resource.py index ad86c45..cd08d49 100644 --- a/sonarr/models/episode_resource_paging_resource.py +++ b/sonarr/models/episode_resource_paging_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/episode_title_required_type.py b/sonarr/models/episode_title_required_type.py index ab8fa6d..e0f58f5 100644 --- a/sonarr/models/episode_title_required_type.py +++ b/sonarr/models/episode_title_required_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/episodes_monitored_resource.py b/sonarr/models/episodes_monitored_resource.py index 1a5820c..3391bdd 100644 --- a/sonarr/models/episodes_monitored_resource.py +++ b/sonarr/models/episodes_monitored_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/file_date_type.py b/sonarr/models/file_date_type.py index f8a4922..47c23cc 100644 --- a/sonarr/models/file_date_type.py +++ b/sonarr/models/file_date_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/health_check_result.py b/sonarr/models/health_check_result.py index 83c21ca..1ceb282 100644 --- a/sonarr/models/health_check_result.py +++ b/sonarr/models/health_check_result.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/health_resource.py b/sonarr/models/health_resource.py index 491f52d..76148a9 100644 --- a/sonarr/models/health_resource.py +++ b/sonarr/models/health_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/history_resource.py b/sonarr/models/history_resource.py index 52c174e..56b5429 100644 --- a/sonarr/models/history_resource.py +++ b/sonarr/models/history_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/history_resource_paging_resource.py b/sonarr/models/history_resource_paging_resource.py index abbcc05..7917c92 100644 --- a/sonarr/models/history_resource_paging_resource.py +++ b/sonarr/models/history_resource_paging_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/host_config_resource.py b/sonarr/models/host_config_resource.py index 3c5912c..35da6c8 100644 --- a/sonarr/models/host_config_resource.py +++ b/sonarr/models/host_config_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/import_list_bulk_resource.py b/sonarr/models/import_list_bulk_resource.py index a661570..872a6c4 100644 --- a/sonarr/models/import_list_bulk_resource.py +++ b/sonarr/models/import_list_bulk_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/import_list_config_resource.py b/sonarr/models/import_list_config_resource.py index dbae96b..8753089 100644 --- a/sonarr/models/import_list_config_resource.py +++ b/sonarr/models/import_list_config_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/import_list_exclusion_bulk_resource.py b/sonarr/models/import_list_exclusion_bulk_resource.py index d66faa8..402f8cb 100644 --- a/sonarr/models/import_list_exclusion_bulk_resource.py +++ b/sonarr/models/import_list_exclusion_bulk_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/import_list_exclusion_resource.py b/sonarr/models/import_list_exclusion_resource.py index e7002dc..07e6f5a 100644 --- a/sonarr/models/import_list_exclusion_resource.py +++ b/sonarr/models/import_list_exclusion_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/import_list_exclusion_resource_paging_resource.py b/sonarr/models/import_list_exclusion_resource_paging_resource.py index c137f5c..50e8926 100644 --- a/sonarr/models/import_list_exclusion_resource_paging_resource.py +++ b/sonarr/models/import_list_exclusion_resource_paging_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/import_list_resource.py b/sonarr/models/import_list_resource.py index c221a9d..919c9aa 100644 --- a/sonarr/models/import_list_resource.py +++ b/sonarr/models/import_list_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/import_list_type.py b/sonarr/models/import_list_type.py index ff022af..fbc03f8 100644 --- a/sonarr/models/import_list_type.py +++ b/sonarr/models/import_list_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/indexer_bulk_resource.py b/sonarr/models/indexer_bulk_resource.py index e3d0224..b390e1e 100644 --- a/sonarr/models/indexer_bulk_resource.py +++ b/sonarr/models/indexer_bulk_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/indexer_config_resource.py b/sonarr/models/indexer_config_resource.py index 9cfb8bf..3e240e2 100644 --- a/sonarr/models/indexer_config_resource.py +++ b/sonarr/models/indexer_config_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/indexer_flag_resource.py b/sonarr/models/indexer_flag_resource.py index 4d9ddd4..9fc23be 100644 --- a/sonarr/models/indexer_flag_resource.py +++ b/sonarr/models/indexer_flag_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/indexer_resource.py b/sonarr/models/indexer_resource.py index 30ace31..d04f7a0 100644 --- a/sonarr/models/indexer_resource.py +++ b/sonarr/models/indexer_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/language.py b/sonarr/models/language.py index 5b7b07e..2beebc7 100644 --- a/sonarr/models/language.py +++ b/sonarr/models/language.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/language_profile_item_resource.py b/sonarr/models/language_profile_item_resource.py index 7ada9c9..0efc7db 100644 --- a/sonarr/models/language_profile_item_resource.py +++ b/sonarr/models/language_profile_item_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/language_profile_resource.py b/sonarr/models/language_profile_resource.py index c1d546b..a94939f 100644 --- a/sonarr/models/language_profile_resource.py +++ b/sonarr/models/language_profile_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/language_resource.py b/sonarr/models/language_resource.py index c56cf44..5d1ba36 100644 --- a/sonarr/models/language_resource.py +++ b/sonarr/models/language_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/list_sync_level_type.py b/sonarr/models/list_sync_level_type.py index 5254b10..3f79aeb 100644 --- a/sonarr/models/list_sync_level_type.py +++ b/sonarr/models/list_sync_level_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/localization_language_resource.py b/sonarr/models/localization_language_resource.py index 51d2663..00bbd68 100644 --- a/sonarr/models/localization_language_resource.py +++ b/sonarr/models/localization_language_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/localization_resource.py b/sonarr/models/localization_resource.py index 11387da..d1b4d4b 100644 --- a/sonarr/models/localization_resource.py +++ b/sonarr/models/localization_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/log_file_resource.py b/sonarr/models/log_file_resource.py index 27de525..36913fa 100644 --- a/sonarr/models/log_file_resource.py +++ b/sonarr/models/log_file_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/log_resource.py b/sonarr/models/log_resource.py index a7a6a89..578882a 100644 --- a/sonarr/models/log_resource.py +++ b/sonarr/models/log_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/log_resource_paging_resource.py b/sonarr/models/log_resource_paging_resource.py index aff21f6..8a9efc9 100644 --- a/sonarr/models/log_resource_paging_resource.py +++ b/sonarr/models/log_resource_paging_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/manual_import_reprocess_resource.py b/sonarr/models/manual_import_reprocess_resource.py index 58b2904..40059a3 100644 --- a/sonarr/models/manual_import_reprocess_resource.py +++ b/sonarr/models/manual_import_reprocess_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/manual_import_resource.py b/sonarr/models/manual_import_resource.py index a347ff3..a1024ae 100644 --- a/sonarr/models/manual_import_resource.py +++ b/sonarr/models/manual_import_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/media_cover.py b/sonarr/models/media_cover.py index fba8b9b..5a78850 100644 --- a/sonarr/models/media_cover.py +++ b/sonarr/models/media_cover.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/media_cover_types.py b/sonarr/models/media_cover_types.py index 62d6e76..8b1fdf1 100644 --- a/sonarr/models/media_cover_types.py +++ b/sonarr/models/media_cover_types.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/media_info_resource.py b/sonarr/models/media_info_resource.py index e0cbae7..95e76e1 100644 --- a/sonarr/models/media_info_resource.py +++ b/sonarr/models/media_info_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/media_management_config_resource.py b/sonarr/models/media_management_config_resource.py index 02424d6..2d806bd 100644 --- a/sonarr/models/media_management_config_resource.py +++ b/sonarr/models/media_management_config_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/metadata_resource.py b/sonarr/models/metadata_resource.py index 24e2b0d..f3c8f53 100644 --- a/sonarr/models/metadata_resource.py +++ b/sonarr/models/metadata_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/monitor_types.py b/sonarr/models/monitor_types.py index ae24f01..c116b38 100644 --- a/sonarr/models/monitor_types.py +++ b/sonarr/models/monitor_types.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/monitoring_options.py b/sonarr/models/monitoring_options.py index fe981f8..d464d28 100644 --- a/sonarr/models/monitoring_options.py +++ b/sonarr/models/monitoring_options.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/naming_config_resource.py b/sonarr/models/naming_config_resource.py index d38686c..f6c921b 100644 --- a/sonarr/models/naming_config_resource.py +++ b/sonarr/models/naming_config_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/new_item_monitor_types.py b/sonarr/models/new_item_monitor_types.py index 69f4a22..a85cb48 100644 --- a/sonarr/models/new_item_monitor_types.py +++ b/sonarr/models/new_item_monitor_types.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/notification_resource.py b/sonarr/models/notification_resource.py index 78be315..7ca37e5 100644 --- a/sonarr/models/notification_resource.py +++ b/sonarr/models/notification_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/parse_resource.py b/sonarr/models/parse_resource.py index 1dd3d3d..eb13d70 100644 --- a/sonarr/models/parse_resource.py +++ b/sonarr/models/parse_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/parsed_episode_info.py b/sonarr/models/parsed_episode_info.py index 887a62c..c517cac 100644 --- a/sonarr/models/parsed_episode_info.py +++ b/sonarr/models/parsed_episode_info.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/ping_resource.py b/sonarr/models/ping_resource.py index fdfbe55..d5da0b4 100644 --- a/sonarr/models/ping_resource.py +++ b/sonarr/models/ping_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/privacy_level.py b/sonarr/models/privacy_level.py index f856612..bcb9f42 100644 --- a/sonarr/models/privacy_level.py +++ b/sonarr/models/privacy_level.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/profile_format_item_resource.py b/sonarr/models/profile_format_item_resource.py index 1309bd8..971f33b 100644 --- a/sonarr/models/profile_format_item_resource.py +++ b/sonarr/models/profile_format_item_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/proper_download_types.py b/sonarr/models/proper_download_types.py index 4bc0a97..b0f3e95 100644 --- a/sonarr/models/proper_download_types.py +++ b/sonarr/models/proper_download_types.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/provider_message.py b/sonarr/models/provider_message.py index eafb4c2..4bfdf4e 100644 --- a/sonarr/models/provider_message.py +++ b/sonarr/models/provider_message.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/provider_message_type.py b/sonarr/models/provider_message_type.py index 1a7e099..9bfa3b3 100644 --- a/sonarr/models/provider_message_type.py +++ b/sonarr/models/provider_message_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/proxy_type.py b/sonarr/models/proxy_type.py index ae4ec48..684787a 100644 --- a/sonarr/models/proxy_type.py +++ b/sonarr/models/proxy_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/quality.py b/sonarr/models/quality.py index 74bf95e..dda1fc8 100644 --- a/sonarr/models/quality.py +++ b/sonarr/models/quality.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/quality_definition_limits_resource.py b/sonarr/models/quality_definition_limits_resource.py new file mode 100644 index 0000000..5f46499 --- /dev/null +++ b/sonarr/models/quality_definition_limits_resource.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Sonarr + + Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. + + The version of the OpenAPI document: v4.0.11.2680 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt +from typing import Any, ClassVar, Dict, Optional +from typing import Optional, Set +from typing_extensions import Self + +class QualityDefinitionLimitsResource(BaseModel): + """ + QualityDefinitionLimitsResource + """ # noqa: E501 + min: Optional[StrictInt] = None + max: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["min", "max"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QualityDefinitionLimitsResource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QualityDefinitionLimitsResource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "min": obj.get("min"), + "max": obj.get("max") + }) + return _obj + + diff --git a/sonarr/models/quality_definition_resource.py b/sonarr/models/quality_definition_resource.py index c04bece..41df069 100644 --- a/sonarr/models/quality_definition_resource.py +++ b/sonarr/models/quality_definition_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/quality_model.py b/sonarr/models/quality_model.py index 5a9fe22..a540c33 100644 --- a/sonarr/models/quality_model.py +++ b/sonarr/models/quality_model.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/quality_profile_quality_item_resource.py b/sonarr/models/quality_profile_quality_item_resource.py index 4ab5788..098c9d2 100644 --- a/sonarr/models/quality_profile_quality_item_resource.py +++ b/sonarr/models/quality_profile_quality_item_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/quality_profile_resource.py b/sonarr/models/quality_profile_resource.py index 821541c..9bf4c00 100644 --- a/sonarr/models/quality_profile_resource.py +++ b/sonarr/models/quality_profile_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,8 +35,9 @@ class QualityProfileResource(BaseModel): items: Optional[List[QualityProfileQualityItemResource]] = None min_format_score: Optional[StrictInt] = Field(default=None, alias="minFormatScore") cutoff_format_score: Optional[StrictInt] = Field(default=None, alias="cutoffFormatScore") + min_upgrade_format_score: Optional[StrictInt] = Field(default=None, alias="minUpgradeFormatScore") format_items: Optional[List[ProfileFormatItemResource]] = Field(default=None, alias="formatItems") - __properties: ClassVar[List[str]] = ["id", "name", "upgradeAllowed", "cutoff", "items", "minFormatScore", "cutoffFormatScore", "formatItems"] + __properties: ClassVar[List[str]] = ["id", "name", "upgradeAllowed", "cutoff", "items", "minFormatScore", "cutoffFormatScore", "minUpgradeFormatScore", "formatItems"] model_config = ConfigDict( populate_by_name=True, @@ -125,6 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "items": [QualityProfileQualityItemResource.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "minFormatScore": obj.get("minFormatScore"), "cutoffFormatScore": obj.get("cutoffFormatScore"), + "minUpgradeFormatScore": obj.get("minUpgradeFormatScore"), "formatItems": [ProfileFormatItemResource.from_dict(_item) for _item in obj["formatItems"]] if obj.get("formatItems") is not None else None }) return _obj diff --git a/sonarr/models/quality_source.py b/sonarr/models/quality_source.py index b04103c..abace95 100644 --- a/sonarr/models/quality_source.py +++ b/sonarr/models/quality_source.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/queue_bulk_resource.py b/sonarr/models/queue_bulk_resource.py index 030509e..4db0d08 100644 --- a/sonarr/models/queue_bulk_resource.py +++ b/sonarr/models/queue_bulk_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/queue_resource.py b/sonarr/models/queue_resource.py index fff2eb0..30e209e 100644 --- a/sonarr/models/queue_resource.py +++ b/sonarr/models/queue_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -25,6 +25,7 @@ from sonarr.models.episode_resource import EpisodeResource from sonarr.models.language import Language from sonarr.models.quality_model import QualityModel +from sonarr.models.queue_status import QueueStatus from sonarr.models.series_resource import SeriesResource from sonarr.models.tracked_download_state import TrackedDownloadState from sonarr.models.tracked_download_status import TrackedDownloadStatus @@ -52,7 +53,7 @@ class QueueResource(BaseModel): timeleft: Optional[StrictStr] = None estimated_completion_time: Optional[datetime] = Field(default=None, alias="estimatedCompletionTime") added: Optional[datetime] = None - status: Optional[StrictStr] = None + status: Optional[QueueStatus] = None tracked_download_status: Optional[TrackedDownloadStatus] = Field(default=None, alias="trackedDownloadStatus") tracked_download_state: Optional[TrackedDownloadState] = Field(default=None, alias="trackedDownloadState") status_messages: Optional[List[TrackedDownloadStatusMessage]] = Field(default=None, alias="statusMessages") @@ -180,11 +181,6 @@ def to_dict(self) -> Dict[str, Any]: if self.added is None and "added" in self.model_fields_set: _dict['added'] = None - # set to None if status (nullable) is None - # and model_fields_set contains the field - if self.status is None and "status" in self.model_fields_set: - _dict['status'] = None - # set to None if status_messages (nullable) is None # and model_fields_set contains the field if self.status_messages is None and "status_messages" in self.model_fields_set: diff --git a/sonarr/models/queue_resource_paging_resource.py b/sonarr/models/queue_resource_paging_resource.py index 4054354..1029e01 100644 --- a/sonarr/models/queue_resource_paging_resource.py +++ b/sonarr/models/queue_resource_paging_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/queue_status.py b/sonarr/models/queue_status.py new file mode 100644 index 0000000..c948b0b --- /dev/null +++ b/sonarr/models/queue_status.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Sonarr + + Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. + + The version of the OpenAPI document: v4.0.11.2680 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class QueueStatus(str, Enum): + """ + QueueStatus + """ + + """ + allowed enum values + """ + UNKNOWN = 'unknown' + QUEUED = 'queued' + PAUSED = 'paused' + DOWNLOADING = 'downloading' + COMPLETED = 'completed' + FAILED = 'failed' + WARNING = 'warning' + DELAY = 'delay' + DOWNLOADCLIENTUNAVAILABLE = 'downloadClientUnavailable' + FALLBACK = 'fallback' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of QueueStatus from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/sonarr/models/queue_status_resource.py b/sonarr/models/queue_status_resource.py index d29983f..a0687b5 100644 --- a/sonarr/models/queue_status_resource.py +++ b/sonarr/models/queue_status_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/ratings.py b/sonarr/models/ratings.py index a78d21a..62e748f 100644 --- a/sonarr/models/ratings.py +++ b/sonarr/models/ratings.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/rejection.py b/sonarr/models/rejection.py index 83bce82..9e8656e 100644 --- a/sonarr/models/rejection.py +++ b/sonarr/models/rejection.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/rejection_type.py b/sonarr/models/rejection_type.py index eeff0c4..58ea159 100644 --- a/sonarr/models/rejection_type.py +++ b/sonarr/models/rejection_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/release_episode_resource.py b/sonarr/models/release_episode_resource.py index 3c6b483..b7f12c8 100644 --- a/sonarr/models/release_episode_resource.py +++ b/sonarr/models/release_episode_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/release_profile_resource.py b/sonarr/models/release_profile_resource.py index 6524098..e0861e6 100644 --- a/sonarr/models/release_profile_resource.py +++ b/sonarr/models/release_profile_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/release_resource.py b/sonarr/models/release_resource.py index d9b8d01..7055a9f 100644 --- a/sonarr/models/release_resource.py +++ b/sonarr/models/release_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/release_type.py b/sonarr/models/release_type.py index 25e4070..5d22a4a 100644 --- a/sonarr/models/release_type.py +++ b/sonarr/models/release_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/remote_path_mapping_resource.py b/sonarr/models/remote_path_mapping_resource.py index fc049f1..feb6ecf 100644 --- a/sonarr/models/remote_path_mapping_resource.py +++ b/sonarr/models/remote_path_mapping_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/rename_episode_resource.py b/sonarr/models/rename_episode_resource.py index 59a59ba..22bfc0e 100644 --- a/sonarr/models/rename_episode_resource.py +++ b/sonarr/models/rename_episode_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/rescan_after_refresh_type.py b/sonarr/models/rescan_after_refresh_type.py index 9ad0c39..9c16559 100644 --- a/sonarr/models/rescan_after_refresh_type.py +++ b/sonarr/models/rescan_after_refresh_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/revision.py b/sonarr/models/revision.py index 2a4a9df..2f2a694 100644 --- a/sonarr/models/revision.py +++ b/sonarr/models/revision.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/root_folder_resource.py b/sonarr/models/root_folder_resource.py index 3c840e6..b860b68 100644 --- a/sonarr/models/root_folder_resource.py +++ b/sonarr/models/root_folder_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/runtime_mode.py b/sonarr/models/runtime_mode.py index ba52ea1..f60f7d2 100644 --- a/sonarr/models/runtime_mode.py +++ b/sonarr/models/runtime_mode.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/season_pass_resource.py b/sonarr/models/season_pass_resource.py index 7a82a4d..34599aa 100644 --- a/sonarr/models/season_pass_resource.py +++ b/sonarr/models/season_pass_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/season_pass_series_resource.py b/sonarr/models/season_pass_series_resource.py index 6d7fa94..6577b62 100644 --- a/sonarr/models/season_pass_series_resource.py +++ b/sonarr/models/season_pass_series_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/season_resource.py b/sonarr/models/season_resource.py index 408157d..2a8201a 100644 --- a/sonarr/models/season_resource.py +++ b/sonarr/models/season_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/season_statistics_resource.py b/sonarr/models/season_statistics_resource.py index 7e369a6..69427b3 100644 --- a/sonarr/models/season_statistics_resource.py +++ b/sonarr/models/season_statistics_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/select_option.py b/sonarr/models/select_option.py index 1ddfe10..4afc124 100644 --- a/sonarr/models/select_option.py +++ b/sonarr/models/select_option.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/series_editor_resource.py b/sonarr/models/series_editor_resource.py index fec647e..5fd127d 100644 --- a/sonarr/models/series_editor_resource.py +++ b/sonarr/models/series_editor_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/series_resource.py b/sonarr/models/series_resource.py index 1e71193..392dfde 100644 --- a/sonarr/models/series_resource.py +++ b/sonarr/models/series_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/series_statistics_resource.py b/sonarr/models/series_statistics_resource.py index 2ea3ff6..8a48ec3 100644 --- a/sonarr/models/series_statistics_resource.py +++ b/sonarr/models/series_statistics_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/series_status_type.py b/sonarr/models/series_status_type.py index 1e58f2d..3982665 100644 --- a/sonarr/models/series_status_type.py +++ b/sonarr/models/series_status_type.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/series_title_info.py b/sonarr/models/series_title_info.py index 232b5ec..bdf36ae 100644 --- a/sonarr/models/series_title_info.py +++ b/sonarr/models/series_title_info.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/series_types.py b/sonarr/models/series_types.py index 296eba1..9aaf13b 100644 --- a/sonarr/models/series_types.py +++ b/sonarr/models/series_types.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/sort_direction.py b/sonarr/models/sort_direction.py index 2ddcfa1..af03b10 100644 --- a/sonarr/models/sort_direction.py +++ b/sonarr/models/sort_direction.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/system_resource.py b/sonarr/models/system_resource.py index aeb37e6..b1379b9 100644 --- a/sonarr/models/system_resource.py +++ b/sonarr/models/system_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/tag_details_resource.py b/sonarr/models/tag_details_resource.py index fc83872..a8672b2 100644 --- a/sonarr/models/tag_details_resource.py +++ b/sonarr/models/tag_details_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/tag_resource.py b/sonarr/models/tag_resource.py index 1c92443..258b506 100644 --- a/sonarr/models/tag_resource.py +++ b/sonarr/models/tag_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/task_resource.py b/sonarr/models/task_resource.py index 8274867..58c287c 100644 --- a/sonarr/models/task_resource.py +++ b/sonarr/models/task_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/tracked_download_state.py b/sonarr/models/tracked_download_state.py index e4721a9..45e4d60 100644 --- a/sonarr/models/tracked_download_state.py +++ b/sonarr/models/tracked_download_state.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/tracked_download_status.py b/sonarr/models/tracked_download_status.py index 18a6d34..9ae832d 100644 --- a/sonarr/models/tracked_download_status.py +++ b/sonarr/models/tracked_download_status.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/tracked_download_status_message.py b/sonarr/models/tracked_download_status_message.py index 120a29d..2069953 100644 --- a/sonarr/models/tracked_download_status_message.py +++ b/sonarr/models/tracked_download_status_message.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/ui_config_resource.py b/sonarr/models/ui_config_resource.py index adf8a0f..c6b88f3 100644 --- a/sonarr/models/ui_config_resource.py +++ b/sonarr/models/ui_config_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/unmapped_folder.py b/sonarr/models/unmapped_folder.py index 9a4816e..f5b0944 100644 --- a/sonarr/models/unmapped_folder.py +++ b/sonarr/models/unmapped_folder.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/update_changes.py b/sonarr/models/update_changes.py index 53026aa..c83a637 100644 --- a/sonarr/models/update_changes.py +++ b/sonarr/models/update_changes.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/update_mechanism.py b/sonarr/models/update_mechanism.py index e35da95..205d2f5 100644 --- a/sonarr/models/update_mechanism.py +++ b/sonarr/models/update_mechanism.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/models/update_resource.py b/sonarr/models/update_resource.py index 398a00b..a66e688 100644 --- a/sonarr/models/update_resource.py +++ b/sonarr/models/update_resource.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/sonarr/rest.py b/sonarr/rest.py index 0a54dc7..91833c2 100644 --- a/sonarr/rest.py +++ b/sonarr/rest.py @@ -5,7 +5,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application. - The version of the OpenAPI document: v4.0.9.2244 + The version of the OpenAPI document: v4.0.11.2680 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.