Skip to content

Commit 8f906c0

Browse files
committed
feat: update generated APIs
1 parent 0ee4aea commit 8f906c0

4 files changed

Lines changed: 22 additions & 0 deletions

File tree

scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ def unmarshal_PublicCatalogProductPropertiesHardwareCPU(
170170
else:
171171
args["threads"] = 0
172172

173+
field = data.get("shared", None)
174+
if field is not None:
175+
args["shared"] = field
176+
else:
177+
args["shared"] = False
178+
173179
field = data.get("virtual", None)
174180
if field is not None:
175181
args["virtual"] = unmarshal_PublicCatalogProductPropertiesHardwareCPUVirtual(

scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,11 @@ class PublicCatalogProductPropertiesHardwareCPU:
306306
The total number of threads.
307307
"""
308308

309+
shared: bool
310+
"""
311+
Indicates whether the CPU is shared or not.
312+
"""
313+
309314
virtual: Optional[PublicCatalogProductPropertiesHardwareCPUVirtual] = None
310315

311316
physical: Optional[PublicCatalogProductPropertiesHardwareCPUPhysical] = None

scaleway/scaleway/product_catalog/v2alpha1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ def unmarshal_PublicCatalogProductPropertiesHardwareCPU(
170170
else:
171171
args["threads"] = 0
172172

173+
field = data.get("shared", None)
174+
if field is not None:
175+
args["shared"] = field
176+
else:
177+
args["shared"] = False
178+
173179
field = data.get("virtual", None)
174180
if field is not None:
175181
args["virtual"] = unmarshal_PublicCatalogProductPropertiesHardwareCPUVirtual(

scaleway/scaleway/product_catalog/v2alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,11 @@ class PublicCatalogProductPropertiesHardwareCPU:
306306
The total number of threads.
307307
"""
308308

309+
shared: bool
310+
"""
311+
Indicates whether the CPU is shared or not.
312+
"""
313+
309314
virtual: Optional[PublicCatalogProductPropertiesHardwareCPUVirtual] = None
310315

311316
physical: Optional[PublicCatalogProductPropertiesHardwareCPUPhysical] = None

0 commit comments

Comments
 (0)