Skip to content

Commit

Permalink
Merge pull request #54 from devopsarr/feature/code-generation
Browse files Browse the repository at this point in the history
chore(deps): update dependency prowlarr/prowlarr to v1.15.0.4361
  • Loading branch information
devopsarr[bot] committed May 5, 2024
2 parents 1737071 + ba8bcec commit 51d6776
Show file tree
Hide file tree
Showing 118 changed files with 541 additions and 132 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Prowlarr API docs

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

- API version: v1.14.3.4333
- API version: v1.16.2.4435
- Package version: 1.0.1 <!--- x-release-please-version -->
- Generator version: 7.4.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Expand Down Expand Up @@ -198,6 +198,7 @@ Class | Method | HTTP request | Description
*NotificationApi* | [**testall_notification**](docs/NotificationApi.md#testall_notification) | **POST** /api/v1/notification/testall |
*NotificationApi* | [**update_notification**](docs/NotificationApi.md#update_notification) | **PUT** /api/v1/notification/{id} |
*PingApi* | [**get_ping**](docs/PingApi.md#get_ping) | **GET** /ping |
*PingApi* | [**head_ping**](docs/PingApi.md#head_ping) | **HEAD** /ping |
*SearchApi* | [**create_search**](docs/SearchApi.md#create_search) | **POST** /api/v1/search |
*SearchApi* | [**create_search_bulk**](docs/SearchApi.md#create_search_bulk) | **POST** /api/v1/search/bulk |
*SearchApi* | [**list_search**](docs/SearchApi.md#list_search) | **GET** /api/v1/search |
Expand Down
6 changes: 4 additions & 2 deletions docs/ApplicationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,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)

# **test_applications**
> test_applications(application_resource=application_resource)
> test_applications(force_test=force_test, application_resource=application_resource)


Expand Down Expand Up @@ -714,10 +714,11 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
with prowlarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = prowlarr.ApplicationApi(api_client)
force_test = False # bool | (optional) (default to False)
application_resource = prowlarr.ApplicationResource() # ApplicationResource | (optional)

try:
api_instance.test_applications(application_resource=application_resource)
api_instance.test_applications(force_test=force_test, application_resource=application_resource)
except Exception as e:
print("Exception when calling ApplicationApi->test_applications: %s\n" % e)
```
Expand All @@ -729,6 +730,7 @@ with prowlarr.ApiClient(configuration) as api_client:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**force_test** | **bool**| | [optional] [default to False]
**application_resource** | [**ApplicationResource**](ApplicationResource.md)| | [optional]

### Return type
Expand Down
6 changes: 4 additions & 2 deletions docs/DownloadClientApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,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)

# **test_download_client**
> test_download_client(download_client_resource=download_client_resource)
> test_download_client(force_test=force_test, download_client_resource=download_client_resource)


Expand Down Expand Up @@ -714,10 +714,11 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
with prowlarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = prowlarr.DownloadClientApi(api_client)
force_test = False # bool | (optional) (default to False)
download_client_resource = prowlarr.DownloadClientResource() # DownloadClientResource | (optional)

try:
api_instance.test_download_client(download_client_resource=download_client_resource)
api_instance.test_download_client(force_test=force_test, download_client_resource=download_client_resource)
except Exception as e:
print("Exception when calling DownloadClientApi->test_download_client: %s\n" % e)
```
Expand All @@ -729,6 +730,7 @@ with prowlarr.ApiClient(configuration) as api_client:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**force_test** | **bool**| | [optional] [default to False]
**download_client_resource** | [**DownloadClientResource**](DownloadClientResource.md)| | [optional]

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

# **test_indexer**
> test_indexer(indexer_resource=indexer_resource)
> test_indexer(force_test=force_test, indexer_resource=indexer_resource)


Expand Down Expand Up @@ -714,10 +714,11 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
with prowlarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = prowlarr.IndexerApi(api_client)
force_test = False # bool | (optional) (default to False)
indexer_resource = prowlarr.IndexerResource() # IndexerResource | (optional)

try:
api_instance.test_indexer(indexer_resource=indexer_resource)
api_instance.test_indexer(force_test=force_test, indexer_resource=indexer_resource)
except Exception as e:
print("Exception when calling IndexerApi->test_indexer: %s\n" % e)
```
Expand All @@ -729,6 +730,7 @@ with prowlarr.ApiClient(configuration) as api_client:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**force_test** | **bool**| | [optional] [default to False]
**indexer_resource** | [**IndexerResource**](IndexerResource.md)| | [optional]

### Return type
Expand Down
1 change: 0 additions & 1 deletion docs/IndexerBulkResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Name | Type | Description | Notes
**seed_ratio** | **float** | | [optional]
**seed_time** | **int** | | [optional]
**pack_seed_time** | **int** | | [optional]
**reject_blocklisted_torrent_hashes_while_grabbing** | **bool** | | [optional]

## Example

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

# **test_indexer_proxy**
> test_indexer_proxy(indexer_proxy_resource=indexer_proxy_resource)
> test_indexer_proxy(force_test=force_test, indexer_proxy_resource=indexer_proxy_resource)


Expand Down Expand Up @@ -547,10 +547,11 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
with prowlarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = prowlarr.IndexerProxyApi(api_client)
force_test = False # bool | (optional) (default to False)
indexer_proxy_resource = prowlarr.IndexerProxyResource() # IndexerProxyResource | (optional)

try:
api_instance.test_indexer_proxy(indexer_proxy_resource=indexer_proxy_resource)
api_instance.test_indexer_proxy(force_test=force_test, indexer_proxy_resource=indexer_proxy_resource)
except Exception as e:
print("Exception when calling IndexerProxyApi->test_indexer_proxy: %s\n" % e)
```
Expand All @@ -562,6 +563,7 @@ with prowlarr.ApiClient(configuration) as api_client:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**force_test** | **bool**| | [optional] [default to False]
**indexer_proxy_resource** | [**IndexerProxyResource**](IndexerProxyResource.md)| | [optional]

### Return type
Expand Down
6 changes: 4 additions & 2 deletions docs/NotificationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ 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)

# **test_notification**
> test_notification(notification_resource=notification_resource)
> test_notification(force_test=force_test, notification_resource=notification_resource)


Expand Down Expand Up @@ -547,10 +547,11 @@ configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
with prowlarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = prowlarr.NotificationApi(api_client)
force_test = False # bool | (optional) (default to False)
notification_resource = prowlarr.NotificationResource() # NotificationResource | (optional)

try:
api_instance.test_notification(notification_resource=notification_resource)
api_instance.test_notification(force_test=force_test, notification_resource=notification_resource)
except Exception as e:
print("Exception when calling NotificationApi->test_notification: %s\n" % e)
```
Expand All @@ -562,6 +563,7 @@ with prowlarr.ApiClient(configuration) as api_client:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**force_test** | **bool**| | [optional] [default to False]
**notification_resource** | [**NotificationResource**](NotificationResource.md)| | [optional]

### Return type
Expand Down
80 changes: 80 additions & 0 deletions docs/PingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All URIs are relative to *http://localhost:9696*
Method | HTTP request | Description
------------- | ------------- | -------------
[**get_ping**](PingApi.md#get_ping) | **GET** /ping |
[**head_ping**](PingApi.md#head_ping) | **HEAD** /ping |


# **get_ping**
Expand Down Expand Up @@ -61,6 +62,85 @@ with prowlarr.ApiClient(configuration) as api_client:



### Parameters

This endpoint does not need any parameter.

### Return type

[**PingResource**](PingResource.md)

### Authorization

[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**2XX** | Success | - |

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

# **head_ping**
> PingResource head_ping()


### Example

* Api Key Authentication (apikey):
* Api Key Authentication (X-Api-Key):

```python
import prowlarr
from prowlarr.models.ping_resource import PingResource
from prowlarr.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:9696
# See configuration.py for a list of all supported configuration parameters.
configuration = prowlarr.Configuration(
host = "http://localhost:9696"
)

# 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 prowlarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = prowlarr.PingApi(api_client)

try:
api_response = api_instance.head_ping()
print("The response of PingApi->head_ping:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PingApi->head_ping: %s\n" % e)
```



### Parameters

This endpoint does not need any parameter.
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Prowlarr API docs
The version of the OpenAPI document: v1.14.3.4333
The version of the OpenAPI document: v1.16.2.4435
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/api/api_info_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Prowlarr API docs
The version of the OpenAPI document: v1.14.3.4333
The version of the OpenAPI document: v1.16.2.4435
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/api/app_profile_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Prowlarr API docs
The version of the OpenAPI document: v1.14.3.4333
The version of the OpenAPI document: v1.16.2.4435
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
19 changes: 18 additions & 1 deletion prowlarr/api/application_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Prowlarr API docs
The version of the OpenAPI document: v1.14.3.4333
The version of the OpenAPI document: v1.16.2.4435
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down Expand Up @@ -2126,6 +2126,7 @@ def _put_applications_bulk_serialize(
@validate_call
def test_applications(
self,
force_test: Optional[StrictBool] = None,
application_resource: Optional[ApplicationResource] = None,
_request_timeout: Union[
None,
Expand All @@ -2143,6 +2144,8 @@ def test_applications(
"""test_applications
:param force_test:
:type force_test: bool
:param application_resource:
:type application_resource: ApplicationResource
:param _request_timeout: timeout setting for this request. If one
Expand All @@ -2168,6 +2171,7 @@ def test_applications(
""" # noqa: E501

_param = self._test_applications_serialize(
force_test=force_test,
application_resource=application_resource,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -2192,6 +2196,7 @@ def test_applications(
@validate_call
def test_applications_with_http_info(
self,
force_test: Optional[StrictBool] = None,
application_resource: Optional[ApplicationResource] = None,
_request_timeout: Union[
None,
Expand All @@ -2209,6 +2214,8 @@ def test_applications_with_http_info(
"""test_applications
:param force_test:
:type force_test: bool
:param application_resource:
:type application_resource: ApplicationResource
:param _request_timeout: timeout setting for this request. If one
Expand All @@ -2234,6 +2241,7 @@ def test_applications_with_http_info(
""" # noqa: E501

_param = self._test_applications_serialize(
force_test=force_test,
application_resource=application_resource,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -2258,6 +2266,7 @@ def test_applications_with_http_info(
@validate_call
def test_applications_without_preload_content(
self,
force_test: Optional[StrictBool] = None,
application_resource: Optional[ApplicationResource] = None,
_request_timeout: Union[
None,
Expand All @@ -2275,6 +2284,8 @@ def test_applications_without_preload_content(
"""test_applications
:param force_test:
:type force_test: bool
:param application_resource:
:type application_resource: ApplicationResource
:param _request_timeout: timeout setting for this request. If one
Expand All @@ -2300,6 +2311,7 @@ def test_applications_without_preload_content(
""" # noqa: E501

_param = self._test_applications_serialize(
force_test=force_test,
application_resource=application_resource,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -2319,6 +2331,7 @@ def test_applications_without_preload_content(

def _test_applications_serialize(
self,
force_test,
application_resource,
_request_auth,
_content_type,
Expand All @@ -2340,6 +2353,10 @@ def _test_applications_serialize(

# process the path parameters
# process the query parameters
if force_test is not None:

_query_params.append(('forceTest', force_test))

# process the header parameters
# process the form parameters
# process the body parameter
Expand Down
Loading

0 comments on commit 51d6776

Please sign in to comment.