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
12 changes: 8 additions & 4 deletions src/convoy/api/subscriptions/get_subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def sync_detailed(
]:
"""List all subscriptions

This endpoint fetches all the subscriptions
List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body,
header, query, or path rules.

Args:
project_id (str):
Expand Down Expand Up @@ -191,7 +192,8 @@ def sync(
):
"""List all subscriptions

This endpoint fetches all the subscriptions
List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body,
header, query, or path rules.

Args:
project_id (str):
Expand Down Expand Up @@ -243,7 +245,8 @@ async def asyncio_detailed(
]:
"""List all subscriptions

This endpoint fetches all the subscriptions
List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body,
header, query, or path rules.

Args:
project_id (str):
Expand Down Expand Up @@ -299,7 +302,8 @@ async def asyncio(
):
"""List all subscriptions

This endpoint fetches all the subscriptions
List subscriptions. A row includes has_event_type_filters when a per-event-type filter has body,
header, query, or path rules.

Args:
project_id (str):
Expand Down
10 changes: 10 additions & 0 deletions src/convoy/models/models_subscription_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class ModelsSubscriptionResponse:
endpoint_metadata (DatastoreEndpoint | None | Unset):
filter_config (DatastoreFilterConfiguration | None | Unset):
function (None | str | Unset):
has_event_type_filters (bool | Unset): HasEventTypeFilters indicates whether the subscription list found a
configured per-event-type rule.
name (str | Unset):
project_id (str | Unset):
rate_limit_config (DatastoreRateLimitConfiguration | None | Unset):
Expand All @@ -55,6 +57,7 @@ class ModelsSubscriptionResponse:
endpoint_metadata: DatastoreEndpoint | None | Unset = UNSET
filter_config: DatastoreFilterConfiguration | None | Unset = UNSET
function: None | str | Unset = UNSET
has_event_type_filters: bool | Unset = UNSET
name: str | Unset = UNSET
project_id: str | Unset = UNSET
rate_limit_config: DatastoreRateLimitConfiguration | None | Unset = UNSET
Expand Down Expand Up @@ -126,6 +129,8 @@ def to_dict(self) -> dict[str, Any]:
else:
function = self.function

has_event_type_filters = self.has_event_type_filters

name = self.name

project_id = self.project_id
Expand Down Expand Up @@ -181,6 +186,8 @@ def to_dict(self) -> dict[str, Any]:
field_dict["filter_config"] = filter_config
if function is not UNSET:
field_dict["function"] = function
if has_event_type_filters is not UNSET:
field_dict["has_event_type_filters"] = has_event_type_filters
if name is not UNSET:
field_dict["name"] = name
if project_id is not UNSET:
Expand Down Expand Up @@ -313,6 +320,8 @@ def _parse_function(data: object) -> None | str | Unset:

function = _parse_function(d.pop("function", UNSET))

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

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

project_id = d.pop("project_id", UNSET)
Expand Down Expand Up @@ -394,6 +403,7 @@ def _parse_source_metadata(data: object) -> DatastoreSource | None | Unset:
endpoint_metadata=endpoint_metadata,
filter_config=filter_config,
function=function,
has_event_type_filters=has_event_type_filters,
name=name,
project_id=project_id,
rate_limit_config=rate_limit_config,
Expand Down