Skip to content

Commit b65438c

Browse files
feat(webhosting): add dns status and offer name to hosting summary (#794)
Co-authored-by: Laure-di <[email protected]>
1 parent f2ab854 commit b65438c

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

scaleway-async/scaleway_async/webhosting/v1/marshalling.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,14 @@ def unmarshal_HostingSummary(data: Any) -> HostingSummary:
650650
if field is not None:
651651
args["protected"] = field
652652

653+
field = data.get("dns_status", None)
654+
if field is not None:
655+
args["dns_status"] = field
656+
657+
field = data.get("offer_name", None)
658+
if field is not None:
659+
args["offer_name"] = field
660+
653661
field = data.get("region", None)
654662
if field is not None:
655663
args["region"] = field

scaleway-async/scaleway_async/webhosting/v1/types.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,16 @@ class HostingSummary:
503503
Whether the hosting is protected or not.
504504
"""
505505

506+
dns_status: DnsRecordsStatus
507+
"""
508+
DNS status of the Web Hosting plan.
509+
"""
510+
511+
offer_name: str
512+
"""
513+
Name of the active offer for the Web Hosting plan.
514+
"""
515+
506516
region: Region
507517
"""
508518
Region where the Web Hosting plan is hosted.

scaleway/scaleway/webhosting/v1/marshalling.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,14 @@ def unmarshal_HostingSummary(data: Any) -> HostingSummary:
650650
if field is not None:
651651
args["protected"] = field
652652

653+
field = data.get("dns_status", None)
654+
if field is not None:
655+
args["dns_status"] = field
656+
657+
field = data.get("offer_name", None)
658+
if field is not None:
659+
args["offer_name"] = field
660+
653661
field = data.get("region", None)
654662
if field is not None:
655663
args["region"] = field

scaleway/scaleway/webhosting/v1/types.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,16 @@ class HostingSummary:
503503
Whether the hosting is protected or not.
504504
"""
505505

506+
dns_status: DnsRecordsStatus
507+
"""
508+
DNS status of the Web Hosting plan.
509+
"""
510+
511+
offer_name: str
512+
"""
513+
Name of the active offer for the Web Hosting plan.
514+
"""
515+
506516
region: Region
507517
"""
508518
Region where the Web Hosting plan is hosted.

0 commit comments

Comments
 (0)