Skip to content

Commit

Permalink
Merge pull request #40 from devopsarr/feature/code-generation
Browse files Browse the repository at this point in the history
chore(deps): update radarr digest to bfff736
  • Loading branch information
devopsarr[bot] committed Feb 2, 2024
2 parents b9db269 + 04112cd commit 03125a3
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 80 deletions.
2 changes: 0 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ docs/NotificationApi.md
docs/NotificationResource.md
docs/PingApi.md
docs/PingResource.md
docs/PrivacyLevel.md
docs/ProviderMessage.md
docs/ProviderMessageType.md
docs/ProxyType.md
Expand Down Expand Up @@ -195,7 +194,6 @@ prowlarr/models/movie_search_param.py
prowlarr/models/music_search_param.py
prowlarr/models/notification_resource.py
prowlarr/models/ping_resource.py
prowlarr/models/privacy_level.py
prowlarr/models/provider_message.py
prowlarr/models/provider_message_type.py
prowlarr/models/proxy_type.py
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.0
7.2.0
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ Class | Method | HTTP request | Description
- [MusicSearchParam](docs/MusicSearchParam.md)
- [NotificationResource](docs/NotificationResource.md)
- [PingResource](docs/PingResource.md)
- [PrivacyLevel](docs/PrivacyLevel.md)
- [ProviderMessage](docs/ProviderMessage.md)
- [ProviderMessageType](docs/ProviderMessageType.md)
- [ProxyType](docs/ProxyType.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/AppProfileResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Name | Type | Description | Notes
**id** | **int** | | [optional]
**name** | **str** | | [optional]
**enable_rss** | **bool** | | [optional]
**enable_automatic_search** | **bool** | | [optional]
**enable_interactive_search** | **bool** | | [optional]
**enable_automatic_search** | **bool** | | [optional]
**minimum_seeders** | **int** | | [optional]

## Example
Expand Down
1 change: 0 additions & 1 deletion docs/Field.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Name | Type | Description | Notes
**select_options_provider_action** | **str** | | [optional]
**section** | **str** | | [optional]
**hidden** | **str** | | [optional]
**privacy** | [**PrivacyLevel**](PrivacyLevel.md) | | [optional]
**placeholder** | **str** | | [optional]
**is_float** | **bool** | | [optional]

Expand Down
15 changes: 6 additions & 9 deletions docs/HistoryApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Method | HTTP request | Description


# **get_history**
> HistoryResourcePagingResource get_history(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, event_type=event_type, successful=successful, download_id=download_id, indexer_ids=indexer_ids)
> HistoryResourcePagingResource get_history(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, event_type=event_type, successful=successful, download_id=download_id)


Expand Down Expand Up @@ -55,13 +55,12 @@ with prowlarr.ApiClient(configuration) as api_client:
page_size = 10 # int | (optional) (default to 10)
sort_key = 'sort_key_example' # str | (optional)
sort_direction = prowlarr.SortDirection() # SortDirection | (optional)
event_type = [56] # List[int] | (optional)
event_type = 56 # int | (optional)
successful = True # bool | (optional)
download_id = 'download_id_example' # str | (optional)
indexer_ids = [56] # List[int] | (optional)

try:
api_response = api_instance.get_history(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, event_type=event_type, successful=successful, download_id=download_id, indexer_ids=indexer_ids)
api_response = api_instance.get_history(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, event_type=event_type, successful=successful, download_id=download_id)
print("The response of HistoryApi->get_history:\n")
pprint(api_response)
except Exception as e:
Expand Down Expand Up @@ -107,13 +106,12 @@ with prowlarr.ApiClient(configuration) as api_client:
page_size = 10 # int | (optional) (default to 10)
sort_key = 'sort_key_example' # str | (optional)
sort_direction = prowlarr.SortDirection() # SortDirection | (optional)
event_type = [56] # List[int] | (optional)
event_type = 56 # int | (optional)
successful = True # bool | (optional)
download_id = 'download_id_example' # str | (optional)
indexer_ids = [56] # List[int] | (optional)

try:
api_response = api_instance.get_history(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, event_type=event_type, successful=successful, download_id=download_id, indexer_ids=indexer_ids)
api_response = api_instance.get_history(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, event_type=event_type, successful=successful, download_id=download_id)
print("The response of HistoryApi->get_history:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -128,10 +126,9 @@ Name | Type | Description | Notes
**page_size** | **int**| | [optional] [default to 10]
**sort_key** | **str**| | [optional]
**sort_direction** | [**SortDirection**](.md)| | [optional]
**event_type** | [**List[int]**](int.md)| | [optional]
**event_type** | **int**| | [optional]
**successful** | **bool**| | [optional]
**download_id** | **str**| | [optional]
**indexer_ids** | [**List[int]**](int.md)| | [optional]

### Return type

Expand Down
1 change: 0 additions & 1 deletion prowlarr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@
from prowlarr.models.music_search_param import MusicSearchParam
from prowlarr.models.notification_resource import NotificationResource
from prowlarr.models.ping_resource import PingResource
from prowlarr.models.privacy_level import PrivacyLevel
from prowlarr.models.provider_message import ProviderMessage
from prowlarr.models.provider_message_type import ProviderMessageType
from prowlarr.models.proxy_type import ProxyType
Expand Down
25 changes: 8 additions & 17 deletions prowlarr/api/history_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ def __init__(self, api_client=None):
self.api_client = api_client

@validate_arguments
def get_history(self, page : Optional[StrictInt] = None, page_size : Optional[StrictInt] = None, sort_key : Optional[StrictStr] = None, sort_direction : Optional[SortDirection] = None, event_type : Optional[List[StrictInt]] = None, successful : Optional[StrictBool] = None, download_id : Optional[StrictStr] = None, indexer_ids : Optional[List[StrictInt]] = None, **kwargs) -> HistoryResourcePagingResource: # noqa: E501
def get_history(self, page : Optional[StrictInt] = None, page_size : Optional[StrictInt] = None, sort_key : Optional[StrictStr] = None, sort_direction : Optional[SortDirection] = None, event_type : Optional[StrictInt] = None, successful : Optional[StrictBool] = None, download_id : Optional[StrictStr] = None, **kwargs) -> HistoryResourcePagingResource: # noqa: E501
"""get_history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_history(page, page_size, sort_key, sort_direction, event_type, successful, download_id, indexer_ids, async_req=True)
>>> thread = api.get_history(page, page_size, sort_key, sort_direction, event_type, successful, download_id, async_req=True)
>>> result = thread.get()
:param page:
Expand All @@ -66,13 +66,11 @@ def get_history(self, page : Optional[StrictInt] = None, page_size : Optional[St
:param sort_direction:
:type sort_direction: SortDirection
:param event_type:
:type event_type: List[int]
:type event_type: int
:param successful:
:type successful: bool
:param download_id:
:type download_id: str
:param indexer_ids:
:type indexer_ids: List[int]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand All @@ -89,16 +87,16 @@ def get_history(self, page : Optional[StrictInt] = None, page_size : Optional[St
:rtype: HistoryResourcePagingResource
"""
kwargs['_return_http_data_only'] = True
return self.get_history_with_http_info(page, page_size, sort_key, sort_direction, event_type, successful, download_id, indexer_ids, **kwargs) # noqa: E501
return self.get_history_with_http_info(page, page_size, sort_key, sort_direction, event_type, successful, download_id, **kwargs) # noqa: E501

@validate_arguments
def get_history_with_http_info(self, page : Optional[StrictInt] = None, page_size : Optional[StrictInt] = None, sort_key : Optional[StrictStr] = None, sort_direction : Optional[SortDirection] = None, event_type : Optional[List[StrictInt]] = None, successful : Optional[StrictBool] = None, download_id : Optional[StrictStr] = None, indexer_ids : Optional[List[StrictInt]] = None, **kwargs): # noqa: E501
def get_history_with_http_info(self, page : Optional[StrictInt] = None, page_size : Optional[StrictInt] = None, sort_key : Optional[StrictStr] = None, sort_direction : Optional[SortDirection] = None, event_type : Optional[StrictInt] = None, successful : Optional[StrictBool] = None, download_id : Optional[StrictStr] = None, **kwargs): # noqa: E501
"""get_history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_history_with_http_info(page, page_size, sort_key, sort_direction, event_type, successful, download_id, indexer_ids, async_req=True)
>>> thread = api.get_history_with_http_info(page, page_size, sort_key, sort_direction, event_type, successful, download_id, async_req=True)
>>> result = thread.get()
:param page:
Expand All @@ -110,13 +108,11 @@ def get_history_with_http_info(self, page : Optional[StrictInt] = None, page_siz
:param sort_direction:
:type sort_direction: SortDirection
:param event_type:
:type event_type: List[int]
:type event_type: int
:param successful:
:type successful: bool
:param download_id:
:type download_id: str
:param indexer_ids:
:type indexer_ids: List[int]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
Expand Down Expand Up @@ -150,8 +146,7 @@ def get_history_with_http_info(self, page : Optional[StrictInt] = None, page_siz
'sort_direction',
'event_type',
'successful',
'download_id',
'indexer_ids'
'download_id'
]
_all_params.extend(
[
Expand Down Expand Up @@ -192,14 +187,10 @@ def get_history_with_http_info(self, page : Optional[StrictInt] = None, page_siz
_query_params.append(('sortDirection', _params['sort_direction']))
if _params.get('event_type') is not None: # noqa: E501
_query_params.append(('eventType', _params['event_type']))
_collection_formats['eventType'] = 'multi'
if _params.get('successful') is not None: # noqa: E501
_query_params.append(('successful', _params['successful']))
if _params.get('download_id') is not None: # noqa: E501
_query_params.append(('downloadId', _params['download_id']))
if _params.get('indexer_ids') is not None: # noqa: E501
_query_params.append(('indexerIds', _params['indexer_ids']))
_collection_formats['indexerIds'] = 'multi'

# process the header parameters
_header_params = dict(_params.get('_headers', {}))
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/api/log_file_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from typing_extensions import Annotated
from pydantic import field_validator

from typing import Any, Dict, List, Union
from typing import Any, Dict, List

from prowlarr.models.log_file_resource import LogFileResource

Expand Down
2 changes: 1 addition & 1 deletion prowlarr/api/update_log_file_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from typing_extensions import Annotated
from pydantic import field_validator

from typing import Any, Dict, List, Union
from typing import Any, Dict, List

from prowlarr.models.log_file_resource import LogFileResource

Expand Down
1 change: 0 additions & 1 deletion prowlarr/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
from prowlarr.models.music_search_param import MusicSearchParam
from prowlarr.models.notification_resource import NotificationResource
from prowlarr.models.ping_resource import PingResource
from prowlarr.models.privacy_level import PrivacyLevel
from prowlarr.models.provider_message import ProviderMessage
from prowlarr.models.provider_message_type import ProviderMessageType
from prowlarr.models.proxy_type import ProxyType
Expand Down
6 changes: 3 additions & 3 deletions prowlarr/models/app_profile_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class AppProfileResource(BaseModel):
id: Optional[int]
name: Optional[str]
enable_rss: Optional[bool]
enable_automatic_search: Optional[bool]
enable_interactive_search: Optional[bool]
enable_automatic_search: Optional[bool]
minimum_seeders: Optional[int]
__properties = ["id", "name", "enableRss", "enableAutomaticSearch", "enableInteractiveSearch", "minimumSeeders"]
__properties = ["id", "name", "enableRss", "enableInteractiveSearch", "enableAutomaticSearch", "minimumSeeders"]

class Config:
allow_population_by_field_name = True
Expand Down Expand Up @@ -80,8 +80,8 @@ def from_dict(cls, obj: dict) -> AppProfileResource:
"id": obj.get("id"),
"name": obj.get("name"),
"enable_rss": obj.get("enableRss"),
"enable_automatic_search": obj.get("enableAutomaticSearch"),
"enable_interactive_search": obj.get("enableInteractiveSearch"),
"enable_automatic_search": obj.get("enableAutomaticSearch"),
"minimum_seeders": obj.get("minimumSeeders")
})
return _obj
Expand Down
5 changes: 1 addition & 4 deletions prowlarr/models/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel
from prowlarr.models.privacy_level import PrivacyLevel
from prowlarr.models.select_option import SelectOption

class Field(BaseModel):
Expand All @@ -42,10 +41,9 @@ class Field(BaseModel):
select_options_provider_action: Optional[str]
section: Optional[str]
hidden: Optional[str]
privacy: Optional[PrivacyLevel]
placeholder: Optional[str]
is_float: Optional[bool]
__properties = ["order", "name", "label", "unit", "helpText", "helpTextWarning", "helpLink", "value", "type", "advanced", "selectOptions", "selectOptionsProviderAction", "section", "hidden", "privacy", "placeholder", "isFloat"]
__properties = ["order", "name", "label", "unit", "helpText", "helpTextWarning", "helpLink", "value", "type", "advanced", "selectOptions", "selectOptionsProviderAction", "section", "hidden", "placeholder", "isFloat"]

class Config:
allow_population_by_field_name = True
Expand Down Expand Up @@ -159,7 +157,6 @@ def from_dict(cls, obj: dict) -> Field:
"select_options_provider_action": obj.get("selectOptionsProviderAction"),
"section": obj.get("section"),
"hidden": obj.get("hidden"),
"privacy": obj.get("privacy"),
"placeholder": obj.get("placeholder"),
"is_float": obj.get("isFloat")
})
Expand Down
37 changes: 0 additions & 37 deletions prowlarr/models/privacy_level.py

This file was deleted.

0 comments on commit 03125a3

Please sign in to comment.