Skip to content

Commit

Permalink
feat(webhosting): add public dns raw data (#837)
Browse files Browse the repository at this point in the history
Co-authored-by: Laure-di <62625835+Laure-di@users.noreply.github.com>
  • Loading branch information
scaleway-bot and Laure-di authored Jan 30, 2025
1 parent 9218327 commit 917114d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scaleway-async/scaleway_async/webhosting/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ def unmarshal_DnsRecord(data: Any) -> DnsRecord:
if field is not None:
args["status"] = field

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

field = data.get("priority", None)
if field is not None:
args["priority"] = field
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 @@ -312,6 +312,11 @@ class DnsRecord:
Record status.
"""

raw_data: str
"""
Record representation as it appears in the zone file or DNS management system.
"""

priority: Optional[int]
"""
Record priority level.
Expand Down
4 changes: 4 additions & 0 deletions scaleway/scaleway/webhosting/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ def unmarshal_DnsRecord(data: Any) -> DnsRecord:
if field is not None:
args["status"] = field

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

field = data.get("priority", None)
if field is not None:
args["priority"] = field
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 @@ -312,6 +312,11 @@ class DnsRecord:
Record status.
"""

raw_data: str
"""
Record representation as it appears in the zone file or DNS management system.
"""

priority: Optional[int]
"""
Record priority level.
Expand Down

0 comments on commit 917114d

Please sign in to comment.