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
2 changes: 0 additions & 2 deletions nuon/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
from .app_install_component_links import AppInstallComponentLinks
from .app_install_component_statuses import AppInstallComponentStatuses
from .app_install_config import AppInstallConfig
from .app_install_config_component_toggles import AppInstallConfigComponentToggles
from .app_install_config_update import AppInstallConfigUpdate
from .app_install_deploy import AppInstallDeploy
from .app_install_deploy_outputs import AppInstallDeployOutputs
Expand Down Expand Up @@ -824,7 +823,6 @@
"AppInstallComponentLinks",
"AppInstallComponentStatuses",
"AppInstallConfig",
"AppInstallConfigComponentToggles",
"AppInstallConfigUpdate",
"AppInstallDeploy",
"AppInstallDeployOutputs",
Expand Down
11 changes: 11 additions & 0 deletions nuon/models/app_install_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class AppInstallComponent:
created_at (str | Unset):
created_by_id (str | Unset):
drifted_object (AppDriftedObject | Unset):
enabled (bool | Unset): Enabled is the resolved enabled/disabled state for a toggleable component
on this install (from the synthetic enabled install input, falling back to
the component's default_enabled). It is nil for non-toggleable components.
helm_chart (AppHelmChart | Unset):
id (str | Unset):
install_deploys (list[AppInstallDeploy] | Unset):
Expand All @@ -47,6 +50,7 @@ class AppInstallComponent:
created_at: str | Unset = UNSET
created_by_id: str | Unset = UNSET
drifted_object: AppDriftedObject | Unset = UNSET
enabled: bool | Unset = UNSET
helm_chart: AppHelmChart | Unset = UNSET
id: str | Unset = UNSET
install_deploys: list[AppInstallDeploy] | Unset = UNSET
Expand Down Expand Up @@ -74,6 +78,8 @@ def to_dict(self) -> dict[str, Any]:
if not isinstance(self.drifted_object, Unset):
drifted_object = self.drifted_object.to_dict()

enabled = self.enabled

helm_chart: dict[str, Any] | Unset = UNSET
if not isinstance(self.helm_chart, Unset):
helm_chart = self.helm_chart.to_dict()
Expand Down Expand Up @@ -120,6 +126,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["created_by_id"] = created_by_id
if drifted_object is not UNSET:
field_dict["drifted_object"] = drifted_object
if enabled is not UNSET:
field_dict["enabled"] = enabled
if helm_chart is not UNSET:
field_dict["helm_chart"] = helm_chart
if id is not UNSET:
Expand Down Expand Up @@ -174,6 +182,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
else:
drifted_object = AppDriftedObject.from_dict(_drifted_object)

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

_helm_chart = d.pop("helm_chart", UNSET)
helm_chart: AppHelmChart | Unset
if isinstance(_helm_chart, Unset):
Expand Down Expand Up @@ -227,6 +237,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
created_at=created_at,
created_by_id=created_by_id,
drifted_object=drifted_object,
enabled=enabled,
helm_chart=helm_chart,
id=id,
install_deploys=install_deploys,
Expand Down
18 changes: 0 additions & 18 deletions nuon/models/app_install_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from ..types import UNSET, Unset

if TYPE_CHECKING:
from ..models.app_install_config_component_toggles import AppInstallConfigComponentToggles
from ..models.config_custom_nested_stack import ConfigCustomNestedStack
from ..models.github_com_nuonco_nuon_pkg_labels_labels import GithubComNuoncoNuonPkgLabelsLabels

Expand All @@ -23,7 +22,6 @@ class AppInstallConfig:
"""
Attributes:
approval_option (AppInstallApprovalOption | Unset):
component_toggles (AppInstallConfigComponentToggles | Unset):
created_at (str | Unset):
created_by_id (str | Unset):
custom_nested_stacks (list[ConfigCustomNestedStack] | Unset):
Expand All @@ -37,7 +35,6 @@ class AppInstallConfig:
"""

approval_option: AppInstallApprovalOption | Unset = UNSET
component_toggles: AppInstallConfigComponentToggles | Unset = UNSET
created_at: str | Unset = UNSET
created_by_id: str | Unset = UNSET
custom_nested_stacks: list[ConfigCustomNestedStack] | Unset = UNSET
Expand All @@ -55,10 +52,6 @@ def to_dict(self) -> dict[str, Any]:
if not isinstance(self.approval_option, Unset):
approval_option = self.approval_option.value

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

created_at = self.created_at

created_by_id = self.created_by_id
Expand Down Expand Up @@ -91,8 +84,6 @@ def to_dict(self) -> dict[str, Any]:
field_dict.update({})
if approval_option is not UNSET:
field_dict["approval_option"] = approval_option
if component_toggles is not UNSET:
field_dict["component_toggles"] = component_toggles
if created_at is not UNSET:
field_dict["created_at"] = created_at
if created_by_id is not UNSET:
Expand All @@ -118,7 +109,6 @@ def to_dict(self) -> dict[str, Any]:

@classmethod
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
from ..models.app_install_config_component_toggles import AppInstallConfigComponentToggles
from ..models.config_custom_nested_stack import ConfigCustomNestedStack
from ..models.github_com_nuonco_nuon_pkg_labels_labels import GithubComNuoncoNuonPkgLabelsLabels

Expand All @@ -130,13 +120,6 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
else:
approval_option = AppInstallApprovalOption(_approval_option)

_component_toggles = d.pop("component_toggles", UNSET)
component_toggles: AppInstallConfigComponentToggles | Unset
if isinstance(_component_toggles, Unset):
component_toggles = UNSET
else:
component_toggles = AppInstallConfigComponentToggles.from_dict(_component_toggles)

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

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

app_install_config = cls(
approval_option=approval_option,
component_toggles=component_toggles,
created_at=created_at,
created_by_id=created_by_id,
custom_nested_stacks=custom_nested_stacks,
Expand Down
47 changes: 0 additions & 47 deletions nuon/models/app_install_config_component_toggles.py

This file was deleted.

23 changes: 8 additions & 15 deletions nuon/models/service_toggle_install_component_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,26 @@
class ServiceToggleInstallComponentRequest:
"""
Attributes:
enabled (bool | Unset):
plan_only (bool | Unset):
enabled (bool):
role (str | Unset):
"""

enabled: bool | Unset = UNSET
plan_only: bool | Unset = UNSET
enabled: bool
role: str | Unset = UNSET
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)

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

plan_only = self.plan_only

role = self.role

field_dict: dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if enabled is not UNSET:
field_dict["enabled"] = enabled
if plan_only is not UNSET:
field_dict["plan_only"] = plan_only
field_dict.update(
{
"enabled": enabled,
}
)
if role is not UNSET:
field_dict["role"] = role

Expand All @@ -47,15 +43,12 @@ def to_dict(self) -> dict[str, Any]:
@classmethod
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
d = dict(src_dict)
enabled = d.pop("enabled", UNSET)

plan_only = d.pop("plan_only", UNSET)
enabled = d.pop("enabled")

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

service_toggle_install_component_request = cls(
enabled=enabled,
plan_only=plan_only,
role=role,
)

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.1015"
version = "0.19.1016"
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.1015
0.19.1016
Loading