Skip to content

Commit

Permalink
Updated for strategy parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
netapp-abhishek committed Feb 21, 2025
1 parent 554dca5 commit f5d02bb
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion spotinst_sdk2/models/ocean/aws/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1132,12 +1132,36 @@ class VNGStrategy:
"""
# Arguments
spot_percentage: int
utilizeReservedInstances : int
fallbackToOd: bool
spotInstancePools: int
gracePeriod: int
drainingTimeout: int
utilizeCommitments: bool
clusterOrientation: ClusterOrientation
spreadNodesBy: SpreadNodesBy
"""

def __init__(
self,
spot_percentage: int = none):
spot_percentage: int = none,
utilize_reserved_instances: bool = none,
fallback_to_od: bool = none,
spot_instance_pools: int = none,
grace_period: int = none,
draining_timeout: int = none,
utilize_commitments: bool = none,
cluster_orientation: ClusterOrientation = none,
spread_nodes_by: SpreadNodesBy = none):
self.spot_percentage = spot_percentage
self.utilize_reserved_instances = utilize_reserved_instances
self.fallback_to_od = fallback_to_od
self.spot_instance_pools = spot_instance_pools
self.grace_period = grace_period
self.draining_timeout = draining_timeout
self.utilize_commitments = utilize_commitments
self.cluster_orientation = cluster_orientation
self.spread_nodes_by = spread_nodes_by


class Taints:
Expand Down

0 comments on commit f5d02bb

Please sign in to comment.