Skip to content

Commit 7ae0a07

Browse files
Merge pull request #76 from devopsarr/feature/code-generation
fix(deps): update dependency sonarr/sonarr to v4.0.10.2544
2 parents b4b0e1e + 70a29ba commit 7ae0a07

File tree

227 files changed

+1707
-278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+1707
-278
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. So
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

6-
- API version: v4.0.9.2244
6+
- API version: v4.0.11.2680
77
- Package version: 1.0.2 <!--- x-release-please-version -->
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
@@ -127,9 +127,11 @@ Class | Method | HTTP request | Description
127127
*CustomFilterApi* | [**update_custom_filter**](docs/CustomFilterApi.md#update_custom_filter) | **PUT** /api/v3/customfilter/{id} |
128128
*CustomFormatApi* | [**create_custom_format**](docs/CustomFormatApi.md#create_custom_format) | **POST** /api/v3/customformat |
129129
*CustomFormatApi* | [**delete_custom_format**](docs/CustomFormatApi.md#delete_custom_format) | **DELETE** /api/v3/customformat/{id} |
130+
*CustomFormatApi* | [**delete_custom_format_bulk**](docs/CustomFormatApi.md#delete_custom_format_bulk) | **DELETE** /api/v3/customformat/bulk |
130131
*CustomFormatApi* | [**get_custom_format_by_id**](docs/CustomFormatApi.md#get_custom_format_by_id) | **GET** /api/v3/customformat/{id} |
131132
*CustomFormatApi* | [**list_custom_format**](docs/CustomFormatApi.md#list_custom_format) | **GET** /api/v3/customformat |
132133
*CustomFormatApi* | [**list_custom_format_schema**](docs/CustomFormatApi.md#list_custom_format_schema) | **GET** /api/v3/customformat/schema |
134+
*CustomFormatApi* | [**put_custom_format_bulk**](docs/CustomFormatApi.md#put_custom_format_bulk) | **PUT** /api/v3/customformat/bulk |
133135
*CustomFormatApi* | [**update_custom_format**](docs/CustomFormatApi.md#update_custom_format) | **PUT** /api/v3/customformat/{id} |
134136
*CutoffApi* | [**get_wanted_cutoff**](docs/CutoffApi.md#get_wanted_cutoff) | **GET** /api/v3/wanted/cutoff |
135137
*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
260262
*PingApi* | [**get_ping**](docs/PingApi.md#get_ping) | **GET** /ping |
261263
*PingApi* | [**head_ping**](docs/PingApi.md#head_ping) | **HEAD** /ping |
262264
*QualityDefinitionApi* | [**get_quality_definition_by_id**](docs/QualityDefinitionApi.md#get_quality_definition_by_id) | **GET** /api/v3/qualitydefinition/{id} |
265+
*QualityDefinitionApi* | [**get_quality_definition_limits**](docs/QualityDefinitionApi.md#get_quality_definition_limits) | **GET** /api/v3/qualitydefinition/limits |
263266
*QualityDefinitionApi* | [**list_quality_definition**](docs/QualityDefinitionApi.md#list_quality_definition) | **GET** /api/v3/qualitydefinition |
264267
*QualityDefinitionApi* | [**put_quality_definition_update**](docs/QualityDefinitionApi.md#put_quality_definition_update) | **PUT** /api/v3/qualitydefinition/update |
265268
*QualityDefinitionApi* | [**update_quality_definition**](docs/QualityDefinitionApi.md#update_quality_definition) | **PUT** /api/v3/qualitydefinition/{id} |
@@ -353,6 +356,7 @@ Class | Method | HTTP request | Description
353356
- [CommandTrigger](docs/CommandTrigger.md)
354357
- [ContractField](docs/ContractField.md)
355358
- [CustomFilterResource](docs/CustomFilterResource.md)
359+
- [CustomFormatBulkResource](docs/CustomFormatBulkResource.md)
356360
- [CustomFormatResource](docs/CustomFormatResource.md)
357361
- [CustomFormatSpecificationSchema](docs/CustomFormatSpecificationSchema.md)
358362
- [DatabaseType](docs/DatabaseType.md)
@@ -418,6 +422,7 @@ Class | Method | HTTP request | Description
418422
- [ProviderMessageType](docs/ProviderMessageType.md)
419423
- [ProxyType](docs/ProxyType.md)
420424
- [Quality](docs/Quality.md)
425+
- [QualityDefinitionLimitsResource](docs/QualityDefinitionLimitsResource.md)
421426
- [QualityDefinitionResource](docs/QualityDefinitionResource.md)
422427
- [QualityModel](docs/QualityModel.md)
423428
- [QualityProfileQualityItemResource](docs/QualityProfileQualityItemResource.md)
@@ -426,6 +431,7 @@ Class | Method | HTTP request | Description
426431
- [QueueBulkResource](docs/QueueBulkResource.md)
427432
- [QueueResource](docs/QueueResource.md)
428433
- [QueueResourcePagingResource](docs/QueueResourcePagingResource.md)
434+
- [QueueStatus](docs/QueueStatus.md)
429435
- [QueueStatusResource](docs/QueueStatusResource.md)
430436
- [Ratings](docs/Ratings.md)
431437
- [Rejection](docs/Rejection.md)

docs/CustomFormatApi.md

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**create_custom_format**](CustomFormatApi.md#create_custom_format) | **POST** /api/v3/customformat |
88
[**delete_custom_format**](CustomFormatApi.md#delete_custom_format) | **DELETE** /api/v3/customformat/{id} |
9+
[**delete_custom_format_bulk**](CustomFormatApi.md#delete_custom_format_bulk) | **DELETE** /api/v3/customformat/bulk |
910
[**get_custom_format_by_id**](CustomFormatApi.md#get_custom_format_by_id) | **GET** /api/v3/customformat/{id} |
1011
[**list_custom_format**](CustomFormatApi.md#list_custom_format) | **GET** /api/v3/customformat |
1112
[**list_custom_format_schema**](CustomFormatApi.md#list_custom_format_schema) | **GET** /api/v3/customformat/schema |
13+
[**put_custom_format_bulk**](CustomFormatApi.md#put_custom_format_bulk) | **PUT** /api/v3/customformat/bulk |
1214
[**update_custom_format**](CustomFormatApi.md#update_custom_format) | **PUT** /api/v3/customformat/{id} |
1315

1416

@@ -175,6 +177,87 @@ void (empty response body)
175177

176178
[[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)
177179

180+
# **delete_custom_format_bulk**
181+
> delete_custom_format_bulk(custom_format_bulk_resource=custom_format_bulk_resource)
182+
183+
184+
185+
### Example
186+
187+
* Api Key Authentication (apikey):
188+
* Api Key Authentication (X-Api-Key):
189+
190+
```python
191+
import sonarr
192+
from sonarr.models.custom_format_bulk_resource import CustomFormatBulkResource
193+
from sonarr.rest import ApiException
194+
from pprint import pprint
195+
196+
# Defining the host is optional and defaults to http://localhost:8989
197+
# See configuration.py for a list of all supported configuration parameters.
198+
configuration = sonarr.Configuration(
199+
host = "http://localhost:8989"
200+
)
201+
202+
# The client must configure the authentication and authorization parameters
203+
# in accordance with the API server security policy.
204+
# Examples for each auth method are provided below, use the example that
205+
# satisfies your auth use case.
206+
207+
# Configure API key authorization: apikey
208+
configuration.api_key['apikey'] = os.environ["API_KEY"]
209+
210+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
211+
# configuration.api_key_prefix['apikey'] = 'Bearer'
212+
213+
# Configure API key authorization: X-Api-Key
214+
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
215+
216+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
217+
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
218+
219+
# Enter a context with an instance of the API client
220+
with sonarr.ApiClient(configuration) as api_client:
221+
# Create an instance of the API class
222+
api_instance = sonarr.CustomFormatApi(api_client)
223+
custom_format_bulk_resource = sonarr.CustomFormatBulkResource() # CustomFormatBulkResource | (optional)
224+
225+
try:
226+
api_instance.delete_custom_format_bulk(custom_format_bulk_resource=custom_format_bulk_resource)
227+
except Exception as e:
228+
print("Exception when calling CustomFormatApi->delete_custom_format_bulk: %s\n" % e)
229+
```
230+
231+
232+
233+
### Parameters
234+
235+
236+
Name | Type | Description | Notes
237+
------------- | ------------- | ------------- | -------------
238+
**custom_format_bulk_resource** | [**CustomFormatBulkResource**](CustomFormatBulkResource.md)| | [optional]
239+
240+
### Return type
241+
242+
void (empty response body)
243+
244+
### Authorization
245+
246+
[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key)
247+
248+
### HTTP request headers
249+
250+
- **Content-Type**: application/json
251+
- **Accept**: Not defined
252+
253+
### HTTP response details
254+
255+
| Status code | Description | Response headers |
256+
|-------------|-------------|------------------|
257+
**2XX** | OK | - |
258+
259+
[[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)
260+
178261
# **get_custom_format_by_id**
179262
> CustomFormatResource get_custom_format_by_id(id)
180263
@@ -416,6 +499,90 @@ This endpoint does not need any parameter.
416499

417500
[[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)
418501

502+
# **put_custom_format_bulk**
503+
> CustomFormatResource put_custom_format_bulk(custom_format_bulk_resource=custom_format_bulk_resource)
504+
505+
506+
507+
### Example
508+
509+
* Api Key Authentication (apikey):
510+
* Api Key Authentication (X-Api-Key):
511+
512+
```python
513+
import sonarr
514+
from sonarr.models.custom_format_bulk_resource import CustomFormatBulkResource
515+
from sonarr.models.custom_format_resource import CustomFormatResource
516+
from sonarr.rest import ApiException
517+
from pprint import pprint
518+
519+
# Defining the host is optional and defaults to http://localhost:8989
520+
# See configuration.py for a list of all supported configuration parameters.
521+
configuration = sonarr.Configuration(
522+
host = "http://localhost:8989"
523+
)
524+
525+
# The client must configure the authentication and authorization parameters
526+
# in accordance with the API server security policy.
527+
# Examples for each auth method are provided below, use the example that
528+
# satisfies your auth use case.
529+
530+
# Configure API key authorization: apikey
531+
configuration.api_key['apikey'] = os.environ["API_KEY"]
532+
533+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
534+
# configuration.api_key_prefix['apikey'] = 'Bearer'
535+
536+
# Configure API key authorization: X-Api-Key
537+
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
538+
539+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
540+
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
541+
542+
# Enter a context with an instance of the API client
543+
with sonarr.ApiClient(configuration) as api_client:
544+
# Create an instance of the API class
545+
api_instance = sonarr.CustomFormatApi(api_client)
546+
custom_format_bulk_resource = sonarr.CustomFormatBulkResource() # CustomFormatBulkResource | (optional)
547+
548+
try:
549+
api_response = api_instance.put_custom_format_bulk(custom_format_bulk_resource=custom_format_bulk_resource)
550+
print("The response of CustomFormatApi->put_custom_format_bulk:\n")
551+
pprint(api_response)
552+
except Exception as e:
553+
print("Exception when calling CustomFormatApi->put_custom_format_bulk: %s\n" % e)
554+
```
555+
556+
557+
558+
### Parameters
559+
560+
561+
Name | Type | Description | Notes
562+
------------- | ------------- | ------------- | -------------
563+
**custom_format_bulk_resource** | [**CustomFormatBulkResource**](CustomFormatBulkResource.md)| | [optional]
564+
565+
### Return type
566+
567+
[**CustomFormatResource**](CustomFormatResource.md)
568+
569+
### Authorization
570+
571+
[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key)
572+
573+
### HTTP request headers
574+
575+
- **Content-Type**: application/json
576+
- **Accept**: application/json
577+
578+
### HTTP response details
579+
580+
| Status code | Description | Response headers |
581+
|-------------|-------------|------------------|
582+
**2XX** | OK | - |
583+
584+
[[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)
585+
419586
# **update_custom_format**
420587
> CustomFormatResource update_custom_format(id, custom_format_resource=custom_format_resource)
421588

docs/CustomFormatBulkResource.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# CustomFormatBulkResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**ids** | **List[int]** | | [optional]
9+
**include_custom_format_when_renaming** | **bool** | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from sonarr.models.custom_format_bulk_resource import CustomFormatBulkResource
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of CustomFormatBulkResource from a JSON string
19+
custom_format_bulk_resource_instance = CustomFormatBulkResource.from_json(json)
20+
# print the JSON string representation of the object
21+
print(CustomFormatBulkResource.to_json())
22+
23+
# convert the object into a dict
24+
custom_format_bulk_resource_dict = custom_format_bulk_resource_instance.to_dict()
25+
# create an instance of CustomFormatBulkResource from a dict
26+
custom_format_bulk_resource_from_dict = CustomFormatBulkResource.from_dict(custom_format_bulk_resource_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/DownloadClientApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
873873
with sonarr.ApiClient(configuration) as api_client:
874874
# Create an instance of the API class
875875
api_instance = sonarr.DownloadClientApi(api_client)
876-
id = 'id_example' # str |
876+
id = 56 # int |
877877
force_save = False # bool | (optional) (default to False)
878878
download_client_resource = sonarr.DownloadClientResource() # DownloadClientResource | (optional)
879879

@@ -892,7 +892,7 @@ with sonarr.ApiClient(configuration) as api_client:
892892

893893
Name | Type | Description | Notes
894894
------------- | ------------- | ------------- | -------------
895-
**id** | **str**| |
895+
**id** | **int**| |
896896
**force_save** | **bool**| | [optional] [default to False]
897897
**download_client_resource** | [**DownloadClientResource**](DownloadClientResource.md)| | [optional]
898898

docs/EpisodeApi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Name | Type | Description | Notes
9494
[[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)
9595

9696
# **list_episode**
97-
> 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)
97+
> 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)
9898
9999

100100

@@ -140,10 +140,12 @@ with sonarr.ApiClient(configuration) as api_client:
140140
season_number = 56 # int | (optional)
141141
episode_ids = [56] # List[int] | (optional)
142142
episode_file_id = 56 # int | (optional)
143+
include_series = False # bool | (optional) (default to False)
144+
include_episode_file = False # bool | (optional) (default to False)
143145
include_images = False # bool | (optional) (default to False)
144146

145147
try:
146-
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)
148+
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)
147149
print("The response of EpisodeApi->list_episode:\n")
148150
pprint(api_response)
149151
except Exception as e:
@@ -161,6 +163,8 @@ Name | Type | Description | Notes
161163
**season_number** | **int**| | [optional]
162164
**episode_ids** | [**List[int]**](int.md)| | [optional]
163165
**episode_file_id** | **int**| | [optional]
166+
**include_series** | **bool**| | [optional] [default to False]
167+
**include_episode_file** | **bool**| | [optional] [default to False]
164168
**include_images** | **bool**| | [optional] [default to False]
165169

166170
### Return type

docs/EpisodeResource.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**title** | **str** | | [optional]
1515
**air_date** | **str** | | [optional]
1616
**air_date_utc** | **datetime** | | [optional]
17+
**last_search_time** | **datetime** | | [optional]
1718
**runtime** | **int** | | [optional]
1819
**finale_type** | **str** | | [optional]
1920
**overview** | **str** | | [optional]

docs/ImportListApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
873873
with sonarr.ApiClient(configuration) as api_client:
874874
# Create an instance of the API class
875875
api_instance = sonarr.ImportListApi(api_client)
876-
id = 'id_example' # str |
876+
id = 56 # int |
877877
force_save = False # bool | (optional) (default to False)
878878
import_list_resource = sonarr.ImportListResource() # ImportListResource | (optional)
879879

@@ -892,7 +892,7 @@ with sonarr.ApiClient(configuration) as api_client:
892892

893893
Name | Type | Description | Notes
894894
------------- | ------------- | ------------- | -------------
895-
**id** | **str**| |
895+
**id** | **int**| |
896896
**force_save** | **bool**| | [optional] [default to False]
897897
**import_list_resource** | [**ImportListResource**](ImportListResource.md)| | [optional]
898898

docs/IndexerApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
873873
with sonarr.ApiClient(configuration) as api_client:
874874
# Create an instance of the API class
875875
api_instance = sonarr.IndexerApi(api_client)
876-
id = 'id_example' # str |
876+
id = 56 # int |
877877
force_save = False # bool | (optional) (default to False)
878878
indexer_resource = sonarr.IndexerResource() # IndexerResource | (optional)
879879

@@ -892,7 +892,7 @@ with sonarr.ApiClient(configuration) as api_client:
892892

893893
Name | Type | Description | Notes
894894
------------- | ------------- | ------------- | -------------
895-
**id** | **str**| |
895+
**id** | **int**| |
896896
**force_save** | **bool**| | [optional] [default to False]
897897
**indexer_resource** | [**IndexerResource**](IndexerResource.md)| | [optional]
898898

docs/MetadataApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
706706
with sonarr.ApiClient(configuration) as api_client:
707707
# Create an instance of the API class
708708
api_instance = sonarr.MetadataApi(api_client)
709-
id = 'id_example' # str |
709+
id = 56 # int |
710710
force_save = False # bool | (optional) (default to False)
711711
metadata_resource = sonarr.MetadataResource() # MetadataResource | (optional)
712712

@@ -725,7 +725,7 @@ with sonarr.ApiClient(configuration) as api_client:
725725

726726
Name | Type | Description | Notes
727727
------------- | ------------- | ------------- | -------------
728-
**id** | **str**| |
728+
**id** | **int**| |
729729
**force_save** | **bool**| | [optional] [default to False]
730730
**metadata_resource** | [**MetadataResource**](MetadataResource.md)| | [optional]
731731

0 commit comments

Comments
 (0)