Skip to content

Commit

Permalink
Spotaut 20170 - Added SpotSizeAttributes parameters in Stateful Nod…
Browse files Browse the repository at this point in the history
…e Object (#191)
  • Loading branch information
IGUDE2 authored Nov 6, 2024
1 parent 38b4b8c commit 97ad88d
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.19.0] - 2024-11-06
### Added
- Added `SpotSizeAttributes` model for Azure Stateful Nodes

## [3.18.2] - 2024-10-30
### Fixed
- Fixed implementation of `update_access_policy()` API
Expand Down
34 changes: 29 additions & 5 deletions docs/models/stateful_node.md
Original file line number Diff line number Diff line change
Expand Up @@ -746,22 +746,46 @@ __Arguments__
- __tag_key__: str
- __tag_value__: str

<h2 id="spotinst_sdk2.models.stateful_node.SpotSizeAttributes">SpotSizeAttributes</h2>

```python
SpotSizeAttributes(
self,
max_cpu: int = 'd3043820717d74d9a17694c176d39733',
min_cpu: int = 'd3043820717d74d9a17694c176d39733',
max_memory: int = 'd3043820717d74d9a17694c176d39733',
min_memory: int = 'd3043820717d74d9a17694c176d39733',
max_storage: int = 'd3043820717d74d9a17694c176d39733',
min_storage: int = 'd3043820717d74d9a17694c176d39733')
```

__Arguments__

- __max_cpu__: int
- __min_cpu__: int
- __max_memory__: int
- __min_memory__: int
- __max_storage__: int
- __min_storage__: int

<h2 id="spotinst_sdk2.models.stateful_node.VmSizes">VmSizes</h2>

```python
VmSizes(
self,
od_sizes: typing.List[str] = 'd3043820717d74d9a17694c176d39733',
preferred_spot_sizes:
typing.List[str] = 'd3043820717d74d9a17694c176d39733',
spot_sizes: typing.List[str] = 'd3043820717d74d9a17694c176d39733')
self,
od_sizes: typing.List[str] = 'd3043820717d74d9a17694c176d39733',
preferred_spot_sizes: typing.List[str] = 'd3043820717d74d9a17694c176d39733',
spot_sizes: typing.List[str] = 'd3043820717d74d9a17694c176d39733',
spot_size_attributes:
SpotSizeAttributes = 'd3043820717d74d9a17694c176d39733')
```

__Arguments__

- __od_sizes__: List[str]
- __preferred_spot_sizes__: List[str]
- __spot_sizes__: List[str]
- __spot_size_attributes__: SpotSizeAttributes

<h2 id="spotinst_sdk2.models.stateful_node.ProximityPlacementGroups">ProximityPlacementGroups</h2>

Expand Down
30 changes: 29 additions & 1 deletion spotinst_sdk2/models/stateful_node/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,23 +662,51 @@ def __init__(
self.tag_key = tag_key
self.tag_value = tag_value

class SpotSizeAttributes:
"""
# Arguments
max_cpu: int
min_cpu: int
max_memory: int
min_memory: int
max_storage: int
min_storage: int
"""

def __init__(
self,
max_cpu: int = none,
min_cpu: int = none,
max_memory: int = none,
min_memory: int = none,
max_storage: int = none,
min_storage: int = none):
self.max_cpu = max_cpu
self.min_cpu = min_cpu
self.max_memory = max_memory
self.min_memory = min_memory
self.max_storage = max_storage
self.min_storage = min_storage

class VmSizes:
"""
# Arguments
od_sizes: List[str]
preferred_spot_sizes: List[str]
spot_sizes: List[str]
spot_size_attributes: SpotSizeAttributes
"""

def __init__(
self,
od_sizes: List[str] = none,
preferred_spot_sizes: List[str] = none,
spot_sizes: List[str] = none):
spot_sizes: List[str] = none,
spot_size_attributes: SpotSizeAttributes = none):
self.od_sizes = od_sizes
self.preferred_spot_sizes = preferred_spot_sizes
self.spot_sizes = spot_sizes
self.spot_size_attributes = spot_size_attributes


class ProximityPlacementGroups:
Expand Down
2 changes: 1 addition & 1 deletion spotinst_sdk2/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '3.18.2'
__version__ = '3.19.0'

0 comments on commit 97ad88d

Please sign in to comment.