Skip to content

Commit

Permalink
chore(deps): update openapitools/openapi-generator-cli docker tag to …
Browse files Browse the repository at this point in the history
…v7.8.0
  • Loading branch information
devopsarr[bot] committed Aug 22, 2024
1 parent 43be252 commit 490e298
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 61 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:

- API version: v1.22.0.4670
- Package version: 1.0.1 <!--- x-release-please-version -->
- Generator version: 7.7.0
- Generator version: 7.8.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
7 changes: 7 additions & 0 deletions prowlarr/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import datetime
from dateutil.parser import parse
from enum import Enum
import decimal
import json
import mimetypes
import os
Expand Down Expand Up @@ -66,6 +67,7 @@ class ApiClient:
'bool': bool,
'date': datetime.date,
'datetime': datetime.datetime,
'decimal': decimal.Decimal,
'object': object,
}
_pool = None
Expand Down Expand Up @@ -338,6 +340,7 @@ def sanitize_for_serialization(self, obj):
If obj is str, int, long, float, bool, return directly.
If obj is datetime.datetime, datetime.date
convert to string in iso8601 format.
If obj is decimal.Decimal return string representation.
If obj is list, sanitize each element in the list.
If obj is dict, return the dict.
If obj is OpenAPI model, return the properties dict.
Expand All @@ -363,6 +366,8 @@ def sanitize_for_serialization(self, obj):
)
elif isinstance(obj, (datetime.datetime, datetime.date)):
return obj.isoformat()
elif isinstance(obj, decimal.Decimal):
return str(obj)

