diff --git a/nuon/models/__init__.py b/nuon/models/__init__.py index 28d49469..2fdea8ea 100644 --- a/nuon/models/__init__.py +++ b/nuon/models/__init__.py @@ -209,7 +209,6 @@ from .credentials_assume_role_config import CredentialsAssumeRoleConfig from .credentials_service_principal_credentials import CredentialsServicePrincipalCredentials from .credentials_static_credentials import CredentialsStaticCredentials -from .generics_null_string import GenericsNullString from .generics_null_time import GenericsNullTime from .get_app_config_template_type import GetAppConfigTemplateType from .get_current_org_features_response_200 import GetCurrentOrgFeaturesResponse200 @@ -672,7 +671,6 @@ "CredentialsAssumeRoleConfig", "CredentialsServicePrincipalCredentials", "CredentialsStaticCredentials", - "GenericsNullString", "GenericsNullTime", "GetAppConfigTemplateType", "GetCurrentOrgFeaturesResponse200", diff --git a/nuon/models/app_install_action_workflow_run.py b/nuon/models/app_install_action_workflow_run.py index b979231d..8a36c70f 100644 --- a/nuon/models/app_install_action_workflow_run.py +++ b/nuon/models/app_install_action_workflow_run.py @@ -20,7 +20,6 @@ from ..models.app_log_stream import AppLogStream from ..models.app_runner_job import AppRunnerJob from ..models.app_workflow import AppWorkflow - from ..models.generics_null_string import GenericsNullString T = TypeVar("T", bound="AppInstallActionWorkflowRun") @@ -30,7 +29,7 @@ class AppInstallActionWorkflowRun: """ Attributes: - action_workflow_config_id (GenericsNullString | Unset): + action_workflow_config_id (str | Unset): config (AppActionWorkflowConfig | Unset): created_at (str | Unset): created_by (AppAccount | Unset): @@ -38,7 +37,7 @@ class AppInstallActionWorkflowRun: execution_time (int | Unset): after query id (str | Unset): install_action_workflow (AppInstallActionWorkflow | Unset): - install_action_workflow_id (GenericsNullString | Unset): + install_action_workflow_id (str | Unset): install_id (str | Unset): install_workflow_id (str | Unset): log_stream (AppLogStream | Unset): @@ -57,7 +56,7 @@ class AppInstallActionWorkflowRun: workflow_id (str | Unset): """ - action_workflow_config_id: GenericsNullString | Unset = UNSET + action_workflow_config_id: str | Unset = UNSET config: AppActionWorkflowConfig | Unset = UNSET created_at: str | Unset = UNSET created_by: AppAccount | Unset = UNSET @@ -65,7 +64,7 @@ class AppInstallActionWorkflowRun: execution_time: int | Unset = UNSET id: str | Unset = UNSET install_action_workflow: AppInstallActionWorkflow | Unset = UNSET - install_action_workflow_id: GenericsNullString | Unset = UNSET + install_action_workflow_id: str | Unset = UNSET install_id: str | Unset = UNSET install_workflow_id: str | Unset = UNSET log_stream: AppLogStream | Unset = UNSET @@ -85,9 +84,7 @@ class AppInstallActionWorkflowRun: additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: - action_workflow_config_id: dict[str, Any] | Unset = UNSET - if not isinstance(self.action_workflow_config_id, Unset): - action_workflow_config_id = self.action_workflow_config_id.to_dict() + action_workflow_config_id = self.action_workflow_config_id config: dict[str, Any] | Unset = UNSET if not isinstance(self.config, Unset): @@ -109,9 +106,7 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.install_action_workflow, Unset): install_action_workflow = self.install_action_workflow.to_dict() - install_action_workflow_id: dict[str, Any] | Unset = UNSET - if not isinstance(self.install_action_workflow_id, Unset): - install_action_workflow_id = self.install_action_workflow_id.to_dict() + install_action_workflow_id = self.install_action_workflow_id install_id = self.install_id @@ -232,15 +227,9 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: from ..models.app_log_stream import AppLogStream from ..models.app_runner_job import AppRunnerJob from ..models.app_workflow import AppWorkflow - from ..models.generics_null_string import GenericsNullString d = dict(src_dict) - _action_workflow_config_id = d.pop("action_workflow_config_id", UNSET) - action_workflow_config_id: GenericsNullString | Unset - if isinstance(_action_workflow_config_id, Unset): - action_workflow_config_id = UNSET - else: - action_workflow_config_id = GenericsNullString.from_dict(_action_workflow_config_id) + action_workflow_config_id = d.pop("action_workflow_config_id", UNSET) _config = d.pop("config", UNSET) config: AppActionWorkflowConfig | Unset @@ -271,12 +260,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: else: install_action_workflow = AppInstallActionWorkflow.from_dict(_install_action_workflow) - _install_action_workflow_id = d.pop("install_action_workflow_id", UNSET) - install_action_workflow_id: GenericsNullString | Unset - if isinstance(_install_action_workflow_id, Unset): - install_action_workflow_id = UNSET - else: - install_action_workflow_id = GenericsNullString.from_dict(_install_action_workflow_id) + install_action_workflow_id = d.pop("install_action_workflow_id", UNSET) install_id = d.pop("install_id", UNSET) diff --git a/nuon/models/app_install_action_workflow_run_step.py b/nuon/models/app_install_action_workflow_run_step.py index 2172fb2a..4ec6addd 100644 --- a/nuon/models/app_install_action_workflow_run_step.py +++ b/nuon/models/app_install_action_workflow_run_step.py @@ -11,7 +11,6 @@ if TYPE_CHECKING: from ..models.app_ad_hoc_step_config import AppAdHocStepConfig - from ..models.generics_null_string import GenericsNullString T = TypeVar("T", bound="AppInstallActionWorkflowRunStep") @@ -28,7 +27,7 @@ class AppInstallActionWorkflowRunStep: id (str | Unset): install_action_workflow_run_id (str | Unset): status (AppInstallActionWorkflowRunStepStatus | Unset): - step_id (GenericsNullString | Unset): + step_id (str | Unset): updated_at (str | Unset): """ @@ -39,7 +38,7 @@ class AppInstallActionWorkflowRunStep: id: str | Unset = UNSET install_action_workflow_run_id: str | Unset = UNSET status: AppInstallActionWorkflowRunStepStatus | Unset = UNSET - step_id: GenericsNullString | Unset = UNSET + step_id: str | Unset = UNSET updated_at: str | Unset = UNSET additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -62,9 +61,7 @@ def to_dict(self) -> dict[str, Any]: if not isinstance(self.status, Unset): status = self.status.value - step_id: dict[str, Any] | Unset = UNSET - if not isinstance(self.step_id, Unset): - step_id = self.step_id.to_dict() + step_id = self.step_id updated_at = self.updated_at @@ -95,7 +92,6 @@ def to_dict(self) -> dict[str, Any]: @classmethod def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: from ..models.app_ad_hoc_step_config import AppAdHocStepConfig - from ..models.generics_null_string import GenericsNullString d = dict(src_dict) _adhoc_config = d.pop("adhoc_config", UNSET) @@ -122,12 +118,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: else: status = AppInstallActionWorkflowRunStepStatus(_status) - _step_id = d.pop("step_id", UNSET) - step_id: GenericsNullString | Unset - if isinstance(_step_id, Unset): - step_id = UNSET - else: - step_id = GenericsNullString.from_dict(_step_id) + step_id = d.pop("step_id", UNSET) updated_at = d.pop("updated_at", UNSET) diff --git a/nuon/models/generics_null_string.py b/nuon/models/generics_null_string.py deleted file mode 100644 index 036cae65..00000000 --- a/nuon/models/generics_null_string.py +++ /dev/null @@ -1,70 +0,0 @@ -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 - -from ..types import UNSET, Unset - -T = TypeVar("T", bound="GenericsNullString") - - -@_attrs_define -class GenericsNullString: - """ - Attributes: - string (str | Unset): - valid (bool | Unset): Valid is true if String is not NULL - """ - - string: str | Unset = UNSET - valid: bool | Unset = UNSET - additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) - - def to_dict(self) -> dict[str, Any]: - string = self.string - - valid = self.valid - - field_dict: dict[str, Any] = {} - field_dict.update(self.additional_properties) - field_dict.update({}) - if string is not UNSET: - field_dict["string"] = string - if valid is not UNSET: - field_dict["valid"] = valid - - return field_dict - - @classmethod - def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T: - d = dict(src_dict) - string = d.pop("string", UNSET) - - valid = d.pop("valid", UNSET) - - generics_null_string = cls( - string=string, - valid=valid, - ) - - generics_null_string.additional_properties = d - return generics_null_string - - @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/pyproject.toml b/pyproject.toml index c3b59c22..91f55076 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nuon" -version = "0.19.784" +version = "0.19.787" description = "A client library for accessing Nuon" authors = [] requires-python = ">=3.10" diff --git a/version.txt b/version.txt index 2800031c..886d9c14 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.19.784 +0.19.787