diff --git a/nuon/api/installs/get_install_components_summary.py b/nuon/api/installs/get_install_components_summary.py deleted file mode 100644 index 8ec802a3..00000000 --- a/nuon/api/installs/get_install_components_summary.py +++ /dev/null @@ -1,263 +0,0 @@ -from http import HTTPStatus -from typing import Any - -import httpx - -from ... import errors -from ...client import AuthenticatedClient, Client -from ...models.app_install_component_summary import AppInstallComponentSummary -from ...models.stderr_err_response import StderrErrResponse -from ...types import UNSET, Response, Unset - - -def _get_kwargs( - install_id: str, - *, - types: str | Unset = UNSET, - offset: int | Unset = 0, - limit: int | Unset = 10, - page: int | Unset = 0, - q: str | Unset = UNSET, -) -> dict[str, Any]: - params: dict[str, Any] = {} - - params["types"] = types - - params["offset"] = offset - - params["limit"] = limit - - params["page"] = page - - params["q"] = q - - params = {k: v for k, v in params.items() if v is not UNSET and v is not None} - - _kwargs: dict[str, Any] = { - "method": "get", - "url": f"/v1/installs/{install_id}/components/summary", - "params": params, - } - - return _kwargs - - -def _parse_response( - *, client: AuthenticatedClient | Client, response: httpx.Response -) -> StderrErrResponse | list[AppInstallComponentSummary] | None: - if response.status_code == 200: - response_200 = [] - _response_200 = response.json() - for response_200_item_data in _response_200: - response_200_item = AppInstallComponentSummary.from_dict(response_200_item_data) - - response_200.append(response_200_item) - - return response_200 - - if response.status_code == 400: - response_400 = StderrErrResponse.from_dict(response.json()) - - return response_400 - - if response.status_code == 401: - response_401 = StderrErrResponse.from_dict(response.json()) - - return response_401 - - if response.status_code == 403: - response_403 = StderrErrResponse.from_dict(response.json()) - - return response_403 - - if response.status_code == 404: - response_404 = StderrErrResponse.from_dict(response.json()) - - return response_404 - - if response.status_code == 500: - response_500 = StderrErrResponse.from_dict(response.json()) - - return response_500 - - if client.raise_on_unexpected_status: - raise errors.UnexpectedStatus(response.status_code, response.content) - else: - return None - - -def _build_response( - *, client: AuthenticatedClient | Client, response: httpx.Response -) -> Response[StderrErrResponse | list[AppInstallComponentSummary]]: - return Response( - status_code=HTTPStatus(response.status_code), - content=response.content, - headers=response.headers, - parsed=_parse_response(client=client, response=response), - ) - - -def sync_detailed( - install_id: str, - *, - client: AuthenticatedClient, - types: str | Unset = UNSET, - offset: int | Unset = 0, - limit: int | Unset = 10, - page: int | Unset = 0, - q: str | Unset = UNSET, -) -> Response[StderrErrResponse | list[AppInstallComponentSummary]]: - """get an installs components summary - - Args: - install_id (str): - types (str | Unset): - offset (int | Unset): Default: 0. - limit (int | Unset): Default: 10. - page (int | Unset): Default: 0. - q (str | Unset): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[StderrErrResponse | list[AppInstallComponentSummary]] - """ - - kwargs = _get_kwargs( - install_id=install_id, - types=types, - offset=offset, - limit=limit, - page=page, - q=q, - ) - - response = client.get_httpx_client().request( - **kwargs, - ) - - return _build_response(client=client, response=response) - - -def sync( - install_id: str, - *, - client: AuthenticatedClient, - types: str | Unset = UNSET, - offset: int | Unset = 0, - limit: int | Unset = 10, - page: int | Unset = 0, - q: str | Unset = UNSET, -) -> StderrErrResponse | list[AppInstallComponentSummary] | None: - """get an installs components summary - - Args: - install_id (str): - types (str | Unset): - offset (int | Unset): Default: 0. - limit (int | Unset): Default: 10. - page (int | Unset): Default: 0. - q (str | Unset): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - StderrErrResponse | list[AppInstallComponentSummary] - """ - - return sync_detailed( - install_id=install_id, - client=client, - types=types, - offset=offset, - limit=limit, - page=page, - q=q, - ).parsed - - -async def asyncio_detailed( - install_id: str, - *, - client: AuthenticatedClient, - types: str | Unset = UNSET, - offset: int | Unset = 0, - limit: int | Unset = 10, - page: int | Unset = 0, - q: str | Unset = UNSET, -) -> Response[StderrErrResponse | list[AppInstallComponentSummary]]: - """get an installs components summary - - Args: - install_id (str): - types (str | Unset): - offset (int | Unset): Default: 0. - limit (int | Unset): Default: 10. - page (int | Unset): Default: 0. - q (str | Unset): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - Response[StderrErrResponse | list[AppInstallComponentSummary]] - """ - - kwargs = _get_kwargs( - install_id=install_id, - types=types, - offset=offset, - limit=limit, - page=page, - q=q, - ) - - response = await client.get_async_httpx_client().request(**kwargs) - - return _build_response(client=client, response=response) - - -async def asyncio( - install_id: str, - *, - client: AuthenticatedClient, - types: str | Unset = UNSET, - offset: int | Unset = 0, - limit: int | Unset = 10, - page: int | Unset = 0, - q: str | Unset = UNSET, -) -> StderrErrResponse | list[AppInstallComponentSummary] | None: - """get an installs components summary - - Args: - install_id (str): - types (str | Unset): - offset (int | Unset): Default: 0. - limit (int | Unset): Default: 10. - page (int | Unset): Default: 0. - q (str | Unset): - - Raises: - errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. - httpx.TimeoutException: If the request takes longer than Client.timeout. - - Returns: - StderrErrResponse | list[AppInstallComponentSummary] - """ - - return ( - await asyncio_detailed( - install_id=install_id, - client=client, - types=types, - offset=offset, - limit=limit, - page=page, - q=q, - ) - ).parsed diff --git a/nuon/models/__init__.py b/nuon/models/__init__.py index ff2b2385..f522aded 100644 --- a/nuon/models/__init__.py +++ b/nuon/models/__init__.py @@ -46,7 +46,6 @@ from .app_cloud_platform_region import AppCloudPlatformRegion from .app_component import AppComponent from .app_component_build import AppComponentBuild -from .app_component_build_status import AppComponentBuildStatus from .app_component_config_connection import AppComponentConfigConnection from .app_component_links import AppComponentLinks from .app_component_release import AppComponentRelease @@ -78,11 +77,9 @@ from .app_install_component import AppInstallComponent from .app_install_component_links import AppInstallComponentLinks from .app_install_component_statuses import AppInstallComponentStatuses -from .app_install_component_summary import AppInstallComponentSummary from .app_install_config import AppInstallConfig from .app_install_deploy import AppInstallDeploy from .app_install_deploy_outputs import AppInstallDeployOutputs -from .app_install_deploy_status import AppInstallDeployStatus from .app_install_deploy_type import AppInstallDeployType from .app_install_event import AppInstallEvent from .app_install_event_payload import AppInstallEventPayload @@ -141,6 +138,7 @@ from .app_runner_heart_beat import AppRunnerHeartBeat from .app_runner_job import AppRunnerJob from .app_runner_job_execution import AppRunnerJobExecution +from .app_runner_job_execution_metadata import AppRunnerJobExecutionMetadata from .app_runner_job_execution_outputs import AppRunnerJobExecutionOutputs from .app_runner_job_execution_outputs_outputs import AppRunnerJobExecutionOutputsOutputs from .app_runner_job_execution_outputs_outputs_additional_property import ( @@ -491,7 +489,6 @@ "AppCloudPlatformRegion", "AppComponent", "AppComponentBuild", - "AppComponentBuildStatus", "AppComponentConfigConnection", "AppComponentLinks", "AppComponentRelease", @@ -523,11 +520,9 @@ "AppInstallComponent", "AppInstallComponentLinks", "AppInstallComponentStatuses", - "AppInstallComponentSummary", "AppInstallConfig", "AppInstallDeploy", "AppInstallDeployOutputs", - "AppInstallDeployStatus", "AppInstallDeployType", "AppInstaller", "AppInstallerMetadata", @@ -586,6 +581,7 @@ "AppRunnerHeartBeat", "AppRunnerJob", "AppRunnerJobExecution", + "AppRunnerJobExecutionMetadata", "AppRunnerJobExecutionOutputs", "AppRunnerJobExecutionOutputsOutputs", "AppRunnerJobExecutionOutputsOutputsAdditionalProperty", diff --git a/nuon/models/app_component_build_status.py b/nuon/models/app_component_build_status.py deleted file mode 100644 index 59bef120..00000000 --- a/nuon/models/app_component_build_status.py +++ /dev/null @@ -1,12 +0,0 @@ -from enum import Enum - - -class AppComponentBuildStatus(str, Enum): - ACTIVE = "active" - BUILDING = "building" - DELETING = "deleting" - ERROR = "error" - PLANNING = "planning" - - def __str__(self) -> str: - return str(self.value) diff --git a/nuon/models/app_install_component_summary.py b/nuon/models/app_install_component_summary.py deleted file mode 100644 index 73b70ec7..00000000 --- a/nuon/models/app_install_component_summary.py +++ /dev/null @@ -1,185 +0,0 @@ -from __future__ import annotations - -from collections.abc import Mapping -from typing import TYPE_CHECKING, Any, TypeVar - -from attrs import define as _attrs_define -from attrs import field as _attrs_field - -from ..models.app_component_build_status import AppComponentBuildStatus -from ..models.app_install_deploy_status import AppInstallDeployStatus -from ..types import UNSET, Unset - -if TYPE_CHECKING: - from ..models.app_component import AppComponent - from ..models.app_component_config_connection import AppComponentConfigConnection - - -T = TypeVar("T", bound="AppInstallComponentSummary") - - -@_attrs_define -class AppInstallComponentSummary: - """ - Attributes: - build_status (AppComponentBuildStatus | Unset): - build_status_description (str | Unset): - component_config (AppComponentConfigConnection | Unset): - component_id (str | Unset): - component_name (str | Unset): - dependencies (list[AppComponent] | Unset): - deploy_status (AppInstallDeployStatus | Unset): - deploy_status_description (str | Unset): - drifted_status (bool | Unset): - id (str | Unset): - """ - - build_status: AppComponentBuildStatus | Unset = UNSET - build_status_description: str | Unset = UNSET - component_config: AppComponentConfigConnection | Unset = UNSET - component_id: str | Unset = UNSET - component_name: str | Unset = UNSET - dependencies: list[AppComponent] | Unset = UNSET - deploy_status: AppInstallDeployStatus | Unset = UNSET - deploy_status_description: str | Unset = UNSET - drifted_status: bool | Unset = UNSET - id: str | Unset = UNSET - additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) - - def to_dict(self) -> dict[str, Any]: - build_status: str | Unset = UNSET - if not isinstance(self.build_status, Unset): - build_status = self.build_status.value - - build_status_description = self.build_status_description - - component_config: dict[str, Any] | Unset = UNSET - if not isinstance(self.component_config, Unset): - component_config = self.component_config.to_dict() - - component_id = self.component_id - - component_name = self.component_name - - dependencies: list[dict[str, Any]] | Unset = UNSET - if not isinstance(self.dependencies, Unset): - dependencies = [] - for dependencies_item_data in self.dependencies: - dependencies_item = dependencies_item_data.to_dict() - dependencies.append(dependencies_item) - - deploy_status: str | Unset = UNSET - if not isinstance(self.deploy_status, Unset): - deploy_status = self.deploy_status.value - - deploy_status_description = self.deploy_status_description - - drifted_status = self.drifted_status - - id = self.id - - field_dict: dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({}) - if build_status is not UNSET: - field_dict["build_status"] = build_status - if build_status_description is not UNSET: - field_dict["build_status_description"] = build_status_description - if component_config is not UNSET: - field_dict["component_config"] = component_config - if component_id is not UNSET: - field_dict["component_id"] = component_id - if component_name is not UNSET: - field_dict["component_name"] = component_name - if dependencies is not UNSET: - field_dict["dependencies"] = dependencies - if deploy_status is not UNSET: - field_dict["deploy_status"] = deploy_status - if deploy_status_description is not UNSET: - field_dict["deploy_status_description"] = deploy_status_description - if drifted_status is not UNSET: - field_dict["drifted_status"] = drifted_status - if id is not UNSET: - field_dict["id"] = id - - return field_dict - - @classmethod - def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: - from ..models.app_component import AppComponent - from ..models.app_component_config_connection import AppComponentConfigConnection - - d = dict(src_dict) - _build_status = d.pop("build_status", UNSET) - build_status: AppComponentBuildStatus | Unset - if isinstance(_build_status, Unset): - build_status = UNSET - else: - build_status = AppComponentBuildStatus(_build_status) - - build_status_description = d.pop("build_status_description", UNSET) - - _component_config = d.pop("component_config", UNSET) - component_config: AppComponentConfigConnection | Unset - if isinstance(_component_config, Unset): - component_config = UNSET - else: - component_config = AppComponentConfigConnection.from_dict(_component_config) - - component_id = d.pop("component_id", UNSET) - - component_name = d.pop("component_name", UNSET) - - _dependencies = d.pop("dependencies", UNSET) - dependencies: list[AppComponent] | Unset = UNSET - if _dependencies is not UNSET: - dependencies = [] - for dependencies_item_data in _dependencies: - dependencies_item = AppComponent.from_dict(dependencies_item_data) - - dependencies.append(dependencies_item) - - _deploy_status = d.pop("deploy_status", UNSET) - deploy_status: AppInstallDeployStatus | Unset - if isinstance(_deploy_status, Unset): - deploy_status = UNSET - else: - deploy_status = AppInstallDeployStatus(_deploy_status) - - deploy_status_description = d.pop("deploy_status_description", UNSET) - - drifted_status = d.pop("drifted_status", UNSET) - - id = d.pop("id", UNSET) - - app_install_component_summary = cls( - build_status=build_status, - build_status_description=build_status_description, - component_config=component_config, - component_id=component_id, - component_name=component_name, - dependencies=dependencies, - deploy_status=deploy_status, - deploy_status_description=deploy_status_description, - drifted_status=drifted_status, - id=id, - ) - - app_install_component_summary.additional_properties = d - return app_install_component_summary - - @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 diff --git a/nuon/models/app_install_deploy_status.py b/nuon/models/app_install_deploy_status.py deleted file mode 100644 index e570a1c1..00000000 --- a/nuon/models/app_install_deploy_status.py +++ /dev/null @@ -1,23 +0,0 @@ -from enum import Enum - - -class AppInstallDeployStatus(str, Enum): - ACTIVE = "active" - APPROVAL_DENIED = "approval-denied" - AUTO_SKIPPED = "auto-skipped" - CANCELLED = "cancelled" - DRIFT_DETECTED = "drift-detected" - ERROR = "error" - EXECUTING = "executing" - INACTIVE = "inactive" - NOOP = "noop" - NO_DRIFT = "no-drift" - PENDING = "pending" - PENDING_APPROVAL = "pending-approval" - PLANNING = "planning" - QUEUED = "queued" - SYNCING = "syncing" - UNKNOWN = "unknown" - - def __str__(self) -> str: - return str(self.value) diff --git a/nuon/models/app_runner_job_execution.py b/nuon/models/app_runner_job_execution.py index 1f541e5d..60f7479d 100644 --- a/nuon/models/app_runner_job_execution.py +++ b/nuon/models/app_runner_job_execution.py @@ -10,6 +10,7 @@ from ..types import UNSET, Unset if TYPE_CHECKING: + from ..models.app_runner_job_execution_metadata import AppRunnerJobExecutionMetadata from ..models.app_runner_job_execution_outputs import AppRunnerJobExecutionOutputs from ..models.app_runner_job_execution_result import AppRunnerJobExecutionResult @@ -24,6 +25,8 @@ class AppRunnerJobExecution: created_at (str | Unset): created_by_id (str | Unset): id (str | Unset): + metadata (AppRunnerJobExecutionMetadata | Unset): Metadata is used to store additional information about the + execution {e.g., client version.} org_id (str | Unset): outputs (AppRunnerJobExecutionOutputs | Unset): result (AppRunnerJobExecutionResult | Unset): @@ -35,6 +38,7 @@ class AppRunnerJobExecution: created_at: str | Unset = UNSET created_by_id: str | Unset = UNSET id: str | Unset = UNSET + metadata: AppRunnerJobExecutionMetadata | Unset = UNSET org_id: str | Unset = UNSET outputs: AppRunnerJobExecutionOutputs | Unset = UNSET result: AppRunnerJobExecutionResult | Unset = UNSET @@ -50,6 +54,10 @@ def to_dict(self) -> dict[str, Any]: id = self.id + metadata: dict[str, Any] | Unset = UNSET + if not isinstance(self.metadata, Unset): + metadata = self.metadata.to_dict() + org_id = self.org_id outputs: dict[str, Any] | Unset = UNSET @@ -77,6 +85,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["created_by_id"] = created_by_id if id is not UNSET: field_dict["id"] = id + if metadata is not UNSET: + field_dict["metadata"] = metadata if org_id is not UNSET: field_dict["org_id"] = org_id if outputs is not UNSET: @@ -94,6 +104,7 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: + from ..models.app_runner_job_execution_metadata import AppRunnerJobExecutionMetadata from ..models.app_runner_job_execution_outputs import AppRunnerJobExecutionOutputs from ..models.app_runner_job_execution_result import AppRunnerJobExecutionResult @@ -104,6 +115,13 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: id = d.pop("id", UNSET) + _metadata = d.pop("metadata", UNSET) + metadata: AppRunnerJobExecutionMetadata | Unset + if isinstance(_metadata, Unset): + metadata = UNSET + else: + metadata = AppRunnerJobExecutionMetadata.from_dict(_metadata) + org_id = d.pop("org_id", UNSET) _outputs = d.pop("outputs", UNSET) @@ -135,6 +153,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: created_at=created_at, created_by_id=created_by_id, id=id, + metadata=metadata, org_id=org_id, outputs=outputs, result=result, diff --git a/nuon/models/app_runner_job_execution_metadata.py b/nuon/models/app_runner_job_execution_metadata.py new file mode 100644 index 00000000..a702869e --- /dev/null +++ b/nuon/models/app_runner_job_execution_metadata.py @@ -0,0 +1,46 @@ +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="AppRunnerJobExecutionMetadata") + + +@_attrs_define +class AppRunnerJobExecutionMetadata: + """Metadata is used to store additional information about the execution {e.g., client version.}""" + + additional_properties: dict[str, str] = _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_runner_job_execution_metadata = cls() + + app_runner_job_execution_metadata.additional_properties = d + return app_runner_job_execution_metadata + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> str: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: str) -> 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 diff --git a/nuon/models/app_step_error_behavior.py b/nuon/models/app_step_error_behavior.py index 323570f9..2c772910 100644 --- a/nuon/models/app_step_error_behavior.py +++ b/nuon/models/app_step_error_behavior.py @@ -3,7 +3,6 @@ class AppStepErrorBehavior(str, Enum): ABORT = "abort" - CONTINUE = "continue" def __str__(self) -> str: return str(self.value) diff --git a/nuon/models/app_terraform_workspace_lock.py b/nuon/models/app_terraform_workspace_lock.py index fa9f7ee5..4c129f1f 100644 --- a/nuon/models/app_terraform_workspace_lock.py +++ b/nuon/models/app_terraform_workspace_lock.py @@ -24,6 +24,7 @@ class AppTerraformWorkspaceLock: created_by_id (str | Unset): id (str | Unset): lock (AppTerraformLock | Unset): + org_id (str | Unset): runner_job (AppRunnerJob | Unset): runner_job_id (str | Unset): updated_at (str | Unset): @@ -35,6 +36,7 @@ class AppTerraformWorkspaceLock: created_by_id: str | Unset = UNSET id: str | Unset = UNSET lock: AppTerraformLock | Unset = UNSET + org_id: str | Unset = UNSET runner_job: AppRunnerJob | Unset = UNSET runner_job_id: str | Unset = UNSET updated_at: str | Unset = UNSET @@ -52,6 +54,8 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.lock, Unset): lock = self.lock.to_dict() + org_id = self.org_id + runner_job: dict[str, Any] | Unset = UNSET if not isinstance(self.runner_job, Unset): runner_job = self.runner_job.to_dict() @@ -73,6 +77,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["id"] = id if lock is not UNSET: field_dict["lock"] = lock + if org_id is not UNSET: + field_dict["org_id"] = org_id if runner_job is not UNSET: field_dict["runner_job"] = runner_job if runner_job_id is not UNSET: @@ -103,6 +109,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: else: lock = AppTerraformLock.from_dict(_lock) + org_id = d.pop("org_id", UNSET) + _runner_job = d.pop("runner_job", UNSET) runner_job: AppRunnerJob | Unset if isinstance(_runner_job, Unset): @@ -121,6 +129,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: created_by_id=created_by_id, id=id, lock=lock, + org_id=org_id, runner_job=runner_job, runner_job_id=runner_job_id, updated_at=updated_at, diff --git a/nuon/models/app_terraform_workspace_state_json.py b/nuon/models/app_terraform_workspace_state_json.py index 9a1a5932..82e06f75 100644 --- a/nuon/models/app_terraform_workspace_state_json.py +++ b/nuon/models/app_terraform_workspace_state_json.py @@ -23,6 +23,7 @@ class AppTerraformWorkspaceStateJSON: created_at (str | Unset): created_by_id (str | Unset): id (str | Unset): + org_id (str | Unset): runner_job (AppRunnerJob | Unset): runner_job_id (str | Unset): updated_at (str | Unset): @@ -34,6 +35,7 @@ class AppTerraformWorkspaceStateJSON: created_at: str | Unset = UNSET created_by_id: str | Unset = UNSET id: str | Unset = UNSET + org_id: str | Unset = UNSET runner_job: AppRunnerJob | Unset = UNSET runner_job_id: str | Unset = UNSET updated_at: str | Unset = UNSET @@ -51,6 +53,8 @@ def to_dict(self) -> dict[str, Any]: id = self.id + org_id = self.org_id + runner_job: dict[str, Any] | Unset = UNSET if not isinstance(self.runner_job, Unset): runner_job = self.runner_job.to_dict() @@ -72,6 +76,8 @@ def to_dict(self) -> dict[str, Any]: field_dict["created_by_id"] = created_by_id if id is not UNSET: field_dict["id"] = id + if org_id is not UNSET: + field_dict["org_id"] = org_id if runner_job is not UNSET: field_dict["runner_job"] = runner_job if runner_job_id is not UNSET: @@ -96,6 +102,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: id = d.pop("id", UNSET) + org_id = d.pop("org_id", UNSET) + _runner_job = d.pop("runner_job", UNSET) runner_job: AppRunnerJob | Unset if isinstance(_runner_job, Unset): @@ -114,6 +122,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: created_at=created_at, created_by_id=created_by_id, id=id, + org_id=org_id, runner_job=runner_job, runner_job_id=runner_job_id, updated_at=updated_at, diff --git a/nuon/models/service_deprovision_install_request.py b/nuon/models/service_deprovision_install_request.py index 1666b215..04f30221 100644 --- a/nuon/models/service_deprovision_install_request.py +++ b/nuon/models/service_deprovision_install_request.py @@ -15,24 +15,18 @@ class ServiceDeprovisionInstallRequest: """ Attributes: - error_behavior (str | Unset): plan_only (bool | Unset): """ - error_behavior: str | Unset = UNSET plan_only: bool | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: - error_behavior = self.error_behavior - plan_only = self.plan_only field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update({}) - if error_behavior is not UNSET: - field_dict["error_behavior"] = error_behavior if plan_only is not UNSET: field_dict["plan_only"] = plan_only @@ -41,12 +35,9 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) - error_behavior = d.pop("error_behavior", UNSET) - plan_only = d.pop("plan_only", UNSET) service_deprovision_install_request = cls( - error_behavior=error_behavior, plan_only=plan_only, ) diff --git a/nuon/models/service_deprovision_install_sandbox_request.py b/nuon/models/service_deprovision_install_sandbox_request.py index bdd2ae74..31e76604 100644 --- a/nuon/models/service_deprovision_install_sandbox_request.py +++ b/nuon/models/service_deprovision_install_sandbox_request.py @@ -15,24 +15,18 @@ class ServiceDeprovisionInstallSandboxRequest: """ Attributes: - error_behavior (str | Unset): plan_only (bool | Unset): """ - error_behavior: str | Unset = UNSET plan_only: bool | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: - error_behavior = self.error_behavior - plan_only = self.plan_only field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update({}) - if error_behavior is not UNSET: - field_dict["error_behavior"] = error_behavior if plan_only is not UNSET: field_dict["plan_only"] = plan_only @@ -41,12 +35,9 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) - error_behavior = d.pop("error_behavior", UNSET) - plan_only = d.pop("plan_only", UNSET) service_deprovision_install_sandbox_request = cls( - error_behavior=error_behavior, plan_only=plan_only, ) diff --git a/nuon/models/service_teardown_install_component_request.py b/nuon/models/service_teardown_install_component_request.py index 9ac21ab6..e24dccf8 100644 --- a/nuon/models/service_teardown_install_component_request.py +++ b/nuon/models/service_teardown_install_component_request.py @@ -15,24 +15,18 @@ class ServiceTeardownInstallComponentRequest: """ Attributes: - error_behavior (str | Unset): plan_only (bool | Unset): """ - error_behavior: str | Unset = UNSET plan_only: bool | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: - error_behavior = self.error_behavior - plan_only = self.plan_only field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update({}) - if error_behavior is not UNSET: - field_dict["error_behavior"] = error_behavior if plan_only is not UNSET: field_dict["plan_only"] = plan_only @@ -41,12 +35,9 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) - error_behavior = d.pop("error_behavior", UNSET) - plan_only = d.pop("plan_only", UNSET) service_teardown_install_component_request = cls( - error_behavior=error_behavior, plan_only=plan_only, ) diff --git a/nuon/models/service_teardown_install_components_request.py b/nuon/models/service_teardown_install_components_request.py index f4f06ab5..f5cb79e0 100644 --- a/nuon/models/service_teardown_install_components_request.py +++ b/nuon/models/service_teardown_install_components_request.py @@ -15,24 +15,18 @@ class ServiceTeardownInstallComponentsRequest: """ Attributes: - error_behavior (str | Unset): plan_only (bool | Unset): """ - error_behavior: str | Unset = UNSET plan_only: bool | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: - error_behavior = self.error_behavior - plan_only = self.plan_only field_dict: dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update({}) - if error_behavior is not UNSET: - field_dict["error_behavior"] = error_behavior if plan_only is not UNSET: field_dict["plan_only"] = plan_only @@ -41,12 +35,9 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: d = dict(src_dict) - error_behavior = d.pop("error_behavior", UNSET) - plan_only = d.pop("plan_only", UNSET) service_teardown_install_components_request = cls( - error_behavior=error_behavior, plan_only=plan_only, ) diff --git a/pyproject.toml b/pyproject.toml index 3b909d56..bd6980c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nuon" -version = "0.19.690" +version = "0.19.702" description = "A client library for accessing Nuon" authors = [] requires-python = ">=3.10" diff --git a/version.txt b/version.txt index 82e49a04..c47f49e4 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.19.690 +0.19.702