Skip to content

Commit

Permalink
feat(webhosting): add domain selected dns configuration (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Feb 21, 2025
1 parent 132d691 commit c49ff44
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/webhosting/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ def unmarshal_DnsRecords(data: Any) -> DnsRecords:
if field is not None:
args["status"] = field

field = data.get("dns_config", None)
if field is not None:
args["dns_config"] = (
[DomainDnsAction(v) for v in field] if field is not None else None
)

return DnsRecords(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/webhosting/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,11 @@ class DnsRecords:
Status of the records.
"""

dns_config: List[DomainDnsAction]
"""
Records dns auto configuration settings.
"""


@dataclass
class Domain:
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/webhosting/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ def unmarshal_DnsRecords(data: Any) -> DnsRecords:
if field is not None:
args["status"] = field

field = data.get("dns_config", None)
if field is not None:
args["dns_config"] = (
[DomainDnsAction(v) for v in field] if field is not None else None
)

return DnsRecords(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/webhosting/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,11 @@ class DnsRecords:
Status of the records.
"""

dns_config: List[DomainDnsAction]
"""
Records dns auto configuration settings.
"""


@dataclass
class Domain:
Expand Down

0 comments on commit c49ff44

Please sign in to comment.