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
10 changes: 10 additions & 0 deletions nuon/models/service_create_install_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class ServiceCreateInstallRequest:
creation time.
They are merged into the install's existing labels (which is empty for a brand-new install).
metadata (HelpersInstallMetadata | Unset):
stack_only (bool | Unset): StackOnly provisions the install stack and runner, then stops. The sandbox
and components stay unprovisioned until the install is provisioned again.
"""

name: str
Expand All @@ -45,6 +47,7 @@ class ServiceCreateInstallRequest:
install_config: HelpersCreateInstallConfigParams | Unset = UNSET
labels: ServiceCreateInstallRequestLabels | Unset = UNSET
metadata: HelpersInstallMetadata | Unset = UNSET
stack_only: bool | Unset = UNSET
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)

def to_dict(self) -> dict[str, Any]:
Expand Down Expand Up @@ -78,6 +81,8 @@ def to_dict(self) -> dict[str, Any]:
if not isinstance(self.metadata, Unset):
metadata = self.metadata.to_dict()

stack_only = self.stack_only

field_dict: dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update(
Expand All @@ -99,6 +104,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["labels"] = labels
if metadata is not UNSET:
field_dict["metadata"] = metadata
if stack_only is not UNSET:
field_dict["stack_only"] = stack_only

return field_dict

Expand Down Expand Up @@ -164,6 +171,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
else:
metadata = HelpersInstallMetadata.from_dict(_metadata)

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

service_create_install_request = cls(
name=name,
aws_account=aws_account,
Expand All @@ -173,6 +182,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
install_config=install_config,
labels=labels,
metadata=metadata,
stack_only=stack_only,
)

service_create_install_request.additional_properties = d
Expand Down
10 changes: 10 additions & 0 deletions nuon/models/service_create_install_v2_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class ServiceCreateInstallV2Request:
creation time.
They are merged into the install's existing labels (which is empty for a brand-new install).
metadata (HelpersInstallMetadata | Unset):
stack_only (bool | Unset): StackOnly provisions the install stack and runner, then stops. The sandbox
and components stay unprovisioned until the install is provisioned again.
"""

app_id: str
Expand All @@ -47,6 +49,7 @@ class ServiceCreateInstallV2Request:
install_config: HelpersCreateInstallConfigParams | Unset = UNSET
labels: ServiceCreateInstallV2RequestLabels | Unset = UNSET
metadata: HelpersInstallMetadata | Unset = UNSET
stack_only: bool | Unset = UNSET
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)

def to_dict(self) -> dict[str, Any]:
Expand Down Expand Up @@ -82,6 +85,8 @@ def to_dict(self) -> dict[str, Any]:
if not isinstance(self.metadata, Unset):
metadata = self.metadata.to_dict()

stack_only = self.stack_only

field_dict: dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update(
Expand All @@ -104,6 +109,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["labels"] = labels
if metadata is not UNSET:
field_dict["metadata"] = metadata
if stack_only is not UNSET:
field_dict["stack_only"] = stack_only

return field_dict

Expand Down Expand Up @@ -171,6 +178,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
else:
metadata = HelpersInstallMetadata.from_dict(_metadata)

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

service_create_install_v2_request = cls(
app_id=app_id,
name=name,
Expand All @@ -181,6 +190,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
install_config=install_config,
labels=labels,
metadata=metadata,
stack_only=stack_only,
)

service_create_install_v2_request.additional_properties = d
Expand Down
10 changes: 10 additions & 0 deletions nuon/models/service_update_install_inputs_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ class ServiceUpdateInstallInputsRequest:
Attributes:
inputs (ServiceUpdateInstallInputsRequestInputs):
deploy_dependents (bool | None | Unset):
inputs_only (bool | Unset): InputsOnly saves the new input values without deploying components,
reprovisioning the sandbox, or running update-input lifecycle actions.
role (str | Unset):
"""

inputs: ServiceUpdateInstallInputsRequestInputs
deploy_dependents: bool | None | Unset = UNSET
inputs_only: bool | Unset = UNSET
role: str | Unset = UNSET
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)

Expand All @@ -38,6 +41,8 @@ def to_dict(self) -> dict[str, Any]:
else:
deploy_dependents = self.deploy_dependents

inputs_only = self.inputs_only

role = self.role

field_dict: dict[str, Any] = {}
Expand All @@ -49,6 +54,8 @@ def to_dict(self) -> dict[str, Any]:
)
if deploy_dependents is not UNSET:
field_dict["deploy_dependents"] = deploy_dependents
if inputs_only is not UNSET:
field_dict["inputs_only"] = inputs_only
if role is not UNSET:
field_dict["role"] = role

Expand All @@ -70,11 +77,14 @@ def _parse_deploy_dependents(data: object) -> bool | None | Unset:

deploy_dependents = _parse_deploy_dependents(d.pop("deploy_dependents", UNSET))

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

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

service_update_install_inputs_request = cls(
inputs=inputs,
deploy_dependents=deploy_dependents,
inputs_only=inputs_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.1123"
version = "0.19.1125"
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.1123
0.19.1125
Loading