Skip to content

feat: add field custom_partitioning_supported to OS #652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2024
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
28 changes: 16 additions & 12 deletions scaleway-async/scaleway_async/baremetal/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,6 @@ def unmarshal_OS(data: Any) -> OS:
if field is not None:
args["logo_url"] = field

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

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

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

field = data.get("ssh", None)
if field is not None:
args["ssh"] = unmarshal_OSOSField(field)
Expand Down Expand Up @@ -183,6 +171,22 @@ def unmarshal_OS(data: Any) -> OS:
else:
args["service_password"] = None

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

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

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

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

return OS(**args)


Expand Down
35 changes: 20 additions & 15 deletions scaleway-async/scaleway_async/baremetal/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,21 +474,6 @@ class OS:
URL of this OS's logo.
"""

enabled: bool
"""
Defines if the operating system is enabled or not.
"""

license_required: bool
"""
License required (check server options for pricing details).
"""

allowed: bool
"""
Defines if a specific Organization is allowed to install this OS type.
"""

ssh: Optional[OSOSField]
"""
Object defining the SSH requirements to install the OS.
Expand All @@ -514,6 +499,26 @@ class OS:
Object defining the password requirements to install the service.
"""

enabled: bool
"""
Defines if the operating system is enabled or not.
"""

license_required: bool
"""
License required (check server options for pricing details).
"""

allowed: bool
"""
Defines if a specific Organization is allowed to install this OS type.
"""

custom_partitioning_supported: bool
"""
Defines if custom partitioning is supported by this OS.
"""


@dataclass
class Offer:
Expand Down
28 changes: 16 additions & 12 deletions scaleway/scaleway/baremetal/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,6 @@ def unmarshal_OS(data: Any) -> OS:
if field is not None:
args["logo_url"] = field

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

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

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

field = data.get("ssh", None)
if field is not None:
args["ssh"] = unmarshal_OSOSField(field)
Expand Down Expand Up @@ -183,6 +171,22 @@ def unmarshal_OS(data: Any) -> OS:
else:
args["service_password"] = None

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

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

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

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

return OS(**args)


Expand Down
35 changes: 20 additions & 15 deletions scaleway/scaleway/baremetal/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,21 +474,6 @@ class OS:
URL of this OS's logo.
"""

enabled: bool
"""
Defines if the operating system is enabled or not.
"""

license_required: bool
"""
License required (check server options for pricing details).
"""

allowed: bool
"""
Defines if a specific Organization is allowed to install this OS type.
"""

ssh: Optional[OSOSField]
"""
Object defining the SSH requirements to install the OS.
Expand All @@ -514,6 +499,26 @@ class OS:
Object defining the password requirements to install the service.
"""

enabled: bool
"""
Defines if the operating system is enabled or not.
"""

license_required: bool
"""
License required (check server options for pricing details).
"""

allowed: bool
"""
Defines if a specific Organization is allowed to install this OS type.
"""

custom_partitioning_supported: bool
"""
Defines if custom partitioning is supported by this OS.
"""


@dataclass
class Offer:
Expand Down