Skip to content

Commit 3a27963

Browse files
authored
[ml][schedule][internal] Add to dict func for trigger result (#34392)
Signed-off-by: Brynn Yin <[email protected]>
1 parent ddbe1ed commit 3a27963

File tree

1 file changed

+10
-0
lines changed
  • sdk/ml/azure-ai-ml/azure/ai/ml/entities/_schedule

1 file changed

+10
-0
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_schedule/schedule.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,3 +502,13 @@ def _from_rest_object(cls, obj: RestTriggerRunSubmissionDto) -> "ScheduleTrigger
502502
schedule_action_type=obj.schedule_action_type,
503503
job_name=obj.submission_id,
504504
)
505+
506+
def _to_dict(self) -> dict:
507+
"""Convert the object to a dictionary.
508+
:return: The dictionary representation of the object.
509+
:rtype: dict
510+
"""
511+
return {
512+
"job_name": self.job_name,
513+
"schedule_action_type": self.schedule_action_type,
514+
}

0 commit comments

Comments
 (0)