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
9 changes: 9 additions & 0 deletions src/convoy/models/datastore_endpoint.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -55,6 +55,7 @@ class DatastoreEndpoint:
status (DatastoreEndpointStatus | Unset):
success_count (int | None | Unset):
support_email (str | Unset):
teams_webhook_url (str | Unset):
uid (str | Unset):
updated_at (str | Unset):
url (str | Unset):
Expand DownExpand Up@@ -84,6 +85,7 @@ class DatastoreEndpoint:
status: DatastoreEndpointStatus | Unset = UNSET
success_count: int | None | Unset = UNSET
support_email: str | Unset = UNSET
teams_webhook_url: str | Unset = UNSET
uid: str | Unset = UNSET
updated_at: str | Unset = UNSET
url: str | Unset = UNSET
Expand DownExpand Up@@ -190,6 +192,8 @@ def to_dict(self) -> dict[str, Any]:

support_email = self.support_email

teams_webhook_url = self.teams_webhook_url

uid = self.uid

updated_at = self.updated_at
Expand DownExpand Up@@ -247,6 +251,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["success_count"] = success_count
if support_email is not UNSET:
field_dict["support_email"] = support_email
if teams_webhook_url is not UNSET:
field_dict["teams_webhook_url"] = teams_webhook_url
if uid is not UNSET:
field_dict["uid"] = uid
if updated_at is not UNSET:
Expand DownExpand Up@@ -410,6 +416,8 @@ def _parse_success_count(data: object) -> int | None | Unset:

support_email = d.pop("support_email", UNSET)

teams_webhook_url = d.pop("teams_webhook_url", UNSET)

uid = d.pop("uid", UNSET)

