Skip to content

Commit

Permalink
feat(edge_services): add orga id in pipeline message (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Oct 24, 2024
1 parent d984dc6 commit a173142
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ def unmarshal_Pipeline(data: Any) -> Pipeline:
if field is not None:
args["project_id"] = field

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

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/edge_services/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,11 @@ class Pipeline:
Project ID of the pipeline.
"""

organization_id: str
"""
Organization ID of the pipeline.
"""

created_at: Optional[datetime]
"""
Date the pipeline was created.
Expand Down
4 changes: 4 additions & 0 deletions scaleway/scaleway/edge_services/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ def unmarshal_Pipeline(data: Any) -> Pipeline:
if field is not None:
args["project_id"] = field

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

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/edge_services/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,11 @@ class Pipeline:
Project ID of the pipeline.
"""

organization_id: str
"""
Organization ID of the pipeline.
"""

created_at: Optional[datetime]
"""
Date the pipeline was created.
Expand Down

0 comments on commit a173142

Please sign in to comment.