Skip to content

Commit

Permalink
Merge pull request #35 from devopsarr/feature/code-generation
Browse files Browse the repository at this point in the history
chore(deps): update openapitools/openapi-generator-cli docker tag to v7.1.0
  • Loading branch information
devopsarr[bot] committed Nov 13, 2023
2 parents 1fe5186 + 375614c commit 0189058
Show file tree
Hide file tree
Showing 50 changed files with 80 additions and 78 deletions.
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.1
7.1.0
10 changes: 6 additions & 4 deletions prowlarr/api/log_file_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
from pydantic import validate_arguments, ValidationError
from typing_extensions import Annotated

from pydantic import constr, validator
from pydantic import Field
from typing_extensions import Annotated
from pydantic import field_validator

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

from prowlarr.models.log_file_resource import LogFileResource

Expand All @@ -43,7 +45,7 @@ def __init__(self, api_client=None):
self.api_client = api_client

@validate_arguments
def get_log_file_by_filename(self, filename : constr(strict=True), **kwargs) -> object: # noqa: E501
def get_log_file_by_filename(self, filename : Annotated[str, Field(strict=True)], **kwargs) -> object: # noqa: E501
"""get_log_file_by_filename # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -73,7 +75,7 @@ def get_log_file_by_filename(self, filename : constr(strict=True), **kwargs) ->
return self.get_log_file_by_filename_with_http_info(filename, **kwargs) # noqa: E501

@validate_arguments
def get_log_file_by_filename_with_http_info(self, filename : constr(strict=True), **kwargs): # noqa: E501
def get_log_file_by_filename_with_http_info(self, filename : Annotated[str, Field(strict=True)], **kwargs): # noqa: E501
"""get_log_file_by_filename # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down
10 changes: 5 additions & 5 deletions prowlarr/api/search_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, conlist
from pydantic import StrictInt, StrictStr

from typing import List, Optional

Expand Down Expand Up @@ -191,7 +191,7 @@ def create_search_with_http_info(self, release_resource : Optional[ReleaseResour
_request_auth=_params.get('_request_auth'))

@validate_arguments
def create_search_bulk(self, release_resource : Optional[conlist(ReleaseResource)] = None, **kwargs) -> ReleaseResource: # noqa: E501
def create_search_bulk(self, release_resource : Optional[List[ReleaseResource]] = None, **kwargs) -> ReleaseResource: # noqa: E501
"""create_search_bulk # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -221,7 +221,7 @@ def create_search_bulk(self, release_resource : Optional[conlist(ReleaseResource
return self.create_search_bulk_with_http_info(release_resource, **kwargs) # noqa: E501

@validate_arguments
def create_search_bulk_with_http_info(self, release_resource : Optional[conlist(ReleaseResource)] = None, **kwargs): # noqa: E501
def create_search_bulk_with_http_info(self, release_resource : Optional[List[ReleaseResource]] = None, **kwargs): # noqa: E501
"""create_search_bulk # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -339,7 +339,7 @@ def create_search_bulk_with_http_info(self, release_resource : Optional[conlist(
_request_auth=_params.get('_request_auth'))

@validate_arguments
def list_search(self, query : Optional[StrictStr] = None, type : Optional[StrictStr] = None, indexer_ids : Optional[conlist(StrictInt)] = None, categories : Optional[conlist(StrictInt)] = None, limit : Optional[StrictInt] = None, offset : Optional[StrictInt] = None, **kwargs) -> List[ReleaseResource]: # noqa: E501
def list_search(self, query : Optional[StrictStr] = None, type : Optional[StrictStr] = None, indexer_ids : Optional[List[StrictInt]] = None, categories : Optional[List[StrictInt]] = None, limit : Optional[StrictInt] = None, offset : Optional[StrictInt] = None, **kwargs) -> List[ReleaseResource]: # noqa: E501
"""list_search # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -379,7 +379,7 @@ def list_search(self, query : Optional[StrictStr] = None, type : Optional[Strict
return self.list_search_with_http_info(query, type, indexer_ids, categories, limit, offset, **kwargs) # noqa: E501

@validate_arguments
def list_search_with_http_info(self, query : Optional[StrictStr] = None, type : Optional[StrictStr] = None, indexer_ids : Optional[conlist(StrictInt)] = None, categories : Optional[conlist(StrictInt)] = None, limit : Optional[StrictInt] = None, offset : Optional[StrictInt] = None, **kwargs): # noqa: E501
def list_search_with_http_info(self, query : Optional[StrictStr] = None, type : Optional[StrictStr] = None, indexer_ids : Optional[List[StrictInt]] = None, categories : Optional[List[StrictInt]] = None, limit : Optional[StrictInt] = None, offset : Optional[StrictInt] = None, **kwargs): # noqa: E501
"""list_search # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down
12 changes: 7 additions & 5 deletions prowlarr/api/static_resource_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
from pydantic import validate_arguments, ValidationError
from typing_extensions import Annotated

