Skip to content

Commit 68d4f41

Browse files
author
Aravindhan Palanisamy
committed
refactor
1 parent b32cf04 commit 68d4f41

File tree

2 files changed

+4
-22
lines changed

2 files changed

+4
-22
lines changed

nisystemlink/clients/test_plan/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
from ._paged_test_plans import PagedTestPlans
1111
from ._execution_event import (
1212
ExecutionEvent,
13+
NotebookExecutionEvent,
14+
JobExecutionEvent,
15+
ManualExecutionEvent,
1316
)
1417
from ._order_by import OrderBy
1518
from ._test_plan import TestPlan
@@ -36,6 +39,7 @@
3639
from ._query_test_plan_templates_request import (
3740
QueryTestPlanTemplatesRequest,
3841
TestPlanTemplateField,
42+
TestPlanTemplateOrderBy,
3943
)
4044
from ._paged_test_plan_templates import PagedTestPlanTemplates
4145
from ._create_test_plan_template_request import CreateTestPlanTemplateRequest

nisystemlink/clients/test_plan/models/_execution_definition.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,12 @@ class NoneExecution(JsonModel):
6969
"""Type of execution, default is 'NONE'."""
7070

7171

72-
class ScheduleExecution(JsonModel):
73-
"""Represents a scheduled execution definition."""
74-
75-
action: str
76-
"""User defined action to perform in workflow (user defined)."""
77-
78-
type: Literal["SCHEDULE"] = Field(default="SCHEDULE")
79-
"""Type of execution, default is 'SCHEDULE'."""
80-
81-
82-
class UnscheduleExecution(JsonModel):
83-
"""Represents an unscheduled execution definition."""
84-
85-
action: str
86-
"""User defined action to perform in workflow (user defined)."""
87-
88-
type: Literal["UNSCHEDULE"] = Field(default="UNSCHEDULE")
89-
"""Type of execution, default is 'UNSCHEDULE'."""
90-
91-
9272
ExecutionDefinition = Annotated[
9373
Union[
9474
NotebookExecution,
9575
ManualExecution,
9676
JobExecution,
9777
NoneExecution,
98-
ScheduleExecution,
99-
UnscheduleExecution,
10078
],
10179
Field(discriminator="type"),
10280
]

0 commit comments

Comments
 (0)