Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/veracode/veracode-api-py in…
Browse files Browse the repository at this point in the history
…to reportingapi-scans
  • Loading branch information
tjarrettveracode committed Sep 27, 2024
2 parents fc0f34c + 9b15427 commit eb6ab9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions veracode_api_py/dast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit eb6ab9f

Please sign in to comment.