Skip to content

Commit

Permalink
Merge pull request #51 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.2.0
  • Loading branch information
devopsarr[bot] authored Jan 16, 2024
2 parents 56153ea + 3d67173 commit 978acbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/QueueResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Name | Type | Description | Notes
**sizeleft** | **float** | | [optional]
**timeleft** | **str** | | [optional]
**estimated_completion_time** | **datetime** | | [optional]
**added** | **datetime** | | [optional]
**status** | **str** | | [optional]
**tracked_download_status** | [**TrackedDownloadStatus**](TrackedDownloadStatus.md) | | [optional]
**tracked_download_state** | [**TrackedDownloadState**](TrackedDownloadState.md) | | [optional]
Expand Down
8 changes: 7 additions & 1 deletion sonarr/models/queue_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class QueueResource(BaseModel):
sizeleft: Optional[float]
timeleft: Optional[str]
estimated_completion_time: Optional[datetime]
added: Optional[datetime]
status: Optional[str]
tracked_download_status: Optional[TrackedDownloadStatus]
tracked_download_state: Optional[TrackedDownloadState]
Expand All @@ -61,7 +62,7 @@ class QueueResource(BaseModel):
indexer: Optional[str]
output_path: Optional[str]
episode_has_file: Optional[bool]
__properties = ["id", "seriesId", "episodeId", "seasonNumber", "series", "episode", "languages", "quality", "customFormats", "customFormatScore", "size", "title", "sizeleft", "timeleft", "estimatedCompletionTime", "status", "trackedDownloadStatus", "trackedDownloadState", "statusMessages", "errorMessage", "downloadId", "protocol", "downloadClient", "indexer", "outputPath", "episodeHasFile"]
__properties = ["id", "seriesId", "episodeId", "seasonNumber", "series", "episode", "languages", "quality", "customFormats", "customFormatScore", "size", "title", "sizeleft", "timeleft", "estimatedCompletionTime", "added", "status", "trackedDownloadStatus", "trackedDownloadState", "statusMessages", "errorMessage", "downloadId", "protocol", "downloadClient", "indexer", "outputPath", "episodeHasFile"]

class Config:
allow_population_by_field_name = True
Expand Down Expand Up @@ -148,6 +149,10 @@ def to_dict(self):
if self.estimated_completion_time is None:
_dict['estimatedCompletionTime'] = None

# set to None if added (nullable) is None
if self.added is None:
_dict['added'] = None

# set to None if status (nullable) is None
if self.status is None:
_dict['status'] = None
Expand Down Expand Up @@ -203,6 +208,7 @@ def from_dict(cls, obj: dict) -> QueueResource:
"sizeleft": obj.get("sizeleft"),
"timeleft": obj.get("timeleft"),
"estimated_completion_time": obj.get("estimatedCompletionTime"),
"added": obj.get("added"),
"status": obj.get("status"),
"tracked_download_status": obj.get("trackedDownloadStatus"),
"tracked_download_state": obj.get("trackedDownloadState"),
Expand Down

0 comments on commit 978acbd

Please sign in to comment.