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
16 changes: 16 additions & 0 deletions nuon/api/installs/update_install_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down
2 changes: 2 additions & 0 deletions nuon/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -790,6 +791,7 @@
"AppInstallInputs",
"AppInstallInputsRedactedValues",
"AppInstallInputsValues",
"AppInstallLifecycleStatus",
"AppInstallLinks",
"AppInstallMetadata",
"AppInstallRoles",
Expand Down
18 changes: 18 additions & 0 deletions nuon/models/app_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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,
Expand Down
47 changes: 47 additions & 0 deletions nuon/models/app_install_lifecycle_status.py
Original file line number Diff line number Diff line change
@@ -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
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.996"
version = "0.19.999"
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.996
0.19.999
Loading