Skip to content

Commit

Permalink
Merge pull request #13 from devopsarr/feature/code-generation
Browse files Browse the repository at this point in the history
chore(deps): update lidarr digest to d43d404
  • Loading branch information
devopsarr[bot] authored May 16, 2023
2 parents 72ade74 + 4a89294 commit 108b4f4
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 27 deletions.
12 changes: 9 additions & 3 deletions docs/AlbumApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,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)

# **delete_album**
> delete_album(id)
> delete_album(id, delete_files=delete_files, add_import_list_exclusion=add_import_list_exclusion)


Expand Down Expand Up @@ -178,9 +178,11 @@ with lidarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lidarr.AlbumApi(api_client)
id = 56 # int |
delete_files = False # bool | (optional) (default to False)
add_import_list_exclusion = False # bool | (optional) (default to False)

try:
api_instance.delete_album(id)
api_instance.delete_album(id, delete_files=delete_files, add_import_list_exclusion=add_import_list_exclusion)
except Exception as e:
print("Exception when calling AlbumApi->delete_album: %s\n" % e)
```
Expand Down Expand Up @@ -221,9 +223,11 @@ with lidarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lidarr.AlbumApi(api_client)
id = 56 # int |
delete_files = False # bool | (optional) (default to False)
add_import_list_exclusion = False # bool | (optional) (default to False)

try:
api_instance.delete_album(id)
api_instance.delete_album(id, delete_files=delete_files, add_import_list_exclusion=add_import_list_exclusion)
except Exception as e:
print("Exception when calling AlbumApi->delete_album: %s\n" % e)
```
Expand All @@ -233,6 +237,8 @@ with lidarr.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| |
**delete_files** | **bool**| | [optional] [default to False]
**add_import_list_exclusion** | **bool**| | [optional] [default to False]

### Return type

Expand Down
21 changes: 15 additions & 6 deletions docs/ArtistApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,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)

# **delete_artist**
> delete_artist(id)
> delete_artist(id, delete_files=delete_files, add_import_list_exclusion=add_import_list_exclusion)


Expand Down Expand Up @@ -177,9 +177,11 @@ with lidarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lidarr.ArtistApi(api_client)
id = 56 # int |
delete_files = False # bool | (optional) (default to False)
add_import_list_exclusion = False # bool | (optional) (default to False)

try:
api_instance.delete_artist(id)
api_instance.delete_artist(id, delete_files=delete_files, add_import_list_exclusion=add_import_list_exclusion)
except Exception as e:
print("Exception when calling ArtistApi->delete_artist: %s\n" % e)
```
Expand Down Expand Up @@ -220,9 +222,11 @@ with lidarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lidarr.ArtistApi(api_client)
id = 56 # int |
delete_files = False # bool | (optional) (default to False)
add_import_list_exclusion = False # bool | (optional) (default to False)

try:
api_instance.delete_artist(id)
api_instance.delete_artist(id, delete_files=delete_files, add_import_list_exclusion=add_import_list_exclusion)
except Exception as e:
print("Exception when calling ArtistApi->delete_artist: %s\n" % e)
```
Expand All @@ -232,6 +236,8 @@ with lidarr.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| |
**delete_files** | **bool**| | [optional] [default to False]
**add_import_list_exclusion** | **bool**| | [optional] [default to False]

### Return type

Expand Down Expand Up @@ -500,7 +506,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)

# **update_artist**
> ArtistResource update_artist(id, artist_resource=artist_resource)
> ArtistResource update_artist(id, move_files=move_files, artist_resource=artist_resource)


Expand Down Expand Up @@ -542,10 +548,11 @@ with lidarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lidarr.ArtistApi(api_client)
id = 'id_example' # str |
move_files = False # bool | (optional) (default to False)
artist_resource = lidarr.ArtistResource() # ArtistResource | (optional)

try:
api_response = api_instance.update_artist(id, artist_resource=artist_resource)
api_response = api_instance.update_artist(id, move_files=move_files, artist_resource=artist_resource)
print("The response of ArtistApi->update_artist:\n")
pprint(api_response)
except Exception as e:
Expand Down Expand Up @@ -588,10 +595,11 @@ with lidarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lidarr.ArtistApi(api_client)
id = 'id_example' # str |
move_files = False # bool | (optional) (default to False)
artist_resource = lidarr.ArtistResource() # ArtistResource | (optional)

