Skip to content

feat(serverless): add timestamps to function/container namespace #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions scaleway-async/scaleway_async/container/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,18 @@ def unmarshal_Namespace(data: Any) -> Namespace:
else:
args["description"] = None

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
else:
args["updated_at"] = None

return Namespace(**args)


Expand Down
10 changes: 10 additions & 0 deletions scaleway-async/scaleway_async/container/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,16 @@ class Namespace:
Description of the endpoint.
"""

created_at: Optional[datetime]
"""
Creation date of the namespace.
"""

updated_at: Optional[datetime]
"""
Last update date of the namespace.
"""


@dataclass
class Token:
Expand Down
12 changes: 12 additions & 0 deletions scaleway-async/scaleway_async/function/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,18 @@ def unmarshal_Namespace(data: Any) -> Namespace:
else:
args["description"] = None

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
else:
args["updated_at"] = None

return Namespace(**args)


Expand Down
10 changes: 10 additions & 0 deletions scaleway-async/scaleway_async/function/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,16 @@ class Namespace:
Description of the namespace.
"""

created_at: Optional[datetime]
"""
Creation date of the namespace.
"""

updated_at: Optional[datetime]
"""
Last update date of the namespace.
"""


@dataclass
class Token:
Expand Down
12 changes: 12 additions & 0 deletions scaleway/scaleway/container/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,18 @@ def unmarshal_Namespace(data: Any) -> Namespace:
else:
args["description"] = None

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
else:
args["updated_at"] = None

return Namespace(**args)


Expand Down
10 changes: 10 additions & 0 deletions scaleway/scaleway/container/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,16 @@ class Namespace:
Description of the endpoint.
"""

created_at: Optional[datetime]
"""
Creation date of the namespace.
"""

updated_at: Optional[datetime]
"""
Last update date of the namespace.
"""


@dataclass
class Token:
Expand Down
12 changes: 12 additions & 0 deletions scaleway/scaleway/function/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,18 @@ def unmarshal_Namespace(data: Any) -> Namespace:
else:
args["description"] = None

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
else:
args["updated_at"] = None

return Namespace(**args)


Expand Down
10 changes: 10 additions & 0 deletions scaleway/scaleway/function/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,16 @@ class Namespace:
Description of the namespace.
"""

created_at: Optional[datetime]
"""
Creation date of the namespace.
"""

updated_at: Optional[datetime]
"""
Last update date of the namespace.
"""


@dataclass
class Token:
Expand Down