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/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@
from .app_terraform_workspace_state_json import AppTerraformWorkspaceStateJSON
from .app_token import AppToken
from .app_token_type import AppTokenType
from .app_trigger_filter import AppTriggerFilter
from .app_trigger_filter_type import AppTriggerFilterType
from .app_trigger_rule import AppTriggerRule
from .app_trigger_rule_input_mappings import AppTriggerRuleInputMappings
from .app_trigger_target_type import AppTriggerTargetType
from .app_user_journey import AppUserJourney
from .app_user_journey_step import AppUserJourneyStep
from .app_user_journey_step_metadata import AppUserJourneyStepMetadata
Expand Down Expand Up @@ -1054,6 +1059,11 @@
"AppTerraformWorkspaceStateJSON",
"AppToken",
"AppTokenType",
"AppTriggerFilter",
"AppTriggerFilterType",
"AppTriggerRule",
"AppTriggerRuleInputMappings",
"AppTriggerTargetType",
"AppUserJourney",
"AppUserJourneyStep",
"AppUserJourneyStepMetadata",
Expand Down
9 changes: 9 additions & 0 deletions nuon/models/app_app_branch_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class AppAppBranchRun:
started_at (str | Unset): StartedAt tracks when execution actually began
status (str | Unset): Status tracks the current state of the run
Values: pending, running, success, failed, cancelled
trigger_event_dispatch_id (str | Unset):
updated_at (str | Unset):
vcs_connection_commit (AppVCSConnectionCommit | Unset):
workflow (AppWorkflow | Unset):
Expand Down Expand Up @@ -92,6 +93,7 @@ class AppAppBranchRun:
run_type: AppAppBranchRunType | Unset = UNSET
started_at: str | Unset = UNSET
status: str | Unset = UNSET
trigger_event_dispatch_id: str | Unset = UNSET
updated_at: str | Unset = UNSET
vcs_connection_commit: AppVCSConnectionCommit | Unset = UNSET
workflow: AppWorkflow | Unset = UNSET
Expand Down Expand Up @@ -169,6 +171,8 @@ def to_dict(self) -> dict[str, Any]:

status = self.status

trigger_event_dispatch_id = self.trigger_event_dispatch_id

updated_at = self.updated_at

vcs_connection_commit: dict[str, Any] | Unset = UNSET
Expand Down Expand Up @@ -238,6 +242,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["started_at"] = started_at
if status is not UNSET:
field_dict["status"] = status
if trigger_event_dispatch_id is not UNSET:
field_dict["trigger_event_dispatch_id"] = trigger_event_dispatch_id
if updated_at is not UNSET:
field_dict["updated_at"] = updated_at
if vcs_connection_commit is not UNSET:
Expand Down Expand Up @@ -355,6 +361,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

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

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

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

_vcs_connection_commit = d.pop("vcs_connection_commit", UNSET)
Expand Down Expand Up @@ -401,6 +409,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
run_type=run_type,
started_at=started_at,
status=status,
trigger_event_dispatch_id=trigger_event_dispatch_id,
updated_at=updated_at,
vcs_connection_commit=vcs_connection_commit,
workflow=workflow,
Expand Down
23 changes: 23 additions & 0 deletions nuon/models/app_app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from ..models.app_app_stack_config import AppAppStackConfig
from ..models.app_component_config_connection import AppComponentConfigConnection
from ..models.app_composite_status import AppCompositeStatus
from ..models.app_trigger_rule import AppTriggerRule
from ..models.app_vcs_connection_commit import AppVCSConnectionCommit
from ..models.blobstore_blob import BlobstoreBlob
from ..models.github_com_nuonco_nuon_pkg_labels_labels import GithubComNuoncoNuonPkgLabelsLabels
Expand Down Expand Up @@ -66,6 +67,7 @@ class AppAppConfig:
status (AppAppConfigStatus | Unset):
status_description (str | Unset):
status_v2 (AppCompositeStatus | Unset):
trigger_rules (list[AppTriggerRule] | Unset):
updated_at (str | Unset):
vcs_connection_commit (AppVCSConnectionCommit | Unset):
version (int | Unset): fields that are filled in via after query or views
Expand Down Expand Up @@ -101,6 +103,7 @@ class AppAppConfig:
status: AppAppConfigStatus | Unset = UNSET
status_description: str | Unset = UNSET
status_v2: AppCompositeStatus | Unset = UNSET
trigger_rules: list[AppTriggerRule] | Unset = UNSET
updated_at: str | Unset = UNSET
vcs_connection_commit: AppVCSConnectionCommit | Unset = UNSET
version: int | Unset = UNSET
Expand Down Expand Up @@ -211,6 +214,13 @@ def to_dict(self) -> dict[str, Any]:
if not isinstance(self.status_v2, Unset):
status_v2 = self.status_v2.to_dict()

trigger_rules: list[dict[str, Any]] | Unset = UNSET
if not isinstance(self.trigger_rules, Unset):
trigger_rules = []
for trigger_rules_item_data in self.trigger_rules:
trigger_rules_item = trigger_rules_item_data.to_dict()
trigger_rules.append(trigger_rules_item)

updated_at = self.updated_at

