Skip to content

feat(interlink): add disapproved reason to link #839

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
Jan 30, 2025
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
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