from pydantic import StrictStr, constr, validator
from pydantic import Field
from typing_extensions import Annotated
from pydantic import StrictStr, field_validator


from prowlarr.api_client import ApiClient
Expand Down Expand Up @@ -175,7 +177,7 @@ def get_with_http_info(self, path : StrictStr, **kwargs): # noqa: E501
_request_auth=_params.get('_request_auth'))

@validate_arguments
def get_by_path(self, path : constr(strict=True), **kwargs) -> None: # noqa: E501
def get_by_path(self, path : Annotated[str, Field(strict=True)], **kwargs) -> None: # noqa: E501
"""get_by_path # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -205,7 +207,7 @@ def get_by_path(self, path : constr(strict=True), **kwargs) -> None: # noqa: E5
return self.get_by_path_with_http_info(path, **kwargs) # noqa: E501

@validate_arguments
def get_by_path_with_http_info(self, path : constr(strict=True), **kwargs): # noqa: E501
def get_by_path_with_http_info(self, path : Annotated[str, Field(strict=True)], **kwargs): # noqa: E501
"""get_by_path # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -310,7 +312,7 @@ def get_by_path_with_http_info(self, path : constr(strict=True), **kwargs): # n
_request_auth=_params.get('_request_auth'))

@validate_arguments
def get_content_by_path(self, path : constr(strict=True), **kwargs) -> None: # noqa: E501
def get_content_by_path(self, path : Annotated[str, Field(strict=True)], **kwargs) -> None: # noqa: E501
"""get_content_by_path # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -340,7 +342,7 @@ def get_content_by_path(self, path : constr(strict=True), **kwargs) -> None: #
return self.get_content_by_path_with_http_info(path, **kwargs) # noqa: E501

@validate_arguments
def get_content_by_path_with_http_info(self, path : constr(strict=True), **kwargs): # noqa: E501
def get_content_by_path_with_http_info(self, path : Annotated[str, Field(strict=True)], **kwargs): # noqa: E501
"""get_content_by_path # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down
10 changes: 6 additions & 4 deletions prowlarr/api/update_log_file_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
from pydantic import validate_arguments, ValidationError
from typing_extensions import Annotated

from pydantic import constr, validator
from pydantic import Field
from typing_extensions import Annotated
from pydantic import field_validator

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

from prowlarr.models.log_file_resource import LogFileResource

Expand All @@ -43,7 +45,7 @@ def __init__(self, api_client=None):
self.api_client = api_client

@validate_arguments
def get_log_file_update_by_filename(self, filename : constr(strict=True), **kwargs) -> object: # noqa: E501
def get_log_file_update_by_filename(self, filename : Annotated[str, Field(strict=True)], **kwargs) -> object: # noqa: E501
"""get_log_file_update_by_filename # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -73,7 +75,7 @@ def get_log_file_update_by_filename(self, filename : constr(strict=True), **kwar
return self.get_log_file_update_by_filename_with_http_info(filename, **kwargs) # noqa: E501

@validate_arguments
def get_log_file_update_by_filename_with_http_info(self, filename : constr(strict=True), **kwargs): # noqa: E501
def get_log_file_update_by_filename_with_http_info(self, filename : Annotated[str, Field(strict=True)], **kwargs): # noqa: E501
"""get_log_file_update_by_filename # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down
26 changes: 11 additions & 15 deletions prowlarr/api_response.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
"""API response object."""

from __future__ import annotations
from typing import Any, Dict, Optional
from pydantic import Field, StrictInt, StrictStr
from typing import Any, Dict, Optional, Generic, TypeVar
from pydantic import Field, StrictInt, StrictStr, StrictBytes, BaseModel

class ApiResponse:
T = TypeVar("T")

class ApiResponse(BaseModel, Generic[T]):
"""
API response object
"""

