Skip to content

Commit 525a587

Browse files
authored
doc(instance): document instance commercial-type restriction (#581)
1 parent 74b3a82 commit 525a587

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ async def _update_server(
835835
:param commercial_type: Warning: This field has some restrictions:
836836
- Cannot be changed if the Instance is not in `stopped` state.
837837
- Cannot be changed if the Instance is in a placement group.
838+
- Cannot be changed from/to a Windows offer to/from a Linux offer.
838839
- Local storage requirements of the target commercial_types must be fulfilled (i.e. if an Instance has 80GB of local storage, it can be changed into a GP1-XS, which has a maximum of 150GB, but it cannot be changed into a DEV1-S, which has only 20GB).
839840
:param admin_password_encryption_ssh_key_id: The public_key value of this key is used to encrypt the admin password. When set to an empty string, reset this value and admin_password_encrypted_value to an empty string so a new password may be generated.
840841
:return: :class:`UpdateServerResponse <UpdateServerResponse>`

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3539,6 +3539,7 @@ class UpdateServerRequest:
35393539
Warning: This field has some restrictions:
35403540
- Cannot be changed if the Instance is not in `stopped` state.
35413541
- Cannot be changed if the Instance is in a placement group.
3542+
- Cannot be changed from/to a Windows offer to/from a Linux offer.
35423543
- Local storage requirements of the target commercial_types must be fulfilled (i.e. if an Instance has 80GB of local storage, it can be changed into a GP1-XS, which has a maximum of 150GB, but it cannot be changed into a DEV1-S, which has only 20GB).
35433544
"""
35443545

scaleway/scaleway/instance/v1/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ def _update_server(
835835
:param commercial_type: Warning: This field has some restrictions:
836836
- Cannot be changed if the Instance is not in `stopped` state.
837837
- Cannot be changed if the Instance is in a placement group.
838+
- Cannot be changed from/to a Windows offer to/from a Linux offer.
838839
- Local storage requirements of the target commercial_types must be fulfilled (i.e. if an Instance has 80GB of local storage, it can be changed into a GP1-XS, which has a maximum of 150GB, but it cannot be changed into a DEV1-S, which has only 20GB).
839840
:param admin_password_encryption_ssh_key_id: The public_key value of this key is used to encrypt the admin password. When set to an empty string, reset this value and admin_password_encrypted_value to an empty string so a new password may be generated.
840841
:return: :class:`UpdateServerResponse <UpdateServerResponse>`

scaleway/scaleway/instance/v1/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3539,6 +3539,7 @@ class UpdateServerRequest:
35393539
Warning: This field has some restrictions:
35403540
- Cannot be changed if the Instance is not in `stopped` state.
35413541
- Cannot be changed if the Instance is in a placement group.
3542+
- Cannot be changed from/to a Windows offer to/from a Linux offer.
35423543
- Local storage requirements of the target commercial_types must be fulfilled (i.e. if an Instance has 80GB of local storage, it can be changed into a GP1-XS, which has a maximum of 150GB, but it cannot be changed into a DEV1-S, which has only 20GB).
35433544
"""
35443545

0 commit comments

Comments
 (0)