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
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ def unmarshal_PublicCatalogProductPropertiesAppleSilicon(
else:
args["range"] = None

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

return PublicCatalogProductPropertiesAppleSilicon(**args)


Expand Down Expand Up @@ -333,6 +339,12 @@ def unmarshal_PublicCatalogProductPropertiesDedibox(
else:
args["range"] = None

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

return PublicCatalogProductPropertiesDedibox(**args)


Expand All @@ -352,6 +364,12 @@ def unmarshal_PublicCatalogProductPropertiesElasticMetal(
else:
args["range"] = None

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

return PublicCatalogProductPropertiesElasticMetal(**args)


Expand Down
15 changes: 15 additions & 0 deletions scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ class PublicCatalogProductPropertiesAppleSilicon:
The range of the Apple Silicon server.
"""

server_type: str
"""
The server type of the Apple Silicon server.
"""


@dataclass
class PublicCatalogProductPropertiesBlockStorage:
Expand All @@ -249,6 +254,11 @@ class PublicCatalogProductPropertiesDedibox:
The range of the Dedibox server.
"""

offer_id: int
"""
The offer ID of the Dedibox server.
"""


@dataclass
class PublicCatalogProductPropertiesElasticMetal:
Expand All @@ -257,6 +267,11 @@ class PublicCatalogProductPropertiesElasticMetal:
The range of the Elastic Metal server.
"""

offer_id: str
"""
The offer ID of the Elastic Metal server.
"""


@dataclass
class PublicCatalogProductPropertiesHardware:
Expand Down
18 changes: 18 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ def unmarshal_PublicCatalogProductPropertiesAppleSilicon(
else:
args["range"] = None

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

return PublicCatalogProductPropertiesAppleSilicon(**args)


Expand Down Expand Up @@ -333,6 +339,12 @@ def unmarshal_PublicCatalogProductPropertiesDedibox(
else:
args["range"] = None

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

return PublicCatalogProductPropertiesDedibox(**args)


Expand All @@ -352,6 +364,12 @@ def unmarshal_PublicCatalogProductPropertiesElasticMetal(
else:
args["range"] = None

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

return PublicCatalogProductPropertiesElasticMetal(**args)


Expand Down
15 changes: 15 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ class PublicCatalogProductPropertiesAppleSilicon:
The range of the Apple Silicon server.
"""

server_type: str
"""
The server type of the Apple Silicon server.
"""


@dataclass
class PublicCatalogProductPropertiesBlockStorage:
Expand All @@ -249,6 +254,11 @@ class PublicCatalogProductPropertiesDedibox:
The range of the Dedibox server.
"""

offer_id: int
"""
The offer ID of the Dedibox server.
"""


@dataclass
class PublicCatalogProductPropertiesElasticMetal:
Expand All @@ -257,6 +267,11 @@ class PublicCatalogProductPropertiesElasticMetal:
The range of the Elastic Metal server.
"""

offer_id: str
"""
The offer ID of the Elastic Metal server.
"""


@dataclass
class PublicCatalogProductPropertiesHardware:
Expand Down
Loading