Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scaleway-async/scaleway_async/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,10 @@ def unmarshal_Server(data: Any) -> Server:
if field is not None:
args["zone"] = field

field = data.get("end_of_service", None)
if field is not None:
args["end_of_service"] = field

field = data.get("admin_password_encryption_ssh_key_id", None)
if field is not None:
args["admin_password_encryption_ssh_key_id"] = field
Expand Down
77 changes: 41 additions & 36 deletions scaleway-async/scaleway_async/instance/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,94 +832,99 @@ class Server:
Defines whether the Instance protection option is activated.
"""

routed_ip_enabled: Optional[bool]
public_ips: List[ServerIp]
"""
True to configure the instance so it uses the routed IP mode. Use of `routed_ip_enabled` as `False` is deprecated.
Information about all the public IPs attached to the server.
"""

enable_ipv6: Optional[bool]
mac_address: str
"""
True if IPv6 is enabled (deprecated and always `False` when `routed_ip_enabled` is `True`).
The server's MAC address.
"""

image: Optional[Image]
state: ServerState
"""
Information about the Instance image.
Instance state.
"""

private_ip: Optional[str]
boot_type: BootType
"""
Private IP address of the Instance (deprecated and always `null` when `routed_ip_enabled` is `True`).
Instance boot type.
"""

public_ip: Optional[ServerIp]
volumes: Dict[str, VolumeServer]
"""
Information about the public IP (deprecated in favor of `public_ips`).
Instance volumes.
"""

public_ips: List[ServerIp]
maintenances: List[ServerMaintenance]
"""
Information about all the public IPs attached to the server.
Instance planned maintenance.
"""

mac_address: str
state_detail: str
"""
The server's MAC address.
Detailed information about the Instance state.
"""

state: ServerState
arch: Arch
"""
Instance state.
Instance architecture.
"""

boot_type: BootType
private_nics: List[PrivateNIC]
"""
Instance boot type.
Instance private NICs.
"""

volumes: Dict[str, VolumeServer]
zone: ScwZone
"""
Instance volumes.
Zone in which the Instance is located.
"""

modification_date: Optional[datetime]
end_of_service: bool
"""
Instance modification date.
True if the Instance type has reached end of service.
"""

location: Optional[ServerLocation]
routed_ip_enabled: Optional[bool]
"""
Instance location.
True to configure the instance so it uses the routed IP mode. Use of `routed_ip_enabled` as `False` is deprecated.
"""

ipv6: Optional[ServerIpv6]
enable_ipv6: Optional[bool]
"""
Instance IPv6 address (deprecated when `routed_ip_enabled` is `True`).
True if IPv6 is enabled (deprecated and always `False` when `routed_ip_enabled` is `True`).
"""

maintenances: List[ServerMaintenance]
image: Optional[Image]
"""
Instance planned maintenance.
Information about the Instance image.
"""

state_detail: str
private_ip: Optional[str]
"""
Detailed information about the Instance state.
Private IP address of the Instance (deprecated and always `null` when `routed_ip_enabled` is `True`).
"""

arch: Arch
public_ip: Optional[ServerIp]
"""
Instance architecture.
Information about the public IP (deprecated in favor of `public_ips`).
"""

private_nics: List[PrivateNIC]
modification_date: Optional[datetime]
"""
Instance private NICs.
Instance modification date.
"""

zone: ScwZone
location: Optional[ServerLocation]
"""
Zone in which the Instance is located.
Instance location.
"""

ipv6: Optional[ServerIpv6]
"""
Instance IPv6 address (deprecated when `routed_ip_enabled` is `True`).
"""

security_group: Optional[SecurityGroupSummary]
Expand Down
4 changes: 4 additions & 0 deletions scaleway/scaleway/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,10 @@ def unmarshal_Server(data: Any) -> Server:
if field is not None:
args["zone"] = field

field = data.get("end_of_service", None)
if field is not None:
args["end_of_service"] = field

field = data.get("admin_password_encryption_ssh_key_id", None)
if field is not None:
args["admin_password_encryption_ssh_key_id"] = field
Expand Down
77 changes: 41 additions & 36 deletions scaleway/scaleway/instance/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,94 +832,99 @@ class Server:
Defines whether the Instance protection option is activated.
"""

routed_ip_enabled: Optional[bool]
public_ips: List[ServerIp]
"""
True to configure the instance so it uses the routed IP mode. Use of `routed_ip_enabled` as `False` is deprecated.
Information about all the public IPs attached to the server.
"""

enable_ipv6: Optional[bool]
mac_address: str
"""
True if IPv6 is enabled (deprecated and always `False` when `routed_ip_enabled` is `True`).
The server's MAC address.
"""

image: Optional[Image]
state: ServerState
"""
Information about the Instance image.
Instance state.
"""

private_ip: Optional[str]
boot_type: BootType
"""
Private IP address of the Instance (deprecated and always `null` when `routed_ip_enabled` is `True`).
Instance boot type.
"""

public_ip: Optional[ServerIp]
volumes: Dict[str, VolumeServer]
"""
Information about the public IP (deprecated in favor of `public_ips`).
Instance volumes.
"""

public_ips: List[ServerIp]
maintenances: List[ServerMaintenance]
"""
Information about all the public IPs attached to the server.
Instance planned maintenance.
"""

mac_address: str
state_detail: str
"""
The server's MAC address.
Detailed information about the Instance state.
"""

state: ServerState
arch: Arch
"""
Instance state.
Instance architecture.
"""

boot_type: BootType
private_nics: List[PrivateNIC]
"""
Instance boot type.
Instance private NICs.
"""

volumes: Dict[str, VolumeServer]
zone: ScwZone
"""
Instance volumes.
Zone in which the Instance is located.
"""

modification_date: Optional[datetime]
end_of_service: bool
"""
Instance modification date.
True if the Instance type has reached end of service.
"""

location: Optional[ServerLocation]
routed_ip_enabled: Optional[bool]
"""
Instance location.
True to configure the instance so it uses the routed IP mode. Use of `routed_ip_enabled` as `False` is deprecated.
"""

ipv6: Optional[ServerIpv6]
enable_ipv6: Optional[bool]
"""
Instance IPv6 address (deprecated when `routed_ip_enabled` is `True`).
True if IPv6 is enabled (deprecated and always `False` when `routed_ip_enabled` is `True`).
"""

maintenances: List[ServerMaintenance]
image: Optional[Image]
"""
Instance planned maintenance.
Information about the Instance image.
"""

state_detail: str
private_ip: Optional[str]
"""
Detailed information about the Instance state.
Private IP address of the Instance (deprecated and always `null` when `routed_ip_enabled` is `True`).
"""

arch: Arch
public_ip: Optional[ServerIp]
"""
Instance architecture.
Information about the public IP (deprecated in favor of `public_ips`).
"""

private_nics: List[PrivateNIC]
modification_date: Optional[datetime]
"""
Instance private NICs.
Instance modification date.
"""

zone: ScwZone
location: Optional[ServerLocation]
"""
Zone in which the Instance is located.
Instance location.
"""

ipv6: Optional[ServerIpv6]
"""
Instance IPv6 address (deprecated when `routed_ip_enabled` is `True`).
"""

security_group: Optional[SecurityGroupSummary]
Expand Down