Skip to content

Commit

Permalink
SPOTAUT-17461- Added Caching Parameter to Azure Stateful Node Disks m…
Browse files Browse the repository at this point in the history
…odel (#151)
  • Loading branch information
IGUDE2 authored Jan 12, 2024
1 parent 49717bd commit c43af7c
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 8 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/).

## [2.3.2] - 2024-01-12
### Added
- Added `caching` field in Azure Stateful Node `OsDisk` and `DataDisk` model.

## [2.3.1] - 2023-12-18
### Added
- Added `public_settings` and `protected_settings` fields in Azure Stateful Node `Extension` model.
Expand Down
23 changes: 21 additions & 2 deletions docs/models/stateful_node.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,20 +332,37 @@ An enumeration.
<h3 id="spotinst_sdk2.models.stateful_node.DataDiskType.ultra_ssd_lrs">ultra_ssd_lrs</h3>


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

```python
CachingType(cls, value, names=None, *, module, qualname, type, start)
```
An enumeration.
<h3 id="spotinst_sdk2.models.stateful_node.CachingType.none">none</h3>


<h3 id="spotinst_sdk2.models.stateful_node.CachingType.read_only">read_only</h3>


<h3 id="spotinst_sdk2.models.stateful_node.CachingType.read_write">read_write</h3>


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

```python
DataDisk(self,
lun: int = 'd3043820717d74d9a17694c176d39733',
size_g_b: int = 'd3043820717d74d9a17694c176d39733',
type: DataDiskType = 'd3043820717d74d9a17694c176d39733')
type: DataDiskType = 'd3043820717d74d9a17694c176d39733',
caching: CachingType = 'd3043820717d74d9a17694c176d39733')
```

__Arguments__

- __lun__: int
size_g_b = int
- __type__: DataDiskType
- __caching __: CachingType

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

Expand Down Expand Up @@ -662,13 +679,15 @@ __Arguments__
```python
OsDisk(self,
size_g_b: int = 'd3043820717d74d9a17694c176d39733',
type: DataDiskType = 'd3043820717d74d9a17694c176d39733')
type: DataDiskType = 'd3043820717d74d9a17694c176d39733',
caching: CachingType = 'd3043820717d74d9a17694c176d39733')
```

__Arguments__

- __size_g_b__: int
- __type__: DataDiskType
- __caching __: CachingType

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

Expand Down
18 changes: 13 additions & 5 deletions spotinst_sdk2/models/stateful_node/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,24 +254,30 @@ class DataDiskType(Enum):
standard_ssd_lrs = "StandardSSD_LRS"
ultra_ssd_lrs = "UltraSSD_LRS"


class CachingType(Enum):
none = "None"
read_only = "ReadOnly"
read_write = "ReadWrite"

class DataDisk:
"""
# Arguments
lun: int
size_g_b = int
type: DataDiskType
caching : CachingType
"""

def __init__(
self,
lun: int = none,
size_g_b: int = none,
type: DataDiskType = none):
type: DataDiskType = none,
caching : CachingType = none):
self.lun = lun
self.size_g_b = size_g_b
self.type = type

self.caching = caching

class Extension:
"""
Expand Down Expand Up @@ -581,15 +587,17 @@ class OsDisk:
# Arguments
size_g_b: int
type: DataDiskType
caching : CachingType
"""

def __init__(
self,
size_g_b: int = none,
type: DataDiskType = none):
type: DataDiskType = none,
caching : CachingType = none):
self.size_g_b = size_g_b
self.type = type

self.caching = caching

class SourceVault:
"""
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__ = '2.3.1'
__version__ = '2.3.2'

0 comments on commit c43af7c

Please sign in to comment.