Skip to content

Commit a2fc317

Browse files
authored
fix(instances): make VolumeServerTemplate fields be optional (#230)
1 parent 77dc871 commit a2fc317

File tree

2 files changed

+14
-14
lines changed
  • scaleway-async/scaleway_async/instance/v1
  • scaleway/scaleway/instance/v1

2 files changed

+14
-14
lines changed

scaleway-async/scaleway_async/instance/v1/types.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,22 +1795,22 @@ class VolumeServerTemplate:
17951795
Volume server template.
17961796
"""
17971797

1798-
id: str
1798+
id: Optional[str]
17991799
"""
18001800
UUID of the volume.
18011801
"""
18021802

1803-
boot: bool
1803+
boot: Optional[bool]
18041804
"""
18051805
Force the Instance to boot on this volume.
18061806
"""
18071807

1808-
name: str
1808+
name: Optional[str]
18091809
"""
18101810
Name of the volume.
18111811
"""
18121812

1813-
size: int
1813+
size: Optional[int]
18141814
"""
18151815
Disk size of the volume, must be a multiple of 512.
18161816
"""
@@ -1820,17 +1820,17 @@ class VolumeServerTemplate:
18201820
Type of the volume.
18211821
"""
18221822

1823-
base_snapshot: str
1823+
base_snapshot: Optional[str]
18241824
"""
18251825
ID of the snapshot on which this volume will be based.
18261826
"""
18271827

1828-
organization: str
1828+
organization: Optional[str]
18291829
"""
18301830
Organization ID of the volume.
18311831
"""
18321832

1833-
project: str
1833+
project: Optional[str]
18341834
"""
18351835
Project ID of the volume.
18361836
"""

scaleway/scaleway/instance/v1/types.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,22 +1795,22 @@ class VolumeServerTemplate:
17951795
Volume server template.
17961796
"""
17971797

1798-
id: str
1798+
id: Optional[str]
17991799
"""
18001800
UUID of the volume.
18011801
"""
18021802

1803-
boot: bool
1803+
boot: Optional[bool]
18041804
"""
18051805
Force the Instance to boot on this volume.
18061806
"""
18071807

1808-
name: str
1808+
name: Optional[str]
18091809
"""
18101810
Name of the volume.
18111811
"""
18121812

1813-
size: int
1813+
size: Optional[int]
18141814
"""
18151815
Disk size of the volume, must be a multiple of 512.
18161816
"""
@@ -1820,17 +1820,17 @@ class VolumeServerTemplate:
18201820
Type of the volume.
18211821
"""
18221822

1823-
base_snapshot: str
1823+
base_snapshot: Optional[str]
18241824
"""
18251825
ID of the snapshot on which this volume will be based.
18261826
"""
18271827

1828-
organization: str
1828+
organization: Optional[str]
18291829
"""
18301830
Organization ID of the volume.
18311831
"""
18321832

1833-
project: str
1833+
project: Optional[str]
18341834
"""
18351835
Project ID of the volume.
18361836
"""

0 commit comments

Comments
 (0)