diff --git a/scaleway-async/scaleway_async/instance/v1/marshalling.py b/scaleway-async/scaleway_async/instance/v1/marshalling.py index 5dd601490..bb6462059 100644 --- a/scaleway-async/scaleway_async/instance/v1/marshalling.py +++ b/scaleway-async/scaleway_async/instance/v1/marshalling.py @@ -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 diff --git a/scaleway-async/scaleway_async/instance/v1/types.py b/scaleway-async/scaleway_async/instance/v1/types.py index 8f6e48c5d..e7cef113b 100644 --- a/scaleway-async/scaleway_async/instance/v1/types.py +++ b/scaleway-async/scaleway_async/instance/v1/types.py @@ -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] diff --git a/scaleway/scaleway/instance/v1/marshalling.py b/scaleway/scaleway/instance/v1/marshalling.py index 5dd601490..bb6462059 100644 --- a/scaleway/scaleway/instance/v1/marshalling.py +++ b/scaleway/scaleway/instance/v1/marshalling.py @@ -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 diff --git a/scaleway/scaleway/instance/v1/types.py b/scaleway/scaleway/instance/v1/types.py index 8f6e48c5d..e7cef113b 100644 --- a/scaleway/scaleway/instance/v1/types.py +++ b/scaleway/scaleway/instance/v1/types.py @@ -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]