elif isinstance(obj, dict):
obj_dict = obj
Expand Down Expand Up @@ -454,6 +459,8 @@ def __deserialize(self, data, klass):
return self.__deserialize_date(data)
elif klass == datetime.datetime:
return self.__deserialize_datetime(data)
elif klass == decimal.Decimal:
return decimal.Decimal(data)
elif issubclass(klass, Enum):
return self.__deserialize_enum(data, klass)
else:
Expand Down
12 changes: 6 additions & 6 deletions prowlarr/models/application_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in fields (list)
_items = []
if self.fields:
for _item in self.fields:
if _item:
_items.append(_item.to_dict())
for _item_fields in self.fields:
if _item_fields:
_items.append(_item_fields.to_dict())
_dict['fields'] = _items
# override the default output from pydantic by calling `to_dict()` of message
if self.message:
_dict['message'] = self.message.to_dict()
# override the default output from pydantic by calling `to_dict()` of each item in presets (list)
_items = []
if self.presets:
for _item in self.presets:
if _item:
_items.append(_item.to_dict())
for _item_presets in self.presets:
if _item_presets:
_items.append(_item_presets.to_dict())
_dict['presets'] = _items
# set to None if name (nullable) is None
# and model_fields_set contains the field
Expand Down
6 changes: 3 additions & 3 deletions prowlarr/models/contract_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in select_options (list)
_items = []
if self.select_options:
for _item in self.select_options:
if _item:
_items.append(_item.to_dict())
for _item_select_options in self.select_options:
if _item_select_options:
_items.append(_item_select_options.to_dict())
_dict['selectOptions'] = _items
# set to None if name (nullable) is None
# and model_fields_set contains the field
Expand Down
18 changes: 9 additions & 9 deletions prowlarr/models/download_client_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,26 +89,26 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in fields (list)
_items = []
if self.fields:
for _item in self.fields:
if _item:
_items.append(_item.to_dict())
for _item_fields in self.fields:
if _item_fields:
_items.append(_item_fields.to_dict())
_dict['fields'] = _items
# override the default output from pydantic by calling `to_dict()` of message
if self.message:
_dict['message'] = self.message.to_dict()
# override the default output from pydantic by calling `to_dict()` of each item in presets (list)
_items = []
if self.presets:
for _item in self.presets:
if _item:
_items.append(_item.to_dict())
for _item_presets in self.presets:
if _item_presets:
_items.append(_item_presets.to_dict())
_dict['presets'] = _items
# override the default output from pydantic by calling `to_dict()` of each item in categories (list)
_items = []
if self.categories:
for _item in self.categories:
if _item:
_items.append(_item.to_dict())
for _item_categories in self.categories:
if _item_categories:
_items.append(_item_categories.to_dict())
_dict['categories'] = _items
# set to None if name (nullable) is None
# and model_fields_set contains the field
Expand Down
6 changes: 3 additions & 3 deletions prowlarr/models/history_resource_paging_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in records (list)
_items = []
if self.records:
for _item in self.records:
if _item:
_items.append(_item.to_dict())
for _item_records in self.records:
if _item_records:
_items.append(_item_records.to_dict())
_dict['records'] = _items
# set to None if sort_key (nullable) is None
# and model_fields_set contains the field
Expand Down
6 changes: 3 additions & 3 deletions prowlarr/models/indexer_capability_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in categories (list)
_items = []
if self.categories:
for _item in self.categories:
if _item:
_items.append(_item.to_dict())
for _item_categories in self.categories:
if _item_categories:
_items.append(_item_categories.to_dict())
_dict['categories'] = _items
# set to None if limits_max (nullable) is None
# and model_fields_set contains the field
Expand Down
6 changes: 3 additions & 3 deletions prowlarr/models/indexer_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in sub_categories (list)
_items = []
if self.sub_categories:
for _item in self.sub_categories:
if _item:
_items.append(_item.to_dict())
for _item_sub_categories in self.sub_categories:
if _item_sub_categories:
_items.append(_item_sub_categories.to_dict())
_dict['subCategories'] = _items
# set to None if name (nullable) is None
# and model_fields_set contains the field
Expand Down
12 changes: 6 additions & 6 deletions prowlarr/models/indexer_proxy_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,19 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in fields (list)
_items = []
if self.fields:
for _item in self.fields:
if _item:
_items.append(_item.to_dict())
for _item_fields in self.fields:
if _item_fields:
_items.append(_item_fields.to_dict())
_dict['fields'] = _items
# override the default output from pydantic by calling `to_dict()` of message
if self.message:
_dict['message'] = self.message.to_dict()
# override the default output from pydantic by calling `to_dict()` of each item in presets (list)
_items = []
if self.presets:
for _item in self.presets:
if _item:
_items.append(_item.to_dict())
for _item_presets in self.presets:
if _item_presets:
_items.append(_item_presets.to_dict())
_dict['presets'] = _items
# set to None if name (nullable) is None
# and model_fields_set contains the field
Expand Down
12 changes: 6 additions & 6 deletions prowlarr/models/indexer_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,19 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in fields (list)
_items = []
if self.fields:
for _item in self.fields:
if _item:
_items.append(_item.to_dict())
for _item_fields in self.fields:
if _item_fields:
_items.append(_item_fields.to_dict())
_dict['fields'] = _items
# override the default output from pydantic by calling `to_dict()` of message
if self.message:
_dict['message'] = self.message.to_dict()
# override the default output from pydantic by calling `to_dict()` of each item in presets (list)
_items = []
if self.presets:
for _item in self.presets:
if _item:
_items.append(_item.to_dict())
for _item_presets in self.presets:
if _item_presets:
_items.append(_item_presets.to_dict())
_dict['presets'] = _items
# override the default output from pydantic by calling `to_dict()` of capabilities
if self.capabilities:
Expand Down
18 changes: 9 additions & 9 deletions prowlarr/models/indexer_stats_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,23 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in indexers (list)
_items = []
if self.indexers:
for _item in self.indexers:
if _item:
_items.append(_item.to_dict())
for _item_indexers in self.indexers:
if _item_indexers:
_items.append(_item_indexers.to_dict())
_dict['indexers'] = _items
# override the default output from pydantic by calling `to_dict()` of each item in user_agents (list)
_items = []
if self.user_agents:
for _item in self.user_agents:
if _item:
_items.append(_item.to_dict())
for _item_user_agents in self.user_agents:
if _item_user_agents:
_items.append(_item_user_agents.to_dict())
_dict['userAgents'] = _items
# override the default output from pydantic by calling `to_dict()` of each item in hosts (list)
_items = []
if self.hosts:
for _item in self.hosts:
if _item:
_items.append(_item.to_dict())
for _item_hosts in self.hosts:
if _item_hosts:
_items.append(_item_hosts.to_dict())
_dict['hosts'] = _items
# set to None if indexers (nullable) is None
# and model_fields_set contains the field
Expand Down
6 changes: 3 additions & 3 deletions prowlarr/models/log_resource_paging_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in records (list)
_items = []
if self.records:
for _item in self.records:
if _item:
_items.append(_item.to_dict())
for _item_records in self.records:
if _item_records:
_items.append(_item_records.to_dict())
_dict['records'] = _items
# set to None if sort_key (nullable) is None
# and model_fields_set contains the field
Expand Down
12 changes: 6 additions & 6 deletions prowlarr/models/notification_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in fields (list)
_items = []
if self.fields:
for _item in self.fields:
if _item:
_items.append(_item.to_dict())
for _item_fields in self.fields:
if _item_fields:
_items.append(_item_fields.to_dict())
_dict['fields'] = _items
# override the default output from pydantic by calling `to_dict()` of message
if self.message:
_dict['message'] = self.message.to_dict()
# override the default output from pydantic by calling `to_dict()` of each item in presets (list)
_items = []
if self.presets:
for _item in self.presets:
if _item:
_items.append(_item.to_dict())
for _item_presets in self.presets:
if _item_presets:
_items.append(_item_presets.to_dict())
_dict['presets'] = _items
# set to None if name (nullable) is None
# and model_fields_set contains the field
Expand Down
6 changes: 3 additions & 3 deletions prowlarr/models/release_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in categories (list)
_items = []
if self.categories:
for _item in self.categories:
if _item:
_items.append(_item.to_dict())
for _item_categories in self.categories:
if _item_categories:
_items.append(_item_categories.to_dict())
_dict['categories'] = _items
# set to None if guid (nullable) is None
# and model_fields_set contains the field
Expand Down

0 comments on commit 490e298

Please sign in to comment.