Skip to content

Commit

Permalink
feat: series lookup get to list
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Mar 20, 2023
1 parent 4042f23 commit b7c863e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 22 deletions.
4 changes: 0 additions & 4 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ docs/HistoryResource.md
docs/HistoryResourcePagingResource.md
docs/HostConfigApi.md
docs/HostConfigResource.md
docs/HttpUri.md
docs/ImportListApi.md
docs/ImportListExclusionApi.md
docs/ImportListExclusionResource.md
Expand Down Expand Up @@ -178,7 +177,6 @@ docs/TagDetailsResource.md
docs/TagResource.md
docs/TaskApi.md
docs/TaskResource.md
docs/TimeSpan.md
docs/TrackedDownloadState.md
docs/TrackedDownloadStatus.md
docs/TrackedDownloadStatusMessage.md
Expand Down Expand Up @@ -306,7 +304,6 @@ sonarr/models/health_resource.py
sonarr/models/history_resource.py
sonarr/models/history_resource_paging_resource.py
sonarr/models/host_config_resource.py
sonarr/models/http_uri.py
sonarr/models/import_list_exclusion_resource.py
sonarr/models/import_list_resource.py
sonarr/models/import_list_type.py
Expand Down Expand Up @@ -379,7 +376,6 @@ sonarr/models/system_resource.py
sonarr/models/tag_details_resource.py
sonarr/models/tag_resource.py
sonarr/models/task_resource.py
sonarr/models/time_span.py
sonarr/models/tracked_download_state.py
sonarr/models/tracked_download_status.py
sonarr/models/tracked_download_status_message.py
Expand Down
18 changes: 9 additions & 9 deletions docs/SeriesLookupApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ All URIs are relative to *http://localhost:8989*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_series_lookup**](SeriesLookupApi.md#get_series_lookup) | **GET** /api/v3/series/lookup |
[**list_series_lookup**](SeriesLookupApi.md#list_series_lookup) | **GET** /api/v3/series/lookup |


# **get_series_lookup**
> List[SeriesResource] get_series_lookup(term=term)
# **list_series_lookup**
> List[SeriesResource] list_series_lookup(term=term)


Expand Down Expand Up @@ -52,11 +52,11 @@ with sonarr.ApiClient(configuration) as api_client:
term = 'term_example' # str | (optional)

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

* Api Key Authentication (apikey):
Expand Down Expand Up @@ -97,11 +97,11 @@ with sonarr.ApiClient(configuration) as api_client:
term = 'term_example' # str | (optional)

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

### Parameters
Expand Down
16 changes: 8 additions & 8 deletions sonarr/api/series_lookup_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ def __init__(self, api_client=None):
self.api_client = api_client

@validate_arguments
def get_series_lookup(self, term : Optional[StrictStr] = None, **kwargs) -> List[SeriesResource]: # noqa: E501
"""get_series_lookup # noqa: E501
def list_series_lookup(self, term : Optional[StrictStr] = None, **kwargs) -> List[SeriesResource]: # noqa: E501
"""list_series_lookup # 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_series_lookup(term, async_req=True)
>>> thread = api.list_series_lookup(term, async_req=True)
>>> result = thread.get()
:param term:
Expand All @@ -70,16 +70,16 @@ def get_series_lookup(self, term : Optional[StrictStr] = None, **kwargs) -> List
:rtype: List[SeriesResource]
"""
kwargs['_return_http_data_only'] = True
return self.get_series_lookup_with_http_info(term, **kwargs) # noqa: E501
return self.list_series_lookup_with_http_info(term, **kwargs) # noqa: E501

@validate_arguments
def get_series_lookup_with_http_info(self, term : Optional[StrictStr] = None, **kwargs): # noqa: E501
"""get_series_lookup # noqa: E501
def list_series_lookup_with_http_info(self, term : Optional[StrictStr] = None, **kwargs): # noqa: E501
"""list_series_lookup # 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_series_lookup_with_http_info(term, async_req=True)
>>> thread = api.list_series_lookup_with_http_info(term, async_req=True)
>>> result = thread.get()
:param term:
Expand Down Expand Up @@ -130,7 +130,7 @@ def get_series_lookup_with_http_info(self, term : Optional[StrictStr] = None, **
if _key not in _all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method get_series_lookup" % _key
" to method list_series_lookup" % _key
)
_params[_key] = _val
del _params['kwargs']
Expand Down
2 changes: 1 addition & 1 deletion sonarr/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 3.0.0\n"\
"SDK Package Version: 0.0.1".\
"SDK Package Version: 0.5.1".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down

0 comments on commit b7c863e

Please sign in to comment.