Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions nuon/models/app_queue_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class AppQueueSignal:
"""
Attributes:
callback (CallbackRef | Unset):
callbacks (list[CallbackRef] | Unset):
created_at (str | Unset):
created_by_id (str | Unset):
emitter_id (str | Unset): Optional: if this signal was emitted by an emitter
Expand All @@ -46,6 +47,7 @@ class AppQueueSignal:
"""

callback: CallbackRef | Unset = UNSET
callbacks: list[CallbackRef] | Unset = UNSET
created_at: str | Unset = UNSET
created_by_id: str | Unset = UNSET
emitter_id: str | Unset = UNSET
Expand All @@ -71,6 +73,13 @@ def to_dict(self) -> dict[str, Any]:
if not isinstance(self.callback, Unset):
callback = self.callback.to_dict()

callbacks: list[dict[str, Any]] | Unset = UNSET
if not isinstance(self.callbacks, Unset):
callbacks = []
for callbacks_item_data in self.callbacks:
callbacks_item = callbacks_item_data.to_dict()
callbacks.append(callbacks_item)

created_at = self.created_at

created_by_id = self.created_by_id
Expand Down Expand Up @@ -122,6 +131,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict.update({})
if callback is not UNSET:
field_dict["callback"] = callback
if callbacks is not UNSET:
field_dict["callbacks"] = callbacks
if created_at is not UNSET:
field_dict["created_at"] = created_at
if created_by_id is not UNSET:
Expand Down Expand Up @@ -178,6 +189,15 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
else:
callback = CallbackRef.from_dict(_callback)

_callbacks = d.pop("callbacks", UNSET)
callbacks: list[CallbackRef] | Unset = UNSET
if _callbacks is not UNSET:
callbacks = []
for callbacks_item_data in _callbacks:
callbacks_item = CallbackRef.from_dict(callbacks_item_data)

callbacks.append(callbacks_item)

created_at = d.pop("created_at", UNSET)

created_by_id = d.pop("created_by_id", UNSET)
Expand Down Expand Up @@ -241,6 +261,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

app_queue_signal = cls(
callback=callback,
callbacks=callbacks,
created_at=created_at,
created_by_id=created_by_id,
emitter_id=emitter_id,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nuon"
version = "0.19.976"
version = "0.19.978"
description = "A client library for accessing Nuon"
authors = []
requires-python = ">=3.10"
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.19.976
0.19.978
Loading