From 9b15427062356057bf3c2e125fa901ad5c9b3840 Mon Sep 17 00:00:00 2001 From: Tim Jarrett Date: Fri, 27 Sep 2024 14:42:09 -0400 Subject: [PATCH] fix bug in schedules calls --- veracode_api_py/dast.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/veracode_api_py/dast.py b/veracode_api_py/dast.py index e17c486..d26cf70 100644 --- a/veracode_api_py/dast.py +++ b/veracode_api_py/dast.py @@ -198,16 +198,16 @@ def get_schedule(self, analysis_profile_id: UUID, schedule_id: UUID): self.schedules = self.Schedules(analysis_profile_id=analysis_profile_id, base_url=self.base_url) return self.schedules.get(schedule_id=schedule_id) - def create_schedule(self,frequency,day=1,weekday=1,timezone='America/New York',time="00:00"): + def create_schedule(self,analysis_profile_id: UUID, frequency,day=1,weekday=1,timezone='America/New York',time="00:00"): self.schedules = self.Schedules(analysis_profile_id=analysis_profile_id, base_url=self.base_url) return self.schedules.create(frequency=frequency, day=day, weekday=weekday, timezone=timezone, time=time) - def update_schedule(self, schedule_id: UUID, frequency,day=1,weekday=1,timezone='America/New York',time="00:00"): + def update_schedule(self, schedule_id: UUID, analysis_profile_id: UUID, frequency,day=1,weekday=1,timezone='America/New York',time="00:00"): self.schedules = self.Schedules(analysis_profile_id=analysis_profile_id, base_url=self.base_url) return self.schedules.update(schedule_id=schedule_id, frequency=frequency, day=day, weekday=weekday, timezone=timezone, time=time) - def delete_schedule(self, schedule_id: UUID): + def delete_schedule(self, analysis_profile_id: UUID, schedule_id: UUID): self.schedules = self.Schedules(analysis_profile_id=analysis_profile_id, base_url=self.base_url) return self.schedules.delete(schedule_id=schedule_id)