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
19 changes: 19 additions & 0 deletions nuon/models/app_app_runner_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class AppAppRunnerConfig:
instance_type (str | Unset): InstanceType is the cloud machine/instance type for the install runner host, mapped
per cloud platform.
org_id (str | Unset):
public_api_url (str | Unset): PublicAPIURL overrides the Nuon public API endpoint used for phone-home callbacks.
runner_api_url (str | Unset): RunnerAPIURL overrides the Nuon runner API endpoint for installs using this
config.
updated_at (str | Unset):
"""

Expand All @@ -50,6 +53,8 @@ class AppAppRunnerConfig:
init_script: str | Unset = UNSET
instance_type: str | Unset = UNSET
org_id: str | Unset = UNSET
public_api_url: str | Unset = UNSET
runner_api_url: str | Unset = UNSET
updated_at: str | Unset = UNSET
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)

Expand Down Expand Up @@ -84,6 +89,10 @@ def to_dict(self) -> dict[str, Any]:

org_id = self.org_id

public_api_url = self.public_api_url

runner_api_url = self.runner_api_url

updated_at = self.updated_at

field_dict: dict[str, Any] = {}
Expand Down Expand Up @@ -113,6 +122,10 @@ def to_dict(self) -> dict[str, Any]:
field_dict["instance_type"] = instance_type
if org_id is not UNSET:
field_dict["org_id"] = org_id
if public_api_url is not UNSET:
field_dict["public_api_url"] = public_api_url
if runner_api_url is not UNSET:
field_dict["runner_api_url"] = runner_api_url
if updated_at is not UNSET:
field_dict["updated_at"] = updated_at

Expand Down Expand Up @@ -162,6 +175,10 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

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

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

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

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

app_app_runner_config = cls(
Expand All @@ -177,6 +194,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
init_script=init_script,
instance_type=instance_type,
org_id=org_id,
public_api_url=public_api_url,
runner_api_url=runner_api_url,
updated_at=updated_at,
)

Expand Down
18 changes: 18 additions & 0 deletions nuon/models/service_create_app_runner_config_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class ServiceCreateAppRunnerConfigRequest:
helm_driver (AppAppRunnerConfigHelmDriverType | Unset):
init_script_url (str | Unset):
instance_type (str | Unset):
public_api_url (str | Unset):
runner_api_url (str | Unset):
"""

type_: AppAppRunnerType
Expand All @@ -35,6 +37,8 @@ class ServiceCreateAppRunnerConfigRequest:
helm_driver: AppAppRunnerConfigHelmDriverType | Unset = UNSET
init_script_url: str | Unset = UNSET
instance_type: str | Unset = UNSET
public_api_url: str | Unset = UNSET
runner_api_url: str | Unset = UNSET
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)

def to_dict(self) -> dict[str, Any]:
Expand All @@ -54,6 +58,10 @@ def to_dict(self) -> dict[str, Any]:

instance_type = self.instance_type

public_api_url = self.public_api_url

runner_api_url = self.runner_api_url

field_dict: dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update(
Expand All @@ -71,6 +79,10 @@ def to_dict(self) -> dict[str, Any]:
field_dict["init_script_url"] = init_script_url
if instance_type is not UNSET:
field_dict["instance_type"] = instance_type
if public_api_url is not UNSET:
field_dict["public_api_url"] = public_api_url
if runner_api_url is not UNSET:
field_dict["runner_api_url"] = runner_api_url

return field_dict

Expand Down Expand Up @@ -103,13 +115,19 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

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

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

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

service_create_app_runner_config_request = cls(
type_=type_,
app_config_id=app_config_id,
env_vars=env_vars,
helm_driver=helm_driver,
init_script_url=init_script_url,
instance_type=instance_type,
public_api_url=public_api_url,
runner_api_url=runner_api_url,
)

service_create_app_runner_config_request.additional_properties = d
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.1025"
version = "0.19.1029"
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.1025
0.19.1029
Loading