Skip to content
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
8 changes: 8 additions & 0 deletions scaleway-async/scaleway_async/cockpit/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,14 @@ def unmarshal_PreconfiguredAlertData(data: Any) -> PreconfiguredAlertData:
if field is not None:
args["display_description"] = field

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

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

return PreconfiguredAlertData(**args)


Expand Down
10 changes: 10 additions & 0 deletions scaleway-async/scaleway_async/cockpit/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@ class PreconfiguredAlertData:
Human readable description of the alert.
"""

product_name: str
"""
Product associated with the alert.
"""

product_family: str
"""
Family of the product associated with the alert.
"""


@dataclass
class ContactPointEmail:
Expand Down
8 changes: 8 additions & 0 deletions scaleway/scaleway/cockpit/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,14 @@ def unmarshal_PreconfiguredAlertData(data: Any) -> PreconfiguredAlertData:
if field is not None:
args["display_description"] = field

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

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

return PreconfiguredAlertData(**args)


Expand Down
10 changes: 10 additions & 0 deletions scaleway/scaleway/cockpit/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@ class PreconfiguredAlertData:
Human readable description of the alert.
"""

product_name: str
"""
Product associated with the alert.
"""

product_family: str
"""
Family of the product associated with the alert.
"""


@dataclass
class ContactPointEmail:
Expand Down