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
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/tem/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ async def list_webhooks(
page_size: Optional[int] = None,
project_id: Optional[str] = None,
organization_id: Optional[str] = None,
domain_id: Optional[str] = None,
) -> ListWebhooksResponse:
"""
:param region: Region to target. If none is passed will use default region from the config.
Expand All @@ -770,6 +771,7 @@ async def list_webhooks(
:param page_size: (Optional) Requested page size. Value must be between 1 and 100.
:param project_id: (Optional) ID of the Project for which to list the Webhooks.
:param organization_id: (Optional) ID of the Organization for which to list the Webhooks.
:param domain_id: (Optional) ID of the Domain for which to list the Webhooks.
:return: :class:`ListWebhooksResponse <ListWebhooksResponse>`

Usage:
Expand All @@ -786,6 +788,7 @@ async def list_webhooks(
"GET",
f"/transactional-email/v1alpha1/regions/{param_region}/webhooks",
params={
"domain_id": domain_id,
"order_by": order_by,
"organization_id": organization_id
or self.client.default_organization_id,
Expand All @@ -807,6 +810,7 @@ async def list_webhooks_all(
page_size: Optional[int] = None,
project_id: Optional[str] = None,
organization_id: Optional[str] = None,
domain_id: Optional[str] = None,
) -> List[Webhook]:
"""
:param region: Region to target. If none is passed will use default region from the config.
Expand All @@ -815,6 +819,7 @@ async def list_webhooks_all(
:param page_size: (Optional) Requested page size. Value must be between 1 and 100.
:param project_id: (Optional) ID of the Project for which to list the Webhooks.
:param organization_id: (Optional) ID of the Organization for which to list the Webhooks.
:param domain_id: (Optional) ID of the Domain for which to list the Webhooks.
:return: :class:`List[Webhook] <List[Webhook]>`

Usage:
Expand All @@ -834,6 +839,7 @@ async def list_webhooks_all(
"page_size": page_size,
"project_id": project_id,
"organization_id": organization_id,
"domain_id": domain_id,
},
)

Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/tem/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,11 @@ class ListWebhooksRequest:
(Optional) ID of the Organization for which to list the Webhooks.
"""

domain_id: Optional[str]
"""
(Optional) ID of the Domain for which to list the Webhooks.
"""


@dataclass
class ListWebhooksResponse:
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/tem/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ def list_webhooks(
page_size: Optional[int] = None,
project_id: Optional[str] = None,
organization_id: Optional[str] = None,
domain_id: Optional[str] = None,
) -> ListWebhooksResponse:
"""
:param region: Region to target. If none is passed will use default region from the config.
Expand All @@ -770,6 +771,7 @@ def list_webhooks(
:param page_size: (Optional) Requested page size. Value must be between 1 and 100.
:param project_id: (Optional) ID of the Project for which to list the Webhooks.
:param organization_id: (Optional) ID of the Organization for which to list the Webhooks.
:param domain_id: (Optional) ID of the Domain for which to list the Webhooks.
:return: :class:`ListWebhooksResponse <ListWebhooksResponse>`

Usage:
Expand All @@ -786,6 +788,7 @@ def list_webhooks(
"GET",
f"/transactional-email/v1alpha1/regions/{param_region}/webhooks",
params={
"domain_id": domain_id,
"order_by": order_by,
"organization_id": organization_id
or self.client.default_organization_id,
Expand All @@ -807,6 +810,7 @@ def list_webhooks_all(
page_size: Optional[int] = None,
project_id: Optional[str] = None,
organization_id: Optional[str] = None,
domain_id: Optional[str] = None,
) -> List[Webhook]:
"""
:param region: Region to target. If none is passed will use default region from the config.
Expand All @@ -815,6 +819,7 @@ def list_webhooks_all(
:param page_size: (Optional) Requested page size. Value must be between 1 and 100.
:param project_id: (Optional) ID of the Project for which to list the Webhooks.
:param organization_id: (Optional) ID of the Organization for which to list the Webhooks.
:param domain_id: (Optional) ID of the Domain for which to list the Webhooks.
:return: :class:`List[Webhook] <List[Webhook]>`

Usage:
Expand All @@ -834,6 +839,7 @@ def list_webhooks_all(
"page_size": page_size,
"project_id": project_id,
"organization_id": organization_id,
"domain_id": domain_id,
},
)

Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/tem/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,11 @@ class ListWebhooksRequest:
(Optional) ID of the Organization for which to list the Webhooks.
"""

domain_id: Optional[str]
"""
(Optional) ID of the Domain for which to list the Webhooks.
"""


@dataclass
class ListWebhooksResponse:
Expand Down