Skip to content

Commit

Permalink
Merge pull request #76 from devopsarr/feature/code-generation
Browse files Browse the repository at this point in the history
fix(deps): update dependency sonarr/sonarr to v4.0.10.2544
  • Loading branch information
devopsarr[bot] authored Dec 10, 2024
2 parents b4b0e1e + 70a29ba commit 7ae0a07
Show file tree
Hide file tree
Showing 227 changed files with 1,707 additions and 278 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <!--- x-release-please-version -->
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Expand Down Expand Up @@ -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} |
Expand Down Expand Up @@ -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} |
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
167 changes: 167 additions & 0 deletions docs/CustomFormatApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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} |


Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
30 changes: 30 additions & 0 deletions docs/CustomFormatBulkResource.md
Original file line number Diff line number Diff line change
@@ -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)


4 changes: 2 additions & 2 deletions docs/DownloadClientApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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]

Expand Down
8 changes: 6 additions & 2 deletions docs/EpisodeApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/EpisodeResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions docs/ImportListApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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]

Expand Down
4 changes: 2 additions & 2 deletions docs/IndexerApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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]

Expand Down
4 changes: 2 additions & 2 deletions docs/MetadataApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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]

Expand Down
Loading

0 comments on commit 7ae0a07

Please sign in to comment.