try:
api_response = api_instance.update_artist(id, artist_resource=artist_resource)
api_response = api_instance.update_artist(id, move_files=move_files, artist_resource=artist_resource)
print("The response of ArtistApi->update_artist:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -603,6 +611,7 @@ with lidarr.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
**move_files** | **bool**| | [optional] [default to False]
**artist_resource** | [**ArtistResource**](ArtistResource.md)| | [optional]

### Return type
Expand Down
26 changes: 20 additions & 6 deletions lidarr/api/album_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,21 @@ def create_album_with_http_info(self, album_resource : Optional[AlbumResource] =
_request_auth=_params.get('_request_auth'))

@validate_arguments
def delete_album(self, id : StrictInt, **kwargs) -> None: # noqa: E501
def delete_album(self, id : StrictInt, delete_files : Optional[StrictBool] = None, add_import_list_exclusion : Optional[StrictBool] = None, **kwargs) -> None: # noqa: E501
"""delete_album # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_album(id, async_req=True)
>>> thread = api.delete_album(id, delete_files, add_import_list_exclusion, async_req=True)
>>> result = thread.get()
:param id: (required)
:type id: int
:param delete_files:
:type delete_files: bool
:param add_import_list_exclusion:
:type add_import_list_exclusion: bool
: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 @@ -219,20 +223,24 @@ def delete_album(self, id : StrictInt, **kwargs) -> None: # noqa: E501
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.delete_album_with_http_info(id, **kwargs) # noqa: E501
return self.delete_album_with_http_info(id, delete_files, add_import_list_exclusion, **kwargs) # noqa: E501

@validate_arguments
def delete_album_with_http_info(self, id : StrictInt, **kwargs): # noqa: E501
def delete_album_with_http_info(self, id : StrictInt, delete_files : Optional[StrictBool] = None, add_import_list_exclusion : Optional[StrictBool] = None, **kwargs): # noqa: E501
"""delete_album # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_album_with_http_info(id, async_req=True)
>>> thread = api.delete_album_with_http_info(id, delete_files, add_import_list_exclusion, async_req=True)
>>> result = thread.get()
:param id: (required)
:type id: int
:param delete_files:
:type delete_files: bool
:param add_import_list_exclusion:
:type add_import_list_exclusion: bool
: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 @@ -260,7 +268,9 @@ def delete_album_with_http_info(self, id : StrictInt, **kwargs): # noqa: E501
_params = locals()

_all_params = [
'id'
'id',
'delete_files',
'add_import_list_exclusion'
]
_all_params.extend(
[
Expand Down Expand Up @@ -293,6 +303,10 @@ def delete_album_with_http_info(self, id : StrictInt, **kwargs): # noqa: E501

# process the query parameters
_query_params = []
if _params.get('delete_files') is not None: # noqa: E501
_query_params.append(('deleteFiles', _params['delete_files']))
if _params.get('add_import_list_exclusion') is not None: # noqa: E501
_query_params.append(('addImportListExclusion', _params['add_import_list_exclusion']))

# process the header parameters
_header_params = dict(_params.get('_headers', {}))
Expand Down
45 changes: 33 additions & 12 deletions lidarr/api/artist_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from pydantic import validate_arguments, ValidationError
from typing_extensions import Annotated

from pydantic import StrictInt, StrictStr
from pydantic import StrictBool, StrictInt, StrictStr

from typing import List, Optional

Expand Down Expand Up @@ -191,17 +191,21 @@ def create_artist_with_http_info(self, artist_resource : Optional[ArtistResource
_request_auth=_params.get('_request_auth'))

@validate_arguments
def delete_artist(self, id : StrictInt, **kwargs) -> None: # noqa: E501
def delete_artist(self, id : StrictInt, delete_files : Optional[StrictBool] = None, add_import_list_exclusion : Optional[StrictBool] = None, **kwargs) -> None: # noqa: E501
"""delete_artist # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_artist(id, async_req=True)
>>> thread = api.delete_artist(id, delete_files, add_import_list_exclusion, async_req=True)
>>> result = thread.get()
:param id: (required)
:type id: int
:param delete_files:
:type delete_files: bool
:param add_import_list_exclusion:
:type add_import_list_exclusion: bool
: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 @@ -218,20 +222,24 @@ def delete_artist(self, id : StrictInt, **kwargs) -> None: # noqa: E501
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.delete_artist_with_http_info(id, **kwargs) # noqa: E501
return self.delete_artist_with_http_info(id, delete_files, add_import_list_exclusion, **kwargs) # noqa: E501

@validate_arguments
def delete_artist_with_http_info(self, id : StrictInt, **kwargs): # noqa: E501
def delete_artist_with_http_info(self, id : StrictInt, delete_files : Optional[StrictBool] = None, add_import_list_exclusion : Optional[StrictBool] = None, **kwargs): # noqa: E501
"""delete_artist # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_artist_with_http_info(id, async_req=True)
>>> thread = api.delete_artist_with_http_info(id, delete_files, add_import_list_exclusion, async_req=True)
>>> result = thread.get()
:param id: (required)
:type id: int
:param delete_files:
:type delete_files: bool
:param add_import_list_exclusion:
:type add_import_list_exclusion: bool
: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 @@ -259,7 +267,9 @@ def delete_artist_with_http_info(self, id : StrictInt, **kwargs): # noqa: E501
_params = locals()

_all_params = [
'id'
'id',
'delete_files',
'add_import_list_exclusion'
]
_all_params.extend(
[
Expand Down Expand Up @@ -292,6 +302,10 @@ def delete_artist_with_http_info(self, id : StrictInt, **kwargs): # noqa: E501

# process the query parameters
_query_params = []
if _params.get('delete_files') is not None: # noqa: E501
_query_params.append(('deleteFiles', _params['delete_files']))
if _params.get('add_import_list_exclusion') is not None: # noqa: E501
_query_params.append(('addImportListExclusion', _params['add_import_list_exclusion']))

# process the header parameters
_header_params = dict(_params.get('_headers', {}))
Expand Down Expand Up @@ -608,17 +622,19 @@ def list_artist_with_http_info(self, mb_id : Optional[StrictStr] = None, **kwarg
_request_auth=_params.get('_request_auth'))

@validate_arguments
def update_artist(self, id : StrictStr, artist_resource : Optional[ArtistResource] = None, **kwargs) -> ArtistResource: # noqa: E501
def update_artist(self, id : StrictStr, move_files : Optional[StrictBool] = None, artist_resource : Optional[ArtistResource] = None, **kwargs) -> ArtistResource: # noqa: E501
"""update_artist # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_artist(id, artist_resource, async_req=True)
>>> thread = api.update_artist(id, move_files, artist_resource, async_req=True)
>>> result = thread.get()
:param id: (required)
:type id: str
:param move_files:
:type move_files: bool
:param artist_resource:
:type artist_resource: ArtistResource
:param async_req: Whether to execute the request asynchronously.
Expand All @@ -637,20 +653,22 @@ def update_artist(self, id : StrictStr, artist_resource : Optional[ArtistResourc
:rtype: ArtistResource
"""
kwargs['_return_http_data_only'] = True
return self.update_artist_with_http_info(id, artist_resource, **kwargs) # noqa: E501
return self.update_artist_with_http_info(id, move_files, artist_resource, **kwargs) # noqa: E501

@validate_arguments
def update_artist_with_http_info(self, id : StrictStr, artist_resource : Optional[ArtistResource] = None, **kwargs): # noqa: E501
def update_artist_with_http_info(self, id : StrictStr, move_files : Optional[StrictBool] = None, artist_resource : Optional[ArtistResource] = None, **kwargs): # noqa: E501
"""update_artist # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_artist_with_http_info(id, artist_resource, async_req=True)
>>> thread = api.update_artist_with_http_info(id, move_files, artist_resource, async_req=True)
>>> result = thread.get()
:param id: (required)
:type id: str
:param move_files:
:type move_files: bool
:param artist_resource:
:type artist_resource: ArtistResource
:param async_req: Whether to execute the request asynchronously.
Expand Down Expand Up @@ -681,6 +699,7 @@ def update_artist_with_http_info(self, id : StrictStr, artist_resource : Optiona

_all_params = [
'id',
'move_files',
'artist_resource'
]
_all_params.extend(
Expand Down Expand Up @@ -714,6 +733,8 @@ def update_artist_with_http_info(self, id : StrictStr, artist_resource : Optiona

# process the query parameters
_query_params = []
if _params.get('move_files') is not None: # noqa: E501
_query_params.append(('moveFiles', _params['move_files']))

# process the header parameters
_header_params = dict(_params.get('_headers', {}))
Expand Down

0 comments on commit 108b4f4

Please sign in to comment.