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
15 changes: 15 additions & 0 deletions nuon/api/installs/get_app_installs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def _get_kwargs(
*,
q: str | Unset = UNSET,
labels: str | Unset = UNSET,
app_branch_id: str | Unset = UNSET,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
Expand All @@ -27,6 +28,8 @@ def _get_kwargs(

params["labels"] = labels

params["app_branch_id"] = app_branch_id

params["offset"] = offset

params["limit"] = limit
Expand Down Expand Up @@ -107,6 +110,7 @@ def sync_detailed(
client: AuthenticatedClient,
q: str | Unset = UNSET,
labels: str | Unset = UNSET,
app_branch_id: str | Unset = UNSET,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
Expand All @@ -119,6 +123,7 @@ def sync_detailed(
app_id (str):
q (str | Unset):
labels (str | Unset):
app_branch_id (str | Unset):
offset (int | Unset): Default: 0.
limit (int | Unset): Default: 10.
page (int | Unset): Default: 0.
Expand All @@ -135,6 +140,7 @@ def sync_detailed(
app_id=app_id,
q=q,
labels=labels,
app_branch_id=app_branch_id,
offset=offset,
limit=limit,
page=page,
Expand All @@ -153,6 +159,7 @@ def sync(
client: AuthenticatedClient,
q: str | Unset = UNSET,
labels: str | Unset = UNSET,
app_branch_id: str | Unset = UNSET,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
Expand All @@ -165,6 +172,7 @@ def sync(
app_id (str):
q (str | Unset):
labels (str | Unset):
app_branch_id (str | Unset):
offset (int | Unset): Default: 0.
limit (int | Unset): Default: 10.
page (int | Unset): Default: 0.
Expand All @@ -182,6 +190,7 @@ def sync(
client=client,
q=q,
labels=labels,
app_branch_id=app_branch_id,
offset=offset,
limit=limit,
page=page,
Expand All @@ -194,6 +203,7 @@ async def asyncio_detailed(
client: AuthenticatedClient,
q: str | Unset = UNSET,
labels: str | Unset = UNSET,
app_branch_id: str | Unset = UNSET,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
Expand All @@ -206,6 +216,7 @@ async def asyncio_detailed(
app_id (str):
q (str | Unset):
labels (str | Unset):
app_branch_id (str | Unset):
offset (int | Unset): Default: 0.
limit (int | Unset): Default: 10.
page (int | Unset): Default: 0.
Expand All @@ -222,6 +233,7 @@ async def asyncio_detailed(
app_id=app_id,
q=q,
labels=labels,
app_branch_id=app_branch_id,
offset=offset,
limit=limit,
page=page,
Expand All @@ -238,6 +250,7 @@ async def asyncio(
client: AuthenticatedClient,
q: str | Unset = UNSET,
labels: str | Unset = UNSET,
app_branch_id: str | Unset = UNSET,
offset: int | Unset = 0,
limit: int | Unset = 10,
page: int | Unset = 0,
Expand All @@ -250,6 +263,7 @@ async def asyncio(
app_id (str):
q (str | Unset):
labels (str | Unset):
app_branch_id (str | Unset):
offset (int | Unset): Default: 0.
limit (int | Unset): Default: 10.
page (int | Unset): Default: 0.
Expand All @@ -268,6 +282,7 @@ async def asyncio(
client=client,
q=q,
labels=labels,
app_branch_id=app_branch_id,
offset=offset,
limit=limit,
page=page,
Expand Down
18 changes: 18 additions & 0 deletions nuon/models/app_app_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

if TYPE_CHECKING:
from ..models.app_app_branch_config import AppAppBranchConfig
from ..models.app_app_branch_run import AppAppBranchRun
from ..models.app_queue import AppQueue
from ..models.app_workflow import AppWorkflow

Expand All @@ -26,6 +27,7 @@ class AppAppBranch:
created_at (str | Unset):
created_by_id (str | Unset):
id (str | Unset):
latest_run (AppAppBranchRun | Unset):
managed_by (str | Unset):
name (str | Unset):
org_id (str | Unset):
Expand All @@ -40,6 +42,7 @@ class AppAppBranch:
created_at: str | Unset = UNSET
created_by_id: str | Unset = UNSET
id: str | Unset = UNSET
latest_run: AppAppBranchRun | Unset = UNSET
managed_by: str | Unset = UNSET
name: str | Unset = UNSET
org_id: str | Unset = UNSET
Expand All @@ -65,6 +68,10 @@ def to_dict(self) -> dict[str, Any]:

id = self.id

latest_run: dict[str, Any] | Unset = UNSET
if not isinstance(self.latest_run, Unset):
latest_run = self.latest_run.to_dict()

managed_by = self.managed_by

name = self.name
Expand Down Expand Up @@ -99,6 +106,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["created_by_id"] = created_by_id
if id is not UNSET:
field_dict["id"] = id
if latest_run is not UNSET:
field_dict["latest_run"] = latest_run
if managed_by is not UNSET:
field_dict["managed_by"] = managed_by
if name is not UNSET:
Expand All @@ -119,6 +128,7 @@ def to_dict(self) -> dict[str, Any]:
@classmethod
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
from ..models.app_app_branch_config import AppAppBranchConfig
from ..models.app_app_branch_run import AppAppBranchRun
from ..models.app_queue import AppQueue
from ..models.app_workflow import AppWorkflow

Expand All @@ -140,6 +150,13 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

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

_latest_run = d.pop("latest_run", UNSET)
latest_run: AppAppBranchRun | Unset
if isinstance(_latest_run, Unset):
latest_run = UNSET
else:
latest_run = AppAppBranchRun.from_dict(_latest_run)

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

name = d.pop("name", UNSET)
Expand Down Expand Up @@ -172,6 +189,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
created_at=created_at,
created_by_id=created_by_id,
id=id,
latest_run=latest_run,
managed_by=managed_by,
name=name,
org_id=org_id,
Expand Down
9 changes: 9 additions & 0 deletions nuon/models/app_app_branch_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class AppAppBranchRun:
app_branch (AppAppBranch | Unset):
app_branch_config (AppAppBranchConfig | Unset):
app_config_id (str | Unset): AppConfigID is the app config that was created/synced during this run
awaiting_approval (bool | Unset):
base_branch (str | Unset):
commit_sha (str | Unset): CommitSHA is the VCS commit that triggered or is associated with this run
DEPRECATED: Use VCSConnectionCommit relationship instead
Expand Down Expand Up @@ -69,6 +70,7 @@ class AppAppBranchRun:
app_branch: AppAppBranch | Unset = UNSET
app_branch_config: AppAppBranchConfig | Unset = UNSET
app_config_id: str | Unset = UNSET
awaiting_approval: bool | Unset = UNSET
base_branch: str | Unset = UNSET
commit_sha: str | Unset = UNSET
completed_at: str | Unset = UNSET
Expand Down Expand Up @@ -111,6 +113,8 @@ def to_dict(self) -> dict[str, Any]:

app_config_id = self.app_config_id

awaiting_approval = self.awaiting_approval

base_branch = self.base_branch

commit_sha = self.commit_sha
Expand Down Expand Up @@ -194,6 +198,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["app_branch_config"] = app_branch_config
if app_config_id is not UNSET:
field_dict["app_config_id"] = app_config_id
if awaiting_approval is not UNSET:
field_dict["awaiting_approval"] = awaiting_approval
if base_branch is not UNSET:
field_dict["base_branch"] = base_branch
if commit_sha is not UNSET:
Expand Down Expand Up @@ -283,6 +289,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

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

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

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

commit_sha = d.pop("commit_sha", UNSET)
Expand Down Expand Up @@ -385,6 +393,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
app_branch=app_branch,
app_branch_config=app_branch_config,
app_config_id=app_config_id,
awaiting_approval=awaiting_approval,
base_branch=base_branch,
commit_sha=commit_sha,
completed_at=completed_at,
Expand Down
9 changes: 9 additions & 0 deletions nuon/models/app_component_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
class AppComponentBuild:
"""
Attributes:
app_branch_id (str | Unset):
app_branch_run_id (str | Unset):
build_runner_job_id (str | Unset):
checksum (str | Unset): checksum of our intermediate component config
Expand Down Expand Up @@ -86,6 +87,7 @@ class AppComponentBuild:
vcs_connection_commit (AppVCSConnectionCommit | Unset):
"""

app_branch_id: str | Unset = UNSET
app_branch_run_id: str | Unset = UNSET
build_runner_job_id: str | Unset = UNSET
checksum: str | Unset = UNSET
Expand Down Expand Up @@ -121,6 +123,8 @@ class AppComponentBuild:
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)

def to_dict(self) -> dict[str, Any]:
app_branch_id = self.app_branch_id

app_branch_run_id = self.app_branch_run_id

build_runner_job_id = self.build_runner_job_id
Expand Down Expand Up @@ -217,6 +221,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict: dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if app_branch_id is not UNSET:
field_dict["app_branch_id"] = app_branch_id
if app_branch_run_id is not UNSET:
field_dict["app_branch_run_id"] = app_branch_run_id
if build_runner_job_id is not UNSET:
Expand Down Expand Up @@ -298,6 +304,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
from ..models.app_vcs_connection_commit import AppVCSConnectionCommit

d = dict(src_dict)
app_branch_id = d.pop("app_branch_id", UNSET)

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

build_runner_job_id = d.pop("build_runner_job_id", UNSET)
Expand Down Expand Up @@ -419,6 +427,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
vcs_connection_commit = AppVCSConnectionCommit.from_dict(_vcs_connection_commit)

app_component_build = cls(
app_branch_id=app_branch_id,
app_branch_run_id=app_branch_run_id,
build_runner_job_id=build_runner_job_id,
checksum=checksum,
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.1105"
version = "0.19.1106"
description = "A client library for accessing Nuon"
authors = []
requires-python = ">=3.11"
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.19.1105
0.19.1106
Loading