From 69f910d0169c8fa6827307a27e6b794bbb187572 Mon Sep 17 00:00:00 2001 From: nuonbot Date: Thu, 4 Jun 2026 20:54:24 +0000 Subject: [PATCH] ci: generate from api 0.19.999 --- nuon/api/installs/update_install_inputs.py | 16 +++++++ nuon/models/__init__.py | 2 + nuon/models/app_install.py | 18 ++++++++ nuon/models/app_install_lifecycle_status.py | 47 +++++++++++++++++++++ pyproject.toml | 2 +- version.txt | 2 +- 6 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 nuon/models/app_install_lifecycle_status.py diff --git a/nuon/api/installs/update_install_inputs.py b/nuon/api/installs/update_install_inputs.py index 38652e42..ef479be1 100644 --- a/nuon/api/installs/update_install_inputs.py +++ b/nuon/api/installs/update_install_inputs.py @@ -94,6 +94,10 @@ def sync_detailed( Update input values for an install. + This endpoint accepts a partial subset of inputs and merges them with the install's existing + inputs, so callers only need to send the inputs they want to change. Inputs sourced from the + `install_stack` (customer source) are managed by the install stack and are rejected if supplied. + Args: install_id (str): body (ServiceUpdateInstallInputsRequest): @@ -128,6 +132,10 @@ def sync( Update input values for an install. + This endpoint accepts a partial subset of inputs and merges them with the install's existing + inputs, so callers only need to send the inputs they want to change. Inputs sourced from the + `install_stack` (customer source) are managed by the install stack and are rejected if supplied. + Args: install_id (str): body (ServiceUpdateInstallInputsRequest): @@ -157,6 +165,10 @@ async def asyncio_detailed( Update input values for an install. + This endpoint accepts a partial subset of inputs and merges them with the install's existing + inputs, so callers only need to send the inputs they want to change. Inputs sourced from the + `install_stack` (customer source) are managed by the install stack and are rejected if supplied. + Args: install_id (str): body (ServiceUpdateInstallInputsRequest): @@ -189,6 +201,10 @@ async def asyncio( Update input values for an install. + This endpoint accepts a partial subset of inputs and merges them with the install's existing + inputs, so callers only need to send the inputs they want to change. Inputs sourced from the + `install_stack` (customer source) are managed by the install stack and are rejected if supplied. + Args: install_id (str): body (ServiceUpdateInstallInputsRequest): diff --git a/nuon/models/__init__.py b/nuon/models/__init__.py index a7bce052..318bd652 100644 --- a/nuon/models/__init__.py +++ b/nuon/models/__init__.py @@ -109,6 +109,7 @@ from .app_install_inputs import AppInstallInputs from .app_install_inputs_redacted_values import AppInstallInputsRedactedValues from .app_install_inputs_values import AppInstallInputsValues +from .app_install_lifecycle_status import AppInstallLifecycleStatus from .app_install_links import AppInstallLinks from .app_install_metadata import AppInstallMetadata from .app_install_role_selection_record import AppInstallRoleSelectionRecord @@ -790,6 +791,7 @@ "AppInstallInputs", "AppInstallInputsRedactedValues", "AppInstallInputsValues", + "AppInstallLifecycleStatus", "AppInstallLinks", "AppInstallMetadata", "AppInstallRoles", diff --git a/nuon/models/app_install.py b/nuon/models/app_install.py index c05afc58..129a4870 100644 --- a/nuon/models/app_install.py +++ b/nuon/models/app_install.py @@ -21,6 +21,7 @@ from ..models.app_install_config import AppInstallConfig from ..models.app_install_event import AppInstallEvent from ..models.app_install_inputs import AppInstallInputs + from ..models.app_install_lifecycle_status import AppInstallLifecycleStatus from ..models.app_install_links import AppInstallLinks from ..models.app_install_metadata import AppInstallMetadata from ..models.app_install_roles import AppInstallRoles @@ -68,6 +69,7 @@ class AppInstall: install_stack (AppInstallStack | Unset): install_states (list[AppInstallState] | Unset): labels (GithubComNuoncoNuonPkgLabelsLabels | Unset): + lifecycle_status (AppInstallLifecycleStatus | Unset): links (AppInstallLinks | Unset): metadata (AppInstallMetadata | Unset): name (str | Unset): @@ -113,6 +115,7 @@ class AppInstall: install_stack: AppInstallStack | Unset = UNSET install_states: list[AppInstallState] | Unset = UNSET labels: GithubComNuoncoNuonPkgLabelsLabels | Unset = UNSET + lifecycle_status: AppInstallLifecycleStatus | Unset = UNSET links: AppInstallLinks | Unset = UNSET metadata: AppInstallMetadata | Unset = UNSET name: str | Unset = UNSET @@ -243,6 +246,10 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.labels, Unset): labels = self.labels.to_dict() + lifecycle_status: dict[str, Any] | Unset = UNSET + if not isinstance(self.lifecycle_status, Unset): + lifecycle_status = self.lifecycle_status.to_dict() + links: dict[str, Any] | Unset = UNSET if not isinstance(self.links, Unset): links = self.links.to_dict() @@ -350,6 +357,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["install_states"] = install_states if labels is not UNSET: field_dict["labels"] = labels + if lifecycle_status is not UNSET: + field_dict["lifecycle_status"] = lifecycle_status if links is not UNSET: field_dict["links"] = links if metadata is not UNSET: @@ -401,6 +410,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: from ..models.app_install_config import AppInstallConfig from ..models.app_install_event import AppInstallEvent from ..models.app_install_inputs import AppInstallInputs + from ..models.app_install_lifecycle_status import AppInstallLifecycleStatus from ..models.app_install_links import AppInstallLinks from ..models.app_install_metadata import AppInstallMetadata from ..models.app_install_roles import AppInstallRoles @@ -567,6 +577,13 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: else: labels = GithubComNuoncoNuonPkgLabelsLabels.from_dict(_labels) + _lifecycle_status = d.pop("lifecycle_status", UNSET) + lifecycle_status: AppInstallLifecycleStatus | Unset + if isinstance(_lifecycle_status, Unset): + lifecycle_status = UNSET + else: + lifecycle_status = AppInstallLifecycleStatus.from_dict(_lifecycle_status) + _links = d.pop("links", UNSET) links: AppInstallLinks | Unset if isinstance(_links, Unset): @@ -662,6 +679,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: install_stack=install_stack, install_states=install_states, labels=labels, + lifecycle_status=lifecycle_status, links=links, metadata=metadata, name=name, diff --git a/nuon/models/app_install_lifecycle_status.py b/nuon/models/app_install_lifecycle_status.py new file mode 100644 index 00000000..5a86da37 --- /dev/null +++ b/nuon/models/app_install_lifecycle_status.py @@ -0,0 +1,47 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar("T", bound="AppInstallLifecycleStatus") + + +@_attrs_define +class AppInstallLifecycleStatus: + """ """ + + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + + return field_dict + + @classmethod + def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + d = dict(src_dict) + app_install_lifecycle_status = cls() + + app_install_lifecycle_status.additional_properties = d + return app_install_lifecycle_status + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/pyproject.toml b/pyproject.toml index 75042d2f..cb4b6a71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nuon" -version = "0.19.996" +version = "0.19.999" description = "A client library for accessing Nuon" authors = [] requires-python = ">=3.11" diff --git a/version.txt b/version.txt index e4c4ac8d..d0c4e21e 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.19.996 +0.19.999