Skip to content

Commit

Permalink
feat: update generated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot committed Dec 3, 2024
1 parent 387c057 commit 51f09fa
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 @@ -430,6 +430,12 @@ def unmarshal_HostingSummary(data: Any) -> HostingSummary:
if field is not None:
args["region"] = field

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
else:
args["created_at"] = None

field = data.get("updated_at", None)
if field is not None:
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else 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 @@ -315,6 +315,11 @@ class HostingSummary:
Region where the Web Hosting plan is hosted.
"""

created_at: Optional[datetime]
"""
Date on which the Web Hosting plan was created.
"""

updated_at: Optional[datetime]
"""
Date on which the Web Hosting plan was last updated.
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 @@ -430,6 +430,12 @@ def unmarshal_HostingSummary(data: Any) -> HostingSummary:
if field is not None:
args["region"] = field

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
else:
args["created_at"] = None

field = data.get("updated_at", None)
if field is not None:
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else 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 @@ -315,6 +315,11 @@ class HostingSummary:
Region where the Web Hosting plan is hosted.
"""

created_at: Optional[datetime]
"""
Date on which the Web Hosting plan was created.
"""

updated_at: Optional[datetime]
"""
Date on which the Web Hosting plan was last updated.
Expand Down

0 comments on commit 51f09fa

Please sign in to comment.