updated_at = d.pop("updated_at", UNSET)
Expand DownExpand Up@@ -441,6 +449,7 @@ def _parse_success_count(data: object) -> int | None | Unset:
status=status,
success_count=success_count,
support_email=support_email,
teams_webhook_url=teams_webhook_url,
uid=uid,
updated_at=updated_at,
url=url,
Expand Down
12 changes: 12 additions & 0 deletions src/convoy/models/models_create_endpoint.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,6 +44,10 @@ class ModelsCreateEndpoint:
can receive failure notifications on a slack channel.
support_email (str | Unset): Endpoint developers support email. This is used for communicating endpoint state
changes. You should always turn this on when disabling endpoints are enabled.
teams_webhook_url (str | Unset): Microsoft Teams webhook URL is an alternative method to support email where
endpoint
developers can receive failure notifications in a Teams channel. Use a Workflows
(Power Automate) webhook URL; retired Office 365 connector URLs no longer deliver.
url (str | Unset): URL is the endpoint's URL prefixed with https. non-https urls are currently
not supported.
"""
Expand All@@ -63,6 +67,7 @@ class ModelsCreateEndpoint:
secret: str | Unset = UNSET
slack_webhook_url: str | Unset = UNSET
support_email: str | Unset = UNSET
teams_webhook_url: str | Unset = UNSET
url: str | Unset = UNSET
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)

Expand DownExpand Up@@ -101,6 +106,8 @@ def to_dict(self) -> dict[str, Any]:

support_email = self.support_email

teams_webhook_url = self.teams_webhook_url

url = self.url

field_dict: dict[str, Any] = {}
Expand DownExpand Up@@ -136,6 +143,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["slack_webhook_url"] = slack_webhook_url
if support_email is not UNSET:
field_dict["support_email"] = support_email
if teams_webhook_url is not UNSET:
field_dict["teams_webhook_url"] = teams_webhook_url
if url is not UNSET:
field_dict["url"] = url

Expand DownExpand Up@@ -187,6 +196,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

support_email = d.pop("support_email", UNSET)

teams_webhook_url = d.pop("teams_webhook_url", UNSET)

url = d.pop("url", UNSET)

models_create_endpoint = cls(
Expand All@@ -205,6 +216,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
secret=secret,
slack_webhook_url=slack_webhook_url,
support_email=support_email,
teams_webhook_url=teams_webhook_url,
url=url,
)

Expand Down
9 changes: 9 additions & 0 deletions src/convoy/models/models_endpoint_response.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -55,6 +55,7 @@ class ModelsEndpointResponse:
status (DatastoreEndpointStatus | Unset):
success_count (int | None | Unset):
support_email (str | Unset):
teams_webhook_url (str | Unset):
uid (str | Unset):
updated_at (str | Unset):
url (str | Unset):
Expand DownExpand Up@@ -84,6 +85,7 @@ class ModelsEndpointResponse:
status: DatastoreEndpointStatus | Unset = UNSET
success_count: int | None | Unset = UNSET
support_email: str | Unset = UNSET
teams_webhook_url: str | Unset = UNSET
uid: str | Unset = UNSET
updated_at: str | Unset = UNSET
url: str | Unset = UNSET
Expand DownExpand Up@@ -190,6 +192,8 @@ def to_dict(self) -> dict[str, Any]:

support_email = self.support_email

teams_webhook_url = self.teams_webhook_url

uid = self.uid

updated_at = self.updated_at
Expand DownExpand Up@@ -247,6 +251,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["success_count"] = success_count
if support_email is not UNSET:
field_dict["support_email"] = support_email
if teams_webhook_url is not UNSET:
field_dict["teams_webhook_url"] = teams_webhook_url
if uid is not UNSET:
field_dict["uid"] = uid
if updated_at is not UNSET:
Expand DownExpand Up@@ -410,6 +416,8 @@ def _parse_success_count(data: object) -> int | None | Unset:

support_email = d.pop("support_email", UNSET)

teams_webhook_url = d.pop("teams_webhook_url", UNSET)

uid = d.pop("uid", UNSET)

updated_at = d.pop("updated_at", UNSET)
Expand DownExpand Up@@ -441,6 +449,7 @@ def _parse_success_count(data: object) -> int | None | Unset:
status=status,
success_count=success_count,
support_email=support_email,
teams_webhook_url=teams_webhook_url,
uid=uid,
updated_at=updated_at,
url=url,
Expand Down
12 changes: 12 additions & 0 deletions src/convoy/models/models_update_endpoint.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -43,6 +43,10 @@ class ModelsUpdateEndpoint:
can receive failure notifications on a slack channel.
support_email (str | Unset): Endpoint developers support email. This is used for communicating endpoint state
changes. You should always turn this on when disabling endpoints are enabled.
teams_webhook_url (str | Unset): Microsoft Teams webhook URL is an alternative method to support email where
endpoint
developers can receive failure notifications in a Teams channel. Use a Workflows
(Power Automate) webhook URL; retired Office 365 connector URLs no longer deliver.
url (str | Unset): URL is the endpoint's URL prefixed with https. non-https urls are currently
not supported.
"""
Expand All@@ -61,6 +65,7 @@ class ModelsUpdateEndpoint:
secret: str | Unset = UNSET
slack_webhook_url: str | Unset = UNSET
support_email: str | Unset = UNSET
teams_webhook_url: str | Unset = UNSET
url: str | Unset = UNSET
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)

Expand DownExpand Up@@ -97,6 +102,8 @@ def to_dict(self) -> dict[str, Any]:

support_email = self.support_email

teams_webhook_url = self.teams_webhook_url

url = self.url

field_dict: dict[str, Any] = {}
Expand DownExpand Up@@ -130,6 +137,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["slack_webhook_url"] = slack_webhook_url
if support_email is not UNSET:
field_dict["support_email"] = support_email
if teams_webhook_url is not UNSET:
field_dict["teams_webhook_url"] = teams_webhook_url
if url is not UNSET:
field_dict["url"] = url

Expand DownExpand Up@@ -179,6 +188,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

support_email = d.pop("support_email", UNSET)

teams_webhook_url = d.pop("teams_webhook_url", UNSET)

url = d.pop("url", UNSET)

models_update_endpoint = cls(
Expand All@@ -196,6 +207,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
secret=secret,
slack_webhook_url=slack_webhook_url,
support_email=support_email,
teams_webhook_url=teams_webhook_url,
url=url,
)

Expand Down