status_code: Optional[StrictInt] = Field(None, description="HTTP status code")
status_code: StrictInt = Field(description="HTTP status code")
headers: Optional[Dict[StrictStr, StrictStr]] = Field(None, description="HTTP headers")
data: Optional[Any] = Field(None, description="Deserialized data given the data type")
raw_data: Optional[Any] = Field(None, description="Raw data (HTTP response body)")
data: T = Field(description="Deserialized data given the data type")
raw_data: StrictBytes = Field(description="Raw data (HTTP response body)")

def __init__(self,
status_code=None,
headers=None,
data=None,
raw_data=None) -> None:
self.status_code = status_code
self.headers = headers
self.data = data
self.raw_data = raw_data
model_config = {
"arbitrary_types_allowed": True
}
2 changes: 1 addition & 1 deletion prowlarr/models/api_info_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, List, Optional
from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel

class ApiInfoResource(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/app_profile_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, Optional
from typing import Any, ClassVar, Dict, Optional
from pydantic import BaseModel

class AppProfileResource(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/application_bulk_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, List, Optional
from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel
from prowlarr.models.application_sync_level import ApplicationSyncLevel
from prowlarr.models.apply_tags import ApplyTags
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/application_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, List, Optional
from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel
from prowlarr.models.application_sync_level import ApplicationSyncLevel
from prowlarr.models.field import Field
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/backup_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json

from datetime import datetime
from typing import Any, Dict, Optional
from typing import Any, ClassVar, Dict, Optional
from pydantic import BaseModel
from prowlarr.models.backup_type import BackupType

Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json

from datetime import datetime
from typing import Any, Dict, Optional
from typing import Any, ClassVar, Dict, Optional
from pydantic import BaseModel
from prowlarr.models.command_trigger import CommandTrigger

Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/command_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json

from datetime import datetime
from typing import Any, Dict, Optional
from typing import Any, ClassVar, Dict, Optional
from pydantic import BaseModel
from prowlarr.models.command import Command
from prowlarr.models.command_priority import CommandPriority
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/custom_filter_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, List, Optional
from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel

class CustomFilterResource(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/development_config_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, Optional
from typing import Any, ClassVar, Dict, Optional
from pydantic import BaseModel

class DevelopmentConfigResource(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/download_client_bulk_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, List, Optional
from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel
from prowlarr.models.apply_tags import ApplyTags

Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/download_client_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, List, Optional
from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel

class DownloadClientCategory(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/download_client_config_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, Optional
from typing import Any, ClassVar, Dict, Optional
from pydantic import BaseModel

class DownloadClientConfigResource(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/download_client_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, List, Optional
from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel
from prowlarr.models.download_client_category import DownloadClientCategory
from prowlarr.models.download_protocol import DownloadProtocol
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


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

Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/health_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, Optional
from typing import Any, ClassVar, Dict, Optional
from pydantic import BaseModel
from prowlarr.models.health_check_result import HealthCheckResult

Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/history_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json

from datetime import datetime
from typing import Any, Dict, Optional
from typing import Any, ClassVar, Dict, Optional
from pydantic import BaseModel
from prowlarr.models.history_event_type import HistoryEventType

Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/history_resource_paging_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, List, Optional
from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel
from prowlarr.models.history_resource import HistoryResource
from prowlarr.models.sort_direction import SortDirection
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/host_config_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, Optional
from typing import Any, ClassVar, Dict, Optional
from pydantic import BaseModel
from prowlarr.models.authentication_required_type import AuthenticationRequiredType
from prowlarr.models.authentication_type import AuthenticationType
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/host_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, Optional
from typing import Any, ClassVar, Dict, Optional
from pydantic import BaseModel

class HostStatistics(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/indexer_bulk_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, List, Optional, Union
from typing import Any, ClassVar, Dict, List, Optional, Union
from pydantic import BaseModel
from prowlarr.models.apply_tags import ApplyTags

Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/indexer_capability_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, List, Optional
from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel
from prowlarr.models.book_search_param import BookSearchParam
from prowlarr.models.indexer_category import IndexerCategory
Expand Down
2 changes: 1 addition & 1 deletion prowlarr/models/indexer_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json


from typing import Any, Dict, List, Optional
from typing import Any, ClassVar, Dict, List, Optional
from pydantic import BaseModel

class IndexerCategory(BaseModel):
Expand Down
Loading

0 comments on commit 0189058

Please sign in to comment.