From 356595666ef58827d8602e8bc4e1284126afa819 Mon Sep 17 00:00:00 2001 From: nuonbot Date: Wed, 5 Aug 2026 10:15:08 +0000 Subject: [PATCH] ci: generate from api 0.19.1106 --- nuon/api/installs/get_app_installs.py | 15 +++++++++++++++ nuon/models/app_app_branch.py | 18 ++++++++++++++++++ nuon/models/app_app_branch_run.py | 9 +++++++++ nuon/models/app_component_build.py | 9 +++++++++ pyproject.toml | 2 +- version.txt | 2 +- 6 files changed, 53 insertions(+), 2 deletions(-) diff --git a/nuon/api/installs/get_app_installs.py b/nuon/api/installs/get_app_installs.py index 04f6f7ea..929c2076 100644 --- a/nuon/api/installs/get_app_installs.py +++ b/nuon/api/installs/get_app_installs.py @@ -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, @@ -27,6 +28,8 @@ def _get_kwargs( params["labels"] = labels + params["app_branch_id"] = app_branch_id + params["offset"] = offset params["limit"] = limit @@ -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, @@ -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. @@ -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, @@ -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, @@ -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. @@ -182,6 +190,7 @@ def sync( client=client, q=q, labels=labels, + app_branch_id=app_branch_id, offset=offset, limit=limit, page=page, @@ -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, @@ -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. @@ -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, @@ -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, @@ -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. @@ -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, diff --git a/nuon/models/app_app_branch.py b/nuon/models/app_app_branch.py index d4acb571..8a29e610 100644 --- a/nuon/models/app_app_branch.py +++ b/nuon/models/app_app_branch.py @@ -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 @@ -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): @@ -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 @@ -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 @@ -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: @@ -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 @@ -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) @@ -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, diff --git a/nuon/models/app_app_branch_run.py b/nuon/models/app_app_branch_run.py index 6fcc9102..05a5c913 100644 --- a/nuon/models/app_app_branch_run.py +++ b/nuon/models/app_app_branch_run.py @@ -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 @@ -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 @@ -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 @@ -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: @@ -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) @@ -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, diff --git a/nuon/models/app_component_build.py b/nuon/models/app_component_build.py index 08653c38..fe97a1ac 100644 --- a/nuon/models/app_component_build.py +++ b/nuon/models/app_component_build.py @@ -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 @@ -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 @@ -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 @@ -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: @@ -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) @@ -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, diff --git a/pyproject.toml b/pyproject.toml index 5e3997aa..afa9537a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/version.txt b/version.txt index eaee6345..cbd87176 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.19.1105 +0.19.1106