Skip to content

Commit b7fc352

Browse files
authored
feat(instance): set bootscript as deprecated in the public api (#38)
1 parent d89b259 commit b7fc352

File tree

6 files changed

+32
-0
lines changed

6 files changed

+32
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3328,6 +3328,7 @@ async def list_bootscripts(
33283328
:param per_page:
33293329
:param page:
33303330
:return: :class:`ListBootscriptsResponse <ListBootscriptsResponse>`
3331+
:deprecated
33313332
33323333
Usage:
33333334
::
@@ -3374,6 +3375,7 @@ async def list_bootscripts_all(
33743375
:param per_page:
33753376
:param page:
33763377
:return: :class:`List[ListBootscriptsResponse] <List[ListBootscriptsResponse]>`
3378+
:deprecated
33773379
33783380
Usage:
33793381
::
@@ -3407,6 +3409,7 @@ async def get_bootscript(
34073409
:param zone: Zone to target. If none is passed will use default zone from the config
34083410
:param bootscript_id:
34093411
:return: :class:`GetBootscriptResponse <GetBootscriptResponse>`
3412+
:deprecated
34103413
34113414
Usage:
34123415
::

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,9 @@ class Image:
460460
modification_date: Optional[datetime]
461461

462462
default_bootscript: Optional[Bootscript]
463+
"""
464+
:deprecated
465+
"""
463466

464467
extra_volumes: Dict[str, Volume]
465468

@@ -1028,6 +1031,7 @@ class Server:
10281031
bootscript: Optional[Bootscript]
10291032
"""
10301033
The server bootscript
1034+
:deprecated
10311035
"""
10321036

10331037
boot_type: BootType
@@ -2039,6 +2043,7 @@ class CreateImageRequest:
20392043
default_bootscript: Optional[str]
20402044
"""
20412045
Default bootscript of the image
2046+
:deprecated
20422047
"""
20432048

20442049
extra_volumes: Optional[Dict[str, VolumeTemplate]]

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ class _CreateServerRequest:
138138
bootscript: Optional[str]
139139
"""
140140
The bootscript ID to use when `boot_type` is set to `bootscript`
141+
:deprecated
141142
"""
142143

143144
organization: Optional[str]
@@ -276,6 +277,7 @@ class _SetServerRequest:
276277
bootscript: Optional[Bootscript]
277278
"""
278279
The server bootscript
280+
:deprecated
279281
"""
280282

281283
boot_type: BootType
@@ -346,6 +348,9 @@ class _UpdateServerRequest:
346348
volumes: Optional[Dict[str, VolumeServerTemplate]]
347349

348350
bootscript: Optional[str]
351+
"""
352+
:deprecated
353+
"""
349354

350355
dynamic_ip_required: Optional[bool]
351356

@@ -384,6 +389,9 @@ class _SetImageRequest:
384389
modification_date: Optional[datetime]
385390

386391
default_bootscript: Optional[Bootscript]
392+
"""
393+
:deprecated
394+
"""
387395

388396
extra_volumes: Optional[Dict[str, Volume]]
389397

scaleway/scaleway/instance/v1/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3328,6 +3328,7 @@ def list_bootscripts(
33283328
:param per_page:
33293329
:param page:
33303330
:return: :class:`ListBootscriptsResponse <ListBootscriptsResponse>`
3331+
:deprecated
33313332
33323333
Usage:
33333334
::
@@ -3374,6 +3375,7 @@ def list_bootscripts_all(
33743375
:param per_page:
33753376
:param page:
33763377
:return: :class:`List[ListBootscriptsResponse] <List[ListBootscriptsResponse]>`
3378+
:deprecated
33773379
33783380
Usage:
33793381
::
@@ -3407,6 +3409,7 @@ def get_bootscript(
34073409
:param zone: Zone to target. If none is passed will use default zone from the config
34083410
:param bootscript_id:
34093411
:return: :class:`GetBootscriptResponse <GetBootscriptResponse>`
3412+
:deprecated
34103413
34113414
Usage:
34123415
::

scaleway/scaleway/instance/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,9 @@ class Image:
460460
modification_date: Optional[datetime]
461461

462462
default_bootscript: Optional[Bootscript]
463+
"""
464+
:deprecated
465+
"""
463466

464467
extra_volumes: Dict[str, Volume]
465468

@@ -1028,6 +1031,7 @@ class Server:
10281031
bootscript: Optional[Bootscript]
10291032
"""
10301033
The server bootscript
1034+
:deprecated
10311035
"""
10321036

10331037
boot_type: BootType
@@ -2039,6 +2043,7 @@ class CreateImageRequest:
20392043
default_bootscript: Optional[str]
20402044
"""
20412045
Default bootscript of the image
2046+
:deprecated
20422047
"""
20432048

20442049
extra_volumes: Optional[Dict[str, VolumeTemplate]]

scaleway/scaleway/instance/v1/types_private.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ class _CreateServerRequest:
138138
bootscript: Optional[str]
139139
"""
140140
The bootscript ID to use when `boot_type` is set to `bootscript`
141+
:deprecated
141142
"""
142143

143144
organization: Optional[str]
@@ -276,6 +277,7 @@ class _SetServerRequest:
276277
bootscript: Optional[Bootscript]
277278
"""
278279
The server bootscript
280+
:deprecated
279281
"""
280282

281283
boot_type: BootType
@@ -346,6 +348,9 @@ class _UpdateServerRequest:
346348
volumes: Optional[Dict[str, VolumeServerTemplate]]
347349

348350
bootscript: Optional[str]
351+
"""
352+
:deprecated
353+
"""
349354

350355
dynamic_ip_required: Optional[bool]
351356

@@ -384,6 +389,9 @@ class _SetImageRequest:
384389
modification_date: Optional[datetime]
385390

386391
default_bootscript: Optional[Bootscript]
392+
"""
393+
:deprecated
394+
"""
387395

388396
extra_volumes: Optional[Dict[str, Volume]]
389397

0 commit comments

Comments
 (0)