vcs_connection_commit: dict[str, Any] | Unset = UNSET
Expand Down Expand Up @@ -282,6 +292,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["status_description"] = status_description
if status_v2 is not UNSET:
field_dict["status_v2"] = status_v2
if trigger_rules is not UNSET:
field_dict["trigger_rules"] = trigger_rules
if updated_at is not UNSET:
field_dict["updated_at"] = updated_at
if vcs_connection_commit is not UNSET:
Expand All @@ -307,6 +319,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
from ..models.app_app_stack_config import AppAppStackConfig
from ..models.app_component_config_connection import AppComponentConfigConnection
from ..models.app_composite_status import AppCompositeStatus
from ..models.app_trigger_rule import AppTriggerRule
from ..models.app_vcs_connection_commit import AppVCSConnectionCommit
from ..models.blobstore_blob import BlobstoreBlob
from ..models.github_com_nuonco_nuon_pkg_labels_labels import GithubComNuoncoNuonPkgLabelsLabels
Expand Down Expand Up @@ -463,6 +476,15 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
else:
status_v2 = AppCompositeStatus.from_dict(_status_v2)

_trigger_rules = d.pop("trigger_rules", UNSET)
trigger_rules: list[AppTriggerRule] | Unset = UNSET
if _trigger_rules is not UNSET:
trigger_rules = []
for trigger_rules_item_data in _trigger_rules:
trigger_rules_item = AppTriggerRule.from_dict(trigger_rules_item_data)

trigger_rules.append(trigger_rules_item)

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

_vcs_connection_commit = d.pop("vcs_connection_commit", UNSET)
Expand Down Expand Up @@ -505,6 +527,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
status=status,
status_description=status_description,
status_v2=status_v2,
trigger_rules=trigger_rules,
updated_at=updated_at,
vcs_connection_commit=vcs_connection_commit,
version=version,
Expand Down
9 changes: 9 additions & 0 deletions nuon/models/app_install_runbook_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class AppInstallRunbookRun:
step_selections (list[AppRunbookStepSelection] | Unset): StepSelections records which runbook steps are
enabled/disabled for this run.
Steps explicitly disabled here are not generated by the runbook workflow.
trigger_event_dispatch_id (str | Unset):
triggered_by_id (str | Unset):
updated_at (str | Unset):
"""
Expand All @@ -68,6 +69,7 @@ class AppInstallRunbookRun:
status_description: str | Unset = UNSET
status_v2: AppCompositeStatus | Unset = UNSET
step_selections: list[AppRunbookStepSelection] | Unset = UNSET
trigger_event_dispatch_id: str | Unset = UNSET
triggered_by_id: str | Unset = UNSET
updated_at: str | Unset = UNSET
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
Expand Down Expand Up @@ -128,6 +130,8 @@ def to_dict(self) -> dict[str, Any]:
step_selections_item = step_selections_item_data.to_dict()
step_selections.append(step_selections_item)

trigger_event_dispatch_id = self.trigger_event_dispatch_id

triggered_by_id = self.triggered_by_id

updated_at = self.updated_at
Expand Down Expand Up @@ -171,6 +175,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["status_v2"] = status_v2
if step_selections is not UNSET:
field_dict["step_selections"] = step_selections
if trigger_event_dispatch_id is not UNSET:
field_dict["trigger_event_dispatch_id"] = trigger_event_dispatch_id
if triggered_by_id is not UNSET:
field_dict["triggered_by_id"] = triggered_by_id
if updated_at is not UNSET:
Expand Down Expand Up @@ -268,6 +274,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

step_selections.append(step_selections_item)

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

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

updated_at = d.pop("updated_at", UNSET)
Expand All @@ -291,6 +299,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
status_description=status_description,
status_v2=status_v2,
step_selections=step_selections,
trigger_event_dispatch_id=trigger_event_dispatch_id,
triggered_by_id=triggered_by_id,
updated_at=updated_at,
)
Expand Down
9 changes: 9 additions & 0 deletions nuon/models/app_queue_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class AppQueueSignal:
callbacks (list[CallbackRef] | Unset):
created_at (str | Unset):
created_by_id (str | Unset):
dedupe_key (str | Unset):
emitter_id (str | Unset): Optional: if this signal was emitted by an emitter
enqueued (bool | Unset):
execution_count (int | Unset):
Expand All @@ -50,6 +51,7 @@ class AppQueueSignal:
callbacks: list[CallbackRef] | Unset = UNSET
created_at: str | Unset = UNSET
created_by_id: str | Unset = UNSET
dedupe_key: str | Unset = UNSET
emitter_id: str | Unset = UNSET
enqueued: bool | Unset = UNSET
execution_count: int | Unset = UNSET
Expand Down Expand Up @@ -84,6 +86,8 @@ def to_dict(self) -> dict[str, Any]:

created_by_id = self.created_by_id

dedupe_key = self.dedupe_key

emitter_id = self.emitter_id

enqueued = self.enqueued
Expand Down Expand Up @@ -137,6 +141,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["created_at"] = created_at
if created_by_id is not UNSET:
field_dict["created_by_id"] = created_by_id
if dedupe_key is not UNSET:
field_dict["dedupe_key"] = dedupe_key
if emitter_id is not UNSET:
field_dict["emitter_id"] = emitter_id
if enqueued is not UNSET:
Expand Down Expand Up @@ -202,6 +208,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

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

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

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

enqueued = d.pop("enqueued", UNSET)
Expand Down Expand Up @@ -264,6 +272,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
callbacks=callbacks,
created_at=created_at,
created_by_id=created_by_id,
dedupe_key=dedupe_key,
emitter_id=emitter_id,
enqueued=enqueued,
execution_count=execution_count,
Expand Down
Loading
Loading