Skip to content

Commit 312ea75

Browse files
Merge pull request #65 from devopsarr/feature/code-generation
chore(deps): update dependency sonarr/sonarr to v4.0.2.1183
2 parents 731424a + 0e2719a commit 312ea75

File tree

220 files changed

+1769
-498
lines changed

Some content is hidden

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

220 files changed

+1769
-498
lines changed

README.md

Lines changed: 8 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.1.929
6+
- API version: v4.0.2.1183
77
- Package version: 1.0.1 <!--- x-release-please-version -->
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

@@ -186,6 +186,9 @@ Class | Method | HTTP request | Description
186186
*ImportListApi* | [**test_import_list**](docs/ImportListApi.md#test_import_list) | **POST** /api/v3/importlist/test |
187187
*ImportListApi* | [**testall_import_list**](docs/ImportListApi.md#testall_import_list) | **POST** /api/v3/importlist/testall |
188188
*ImportListApi* | [**update_import_list**](docs/ImportListApi.md#update_import_list) | **PUT** /api/v3/importlist/{id} |
189+
*ImportListConfigApi* | [**get_import_list_config**](docs/ImportListConfigApi.md#get_import_list_config) | **GET** /api/v3/config/importlist |
190+
*ImportListConfigApi* | [**get_import_list_config_by_id**](docs/ImportListConfigApi.md#get_import_list_config_by_id) | **GET** /api/v3/config/importlist/{id} |
191+
*ImportListConfigApi* | [**update_import_list_config**](docs/ImportListConfigApi.md#update_import_list_config) | **PUT** /api/v3/config/importlist/{id} |
189192
*ImportListExclusionApi* | [**create_import_list_exclusion**](docs/ImportListExclusionApi.md#create_import_list_exclusion) | **POST** /api/v3/importlistexclusion |
190193
*ImportListExclusionApi* | [**delete_import_list_exclusion**](docs/ImportListExclusionApi.md#delete_import_list_exclusion) | **DELETE** /api/v3/importlistexclusion/{id} |
191194
*ImportListExclusionApi* | [**get_import_list_exclusion_by_id**](docs/ImportListExclusionApi.md#get_import_list_exclusion_by_id) | **GET** /api/v3/importlistexclusion/{id} |
@@ -205,6 +208,7 @@ Class | Method | HTTP request | Description
205208
*IndexerConfigApi* | [**get_indexer_config**](docs/IndexerConfigApi.md#get_indexer_config) | **GET** /api/v3/config/indexer |
206209
*IndexerConfigApi* | [**get_indexer_config_by_id**](docs/IndexerConfigApi.md#get_indexer_config_by_id) | **GET** /api/v3/config/indexer/{id} |
207210
*IndexerConfigApi* | [**update_indexer_config**](docs/IndexerConfigApi.md#update_indexer_config) | **PUT** /api/v3/config/indexer/{id} |
211+
*IndexerFlagApi* | [**list_indexer_flag**](docs/IndexerFlagApi.md#list_indexer_flag) | **GET** /api/v3/indexerflag |
208212
*LanguageApi* | [**get_language_by_id**](docs/LanguageApi.md#get_language_by_id) | **GET** /api/v3/language/{id} |
209213
*LanguageApi* | [**list_language**](docs/LanguageApi.md#list_language) | **GET** /api/v3/language |
210214
*LanguageProfileApi* | [**create_language_profile**](docs/LanguageProfileApi.md#create_language_profile) | **POST** /api/v3/languageprofile |
@@ -368,16 +372,19 @@ Class | Method | HTTP request | Description
368372
- [HistoryResourcePagingResource](docs/HistoryResourcePagingResource.md)
369373
- [HostConfigResource](docs/HostConfigResource.md)
370374
- [ImportListBulkResource](docs/ImportListBulkResource.md)
375+
- [ImportListConfigResource](docs/ImportListConfigResource.md)
371376
- [ImportListExclusionResource](docs/ImportListExclusionResource.md)
372377
- [ImportListResource](docs/ImportListResource.md)
373378
- [ImportListType](docs/ImportListType.md)
374379
- [IndexerBulkResource](docs/IndexerBulkResource.md)
375380
- [IndexerConfigResource](docs/IndexerConfigResource.md)
381+
- [IndexerFlagResource](docs/IndexerFlagResource.md)
376382
- [IndexerResource](docs/IndexerResource.md)
377383
- [Language](docs/Language.md)
378384
- [LanguageProfileItemResource](docs/LanguageProfileItemResource.md)
379385
- [LanguageProfileResource](docs/LanguageProfileResource.md)
380386
- [LanguageResource](docs/LanguageResource.md)
387+
- [ListSyncLevelType](docs/ListSyncLevelType.md)
381388
- [LocalizationLanguageResource](docs/LocalizationLanguageResource.md)
382389
- [LocalizationResource](docs/LocalizationResource.md)
383390
- [LogFileResource](docs/LogFileResource.md)

docs/EpisodeFileResource.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
1818
**quality** | [**QualityModel**](QualityModel.md) | | [optional]
1919
**custom_formats** | [**List[CustomFormatResource]**](CustomFormatResource.md) | | [optional]
2020
**custom_format_score** | **int** | | [optional]
21+
**indexer_flags** | **int** | | [optional]
2122
**media_info** | [**MediaInfoResource**](MediaInfoResource.md) | | [optional]
2223
**quality_cutoff_not_met** | **bool** | | [optional]
2324

docs/ImportListConfigApi.md

Lines changed: 21 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ Method | HTTP request | Description
1717
### Example
1818

1919
* Api Key Authentication (apikey):
20+
* Api Key Authentication (X-Api-Key):
21+
2022
```python
21-
from __future__ import print_function
22-
import time
23-
import os
2423
import sonarr
24+
from sonarr.models.import_list_config_resource import ImportListConfigResource
2525
from sonarr.rest import ApiException
2626
from pprint import pprint
27+
2728
# Defining the host is optional and defaults to http://localhost:8989
2829
# See configuration.py for a list of all supported configuration parameters.
2930
configuration = sonarr.Configuration(
@@ -60,51 +61,10 @@ with sonarr.ApiClient(configuration) as api_client:
6061
print("Exception when calling ImportListConfigApi->get_import_list_config: %s\n" % e)
6162
```
6263

63-
* Api Key Authentication (X-Api-Key):
64-
```python
65-
from __future__ import print_function
66-
import time
67-
import os
68-
import sonarr
69-
from sonarr.rest import ApiException
70-
from pprint import pprint
71-
# Defining the host is optional and defaults to http://localhost:8989
72-
# See configuration.py for a list of all supported configuration parameters.
73-
configuration = sonarr.Configuration(
74-
host = "http://localhost:8989"
75-
)
76-
77-
# The client must configure the authentication and authorization parameters
78-
# in accordance with the API server security policy.
79-
# Examples for each auth method are provided below, use the example that
80-
# satisfies your auth use case.
81-
82-
# Configure API key authorization: apikey
83-
configuration.api_key['apikey'] = os.environ["API_KEY"]
84-
85-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
86-
# configuration.api_key_prefix['apikey'] = 'Bearer'
87-
88-
# Configure API key authorization: X-Api-Key
89-
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
90-
91-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
92-
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
93-
94-
# Enter a context with an instance of the API client
95-
with sonarr.ApiClient(configuration) as api_client:
96-
# Create an instance of the API class
97-
api_instance = sonarr.ImportListConfigApi(api_client)
9864

99-
try:
100-
api_response = api_instance.get_import_list_config()
101-
print("The response of ImportListConfigApi->get_import_list_config:\n")
102-
pprint(api_response)
103-
except Exception as e:
104-
print("Exception when calling ImportListConfigApi->get_import_list_config: %s\n" % e)
105-
```
10665

10766
### Parameters
67+
10868
This endpoint does not need any parameter.
10969

11070
### Return type
@@ -121,9 +81,10 @@ This endpoint does not need any parameter.
12181
- **Accept**: application/json
12282

12383
### HTTP response details
84+
12485
| Status code | Description | Response headers |
12586
|-------------|-------------|------------------|
126-
**200** | Success | - |
87+
**2XX** | Success | - |
12788

12889
[[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)
12990

@@ -135,13 +96,14 @@ This endpoint does not need any parameter.
13596
### Example
13697

13798
* Api Key Authentication (apikey):
99+
* Api Key Authentication (X-Api-Key):
100+
138101
```python
139-
from __future__ import print_function
140-
import time
141-
import os
142102
import sonarr
103+
from sonarr.models.import_list_config_resource import ImportListConfigResource
143104
from sonarr.rest import ApiException
144105
from pprint import pprint
106+
145107
# Defining the host is optional and defaults to http://localhost:8989
146108
# See configuration.py for a list of all supported configuration parameters.
147109
configuration = sonarr.Configuration(
@@ -179,53 +141,11 @@ with sonarr.ApiClient(configuration) as api_client:
179141
print("Exception when calling ImportListConfigApi->get_import_list_config_by_id: %s\n" % e)
180142
```
181143

182-
* Api Key Authentication (X-Api-Key):
183-
```python
184-
from __future__ import print_function
185-
import time
186-
import os
187-
import sonarr
188-
from sonarr.rest import ApiException
189-
from pprint import pprint
190-
# Defining the host is optional and defaults to http://localhost:8989
191-
# See configuration.py for a list of all supported configuration parameters.
192-
configuration = sonarr.Configuration(
193-
host = "http://localhost:8989"
194-
)
195-
196-
# The client must configure the authentication and authorization parameters
197-
# in accordance with the API server security policy.
198-
# Examples for each auth method are provided below, use the example that
199-
# satisfies your auth use case.
200-
201-
# Configure API key authorization: apikey
202-
configuration.api_key['apikey'] = os.environ["API_KEY"]
203144

204-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
205-
# configuration.api_key_prefix['apikey'] = 'Bearer'
206-
207-
# Configure API key authorization: X-Api-Key
208-
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
209-
210-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
211-
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
212-
213-
# Enter a context with an instance of the API client
214-
with sonarr.ApiClient(configuration) as api_client:
215-
# Create an instance of the API class
216-
api_instance = sonarr.ImportListConfigApi(api_client)
217-
id = 56 # int |
218-
219-
try:
220-
api_response = api_instance.get_import_list_config_by_id(id)
221-
print("The response of ImportListConfigApi->get_import_list_config_by_id:\n")
222-
pprint(api_response)
223-
except Exception as e:
224-
print("Exception when calling ImportListConfigApi->get_import_list_config_by_id: %s\n" % e)
225-
```
226145

227146
### Parameters
228147

148+
229149
Name | Type | Description | Notes
230150
------------- | ------------- | ------------- | -------------
231151
**id** | **int**| |
@@ -244,9 +164,10 @@ Name | Type | Description | Notes
244164
- **Accept**: application/json
245165

246166
### HTTP response details
167+
247168
| Status code | Description | Response headers |
248169
|-------------|-------------|------------------|
249-
**200** | Success | - |
170+
**2XX** | Success | - |
250171

251172
[[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)
252173

@@ -258,13 +179,14 @@ Name | Type | Description | Notes
258179
### Example
259180

260181
* Api Key Authentication (apikey):
182+
* Api Key Authentication (X-Api-Key):
183+
261184
```python
262-
from __future__ import print_function
263-
import time
264-
import os
265185
import sonarr
186+
from sonarr.models.import_list_config_resource import ImportListConfigResource
266187
from sonarr.rest import ApiException
267188
from pprint import pprint
189+
268190
# Defining the host is optional and defaults to http://localhost:8989
269191
# See configuration.py for a list of all supported configuration parameters.
270192
configuration = sonarr.Configuration(
@@ -303,54 +225,11 @@ with sonarr.ApiClient(configuration) as api_client:
303225
print("Exception when calling ImportListConfigApi->update_import_list_config: %s\n" % e)
304226
```
305227

306-
* Api Key Authentication (X-Api-Key):
307-
```python
308-
from __future__ import print_function
309-
import time
310-
import os
311-
import sonarr
312-
from sonarr.rest import ApiException
313-
from pprint import pprint
314-
# Defining the host is optional and defaults to http://localhost:8989
315-
# See configuration.py for a list of all supported configuration parameters.
316-
configuration = sonarr.Configuration(
317-
host = "http://localhost:8989"
318-
)
319228

320-
# The client must configure the authentication and authorization parameters
321-
# in accordance with the API server security policy.
322-
# Examples for each auth method are provided below, use the example that
323-
# satisfies your auth use case.
324-
325-
# Configure API key authorization: apikey
326-
configuration.api_key['apikey'] = os.environ["API_KEY"]
327-
328-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
329-
# configuration.api_key_prefix['apikey'] = 'Bearer'
330-
331-
# Configure API key authorization: X-Api-Key
332-
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
333-
334-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
335-
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
336-
337-
# Enter a context with an instance of the API client
338-
with sonarr.ApiClient(configuration) as api_client:
339-
# Create an instance of the API class
340-
api_instance = sonarr.ImportListConfigApi(api_client)
341-
id = 'id_example' # str |
342-
import_list_config_resource = sonarr.ImportListConfigResource() # ImportListConfigResource | (optional)
343-
344-
try:
345-
api_response = api_instance.update_import_list_config(id, import_list_config_resource=import_list_config_resource)
346-
print("The response of ImportListConfigApi->update_import_list_config:\n")
347-
pprint(api_response)
348-
except Exception as e:
349-
print("Exception when calling ImportListConfigApi->update_import_list_config: %s\n" % e)
350-
```
351229

352230
### Parameters
353231

232+
354233
Name | Type | Description | Notes
355234
------------- | ------------- | ------------- | -------------
356235
**id** | **str**| |
@@ -370,9 +249,10 @@ Name | Type | Description | Notes
370249
- **Accept**: text/plain, application/json, text/json
371250

372251
### HTTP response details
252+
373253
| Status code | Description | Response headers |
374254
|-------------|-------------|------------------|
375-
**200** | Success | - |
255+
**2XX** | Success | - |
376256

377257
[[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)
378258

docs/ImportListConfigResource.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
78
**id** | **int** | | [optional]

0 commit comments

Comments
 (0)