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
11 changes: 11 additions & 0 deletions nuon/models/app_component_config_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class AppComponentConfigConnection:
health_block_deploy (bool | None | Unset):
health_enabled (bool | None | Unset):
health_probes (list[AppComponentHealthProbe] | Unset):
health_required_checks (list[str] | Unset):
health_stabilization_window (str | Unset): Duration string for how long health must hold after a deploy applies
(e.g., "3m"). Max 1h.
helm (AppHelmComponentConfig | Unset):
Expand Down Expand Up @@ -90,6 +91,7 @@ class AppComponentConfigConnection:
health_block_deploy: bool | None | Unset = UNSET
health_enabled: bool | None | Unset = UNSET
health_probes: list[AppComponentHealthProbe] | Unset = UNSET
health_required_checks: list[str] | Unset = UNSET
health_stabilization_window: str | Unset = UNSET
helm: AppHelmComponentConfig | Unset = UNSET
id: str | Unset = UNSET
Expand Down Expand Up @@ -166,6 +168,10 @@ def to_dict(self) -> dict[str, Any]:
health_probes_item = health_probes_item_data.to_dict()
health_probes.append(health_probes_item)

health_required_checks: list[str] | Unset = UNSET
if not isinstance(self.health_required_checks, Unset):
health_required_checks = self.health_required_checks

health_stabilization_window = self.health_stabilization_window

helm: dict[str, Any] | Unset = UNSET
Expand Down Expand Up @@ -262,6 +268,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["health_enabled"] = health_enabled
if health_probes is not UNSET:
field_dict["health_probes"] = health_probes
if health_required_checks is not UNSET:
field_dict["health_required_checks"] = health_required_checks
if health_stabilization_window is not UNSET:
field_dict["health_stabilization_window"] = health_stabilization_window
if helm is not UNSET:
Expand Down Expand Up @@ -382,6 +390,8 @@ def _parse_health_enabled(data: object) -> bool | None | Unset:

health_probes.append(health_probes_item)

health_required_checks = cast(list[str], d.pop("health_required_checks", UNSET))

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

_helm = d.pop("helm", UNSET)
Expand Down Expand Up @@ -479,6 +489,7 @@ def _parse_health_enabled(data: object) -> bool | None | Unset:
health_block_deploy=health_block_deploy,
health_enabled=health_enabled,
health_probes=health_probes,
health_required_checks=health_required_checks,
health_stabilization_window=health_stabilization_window,
helm=helm,
id=id,
Expand Down
11 changes: 11 additions & 0 deletions nuon/models/service_create_helm_component_config_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class ServiceCreateHelmComponentConfigRequest:
health_block_deploy (bool | None | Unset):
health_enabled (bool | None | Unset):
health_probes (list[ServiceHealthProbeRequest] | Unset):
health_required_checks (list[str] | Unset):
health_stabilization_window (str | Unset): Duration string for the health stabilization window (e.g., "3m")
helm_repo_config (ServiceHelmRepoConfigRequest | Unset):
kubernetes_context (str | Unset):
Expand Down Expand Up @@ -72,6 +73,7 @@ class ServiceCreateHelmComponentConfigRequest:
health_block_deploy: bool | None | Unset = UNSET
health_enabled: bool | None | Unset = UNSET
health_probes: list[ServiceHealthProbeRequest] | Unset = UNSET
health_required_checks: list[str] | Unset = UNSET
health_stabilization_window: str | Unset = UNSET
helm_repo_config: ServiceHelmRepoConfigRequest | Unset = UNSET
kubernetes_context: str | Unset = UNSET
Expand Down Expand Up @@ -134,6 +136,10 @@ def to_dict(self) -> dict[str, Any]:
health_probes_item = health_probes_item_data.to_dict()
health_probes.append(health_probes_item)

health_required_checks: list[str] | Unset = UNSET
if not isinstance(self.health_required_checks, Unset):
health_required_checks = self.health_required_checks

