Skip to content

Commit

Permalink
Added support for suspension hours
Browse files Browse the repository at this point in the history
  • Loading branch information
IGUDE2 committed Aug 23, 2024
1 parent b819892 commit 466173a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions spotinst_sdk2/models/ocean/azure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,20 @@ def __init__(
self.is_enabled = is_enabled
self.time_windows = time_windows

class SuspensionHours:
"""
# Arguments
is_enabled: bool
time_windows: List[str]
"""

def __init__(
self,
is_enabled: bool = none,
time_windows: List[str] = none):
self.is_enabled = is_enabled
self.time_windows = time_windows


class ClusterRoll:
"""
Expand Down Expand Up @@ -194,8 +208,10 @@ class Scheduling:
def __init__(
self,
shutdown_hours: ShutdownHours = none,
suspension_hours : SuspensionHours = none,
tasks: List[Task] = none):
self.shutdown_hours = shutdown_hours
self.suspension_hours = suspension_hours
self.tasks = tasks
# endregion

Expand Down
2 changes: 1 addition & 1 deletion spotinst_sdk2/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.12.0'
__version__ = '3.13.0'

0 comments on commit 466173a

Please sign in to comment.