Skip to content

Commit b02fd09

Browse files
authored
feat(product_catalog): remove unused product_category (#1199)
1 parent 517b92c commit b02fd09

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,12 @@ def unmarshal_PublicCatalogProduct(data: Any) -> PublicCatalogProduct:
645645
else:
646646
args["service_category"] = None
647647

648+
field = data.get("product_category", None)
649+
if field is not None:
650+
args["product_category"] = field
651+
else:
652+
args["product_category"] = None
653+
648654
field = data.get("product", None)
649655
if field is not None:
650656
args["product"] = field

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,11 @@ class PublicCatalogProduct:
387387
The category of the product.
388388
"""
389389

390+
product_category: str
391+
"""
392+
The product category of the product.
393+
"""
394+
390395
product: str
391396
"""
392397
The product name.

scaleway/scaleway/product_catalog/v2alpha1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,12 @@ def unmarshal_PublicCatalogProduct(data: Any) -> PublicCatalogProduct:
645645
else:
646646
args["service_category"] = None
647647

648+
field = data.get("product_category", None)
649+
if field is not None:
650+
args["product_category"] = field
651+
else:
652+
args["product_category"] = None
653+
648654
field = data.get("product", None)
649655
if field is not None:
650656
args["product"] = field

scaleway/scaleway/product_catalog/v2alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,11 @@ class PublicCatalogProduct:
387387
The category of the product.
388388
"""
389389

390+
product_category: str
391+
"""
392+
The product category of the product.
393+
"""
394+
390395
product: str
391396
"""
392397
The product name.

0 commit comments

Comments
 (0)