Skip to content

Commit

Permalink
feat(interlink): add disapproved reason to link (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Jan 30, 2025
1 parent 814db6f commit d21823f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ def unmarshal_Link(data: Any) -> Link:
else:
args["updated_at"] = None

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

return Link(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/interlink/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ class Link:
Last modification date of the link.
"""

disapproved_reason: Optional[str]
"""
Reason given by partner to explain why they did not approve the request for a hosted link.
"""


@dataclass
class Partner:
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/interlink/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ def unmarshal_Link(data: Any) -> Link:
else:
args["updated_at"] = None

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

return Link(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/interlink/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ class Link:
Last modification date of the link.
"""

disapproved_reason: Optional[str]
"""
Reason given by partner to explain why they did not approve the request for a hosted link.
"""


@dataclass
class Partner:
Expand Down

0 comments on commit d21823f

Please sign in to comment.