health_stabilization_window = self.health_stabilization_window

helm_repo_config: dict[str, Any] | Unset = UNSET
Expand Down Expand Up @@ -204,6 +210,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["health_enabled"] = health_enabled
if health_probes is not UNSET:
field_dict["health_probes"] = health_probes
if health_required_checks is not UNSET:
field_dict["health_required_checks"] = health_required_checks
if health_stabilization_window is not UNSET:
field_dict["health_stabilization_window"] = health_stabilization_window
if helm_repo_config is not UNSET:
Expand Down Expand Up @@ -303,6 +311,8 @@ def _parse_health_enabled(data: object) -> bool | None | Unset:

health_probes.append(health_probes_item)

health_required_checks = cast(list[str], d.pop("health_required_checks", UNSET))

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

_helm_repo_config = d.pop("helm_repo_config", UNSET)
Expand Down Expand Up @@ -361,6 +371,7 @@ def _parse_health_enabled(data: object) -> bool | None | Unset:
health_block_deploy=health_block_deploy,
health_enabled=health_enabled,
health_probes=health_probes,
health_required_checks=health_required_checks,
health_stabilization_window=health_stabilization_window,
helm_repo_config=helm_repo_config,
kubernetes_context=kubernetes_context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class ServiceCreateKubernetesManifestComponentConfigRequest:
health_block_deploy (bool | None | Unset):
health_enabled (bool | None | Unset):
health_probes (list[ServiceHealthProbeRequest] | Unset):
health_required_checks (list[str] | Unset):
health_stabilization_window (str | Unset): Duration string for the health stabilization window (e.g., "3m")
kubernetes_context (str | Unset):
kustomize (ServiceKustomizeConfigRequest | Unset):
Expand All @@ -62,6 +63,7 @@ class ServiceCreateKubernetesManifestComponentConfigRequest:
health_block_deploy: bool | None | Unset = UNSET
health_enabled: bool | None | Unset = UNSET
health_probes: list[ServiceHealthProbeRequest] | Unset = UNSET
health_required_checks: list[str] | Unset = UNSET
health_stabilization_window: str | Unset = UNSET
kubernetes_context: str | Unset = UNSET
kustomize: ServiceKustomizeConfigRequest | Unset = UNSET
Expand Down Expand Up @@ -117,6 +119,10 @@ def to_dict(self) -> dict[str, Any]:
health_probes_item = health_probes_item_data.to_dict()
health_probes.append(health_probes_item)

health_required_checks: list[str] | Unset = UNSET
if not isinstance(self.health_required_checks, Unset):
health_required_checks = self.health_required_checks

health_stabilization_window = self.health_stabilization_window

kubernetes_context = self.kubernetes_context
Expand Down Expand Up @@ -174,6 +180,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["health_enabled"] = health_enabled
if health_probes is not UNSET:
field_dict["health_probes"] = health_probes
if health_required_checks is not UNSET:
field_dict["health_required_checks"] = health_required_checks
if health_stabilization_window is not UNSET:
field_dict["health_stabilization_window"] = health_stabilization_window
if kubernetes_context is not UNSET:
Expand Down Expand Up @@ -260,6 +268,8 @@ def _parse_health_enabled(data: object) -> bool | None | Unset:

health_probes.append(health_probes_item)

health_required_checks = cast(list[str], d.pop("health_required_checks", UNSET))

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

kubernetes_context = d.pop("kubernetes_context", UNSET)
Expand Down Expand Up @@ -312,6 +322,7 @@ def _parse_health_enabled(data: object) -> bool | None | Unset:
health_block_deploy=health_block_deploy,
health_enabled=health_enabled,
health_probes=health_probes,
health_required_checks=health_required_checks,
health_stabilization_window=health_stabilization_window,
kubernetes_context=kubernetes_context,
kustomize=kustomize,
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.1098"
version = "0.19.1099"
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.1098
0.19.1099
Loading